:root {
  --bg: #08111c;
  --bg-soft: #0d1824;
  --panel: #111d29;
  --panel-2: #162432;
  --text: #eef5fa;
  --muted: #9aabba;
  --muted-2: #718596;
  --line: rgba(166, 196, 219, .15);
  --accent: #5ab0ff;
  --accent-bright: #7fe8ff;
  --accent-dark: #102e49;
  --light: #eaf1f6;
  --light-text: #0d1720;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(58, 138, 201, .10), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.section-shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header {
  width: min(calc(100% - 48px), var(--max));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(90, 176, 255, .55);
  background: rgba(90, 176, 255, .06);
  color: var(--accent-bright);
  font: 700 11px/1 Space Grotesk, sans-serif;
  letter-spacing: .08em;
}
.brand-name { font-size: 14px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 13px; color: #b4c2cd; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--accent-bright); }

.hero { padding: 92px 0 86px; }
.eyebrow, .kicker, .project-index {
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 800;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 76px; align-items: end; margin-top: 16px; }
.hero h1, .section-heading h2, .ai-inner h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.hero h1 { font-size: clamp(46px, 6vw, 78px); max-width: 760px; }
.hero h1 span { color: #7f94a6; }
.hero-copy { margin: 28px 0 0; max-width: 700px; color: #b7c5cf; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 19px; font-size: 13px; font-weight: 800; letter-spacing: .01em; transition: .2s ease; }
.button-primary { background: var(--accent); color: #05111c; }
.button-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.button-ghost { border: 1px solid var(--line); color: #d1dce4; }
.button-ghost:hover { border-color: rgba(127, 232, 255, .5); color: var(--accent-bright); }
.hero-note { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(18,33,47,.82), rgba(10,20,30,.72)); padding: 26px; box-shadow: 0 28px 80px rgba(0,0,0,.16); }
.hero-note-label { color: var(--accent-bright); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.hero-note p { margin: 14px 0 22px; color: #c7d2da; font-size: 14px; }
.hero-note-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-note-tags span { border: 1px solid var(--line); color: #8fa5b6; padding: 6px 9px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.section-block { padding: 118px 0; }
.section-heading { display: grid; grid-template-columns: 58px minmax(0, 700px); gap: 22px; margin-bottom: 66px; }
.section-number { color: #60788a; font: 600 11px/1 Space Grotesk, sans-serif; padding-top: 5px; }
.section-heading h2 { margin-top: 8px; font-size: clamp(32px, 4vw, 52px); color: var(--text); }
.kicker { margin: 0; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  align-items: center;
  gap: clamp(42px, 7vw, 82px);
  padding: 68px 0;
  border-top: 1px solid var(--line);
}
.project-reverse .project-visual { order: 2; }
.project-reverse .project-copy { order: 1; }
.project:last-child { border-bottom: 1px solid var(--line); }
.project-visual { min-height: 390px; position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 32px 90px rgba(0,0,0,.22); }
.project-copy h3 { margin: 12px 0 0; font: 600 clamp(34px, 4vw, 50px)/1 Space Grotesk, sans-serif; letter-spacing: -.04em; }
.project-tagline { margin: 12px 0 16px; color: var(--accent-bright); font-weight: 700; font-size: 17px; }
.project-copy > p:not(.project-tagline) { color: #aebdca; font-size: 15px; max-width: 580px; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; color: #d4dee5; font-size: 12px; }
.feature-list li::before { content: "—"; color: var(--accent); margin-right: 7px; }
.text-link { display: inline-flex; gap: 7px; align-items: center; margin-top: 26px; color: var(--text); border-bottom: 1px solid rgba(90,176,255,.55); padding-bottom: 3px; font-size: 13px; font-weight: 800; }
.text-link:hover { color: var(--accent-bright); }

.live-preview { background: linear-gradient(145deg, #0c1722, #132230); }
.preview-bar { height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); color: #7890a2; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.preview-bar strong { color: #b8c9d6; font-size: 9px; }
.preview-bar span:last-child { margin-left: auto; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #43d99a; box-shadow: 0 0 0 4px rgba(67,217,154,.08); }
.preview-viewport { position: absolute; left: 0; right: 0; top: 38px; bottom: 0; overflow: hidden; background: #0d1720; }
.preview-viewport iframe {
  width: 125%;
  height: 125%;
  border: 0;
  transform: scale(.8);
  transform-origin: 0 0;
  pointer-events: none;
  background: #0c1520;
}

.process-section { padding-top: 88px; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-grid article { background: var(--bg); padding: 30px; min-height: 235px; }
.process-grid article > span { color: var(--accent); font: 600 11px Space Grotesk; }
.process-grid h3 { margin: 44px 0 10px; font: 600 22px/1.08 Space Grotesk; letter-spacing: -.025em; }
.process-grid p { margin: 0; color: #91a3b1; font-size: 13px; }

.ai-section { background: var(--light); color: var(--light-text); }
.ai-inner { padding: 112px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 84px; align-items: start; }
.ai-inner .kicker { grid-column: 1/-1; color: #1976bd; margin-bottom: -34px; }
.ai-inner h2 { font-size: clamp(42px, 5vw, 64px); color: var(--light-text); }
.ai-inner h2 span { color: #738491; }
.ai-copy { padding-top: 4px; }
.ai-copy p { color: #43535f; font-size: 16px; margin: 0 0 22px; }
.ai-copy .pullquote { margin-top: 38px; border-left: 2px solid #2f9fe9; padding-left: 21px; font: 600 24px/1.3 Space Grotesk; letter-spacing: -.03em; color: var(--light-text); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; }
.about-grid p { color: #94a6b4; max-width: 600px; }
.about-grid .about-lead { color: #cdd9e2; font-size: 18px; margin-top: 0; }
.about-lead strong { color: var(--text); }
.tech-stack { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 8px; }
.tech-stack span { border: 1px solid var(--line); background: rgba(255,255,255,.015); padding: 9px 11px; color: #a5b7c5; font-size: 11px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 42px; display: flex; justify-content: space-between; gap: 28px; color: #63798a; font-size: 11px; }
.site-footer div { display: grid; gap: 3px; }
.site-footer strong { color: #9eb0bd; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-note { max-width: 560px; }
  .project, .project-reverse { grid-template-columns: 1fr; gap: 34px; }
  .project-reverse .project-visual, .project-reverse .project-copy { order: initial; }
  .project-visual { min-height: 420px; }
  .ai-inner { grid-template-columns: 1fr; gap: 36px; }
  .ai-inner .kicker { margin-bottom: -10px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 650px) {
  .section-shell, .site-header { width: min(calc(100% - 30px), var(--max)); }
  .site-header { min-height: 68px; }
  .brand-name { display: none; }
  .nav { gap: 16px; font-size: 11px; }
  .nav a:nth-child(2) { display: none; }
  .hero { padding: 68px 0 66px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-copy { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-note { padding: 20px; }
  .section-block { padding: 82px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; margin-bottom: 44px; }
  .section-number { display: none; }
  .section-heading h2 { font-size: 34px; }
  .project { padding: 48px 0; }
  .project-visual { min-height: 320px; }
  .project-copy h3 { font-size: 36px; }
  .feature-list { grid-template-columns: 1fr; }
  .preview-viewport iframe { width: 150%; height: 150%; transform: scale(.667); }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 190px; }
  .process-grid h3 { margin-top: 32px; }
  .ai-inner { padding: 82px 0; }
  .ai-inner h2 { font-size: 42px; }
  .ai-copy .pullquote { font-size: 21px; }
  .site-footer { flex-direction: column; }
}
