:root {
  color-scheme: light;
  --paper: #f6f7fb;
  --surface: #ffffff;
  --ink: #12131a;
  --muted: #646a7a;
  --line: #e3e5ee;
  --brand: #4f46e5;
  --brand-2: #6461fd;
  --brand-deep: #1e1b4b;
  --amber: #f59e0b;
  --mono: 'DM Mono', ui-monospace, monospace;
  --sans: 'Manrope', system-ui, sans-serif;
  --radius: 22px;
  --wrap: min(1200px, calc(100% - 64px));
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.page-wrap { width: var(--wrap); margin-inline: auto; }

/* Header */
.site-header { position: fixed; inset: 14px 0 auto; z-index: 10; pointer-events: none; }
.header-inner { width: var(--wrap); margin-inline: auto; padding: 8px 8px 8px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #ffffff2e; border-radius: 999px; background: #1e1b4b40; color: #fff; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); pointer-events: auto; transition: background .3s, color .3s, border-color .3s; }
.site-header.is-scrolled .header-inner { background: #ffffffd9; color: var(--ink); border-color: var(--line); box-shadow: 0 10px 30px -18px #1e1b4b55; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 800; }
.wordmark-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #fff; color: var(--brand); font: 500 13px var(--mono); }
.is-scrolled .wordmark-mark { background: var(--brand); color: #fff; }
.main-nav { display: flex; gap: 4px; align-items: center; font-size: 13px; font-weight: 700; }
.main-nav a { padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.main-nav a:hover { background: #ffffff22; }
.is-scrolled .main-nav a:hover { background: #4f46e512; }
.main-nav .nav-contact { background: #fff; color: var(--brand-deep); }
.main-nav .nav-contact:hover { background: #fff; }
.is-scrolled .main-nav .nav-contact { background: var(--brand); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #7c7aff 0%, transparent 55%), linear-gradient(160deg, var(--brand-2) 0%, #4338ca 100%); color: #fff; }
.hero-inner { width: var(--wrap); margin-inline: auto; min-height: min(100svh, 900px); padding: 130px 0 110px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
.hero-icon { width: clamp(84px, 8vw, 118px); height: auto; aspect-ratio: 1; margin-bottom: 28px; border-radius: 24%; box-shadow: 0 18px 40px -16px var(--brand-deep); }
.status-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid #ffffff55; border-radius: 999px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { margin-top: 18px; font-size: clamp(72px, 10vw, 140px); line-height: .9; font-weight: 800; letter-spacing: -.045em; }
.hero-lede { margin-top: 18px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.01em; }
.hero-note { max-width: 40ch; margin-top: 14px; color: #e4e4ff; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 800; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { background: #fff; color: var(--brand-deep); }
.button-ghost { border: 1px solid #ffffff66; color: #fff; }
.button-ghost:hover { background: #ffffff1a; }

.hero-phones { position: relative; height: min(620px, 70vh); min-height: 460px; }
.phone { position: absolute; top: 50%; height: 100%; width: auto; aspect-ratio: 390 / 844; border: 6px solid var(--brand-deep); border-radius: 34px; background: var(--paper); box-shadow: 0 50px 90px -40px #0f0c3aee; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.phone:nth-child(1) { left: 2%; transform: translateY(-50%) scale(.84) rotate(-7deg); }
.phone:nth-child(2) { left: 50%; z-index: 2; transform: translate(-50%, -50%); }
.phone:nth-child(3) { right: 2%; transform: translateY(-50%) scale(.84) rotate(7deg); }
.hero-phones:hover .phone:nth-child(1) { transform: translate(-6%, -50%) scale(.84) rotate(-9deg); }
.hero-phones:hover .phone:nth-child(2) { transform: translate(-50%, -52%); }
.hero-phones:hover .phone:nth-child(3) { transform: translate(6%, -50%) scale(.84) rotate(9deg); }

/* Metrics */
.metrics { position: relative; z-index: 2; margin-top: -54px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--radius); background: var(--surface); box-shadow: 0 24px 60px -34px #1e1b4b55, 0 0 0 1px var(--line); }
.metrics div { padding: 26px 28px; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics strong { display: block; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.metrics span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

/* Sections */
.section { padding: clamp(80px, 10vw, 130px) 0 0; }
.section-head { margin-bottom: 44px; }
.eyebrow { color: var(--brand); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-light { color: #c7c6ff; }
.section-head h2, .about h2, .contact h2 { margin-top: 14px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.section-head h2 span, .about h2 span { color: #9ba0b4; }
.section-intro { margin-top: 16px; color: var(--muted); font-size: 16px; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .3s, box-shadow .3s, opacity .7s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px #1e1b4b55; }
.card-wide { grid-column: span 2; }
.card-full { grid-column: 1 / -1; }
.card-accent { background: linear-gradient(150deg, var(--brand-2), #4338ca); color: #fff; box-shadow: none; }
.card-kicker { display: block; color: var(--brand); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.card-accent .card-kicker { color: #c7c6ff; }
.card h3 { margin-top: 16px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.card-accent p { color: #e4e4ff; max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 8px 14px; border-radius: 999px; background: #ffffff22; font-size: 13px; font-weight: 700; }
.ai-demo { display: inline-flex; gap: 8px; margin-top: 18px; padding: 9px 13px; border-radius: 12px; background: #eef0ff; color: var(--brand); font-size: 13px; font-weight: 700; }

/* Stack */
.stack-section { margin-top: clamp(80px, 10vw, 130px); padding: clamp(80px, 10vw, 120px) 0; background: var(--brand-deep); color: #fff; }
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack-card { padding: 26px; border: 1px solid #ffffff1f; border-radius: var(--radius); background: #ffffff0a; }
.stack-card .card-kicker { color: #a5a3ff; }
.stack-card h3 { margin-top: 14px; font-size: 20px; font-weight: 800; }
.stack-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.stack-card li { padding: 9px 0; border-top: 1px solid #ffffff14; color: #d6d5f5; font-size: 14px; line-height: 1.45; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag-list span { padding: 7px 12px; border: 1px solid #ffffff2b; border-radius: 999px; color: #d6d5f5; font: 12px var(--mono); }

/* Screens */
.screen-gallery { margin: 0; padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); list-style: none; border-radius: 28px; background: linear-gradient(160deg, var(--brand-2), #4338ca); }
.screen-gallery li { text-align: center; }
.screen-gallery img { width: 100%; height: auto; border: 5px solid var(--brand-deep); border-radius: 26px; box-shadow: 0 30px 60px -28px var(--brand-deep); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.screen-gallery li:hover img { transform: translateY(-8px); }
.screen-gallery span { display: block; margin-top: 14px; color: #e4e4ff; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* About */
.about { padding: clamp(80px, 10vw, 130px) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.about-copy p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.about-copy p + p { margin-top: 14px; }

/* Contact */
.contact { padding: clamp(70px, 9vw, 110px) 0 32px; background: linear-gradient(160deg, var(--brand-2), #3730a3); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.contact-links { display: grid; gap: 12px; justify-items: start; }
.contact-links a { padding: 14px 20px; border-radius: 999px; background: #fff; color: var(--brand-deep); font-size: 15px; font-weight: 800; transition: transform .2s; }
.contact-links a:hover { transform: translateY(-2px); }
.contact-links p { margin-top: 6px; color: #d6d5f5; font-size: 14px; }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #ffffff2b; color: #c7c6ff; font: 12px var(--mono); }

/* Reveal */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1), transform .3s, box-shadow .3s; }
.reveal.is-visible { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
  .status-badge::before { animation: none; }
  .phone, .card, .button, .screen-gallery img { transition: none; }
}

/* Responsive */
@media (max-width: 1470px) /* 980px x 1.5 zoom */ {
  .hero-inner { grid-template-columns: 1fr; padding: 120px 0 0; gap: 40px; min-height: 0; }
  .hero-phones { height: min(110vw, 560px); min-height: 0; margin-bottom: -70px; }
  .metrics { margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div:nth-child(3) { border-left: 0; }
  .metrics div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento, .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .contact-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  :root { --wrap: calc(100% - 32px); }
  .main-nav a:not(.nav-contact) { display: none; }
  .hero-icon { width: 84px; }
  .hero-phones { height: 120vw; }
  .phone { border-width: 4px; border-radius: 24px; }
  .bento, .stack-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .metrics div { padding: 20px; }
  .screen-gallery { padding: 18px; border-radius: 20px; }
  .screen-gallery img { border-width: 3px; border-radius: 18px; }
  .footer-meta { flex-direction: column; }
}

/* Desktop: render everything 50% larger (like browser zoom at 150%).
   Screens 981-1470px wide then get the tablet layout, as real 150% zoom would. */
@media (min-width: 981px) {
  html { zoom: 1.5; }
}
@media (min-width: 1471px) {
  .hero-inner { min-height: min(calc(100svh / 1.5), 900px); }
  .hero-phones { height: min(620px, calc(70vh / 1.5)); min-height: 0; }
}
