/* =================================================================
   Socialiser shared styles — teal palette, premium, multi-page nav
   ================================================================= */

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

:root {
  /* "Teal Trust" brand palette — locked source of truth: src/constants/theme.ts */
  --teal:        #0EA5A8;    /* Brand.primary */
  --teal-dark:   #0B7A7D;    /* Brand.primaryDark */
  --teal-darker: #064548;    /* deeper teal for dark sections */
  --accent:      #22D3D6;    /* Brand.accent — bright cyan */
  --teal-light:  #CCFBF1;    /* Brand.pill */
  --teal-bg:     #F0FDFA;
  --pill-text:   #0B7A7D;

  /* Light mode neutrals — slate ink (Brand.ink #0F172A) */
  --bg:          #FFFFFF;
  --bg-soft:     #F7F8FA;
  --bg-card:     #FFFFFF;
  --ink:         #0F172A;    /* Brand.ink */
  --ink-soft:    #1E293B;
  --text-sec:    #64748B;    /* Colors.light.textSecondary */
  --border:      #E2E8F0;
  --border-strong: rgba(15, 23, 42, 0.16);

  --shadow-card: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.06);
  --shadow-pop:  0 20px 60px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-teal: 0 8px 24px rgba(14,165,168,0.25);

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode mirrors Colors.dark from theme.ts */
    --bg:          #0B1220;    /* Colors.dark.background */
    --bg-soft:     #0F1726;    /* Colors.dark.backgroundElementMuted */
    --bg-card:     #111A2D;    /* Colors.dark.backgroundElement */
    --ink:         #F1F5F9;    /* Colors.dark.text */
    --ink-soft:    #E2E8F0;
    --text-sec:    #94A3B8;    /* Colors.dark.textSecondary */
    --border:      #1F2A44;    /* Colors.dark.border */
    --border-strong: rgba(255, 255, 255, 0.18);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
    --shadow-pop:  0 20px 60px rgba(0,0,0,0.6);
    --teal-bg:     #134E4A;    /* Colors.dark.pill */
    --teal-light:  #134E4A;
    --pill-text:   #5EEAD4;    /* Colors.dark.pillText */
  }
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body { min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* Typography */
.display { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.h2 { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(32px, 5vw, 56px); }
.h3 { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); }

/* Container */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* =================================================================
   NAV — sticky frosted header with proper hamburger
   ================================================================= */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
nav.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  max-width: 1200px; margin: 0 auto; padding: 0 22px;
}
@media (min-width: 768px) { nav.nav-bar { padding: 0 40px; height: 68px; } }

.brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.brand-mark .logo {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #FFF; display: grid; place-items: center; font-weight: 900; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, var(--shadow-teal);
}

/* Desktop nav links */
.nav-links {
  display: none;
  gap: 30px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-sec);
  transition: color .15s ease;
  position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--teal); border-radius: 2px;
}

/* Right-side actions */
.nav-actions { display: none; gap: 8px; align-items: center; }
@media (min-width: 700px) { .nav-actions { display: flex; } }

/* Hamburger */
.hamburger {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--bg-soft); border-radius: 50%;
  border: 1px solid var(--border);
  transition: background .15s ease;
}
@media (min-width: 960px) { .hamburger { display: none; } }
.hamburger:hover { background: var(--teal-light); }
.hamburger-icon {
  width: 18px; height: 2px; background: var(--ink);
  position: relative; border-radius: 2px;
  transition: transform .2s ease;
}
.hamburger-icon::before, .hamburger-icon::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, top .2s ease, bottom .2s ease;
}
.hamburger-icon::before { top: -6px; }
.hamburger-icon::after { bottom: -6px; }

/* Hamburger open state */
.mobile-open .hamburger-icon { background: transparent; }
.mobile-open .hamburger-icon::before { top: 0; transform: rotate(45deg); }
.mobile-open .hamburger-icon::after { bottom: 0; transform: rotate(-45deg); }

/* Mobile menu overlay — fullscreen, safe-area aware */
.mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  height: calc(100dvh - 60px);
  background: var(--bg);
  z-index: 99;
  transform: translateX(100%); transition: transform .25s ease;
  overflow-y: auto;
  padding: 20px 22px calc(40px + env(safe-area-inset-bottom, 0px));
}
.mobile-open .mobile-menu { transform: translateX(0); }
.mobile-menu a {
  display: block;
  font-family: 'Inter Tight', sans-serif; font-weight: 700;
  font-size: 24px; letter-spacing: -0.02em;
  color: var(--ink); padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--teal); }
.mobile-menu .mobile-cta {
  display: block; margin-top: 24px;
  text-align: center; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 100%);
  color: #FFF;
  padding: 16px; border-radius: 999px;
  border-bottom: none;
  box-shadow: var(--shadow-teal);
}

/* Lock body scroll when menu open */
body.mobile-open { overflow: hidden; }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #FFF;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { color: #FFF; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(20,184,166,0.4); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-outline { color: var(--ink); background: transparent; border: 1px solid var(--border-strong); }
.btn-outline:hover { color: var(--ink); background: var(--bg-soft); border-color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* =================================================================
   HERO
   ================================================================= */
.hero { position: relative; padding: 80px 0 60px; text-align: center; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 120px 0 80px; } }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 720px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(14,165,168,0.18), transparent 70%),
    radial-gradient(40% 40% at 85% 15%, rgba(34,211,214,0.14), transparent 60%),
    radial-gradient(45% 40% at 15% 30%, rgba(14,165,168,0.08), transparent 60%);
  pointer-events: none; z-index: -1;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--text-sec);
  margin-bottom: 22px; box-shadow: var(--shadow-card);
}
.hero .badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20,184,166,0.18);
}
.hero h1 {
  font-size: clamp(40px, 7.5vw, 88px);
  margin: 0 auto;
  max-width: 18ch;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-sec);
  line-height: 1.55;
}
.hero .cta-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
}
.hero .trust {
  margin-top: 22px; font-size: 13px; color: var(--text-sec);
}
.hero .trust strong { color: var(--ink-soft); font-weight: 600; }

/* =================================================================
   SECTIONS
   ================================================================= */
section { padding: 96px 0; }
@media (max-width: 767px) { section { padding: 64px 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head p { color: var(--text-sec); font-size: 17px; margin-top: 14px; line-height: 1.55; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* =================================================================
   FOOTER
   ================================================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  background: var(--bg-soft);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid .col h4 { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-sec); margin-bottom: 14px; }
.foot-grid .col a, .foot-grid .col p { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.foot-grid .col a:hover { color: var(--teal-dark); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-sec);
}
.foot-social { display: flex; gap: 10px; align-items: center; }
.foot-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  color: var(--text-sec); transition: all .15s ease;
}
.foot-social a:hover {
  color: #FFF; background: var(--teal); border-color: var(--teal);
  transform: translateY(-1px);
}
.foot-social svg { width: 16px; height: 16px; }

/* =================================================================
   UTILS / ANIMATIONS
   ================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: rise .6s .1s ease forwards; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
}
