/* ============================================================
   SMARTOUCH — BASE CSS
   Variables · Reset · Typography · Shared Components
   ============================================================ */

/* Google Fonts */

/* ----------------------------------------------------------
   CSS VARIABLES
   ---------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg:   #04050F;
  --s1:   #07091C;
  --s2:   #0C1028;

  /* Cards / surfaces */
  --card:  rgba(255,255,255,.038);
  --card2: rgba(255,255,255,.06);

  /* Borders */
  --b:  rgba(255,255,255,.07);
  --b2: rgba(255,255,255,.13);
  --b3: rgba(255,255,255,.2);

  /* Brand */
  --pink:   #F0234F;
  --orange: #FF6B3D;
  --grad:   linear-gradient(135deg,#F0234F,#FF6B3D);

  /* Text */
  --w:   #fff;
  --w80: rgba(255,255,255,.8);
  --w60: rgba(255,255,255,.6);
  --w40: rgba(255,255,255,.4);
  --w20: rgba(255,255,255,.2);
  --w10: rgba(255,255,255,.1);
  --w06: rgba(255,255,255,.06);
  --w04: rgba(255,255,255,.04);

  /* Fonts */
  --fd: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;

  /* Radius */
  --r:  16px;
  --r2: 24px;
  --r3: 32px;

  /* Layout */
  --nav: 64px;

  /* Status colours (as tokens, not hard-coded) */
  --success: #00E266;
  --success-bg: rgba(0,226,102,.12);
  --warning: #F59E0B;
  --danger:  #F0234F;

  /* Easing tokens (impeccable motion) */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in:        cubic-bezier(0.7, 0, 0.84, 0);

  /* Spacing scale (4pt base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Explicit overlay surfaces (replaces ad-hoc rgba) */
  --overlay-sm:   rgba(4,5,15,.55);
  --overlay-md:   rgba(4,5,15,.80);
  --overlay-lg:   rgba(4,5,15,.96);
}

/* ----------------------------------------------------------
   RESET
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html  { scroll-behavior: smooth; }

/* Skip-to-main link (a11y — P1 fix) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 18px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

body  {
  background: var(--bg);
  color: var(--w);
  font-family: var(--fb);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  padding-left:   env(safe-area-inset-left);
  padding-right:  env(safe-area-inset-right);
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

/* Typography polish (impeccable/typography) */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Tabular numbers for all data/stat display */
.hkpi-n, .ps-n, .rate-val, .tx-amt, .fb-val,
.stat-n, .demo-cred-val { font-variant-numeric: tabular-nums; }

/* Global focus style (a11y — visible focus for keyboard nav) */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar             { width: 4px; }
::-webkit-scrollbar-track       { background: transparent; }
::-webkit-scrollbar-thumb       { background: rgba(240,35,79,.5); border-radius: 2px; }

/* ----------------------------------------------------------
   LAYOUT UTILITIES
   ---------------------------------------------------------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

.sdiv {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b), transparent);
}

/* ----------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------------------------- */
.gtext {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}
.sec-tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--grad);
  flex-shrink: 0;
}

.sec-h {
  font-family: var(--fd);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 14px;
}

.sec-sub {
  font-size: 15px;
  color: var(--w60);
  font-weight: 300;
  line-height: 1.75;
  max-width: 500px;
}

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(240,35,79,.35);
  transition: transform .18s var(--ease-out-quart), box-shadow .18s var(--ease-out-quart);
}
@media (hover: hover) {
  .btn-p:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240,35,79,.55);
  }
}
.btn-p:active  { transform: translateY(0) scale(.97); }

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--w06);
  border: 1px solid var(--b2);
  color: var(--w80);
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s var(--ease-out-quart), background .18s var(--ease-out-quart);
}
@media (hover: hover) {
  .btn-o:hover { border-color: var(--b3); background: var(--w10); }
}
.btn-o:active  { transform: scale(.97); }

/* ----------------------------------------------------------
   AURORA BLOBS (shared across pages)
   ---------------------------------------------------------- */
.aurora          { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.abl             { position: absolute; border-radius: 50%; filter: blur(90px); }

@keyframes ab {
  0%,100% { transform: scale(1) translate(0,0); }
  50%     { transform: scale(1.1) translate(16px,-12px); }
}

/* ----------------------------------------------------------
   CTA SECTION (shared)
   ---------------------------------------------------------- */
.cta-sec  { padding: 0 0 96px; }
.cta-box  {
  border-radius: var(--r3);
  background: linear-gradient(135deg,rgba(240,35,79,.12),rgba(123,47,255,.10),rgba(0,217,180,.06));
  border: 1px solid rgba(240,35,79,.20);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-b1 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(240,35,79,.14) 0%,transparent 70%);
  top: -120px; left: -80px;
  filter: blur(60px);
  pointer-events: none;
}
.cta-b2 {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(123,47,255,.12) 0%,transparent 70%);
  bottom: -80px; right: -60px;
  filter: blur(60px);
  pointer-events: none;
}
.cta-h   {
  font-family: var(--fd);
  font-size: clamp(28px,4vw,46px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.cta-sub  {
  font-size: 15px;
  color: var(--w60);
  font-weight: 300;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------
   CTA BOX HOVER
   ---------------------------------------------------------- */
.cta-box { transition: box-shadow .3s var(--ease-out-quart), border-color .3s var(--ease-out-quart); }
@media (hover: hover) {
  .cta-box:hover { box-shadow: 0 0 80px rgba(240,35,79,.15); border-color: rgba(240,35,79,.35); }
}

/* ----------------------------------------------------------
   COARSE POINTER: minimum 44px tap targets
   ---------------------------------------------------------- */
@media (pointer: coarse) {
  .nb, .btn-p, .btn-o {
    min-height: 44px;
  }
  .na {
    padding: 10px 14px;
  }
}

/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Nav logo (Smartouch icon) */
.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

/* Nav logo — wordmark text version (mobile: hide) */
.nav-logo-wordmark {
  height: 20px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .nav-logo-wordmark { display: none; }
}
