/* ===== Brand tokens (from NXP portfolio) ===== */
:root {
  --bg: #0d0f12;
  --surface: #161a1f;
  --surface-2: #1c2128;
  --line: #292f37;
  --line-soft: #1f242b;
  --text: #e7eaed;
  --muted: #8f98a3;
  --accent: #a3bdd4;
  --danger: #e08a8a;
  --radius: 10px;
  --max: 1120px;
  /* One typeface throughout: Inter, tight tracking */
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --display: "Archivo", "Arial Black", system-ui, sans-serif; /* wide headline face */
  --mono: var(--sans);
  /* Chrome surface: gunmetal -> warm cream -> gunmetal at 45deg for depth */
  --chrome: linear-gradient(45deg, #595f61 0%, #8d9091 22%, #fff4e8 49%, #9a9b98 74%, #595f61 100%);
  --chrome-text: linear-gradient(100deg, #858d96 0%, #c3cad2 28%, #f3f6f9 50%, #c3cad2 72%, #858d96 100%); /* cool silver */
  --on-chrome: #08090a;
  --on-chrome-muted: #15181b;
  --on-chrome-label: #24282c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== Type ===== */
h1, h2, h3, .wordmark, .price { font-family: var(--display); font-stretch: 125%; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 800; margin-bottom: 26px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

/* Silver headline text with a soft glow and slow sheen */
.chrome-text {
  position: relative; display: inline-block;
  background: var(--chrome-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .08em; /* keep descenders inside the clipped background */
}
/* Glow layer: same text, blurred light behind it, gently pulsing */
.chrome-text::after {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: -1;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px rgba(205, 220, 235, .45), 0 0 4px rgba(225, 235, 245, .3);
  animation: glow 3.5s ease-in-out infinite alternate;
  will-change: opacity;
}
@keyframes glow {
  from { opacity: .45; }
  to   { opacity: 1; }
}
.dim { color: var(--muted); }
p { color: var(--muted); }
.lead { font-size: 1.12rem; max-width: 620px; }

.mono-label {
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px;
}
.mono-small { font-family: var(--mono); font-size: .88rem; color: var(--accent); margin-top: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 8px; font-family: var(--sans); font-weight: 600;
  font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 18, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--muted); font-size: .92rem; transition: color .2s; }
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero { padding: 110px 0 100px; border-bottom: 1px solid var(--line-soft); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 36px; }
.chip {
  font-family: var(--mono); font-size: .84rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; background: var(--surface);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-line { border-top: 1px solid var(--line-soft); }
.split-head {
  display: grid; grid-template-columns: 1fr 1.45fr; gap: 40px; align-items: start; margin-bottom: 44px;
}
.split-head p { font-size: 1.02rem; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tile { padding: 22px; display: flex; flex-direction: column; }
.tile p:not(.mono-label) { font-size: .95rem; }

/* ===== Chrome cards: brushed-silver surface with a slow, subtle sheen ===== */
.tile, .steps li, .pkg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--chrome);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px;
  color: var(--on-chrome);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -1px 0 rgba(0,0,0,.25),
    0 14px 34px rgba(0,0,0,.45);
  transition: box-shadow .25s ease;
}
/* A soft band of light that slowly sweeps across each card */
.tile::before, .steps li::before, .pkg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%);
  transform: translateX(-110%);
  animation: sheen 9s ease-in-out infinite;
  will-change: transform;
}
.tile > *, .steps li > *, .pkg > *:not(.badge) { position: relative; z-index: 1; }
/* Stagger so neighbouring cards don't shimmer in unison */
.grid > :nth-child(3n+2)::before, .steps > :nth-child(3n+2)::before { animation-delay: -3s; }
.grid > :nth-child(3n+3)::before, .steps > :nth-child(3n+3)::before { animation-delay: -6s; }
.tile:hover, .steps li:hover, .pkg:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(0,0,0,.25), 0 20px 44px rgba(0,0,0,.55);
}
@keyframes sheen {
  0%        { transform: translateX(-110%); }
  55%, 100% { transform: translateX(110%); }
}
.tile h3, .steps h3, .pkg .price { color: var(--on-chrome); }
.tile p, .steps p, .pkg li { color: var(--on-chrome-muted); }
.tile .mono-label, .steps .mono-label, .pkg .mono-label { color: var(--on-chrome-label); }
.tile .btn, .pkg .btn { background: var(--on-chrome); color: #fff; border-color: var(--on-chrome); }
.tile .btn:hover, .pkg .btn:hover { background: #2a2f35; color: #fff; }

/* Problem → bridge line */
.bridge {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.3; color: var(--text);
}
.bridge span { color: var(--muted); display: block; }

/* Who it's for */
.who-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.who-list li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.who-list strong { display: block; font-weight: 600; margin-bottom: 4px; }
.who-list span { color: var(--muted); font-size: .94rem; }

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 22px; }
.steps p { font-size: .95rem; }

/* Packages */
.pkg { padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.pkg-featured { outline: 2px solid var(--text); outline-offset: 3px; }
.badge {
  position: absolute; top: 22px; right: 20px; z-index: 2; background: var(--on-chrome); color: #fff;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; font-weight: 500;
}
.price { font-size: 1.6rem; font-weight: 800; margin-bottom: 22px; }
.pkg ul { list-style: none; margin-bottom: 28px; flex: 1; }
.pkg li { padding: 9px 0 9px 24px; border-top: 1px solid rgba(0,0,0,.12); position: relative; font-size: .95rem; }
.pkg li::before { content: "→"; position: absolute; left: 0; color: var(--on-chrome); font-family: var(--mono); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 20px; }
.contact-copy .lead { margin-bottom: 34px; }
.contact-details { list-style: none; border-top: 1px solid var(--line); }
.contact-details li {
  display: grid; grid-template-columns: 110px 1fr; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.contact-details .mono-label { margin: 0; }
.contact-details a:hover { color: var(--accent); }

.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .96rem; color: var(--text); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: #5f6873; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163,189,212,.15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: .8rem; min-height: 1em; display: block; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 500; text-align: center; }
.form-status.fail { color: var(--danger); }
.form-note { text-align: center; font-size: .8rem; margin-top: 6px; }

.form-success { text-align: center; padding: 34px 10px; }
.form-success .check {
  width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--accent);
  color: var(--accent); font-size: 1.6rem; display: grid; place-items: center; margin: 0 auto 18px;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .mono-small { color: var(--muted); margin: 0; }
.site-footer a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-3, .steps, .who-list { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .packages { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); padding: 6px 20px 20px; display: none; border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .btn { margin-top: 16px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 72px 0 70px; }
  .section { padding: 72px 0; }
  .split-head { grid-template-columns: 1fr; gap: 12px; }
  .grid-2, .grid-3, .steps, .who-list, .lead-form .row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lead-form { padding: 24px 18px; }
  .lead-form .row { gap: 0; }
  .contact-details li { grid-template-columns: 96px 1fr; }
  .footer-wrap { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile::before, .steps li::before, .pkg::before, .chrome-text::after { animation: none; }
}
