:root {
  --bg: #07090d;
  --surface: rgba(18, 22, 30, 0.82);
  --surface-strong: #11151c;
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.15);
  --text: #f7f9fc;
  --muted: #919caf;
  --muted-2: #647084;
  --accent: #f5f7fb;
  --accent-ink: #0a0d12;
  --glow: rgba(87, 113, 255, 0.16);
  --radius: 22px;
  --content: min(1180px, calc(100vw - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 8%, rgba(91, 110, 255, 0.08), transparent 25%),
    radial-gradient(circle at 10% 72%, rgba(116, 87, 255, 0.05), transparent 22%),
    var(--bg);
  color: var(--text);
  font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .18;
  pointer-events: none;
}
.page-glow--one { top: -240px; right: -180px; background: #6076ff; }
.page-glow--two { bottom: 4%; left: -320px; background: #6d4cff; opacity: .09; }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: var(--content);
  margin: 14px auto 0;
  height: 62px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(9, 12, 17, 0.76);
  backdrop-filter: blur(22px) saturate(120%);
  box-shadow: 0 14px 46px rgba(0, 0, 0, .24);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.brand-mark { width: 24px; height: 24px; display: block; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.28); }
.nav { display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--text); }

.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button--small { min-height: 38px; padding-inline: 14px; font-size: 13px; }
.button--primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 26px rgba(255,255,255,.08); }
.button--primary:hover { background: white; }
.button--ghost { background: rgba(255,255,255,.025); }
.button--ghost:hover { border-color: var(--border-bright); background: rgba(255,255,255,.045); }

.section { width: var(--content); margin: 0 auto; padding: 112px 0; }
.hero { padding-top: 150px; padding-bottom: 86px; max-width: 1080px; text-align: center; }
.eyebrow, .section-kicker { color: #bcc5d4; font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.hero-title {
  margin: 20px auto 0;
  max-width: 980px;
  font-size: clamp(50px, 7vw, 88px);
  line-height: .99;
  letter-spacing: -.035em;
  font-weight: 690;
  text-wrap: balance;
}
.hero-copy { margin: 28px auto 0; max-width: 760px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; text-wrap: balance; }
.hero-actions { margin-top: 34px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-meta { margin-top: 48px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-meta span { padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-2); font-size: 12px; background: rgba(255,255,255,.018); }

.demo-shell {
  width: var(--content);
  margin: 0 auto 32px;
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  overflow: hidden;
  background: #0d1118;
  box-shadow: 0 36px 100px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.025) inset;
}
.browser-bar { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--border); background: #0b0e13; }
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: #323846; }
.browser-address { margin-left: 14px; color: #555f70; font-size: 11px; }
.demo-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #05070a; object-fit: cover; }

.section-kicker { margin-bottom: 16px; }
.section-title { margin: 0; max-width: 760px; font-size: clamp(40px, 5.5vw, 68px); line-height: 1.02; letter-spacing: -.01em; font-weight: 670; text-wrap: balance; }
.section-title--compact { max-width: 800px; font-size: clamp(38px, 4.7vw, 58px); }
.section-copy { margin: 22px 0 0; max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.case-study-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.case-study-badge { white-space: nowrap; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; }
.flow-line { margin-top: 56px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.018); scrollbar-width: none; }
.flow-line::-webkit-scrollbar { display: none; }
.flow-line span { white-space: nowrap; color: #cbd2dd; font-size: 13px; font-weight: 650; }
.flow-line i { flex: 1 0 28px; height: 1px; min-width: 24px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.32), rgba(255,255,255,.08)); }

.capability-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.capability-card { min-height: 270px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014)); position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.capability-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -120px; top: -140px; border-radius: 50%; background: var(--glow); filter: blur(40px); opacity: 0; transition: opacity .25s ease; }
.capability-card:hover { transform: translateY(-3px); border-color: var(--border-bright); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)); }
.capability-card:hover::after { opacity: 1; }
.card-icon { color: var(--muted-2); font-size: 12px; letter-spacing: .1em; font-weight: 700; }
.capability-card h3 { margin: 58px 0 10px; font-size: 24px; letter-spacing: -.01em; }
.capability-card p { margin: 0; max-width: 490px; color: var(--muted); line-height: 1.65; font-size: 15px; }
.card-tag { position: absolute; left: 26px; bottom: 24px; color: #aeb8c8; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }

.workflow-track { margin-top: 48px; display: grid; grid-template-columns: 1fr 46px 1fr 46px 1fr 46px 1fr 46px 1fr 46px 1fr; align-items: center; }
.workflow-node { min-height: 142px; padding: 19px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.02); display: flex; flex-direction: column; }
.workflow-node span { color: var(--muted-2); font-size: 11px; font-weight: 750; }
.workflow-node strong { margin-top: auto; font-size: 17px; }
.workflow-node small { margin-top: 6px; color: var(--muted); line-height: 1.35; font-size: 11px; }
.workflow-connector { height: 1px; background: rgba(255,255,255,.11); position: relative; overflow: visible; }
.workflow-connector b { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: white; box-shadow: 0 0 14px rgba(255,255,255,.72); animation: travel 2.2s linear infinite; }
@keyframes travel { from { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { transform: translateX(41px); opacity: 0; } }

.stack-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 80px; align-items: center; }
.stack-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.stack-list span { min-height: 98px; padding: 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; align-items: flex-end; font-size: 17px; font-weight: 650; background: rgba(255,255,255,.014); }
.stack-list span:last-child { grid-column: span 2; }

.contact { padding-bottom: 90px; }
.contact-panel { padding: 64px; border: 1px solid var(--border-bright); border-radius: 28px; background: radial-gradient(circle at 80% 0%, rgba(86,103,255,.11), transparent 30%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.018)); text-align: center; }
.contact-panel h2 { margin: 16px auto 0; max-width: 770px; font-size: clamp(40px, 5vw, 64px); line-height: 1.03; letter-spacing: -.01em; }
.contact-panel p { margin: 18px auto 28px; max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.contact-panel small { display: block; margin-top: 16px; color: #596477; font-size: 11px; }
.footer { width: var(--content); margin: 0 auto; padding: 28px 0 46px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: #5d687a; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav { display: none; }
  .section { padding: 88px 0; }
  .hero { padding-top: 120px; }
  .case-study-head, .stack-section { grid-template-columns: 1fr; display: grid; gap: 28px; }
  .case-study-badge { justify-self: start; }
  .workflow-track { grid-template-columns: 1fr; gap: 9px; }
  .workflow-connector { width: 1px; height: 24px; margin-left: 32px; }
  .workflow-connector b { top: 0; left: -2px; animation: travel-y 2s linear infinite; }
  @keyframes travel-y { from { transform: translateY(0); opacity: 0; } 15% {opacity:1;} 85% {opacity:1;} to { transform: translateY(20px); opacity:0; } }
}

@media (max-width: 700px) {
  :root { --content: min(100% - 28px, 1180px); }
  .site-header { top: 8px; margin-top: 8px; height: 56px; padding-left: 14px; }
  .site-header .button { display: none; }
  .hero { text-align: left; padding-top: 105px; }
  .hero-title { font-size: clamp(46px, 14vw, 64px); }
  .hero-copy { margin-left: 0; }
  .hero-actions, .hero-meta { justify-content: flex-start; }
  .demo-shell { border-radius: 16px; }
  .browser-bar { height: 40px; }
  .browser-address { display: none; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 245px; }
  .flow-line { margin-top: 38px; }
  .contact-panel { padding: 48px 22px; }
  .stack-list { grid-template-columns: 1fr; }
  .stack-list span:last-child { grid-column: auto; }
  .footer { gap: 18px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
