/* PRODIGY — design system v2 (Apple-grade) */

@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: local('Inter');
}

:root {
  /* color */
  --ink: #0a0a0a;
  --ink-2: #1d1d1f;
  --ink-3: #424245;
  --ink-4: #6e6e73;
  --ink-5: #86868b;
  --line: #e8e8ed;
  --line-2: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-deep: #0a1628;
  --bg-deep-2: #050d18;

  --brand: #d9232a;
  --brand-2: #b21d23;
  --navy: #0a1628;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;

  /* type scale (Apple-ish — large, confident, asymmetric) */
  --t-eyebrow: 12px;
  --t-body: 17px;
  --t-body-lg: 19px;
  --t-h6: 19px;
  --t-h5: 22px;
  --t-h4: 28px;
  --t-h3: 36px;
  --t-h2: 56px;
  --t-h1: 88px;
  --t-display: clamp(56px, 9vw, 128px);

  /* layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 40px);
  --pad-y: clamp(80px, 12vw, 160px);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 600ms;
}

/* base reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.47;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -.011em;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: opacity .25s; }
a:hover { opacity: .65; }
button { font-family: inherit; }
::selection { background: var(--ink); color: #fff; }

/* type */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, var(--t-h1)); letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 4.4vw, var(--t-h2)); letter-spacing: -.035em; }
h3 { font-size: clamp(26px, 3vw, var(--t-h3)); letter-spacing: -.025em; }
h4 { font-size: var(--t-h4); }
h5 { font-size: var(--t-h5); font-weight: 500; }
p { margin: 0; }
.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.lede {
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.45;
  color: var(--ink-3);
  letter-spacing: -.012em;
  font-weight: 400;
}
.tiny { font-size: 13px; color: var(--ink-4); }

/* layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { padding: var(--pad-y) 0; }

/* nav — Apple-style sticky glass bar */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  height: 56px;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand svg { display: block; }
.nav-brand .word { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--ink-2);
  letter-spacing: -.005em;
}
.nav-cta {
  font-size: 13px; font-weight: 500;
  color: var(--brand);
}
.nav-cta:hover { opacity: 1; color: var(--brand-2); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
@media (max-width: 820px) {
  .nav-links { display: none; position: fixed; top: 56px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px var(--pad-x) 32px; border-bottom: 1px solid var(--line); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 22px; }
  .nav-links a { font-size: 18px; }
  .nav-toggle { display: block; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 50px; padding: 0 28px;
  border: 0; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, opacity .25s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--ink-2); opacity: 1; transform: scale(1.02); color:#fff; }
.btn-brand {
  background: var(--brand);
  color: #fff;
}
.btn-brand:hover { background: var(--brand-2); opacity: 1; color:#fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  height: auto; padding: 0;
  border-radius: 0;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.01em;
}
.btn-ghost::after {
  content: " ›";
  display: inline-block;
  margin-left: 4px;
  transition: transform .25s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-ghost.brand { color: var(--brand); }
.btn-light {
  background: rgba(255,255,255,.92);
  color: var(--ink);
}
.btn-light:hover { background: #fff; opacity: 1; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 17px; }

/* hero */
.hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: var(--t-display);
  letter-spacing: -.045em;
  line-height: .98;
  max-width: 14ch;
  margin: 0 auto;
}
.hero .lede {
  margin: 24px auto 0;
  max-width: 56ch;
}
.hero .actions {
  margin-top: 40px;
  display: flex; gap: 24px; justify-content: center; align-items: center;
  flex-wrap: wrap;
}
.hero-image {
  margin-top: clamp(48px, 6vw, 80px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.hero-image img { width: 100%; height: auto; display: block; }

/* dark hero variant */
.hero-dark {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  color: #fff;
}
.hero-dark h1 { color: #fff; }
.hero-dark .lede { color: rgba(255,255,255,.72); }

/* section heading */
.sec-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.sec-head h2 { max-width: 18ch; margin: 0 auto; }
.sec-head .lede { margin: 18px auto 0; max-width: 52ch; }
.sec-head.left { text-align: left; }
.sec-head.left h2 { margin: 0; }
.sec-head.left .lede { margin: 18px 0 0; }

/* feature blocks (Apple "Stage" style) */
.stage {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 96px);
  text-align: center;
  margin-top: 24px;
}
.stage h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 18ch; margin: 0 auto 18px; }
.stage h2 .accent { color: var(--brand); }
.stage .lede { max-width: 52ch; margin: 0 auto; }
.stage .actions { margin-top: 36px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.stage-dark {
  background: var(--bg-deep);
  color: #fff;
}
.stage-dark h2 { color: #fff; }
.stage-dark .lede { color: rgba(255,255,255,.72); }
.stage-image {
  margin-top: clamp(40px, 5vw, 64px);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}
.stage-image img { width: 100%; height: 100%; object-fit: cover; }

/* tile grid */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 720px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  display: flex; flex-direction: column;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease);
  text-decoration: none;
  color: inherit;
}
.tile:hover { transform: translateY(-4px); opacity: 1; }
.tile h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.tile p { color: var(--ink-3); font-size: var(--t-body-lg); max-width: 36ch; }
.tile .more { margin-top: auto; padding-top: 32px; color: var(--brand); font-size: 15px; font-weight: 500; }
.tile .more::after { content: " ›"; display: inline-block; margin-left: 4px; transition: transform .25s; }
.tile:hover .more::after { transform: translateX(4px); }
.tile-dark {
  background: var(--bg-deep);
  color: #fff;
}
.tile-dark h3 { color: #fff; }
.tile-dark p { color: rgba(255,255,255,.7); }

.tile.tile-tall { min-height: 600px; grid-column: span 2; }
@media (max-width: 720px) { .tile.tile-tall { grid-column: span 1; min-height: 480px; } }

.tile .visual {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background-size: cover; background-position: center;
}
.tile.tile-tall .visual { height: 60%; }

/* spec rows (Apple-style "tech specs") */
.specs {
  border-top: 1px solid var(--line);
}
.spec {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 720px) { .spec { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; } }
.spec-label { font-size: 15px; color: var(--ink-4); font-weight: 500; }
.spec-value { font-size: 19px; color: var(--ink); }
.spec-value strong { font-weight: 500; }

/* quote / testimonial */
.quote {
  text-align: center;
  padding: clamp(48px, 8vw, 120px) var(--pad-x);
  max-width: 1000px;
  margin: 0 auto;
}
.quote q {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 500;
  color: var(--ink);
  display: block;
  quotes: '"' '"';
}
.quote q::before { content: open-quote; color: var(--ink-5); }
.quote q::after { content: close-quote; color: var(--ink-5); }
.quote .who { margin-top: 32px; font-size: 15px; color: var(--ink-4); letter-spacing: 0; }
.quote .who strong { color: var(--ink-2); font-weight: 500; }

/* trust strip */
.trust {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--ink-4);
  font-weight: 500;
  letter-spacing: -.005em;
}
.trust-item svg { color: var(--ink-3); }

/* form */
.form-section {
  background: var(--bg-alt);
}
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.form-card h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.form-card p.lede { font-size: 19px; }
.field { margin-top: 22px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 8px;
  letter-spacing: -.005em;
}
.input, .select, .textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 110px; }
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23424245' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .row2 { grid-template-columns: 1fr; } }
.form-card .btn { margin-top: 28px; width: 100%; }
.form-fineprint { margin-top: 16px; font-size: 13px; color: var(--ink-4); text-align: center; }
.form-success {
  text-align: center;
  padding: 24px 0;
}
.form-success h3 { color: var(--ink); margin-bottom: 8px; }
.form-success p { color: var(--ink-3); }
.form-error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
}

/* footer */
.footer {
  padding: 56px 0 32px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: -.005em; margin: 0 0 16px; text-transform: none; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-4); }
.footer-grid a:hover { color: var(--ink); opacity: 1; }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* utilities */
.center { text-align: center; }
.split-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 820px) { .split-2 { grid-template-columns: 1fr; } }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* page hero (interior) */
.page-hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 80px);
  text-align: center;
}
.page-hero .crumbs { font-size: 13px; color: var(--ink-4); margin-bottom: 18px; letter-spacing: -.005em; }
.page-hero .crumbs a { color: var(--ink-3); }
.page-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -.04em;
  margin: 0 auto;
  max-width: 16ch;
}
.page-hero .lede { margin: 24px auto 0; max-width: 56ch; }

/* prose */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 64px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-3);
  letter-spacing: -.011em;
}
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 22px; margin: 0 0 1.5em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
