@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&family=Inter:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ══════════════════════════════════════════
   STTIL Solutions — site.css v1
   Tokens: design-tokens-v1.json (tangerine)
   Default: light mode
   ══════════════════════════════════════════ */

:root {
  /* Teal */
  --teal-50:  #EEF8F8; --teal-100: #CBE9E9; --teal-200: #97D3D3;
  --teal-300: #5BBBBB; --teal-400: #2EA3A3; --teal-500: #1A8A8A;
  --teal-600: #147A7A; --teal-700: #0F5E5E; --teal-800: #0A4444;
  --teal-900: #072E2E; --teal-950: #041A1A;
  /* Tangerine */
  --tng-50:  #FFF4EE; --tng-100: #FFE4CC; --tng-200: #FFC090;
  --tng-300: #FFB070; --tng-400: #F07840; --tng-500: #E06028;
  --tng-600: #C04E1C; --tng-700: #903A14;
  /* Neutral */
  --n-0:   #FFFFFF; --n-50:  #F4F9F9; --n-100: #E5EEEE;
  --n-200: #C8D8D8; --n-300: #A3BEBE; --n-400: #7A9E9E;
  --n-500: #5A7E7E; --n-600: #426060; --n-700: #2E4444;
  --n-800: #1C2C2C; --n-900: #111A1A;
  /* Semantic */
  --success-100: #C8EDD8; --success-500: #1A7A4E; --success-600: #146040;
  --warning-100: #FDECD5; --warning-400: #D97B35; --warning-600: #A85A18;
  --error-100:   #F8CCCC; --error-500:   #C83030;
  --info-100:    #C8E0EE; --info-500:    #1A6A9A;
  --purple-100:  #E2D8F0; --purple-500:  #7A5EA0;
  /* Mode (light default) */
  --bg:         var(--n-50);
  --surface:    var(--n-0);
  --raised:     var(--n-100);
  --text-h:     #0A3030;
  --text:       #1C2E2E;
  --text-2:     var(--n-500);
  --text-m:     var(--n-400);
  --border:     var(--n-200);
  --brand:      var(--teal-600);
  --brand-h:    var(--teal-700);
  --accent:     var(--tng-500);
  --accent-h:   var(--tng-600);
  --accent-t:   var(--tng-500);
  --card-sh:    0 2px 12px rgba(7,46,46,0.09);
  --tng-glow:   0 0 16px rgba(224,96,40,0.20), 0 2px 8px rgba(0,0,0,0.08);
  /* Fonts */
  --fh: 'Plus Jakarta Sans', sans-serif;
  --fb: 'Inter', sans-serif;
  --fm: 'JetBrains Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--fh); color: var(--text-h); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-2); }
.mono { font-family: var(--fm); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}
.lead {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 640px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #FFFAF6;
}
.btn-primary:hover { background: var(--brand-h); }

.btn-accent {
  background: var(--accent);
  color: #FFFAF6;
}
.btn-accent:hover { background: var(--accent-h); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-2);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-outline-tng {
  background: transparent;
  border: 1.5px solid var(--tng-500);
  color: var(--tng-500);
}
.btn-outline-tng:hover { background: var(--tng-50); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--brand); }

.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.badge-coming { background: var(--n-100); color: var(--n-500); }
.badge-live    { background: var(--success-100); color: var(--success-600); }
.badge-tng     { background: var(--tng-100); color: var(--tng-700); }

/* ══════════════════════════════
   NAV
   ══════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--teal-700);
}
.nav-logo span {
  color: var(--text-m);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--brand); background: var(--teal-50); }
.nav-links a.active { color: var(--brand); font-weight: 500; }
.nav-cta-wrap { display: flex; align-items: center; gap: 8px; }

/* ══════════════════════════════
   HERO — DARK
   ══════════════════════════════ */
.hero-dark {
  background: var(--teal-900);
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-dark::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(46,163,163,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-dark .eyebrow { color: var(--teal-300); }
.hero-dark h1 { color: #FFFAF6; }
.hero-dark .lead { color: var(--teal-300); }
.hero-dark .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.hero-dark .btn-primary {
  background: var(--teal-500);
  color: #FFFAF6;
}
.hero-dark .btn-primary:hover { background: var(--teal-600); }

.hero-dark .btn-tng-outline {
  background: transparent;
  border: 1.5px solid var(--tng-400);
  color: var(--tng-300);
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s;
  cursor: pointer;
}
.hero-dark .btn-tng-outline:hover { background: rgba(240,120,64,0.1); }

.stat-bar {
  display: flex;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(15,94,94,0.6);
  padding-top: 32px;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 160px;
  padding-right: 32px;
}
.stat-item + .stat-item {
  padding-left: 32px;
  border-left: 1px solid rgba(15,94,94,0.5);
}
.stat-num {
  font-family: var(--fm);
  font-size: 2rem;
  font-weight: 500;
  color: #FFFAF6;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-num.tng { color: var(--tng-300); }
.stat-label { font-size: 13px; color: var(--teal-300); line-height: 1.45; }

/* ══════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--card-sh);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover { box-shadow: 0 4px 24px rgba(7,46,46,0.13); border-color: var(--n-300); }

.product-card.featured {
  border-color: var(--brand);
  box-shadow: var(--tng-glow);
}
.product-card.coming { opacity: 0.85; }

.product-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--teal-50);
}
.product-icon.tng-bg { background: var(--tng-50); }
.product-icon.purple-bg { background: var(--purple-100); }

.product-title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-h);
  margin-bottom: 2px;
}
.product-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* ══════════════════════════════
   FEATURE STEPS
   ══════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-sh);
}
.step-num {
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.step-card h3 { margin-bottom: 8px; font-size: 17px; }
.step-card p  { font-size: 14px; }

/* ══════════════════════════════
   PHI CALLOUT
   ══════════════════════════════ */
.phi-block {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.phi-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.phi-block h4 { color: var(--teal-700); margin-bottom: 6px; }
.phi-block p  { font-size: 14px; color: var(--teal-700); line-height: 1.6; }

/* ══════════════════════════════
   TANGERINE CALLOUT BOX
   ══════════════════════════════ */
.tng-callout {
  background: var(--tng-50);
  border-left: 4px solid var(--tng-500);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
}
.tng-callout strong { color: var(--tng-700); font-weight: 600; display: block; margin-bottom: 4px; }
.tng-callout p { font-size: 14px; color: var(--tng-700); }

/* ══════════════════════════════
   ABOUT SECTION
   ══════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

.about-quote {
  font-family: var(--fh);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--teal-700);
  line-height: 1.3;
  border-left: 4px solid var(--tng-400);
  padding-left: 20px;
  margin-bottom: 20px;
}

/* ══════════════════════════════
   CTA BAND
   ══════════════════════════════ */
.cta-band {
  background: var(--teal-900);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #FFFAF6; margin-bottom: 16px; }
.cta-band p  { color: var(--teal-300); max-width: 520px; margin: 0 auto 32px; }
.cta-band .btn-primary { background: var(--teal-400); color: #FFFAF6; }
.cta-band .btn-primary:hover { background: var(--teal-500); }

/* ══════════════════════════════
   COMING SOON PAGE
   ══════════════════════════════ */
.coming-soon-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.coming-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 28px;
  background: var(--teal-900);
}
.coming-hero .badge-coming {
  background: rgba(91,187,187,0.15);
  color: var(--teal-300);
  margin-bottom: 24px;
}
.coming-hero h1 { color: #FFFAF6; max-width: 640px; margin-bottom: 16px; }
.coming-hero .lead { color: var(--teal-300); margin: 0 auto; }
.coming-hero .back-link {
  margin-top: 40px;
  font-size: 14px;
  color: var(--teal-300);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.coming-hero .back-link:hover { color: #FFFAF6; }

/* ══════════════════════════════
   LEGAL PAGES
   ══════════════════════════════ */
.legal-hero {
  background: var(--teal-900);
  padding: 56px 0 48px;
}
.legal-hero h1 { color: #FFFAF6; font-size: 2rem; }
.legal-hero p  { color: var(--teal-300); margin-top: 8px; font-size: 14px; }

.legal-body { max-width: 760px; padding: 56px 28px 80px; margin: 0 auto; }
.legal-body h2 { font-size: 1.25rem; color: var(--text-h); margin: 40px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p  { font-size: 15px; color: var(--text-2); margin-bottom: 16px; line-height: 1.75; }
.legal-body ul { padding-left: 20px; margin-bottom: 16px; }
.legal-body li { font-size: 15px; color: var(--text-2); margin-bottom: 8px; line-height: 1.7; }
.legal-body a  { color: var(--brand); text-decoration: underline; }
.legal-phi {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.legal-phi p { color: var(--teal-700); font-size: 14px; margin: 0; }

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
.site-footer {
  background: var(--teal-950);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand .logo {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 16px;
  color: #FFFAF6;
  letter-spacing: 0.03em;
}
.footer-brand .tagline {
  font-size: 12px;
  color: var(--teal-300);
  margin-top: 4px;
  font-style: italic;
}
.footer-brand .phi-note {
  font-size: 11px;
  color: var(--teal-400);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.55;
}
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13.5px; color: var(--teal-300); transition: color 0.15s; }
.footer-col a:hover { color: #FFFAF6; }
.footer-bottom {
  border-top: 1px solid rgba(15,94,94,0.4);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--teal-400); }
.footer-bottom a { color: var(--teal-300); }
.footer-bottom a:hover { color: #FFFAF6; }

/* ══════════════════════════════
   UTILITIES
   ══════════════════════════════ */
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.flex  { display: flex; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero-dark { padding: 60px 0 56px; }
  .stat-bar { gap: 24px; }
  .stat-item + .stat-item { border-left: none; padding-left: 0; }
  .nav-links { display: none; }
  .footer-links { gap: 28px; }
}

/* ══════════════════════════════
   ANIMATIONS
   ══════════════════════════════ */

/* Fade-in on scroll — base state */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s;     }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s;   }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s;   }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s;   }

/* CTA pulse — one slow heartbeat, guides the eye without demanding it */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 96, 40, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(224, 96, 40, 0.18); }
}
.btn-accent-pulse {
  animation: cta-pulse 3s ease-in-out infinite;
}

/* Live badge pulse */
@keyframes live-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.badge-live::before {
  content: '●';
  margin-right: 4px;
  font-size: 8px;
  animation: live-dot 2s ease-in-out infinite;
  display: inline-block;
}

/* SVG curve draw — applied via JS setting stroke-dashoffset */
.curve-path-animated {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.curve-path-animated.drawn {
  stroke-dashoffset: 0;
}

/* Stat counter — numbers snap in after count completes */
.stat-num { transition: color 0.3s; }

/* Subtle hero radial shimmer */
@keyframes hero-shimmer {
  0%   { opacity: 0.06; transform: scale(1);    }
  50%  { opacity: 0.10; transform: scale(1.08); }
  100% { opacity: 0.06; transform: scale(1);    }
}
.hero-dark::before {
  animation: hero-shimmer 8s ease-in-out infinite;
}
