:root {
  --bg: #090b10;
  --bg-2: #0d1017;
  --panel: #11151d;
  --panel-2: #151a24;
  --border: #242a35;
  --text: #f4f6fb;
  --text-soft: #c4cad5;
  --muted: #7f8795;
  --blue: #8ab4f8;
  --blue-2: #b9d2ff;
  --yellow: #f4d35e;
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
code, pre, kbd { font-family: var(--mono); }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.section-shell,
.site-header {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 10;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #08101d;
  background: var(--blue);
  font-family: var(--mono);
  font-weight: 900;
  box-shadow: 0 0 28px rgba(138,180,248,.18);
}
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--text-soft); }
.nav a:hover { color: white; }

.hero {
  min-height: 760px;
  padding: 88px 0 90px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 64px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  top: 20px;
  background: radial-gradient(circle, rgba(60,104,182,.22) 0%, rgba(9,11,16,0) 68%);
  pointer-events: none;
}
.eyebrow, .section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #58d68d; box-shadow: 0 0 12px #58d68d; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(60px, 7.1vw, 98px);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 780;
}
h1 span { color: var(--blue); }
.hero-text { max-width: 565px; color: var(--text-soft); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-actions.centered { justify-content: center; }
.button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  font-weight: 650;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #07101d; }
.button-primary:hover { background: var(--blue-2); }
.button-secondary { border: 1px solid var(--border); color: var(--text-soft); background: rgba(255,255,255,.025); }
.button-secondary:hover { border-color: #3d4554; color: white; }
.hero-meta { margin-top: 32px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.hero-meta b { color: var(--text-soft); font-weight: 600; }

.terminal-wrap { position: relative; perspective: 1500px; }
.terminal-shadow { position: absolute; inset: 14% 4% -12%; background: #5a82d6; filter: blur(90px); opacity: .12; }
.terminal {
  position: relative;
  border: 1px solid #303746;
  border-radius: 15px;
  background: #0d1017;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03);
  transform: rotateY(-5deg) rotateX(1.5deg);
  transform-origin: center;
}
.terminal-topbar { height: 42px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; background: #151922; border-bottom: 1px solid #242a35; font-family: var(--mono); font-size: 10px; color: #808898; }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a404d; }
.window-dots i:first-child { background: #ff655c; }.window-dots i:nth-child(2) { background: #f4bd4f; }.window-dots i:nth-child(3) { background: #55c960; }
.terminal-clock { justify-self: end; }
.mail-ui { display: grid; grid-template-columns: 150px 1fr; min-height: 390px; font-family: var(--mono); font-size: 10px; }
.mail-sidebar { padding: 16px 10px; background: #0a0d13; border-right: 1px solid #202630; position: relative; }
.compose { border: 1px solid #32405a; border-radius: 7px; padding: 9px 10px; color: var(--blue); margin-bottom: 15px; background: #111825; }
.folder { padding: 7px 8px; border-radius: 5px; color: #87909e; display: grid; grid-template-columns: 16px 1fr auto; align-items: center; }
.folder.active { color: #e8edf7; background: #172338; }
.folder b { color: var(--blue); }
.sidebar-foot { position: absolute; bottom: 10px; left: 18px; color: #434b59; }
.mail-main { min-width: 0; }
.mail-toolbar { height: 48px; border-bottom: 1px solid #242a35; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #707887; }
.search { border: 1px solid #2b3340; border-radius: 5px; padding: 7px 11px; width: 64%; color: #707887; }
.message { min-height: 48px; padding: 0 10px; display: grid; grid-template-columns: 10px 92px 1fr auto; gap: 7px; align-items: center; border-bottom: 1px solid #171c24; color: #7f8795; }
.message strong { color: #bcc3cf; font-weight: 650; }
.message .subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message.selected { position: relative; background: #21314d; color: #b9c8e2; }
.message.selected::before { content: ""; width: 2px; position: absolute; left: 0; top: 0; bottom: 0; background: white; }
.unread { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.message time { color: #666f7e; font-size: 9px; }
.shortcut-bar { position: absolute; }
.mail-main { position: relative; padding-bottom: 34px; }
.shortcut-bar { left: 0; right: 0; bottom: 0; height: 34px; border-top: 1px solid #242a35; display: flex; align-items: center; gap: 18px; padding: 0 10px; color: #687181; font-size: 9px; }
kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid #36404e; border-bottom-color: #232a35; border-radius: 4px; background: #161b23; color: #bdc5d2; font-size: .9em; }

.marquee { border-top: 1px solid #1d222c; border-bottom: 1px solid #1d222c; overflow: hidden; background: #0b0e14; }
.marquee-track { width: max-content; display: flex; gap: 34px; align-items: center; padding: 13px 0; animation: ticker 34s linear infinite; color: #626b7a; font: 11px var(--mono); letter-spacing: .11em; }
.marquee-track i { color: #293240; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.feature-intro { display: grid; grid-template-columns: .42fr 1fr; gap: 40px; padding: 112px 0 54px; border-bottom: 1px solid #1b2029; }
.feature-intro h2, .install-section h2, .config-section h2, .final-cta h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; margin-bottom: 22px; }
.feature-intro p, .install-copy p, .config-grid p { max-width: 620px; color: var(--muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px 0 120px; }
.feature-card { min-height: 320px; padding: 22px; border: 1px solid #1e242e; border-radius: var(--radius); background: linear-gradient(180deg, #0e1219, #0b0e14); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.feature-card.featured { grid-row: span 2; min-height: 654px; }
.feature-card.wide { grid-column: span 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: end; }
.card-number { color: #4f5867; font: 10px var(--mono); letter-spacing: .08em; }
.feature-card h3 { margin-top: auto; margin-bottom: 8px; font-size: 21px; letter-spacing: -.025em; }
.feature-card p { margin-bottom: 0; color: #777f8d; font-size: 14px; line-height: 1.6; }
.feature-icon { margin: auto; width: 86px; height: 86px; border: 1px solid #263246; border-radius: 22px; display: grid; place-items: center; font-family: var(--mono); font-size: 34px; color: var(--blue); background: radial-gradient(circle at 50% 30%, #16243c, #0d1118 68%); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.keys-visual { margin: auto 0 70px; display: grid; place-items: center; gap: 12px; }
.key-row { display: flex; gap: 10px; }
.keys-visual kbd { width: 66px; height: 66px; font-size: 22px; border-radius: 12px; color: #d9e8ff; background: #15233a; border-color: #34517e; box-shadow: 0 6px 0 #0a0e15, 0 14px 28px rgba(0,0,0,.25); }
.keys-visual .key-row:nth-child(2) kbd { width: 54px; height: 54px; font-size: 18px; }
.key-caption { color: #5f6d82; font: 10px var(--mono); margin-top: 15px; }
.cache-visual { align-self: center; border: 1px solid #242c38; border-radius: 12px; overflow: hidden; background: #0b0e13; }
.cache-line { display: flex; justify-content: space-between; gap: 50px; padding: 14px 15px; border-bottom: 1px solid #1c232d; color: #697383; font: 11px var(--mono); }
.cache-line:last-child { border-bottom: 0; }
.cache-line b { color: #65ce94; font-weight: 500; }
.feature-card code { color: #a9b8d2; }

.install-section { padding: 120px 0; display: grid; grid-template-columns: 1fr 1.05fr; gap: 74px; align-items: center; border-top: 1px solid #1b2029; }
.install-copy .section-kicker { margin-bottom: 30px; }
.code-card { border: 1px solid #28303d; background: #0c1016; border-radius: 15px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.22); }
.code-card-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 14px 0 18px; color: #6f7888; border-bottom: 1px solid #242a34; font: 11px var(--mono); background: #12161d; }
.copy-button { border: 1px solid #303946; color: #9ca5b2; background: transparent; border-radius: 7px; font: 10px var(--mono); padding: 5px 9px; cursor: pointer; }
.copy-button:hover { color: white; border-color: #4b5767; }
.code-card pre { margin: 0; padding: 28px 22px; overflow-x: auto; color: #c8cfda; font-size: 12px; line-height: 2.1; }
.prompt { color: var(--blue); }
.code-foot { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid #242a34; color: #5c6573; font: 10px var(--mono); }
.code-foot code { color: var(--blue); }

.config-section { padding: 115px 0; border-top: 1px solid #1b2029; }
.config-section > .section-kicker { margin-bottom: 46px; }
.config-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: center; }
.config-code { padding: 26px; background: #0c1016; border: 1px solid #232b36; border-radius: 15px; }
.config-code pre { margin: 0; overflow-x: auto; color: #ccd3de; font-size: 12px; line-height: 1.9; }
.config-code .muted { color: #586170; }
.config-code .accent { color: #a8c7fa; }
.config-code .string { color: #8bd5ca; }

.final-cta { text-align: center; padding: 150px 0; border-top: 1px solid #1b2029; position: relative; }
.final-cta::after { content: ""; position: absolute; width: 500px; height: 260px; left: 50%; bottom: 30px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(93,133,211,.14), transparent 70%); pointer-events: none; }
.cta-mark { width: 48px; height: 48px; border-radius: 11px; background: var(--blue); color: #07101d; display: grid; place-items: center; font: 900 23px var(--mono); margin: 0 auto 34px; }
.final-cta p { color: var(--muted); font-size: 18px; }
.final-cta .hero-actions { position: relative; z-index: 2; }

.site-footer { min-height: 120px; border-top: 1px solid #1b2029; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: #67707e; font-size: 12px; }
.site-footer p { margin: 0; }
.footer-links { justify-self: end; display: flex; gap: 22px; }
.footer-links a:hover { color: white; }
.site-footer .brand { color: #adb5c1; }
.site-footer .brand-mark { width: 26px; height: 26px; font-size: 12px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .terminal { transform: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.featured { grid-row: auto; min-height: 500px; }
  .feature-card.wide { grid-column: span 2; }
  .install-section, .config-grid { grid-template-columns: 1fr; }
  .feature-intro { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section-shell, .site-header { width: min(100% - 28px, 1180px); }
  .site-header { height: 68px; }
  .nav a:not(:last-child) { display: none; }
  .hero { padding: 60px 0 70px; min-height: 0; gap: 52px; }
  h1 { font-size: clamp(55px, 17vw, 78px); }
  .hero-text { font-size: 17px; }
  .mail-ui { grid-template-columns: 100px 1fr; font-size: 8px; min-height: 320px; }
  .mail-sidebar { padding-inline: 6px; }
  .message { grid-template-columns: 8px 58px 1fr; min-height: 43px; }
  .message time { display: none; }
  .shortcut-bar { gap: 7px; font-size: 7px; overflow: hidden; }
  .terminal-topbar { font-size: 8px; }
  .feature-intro { padding-top: 90px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.featured, .feature-card { min-height: 360px; }
  .feature-card.wide { grid-column: auto; grid-template-columns: 1fr; }
  .cache-visual { width: 100%; }
  .install-section, .config-section { padding: 90px 0; }
  .site-footer { grid-template-columns: 1fr auto; min-height: 105px; }
  .site-footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .button { transition: none; }
}
