/* ==========================================================================
   Turbo Link Studio — shared design system ("Ignition Light")
   Light, image-forward theme with dark hero bands. Linked by every page.
   ========================================================================== */

:root{
  --paper: #F4F3EF;        /* body background (warm light) */
  --surface: #FFFFFF;      /* cards */
  --surface-2: #ECEAE4;    /* subtle fills */
  --ink: #16191F;          /* primary text */
  --ink-soft: #363B45;
  --muted: #646B79;        /* secondary text */
  --hairline: rgba(22,25,31,0.10);

  --hero-bg: #0B0E15;      /* dark hero band */
  --hero-text: #F4F3EF;
  --hero-muted: rgba(244,243,239,0.64);
  --hero-hairline: rgba(244,243,239,0.14);
  --hero-surface: rgba(255,255,255,0.05);

  --grad-ignition: linear-gradient(100deg, #FFB020, #FF5B36, #E0409B);
  --coral: #FF5B36;
  --amber: #FFB020;
  --magenta: #E0409B;

  --max-w: 1140px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}

h1, h2, h3, h4{
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.eyebrow{
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.gradient-text{
  background: var(--grad-ignition);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a:focus-visible, button:focus-visible{
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
  white-space: nowrap;
}
.btn-primary{ background: var(--grad-ignition); color: #0B0E15; }
.btn-primary:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px -10px rgba(255, 91, 54, 0.5);
}
/* ghost on a LIGHT surface */
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover{ border-color: rgba(22,25,31,0.28); background: var(--surface-2); transform: translateY(-2px); }
/* ghost on a DARK surface (hero / cta band) */
.btn-ghost-light{ background: rgba(255,255,255,0.06); color: var(--hero-text); border-color: var(--hero-hairline); }
.btn-ghost-light:hover{ background: rgba(255,255,255,0.12); border-color: rgba(244,243,239,0.3); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce){
  .btn:hover{ transform: none; }
}

/* ---------- Nav (light top bar) ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  background: rgba(244,243,239,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 260ms var(--ease), background 260ms var(--ease);
}
.nav.is-scrolled{ border-bottom-color: var(--hairline); background: rgba(244,243,239,0.92); }
.nav-inner{ display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink);
}
.wordmark-dot{ width: 12px; height: 12px; border-radius: 50%; background: var(--grad-ignition); flex-shrink: 0; }
.nav-links{ display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn){ color: var(--muted); font-size: 14px; font-weight: 500; transition: color 200ms var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a.is-current{ color: var(--ink); }
.nav-links-inline{ display: flex; gap: 30px; }
@media (max-width: 820px){ .nav-links-inline{ display: none; } }
.nav-links .btn{ padding: 10px 20px; font-size: 14px; }

/* ---------- Sections ---------- */
.section{ padding: clamp(64px, 10vw, 116px) 0; }
.section-tight{ padding: clamp(44px, 7vw, 80px) 0; }

/* Dark hero band */
.hero-dark{
  background: var(--hero-bg);
  color: var(--hero-text);
  position: relative;
  overflow: hidden;
}
.hero-dark::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 78% 8%, rgba(255,91,54,0.16), transparent 60%),
    radial-gradient(50% 50% at 12% 100%, rgba(224,64,155,0.12), transparent 60%);
  pointer-events: none;
}
.hero-dark > *{ position: relative; z-index: 1; }
.hero-dark h1, .hero-dark h2, .hero-dark h3{ color: var(--hero-text); }
.hero-dark .eyebrow{ color: var(--hero-muted); }
.hero-dark p{ color: var(--hero-muted); }

.section-head{ max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow{ display: block; margin-bottom: 16px; }
.section-title{ font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.06; font-weight: 800; }
.lede{ color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); margin-top: 18px; max-width: 60ch; }

/* ---------- Cards ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(22,25,31,0.04);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.card-hover:hover{
  transform: translateY(-6px);
  border-color: rgba(255,91,54,0.35);
  box-shadow: 0 24px 48px -28px rgba(22,25,31,0.35);
}
@media (prefers-reduced-motion: reduce){ .card-hover:hover{ transform: none; } }

.tag{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral);
}

/* Feature checkmark list */
.feature-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li{ position: relative; padding-left: 30px; color: var(--muted); font-size: 0.98rem; }
.feature-list li strong{ color: var(--ink); font-weight: 600; }
.feature-list li::before{
  content: "";
  position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad-ignition);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* feature list on dark hero */
.hero-dark .feature-list li{ color: var(--hero-muted); }
.hero-dark .feature-list li strong{ color: var(--hero-text); }

/* ---------- Browser + phone mockup frames ---------- */
.browser{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(11,14,21,0.55);
}
.browser-bar{
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}
.browser-dot{ width: 10px; height: 10px; border-radius: 50%; background: rgba(22,25,31,0.18); }
.browser-url{
  margin-left: 10px; flex: 1;
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 4px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser img{ width: 100%; display: block; }

.phone{
  border-radius: 34px;
  border: 9px solid #14171F;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 70px -30px rgba(11,14,21,0.6);
  max-width: 280px;
}
.phone img{ width: 100%; display: block; }

/* ---------- Consolidation / "replaces your stack" callout ---------- */
.replaces-box{
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 1px 2px rgba(22,25,31,0.04);
}
.replaces-box .eyebrow{ display: block; margin-bottom: 16px; }
.replaces-row{ display: flex; flex-wrap: wrap; gap: 10px; }
.replaces-chip{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.02em;
  color: var(--muted);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--paper);
}
.replaces-chip::before{ content: "✕"; color: var(--coral); font-size: 11px; opacity: 0.9; }
.replaces-chip s{ text-decoration-color: rgba(255,91,54,0.6); text-decoration-thickness: 1.5px; }
.replaces-note{ margin: 18px 0 0; color: var(--muted); font-size: 0.9rem; }
.replaces-note strong{ color: var(--ink); font-weight: 600; }

.savings-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
@media (max-width: 860px){ .savings-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .savings-grid{ grid-template-columns: 1fr; } }
.savings-item{ border-top: 2px solid transparent; border-image: var(--grad-ignition) 1; padding-top: 16px; }
.savings-k{ font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.savings-item p{ margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA band (dark) ---------- */
.cta-band{
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  background:
    radial-gradient(circle at 28% 0%, rgba(255,91,54,0.22), transparent 55%),
    radial-gradient(circle at 82% 120%, rgba(224,64,155,0.2), transparent 55%),
    var(--hero-bg);
  color: var(--hero-text);
}
.cta-band h2, .cta-band .section-title, .cta-band .cta-title{ color: var(--hero-text); }
.cta-band p{ color: var(--hero-muted); }
.cta-band .section-title, .cta-band .cta-title, .cta-band h2{ margin-bottom: 28px; }
.cta-actions{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer (dark) ---------- */
footer{
  background: var(--hero-bg);
  color: var(--hero-muted);
  padding: 60px 0 44px;
}
footer .wordmark{ color: var(--hero-text); }
.footer-top{ display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.footer-desc{ color: var(--hero-muted); font-size: 0.92rem; max-width: 40ch; margin-top: 10px; }
.footer-links{ display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a{ color: var(--hero-muted); font-size: 0.9rem; transition: color 200ms var(--ease); }
.footer-links a:hover{ color: var(--hero-text); }
.footer-legal{ color: var(--hero-muted); font-size: 0.8rem; opacity: 0.7; }

/* ---------- Scroll-reveal ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity: 1; transform: none; transition: none; } }
