@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #07090d;
  --bg-elevated: #0c1017;
  --panel: rgba(16, 21, 31, .82);
  --panel-strong: #111722;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --text: #f5f7fb;
  --muted: #9aa6b8;
  --muted-2: #6f7c90;
  --purple: #8b7cff;
  --purple-2: #6b5cff;
  --cyan: #55d9ff;
  --green: #54e2a0;
  --yellow: #f8cf5b;
  --red: #ff7070;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(107,92,255,.16), transparent 32rem),
    radial-gradient(circle at 88% 28%, rgba(85,217,255,.08), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button { color: inherit; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); }
.accent { color: var(--cyan); }
.purple { color: #b7aeff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7,9,13,.72);
  border-bottom: 1px solid var(--line);
}
.navbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.04em; font-size: 1.08rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139,124,255,.25), rgba(85,217,255,.14));
  border: 1px solid rgba(139,124,255,.42);
  color: #c8c1ff;
  box-shadow: inset 0 0 20px rgba(139,124,255,.12);
}
.nav-links { display: flex; align-items: center; gap: 24px; color: #c9d0db; font-size: .94rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: white; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 11px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 43px; padding: 0 17px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04);
  color: white; font-weight: 650; font-size: .94rem; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.button.primary { border-color: transparent; background: linear-gradient(135deg, var(--purple-2), #8a63ff); box-shadow: 0 10px 30px rgba(107,92,255,.28); }
.button.primary:hover { background: linear-gradient(135deg, #7769ff, #9875ff); }
.button.ghost { background: transparent; }
.button.small { min-height: 36px; padding: 0 13px; font-size: .87rem; }

.hero { padding: 108px 0 74px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 999px; font-size: .78rem; color: #c7cfdb; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px rgba(84,226,160,.75); }
.hero h1 { margin: 18px 0 18px; font-size: clamp(3.5rem, 7vw, 6.8rem); line-height: .9; letter-spacing: -.07em; max-width: 9ch; }
.hero h1 span { display: block; color: #a99fff; }
.hero-copy { font-size: 1.13rem; color: var(--muted); max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--muted-2); font-size: .84rem; }

.console-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(18,24,35,.95), rgba(10,14,21,.92)); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.console-top { height: 48px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: var(--muted); font-size: .79rem; }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #384252; display: block; }
.console-body { display: grid; grid-template-columns: 116px 1fr; min-height: 360px; }
.console-sidebar { padding: 16px 10px; border-right: 1px solid var(--line); background: rgba(5,7,11,.36); }
.console-nav-item { padding: 9px 10px; border-radius: 8px; font-size: .76rem; color: var(--muted); margin-bottom: 3px; }
.console-nav-item.active { background: rgba(139,124,255,.13); color: #dedaff; }
.console-main { padding: 20px; }
.console-title { font-weight: 700; letter-spacing: -.03em; margin-bottom: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.metric { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 11px; padding: 12px; }
.metric label { display: block; color: var(--muted-2); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; }
.metric strong { display: block; font: 600 .92rem "JetBrains Mono", monospace; margin-top: 4px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; font-size: .76rem; }
.status-ok { color: var(--green); }

.section { padding: 84px 0; }
.section.tight { padding: 58px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.055em; }
.section-head p { max-width: 570px; color: var(--muted); margin: 0; }
.kicker { color: #a99fff; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .74rem; margin-bottom: 10px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 24px; box-shadow: inset 0 1px rgba(255,255,255,.02); }
.card h3 { margin: 12px 0 9px; letter-spacing: -.035em; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(139,124,255,.11); border: 1px solid rgba(139,124,255,.22); font: 600 .8rem "JetBrains Mono", monospace; color: #c9c2ff; }
.card-link { margin-top: 18px; display: inline-flex; color: #d7d2ff; font-size: .9rem; font-weight: 650; }

.feature-strip { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, rgba(139,124,255,.09), rgba(85,217,255,.03)); padding: 28px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.feature-strip h3 { margin: 0 0 8px; font-size: 1.7rem; letter-spacing: -.045em; }
.feature-strip p { margin: 0; color: var(--muted); }
.feature-strip .actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.status-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.status-card small { color: var(--muted-2); text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.status-card strong { display: block; margin-top: 6px; font-size: 1rem; }
.status-pill { margin-top: 12px; display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: .72rem; border: 1px solid rgba(84,226,160,.23); background: rgba(84,226,160,.08); color: var(--green); }
.status-pill.pending { border-color: rgba(248,207,91,.22); background: rgba(248,207,91,.08); color: var(--yellow); }

.page-hero { padding: 86px 0 48px; }
.page-hero h1 { margin: 12px 0 16px; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .96; letter-spacing: -.065em; }
.page-hero p { color: var(--muted); max-width: 720px; font-size: 1.08rem; }

.project-list { display: grid; gap: 18px; }
.project-row { display: grid; grid-template-columns: 210px 1fr auto; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--panel); }
.project-type { color: #aaa2ff; font: 600 .78rem "JetBrains Mono", monospace; text-transform: uppercase; }
.project-row h2 { margin: 4px 0 6px; font-size: 1.5rem; letter-spacing: -.04em; }
.project-row p { margin: 0; color: var(--muted); }

.prose { max-width: 760px; color: #c8d0dc; }
.prose h2 { color: white; margin-top: 40px; letter-spacing: -.04em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.contact-card .button { align-self: flex-start; }

.demo-shell { margin: 34px 0 80px; border: 1px solid var(--line); background: #0a0d13; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 16px; background: rgba(248,207,91,.07); border-bottom: 1px solid rgba(248,207,91,.16); color: #e7dcae; font-size: .8rem; }
.demo-app { display: grid; grid-template-columns: 220px 1fr; min-height: 650px; }
.demo-side { border-right: 1px solid var(--line); background: #080b10; padding: 20px 14px; }
.demo-brand { padding: 0 10px 18px; font-weight: 800; letter-spacing: -.04em; }
.demo-nav { display: grid; gap: 4px; }
.demo-tab { width: 100%; text-align: left; border: 0; background: transparent; color: var(--muted); padding: 10px 11px; border-radius: 9px; cursor: pointer; font-size: .88rem; }
.demo-tab:hover { background: rgba(255,255,255,.04); color: white; }
.demo-tab.active { background: rgba(139,124,255,.14); color: #dedaff; }
.demo-side-note { margin-top: 28px; border-top: 1px solid var(--line); padding: 16px 10px 0; color: var(--muted-2); font-size: .75rem; }
.demo-main { padding: 28px; min-width: 0; }
.demo-view { display: none; }
.demo-view.active { display: block; }
.demo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.demo-heading h2 { margin: 0 0 5px; letter-spacing: -.045em; }
.demo-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.demo-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(84,226,160,.2); background: rgba(84,226,160,.07); border-radius: 999px; color: var(--green); font-size: .72rem; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-panel { border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); padding: 16px; }
.demo-panel.wide { grid-column: span 2; }
.demo-panel.full { grid-column: 1/-1; }
.demo-panel label { display: block; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; font-weight: 700; }
.demo-panel .big { font: 600 1.28rem "JetBrains Mono", monospace; margin-top: 6px; }
.demo-panel .sub { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.progress { height: 7px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.demo-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.demo-table th, .demo-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.demo-table th { color: var(--muted-2); font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; }
.demo-table tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: .7rem; border: 1px solid var(--line); }
.badge.green { color: var(--green); border-color: rgba(84,226,160,.22); background: rgba(84,226,160,.07); }
.badge.yellow { color: var(--yellow); border-color: rgba(248,207,91,.2); background: rgba(248,207,91,.06); }
.badge.purple { color: #bbb4ff; border-color: rgba(139,124,255,.22); background: rgba(139,124,255,.07); }
.verify-box { border: 1px dashed rgba(139,124,255,.35); background: rgba(139,124,255,.045); border-radius: 14px; padding: 20px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.select { min-height: 42px; flex: 1 1 240px; color: #e9edf4; border: 1px solid var(--line-strong); border-radius: 10px; background: #0e131c; padding: 0 12px; }
.terminal { margin-top: 16px; border: 1px solid var(--line); background: #05070a; border-radius: 12px; padding: 14px; font: 500 .76rem/1.65 "JetBrains Mono", monospace; color: #aeb9c8; min-height: 170px; white-space: pre-wrap; }
.terminal .ok { color: var(--green); }
.terminal .warn { color: var(--yellow); }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .84rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-small { margin-top: 14px; max-width: 760px; color: var(--muted-2); font-size: .75rem; }

@media (max-width: 900px) {
  .hero-grid, .feature-strip, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 76px; }
  .console-card { transform: none; max-width: 650px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .project-row { grid-template-columns: 1fr auto; }
  .project-row > :first-child { grid-column: 1/-1; }
  .feature-strip .actions { justify-content: flex-start; }
  .demo-app { grid-template-columns: 170px 1fr; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .navbar { height: 64px; }
  .nav-links, .nav-actions .desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open { position: absolute; top: 64px; left: 14px; right: 14px; display: grid; gap: 0; padding: 9px; background: #0c1017; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
  .nav-links.open a { padding: 10px; border-radius: 8px; }
  .cards, .status-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .hero h1 { font-size: clamp(3.2rem, 18vw, 5rem); }
  .console-body { grid-template-columns: 90px 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 1fr; }
  .demo-shell { border-radius: 14px; margin-top: 22px; }
  .demo-app { grid-template-columns: 1fr; }
  .demo-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; overflow-x: auto; }
  .demo-brand, .demo-side-note { display: none; }
  .demo-nav { display: flex; min-width: max-content; }
  .demo-tab { width: auto; white-space: nowrap; }
  .demo-main { padding: 18px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-panel.wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
