:root {
  --bg-void: #06080d;
  --bg-obsidian: #0b0f17;
  --bg-panel: rgba(14, 19, 30, 0.78);
  --bg-well: #05070b;
  --border-glass: rgba(255, 255, 255, 0.10);
  --border-bevel: rgba(255, 255, 255, 0.18);
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.14);
  --gold: #e2be7e;
  --gold-dim: rgba(226, 190, 126, 0.15);
  --emerald: #10b981;
  --danger: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 11px;
  --shadow-hardware: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  background: var(--bg-void);
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 540px at 18% -6%, rgba(0, 240, 255, 0.11), transparent 62%),
    radial-gradient(900px 480px at 85% 4%, rgba(226, 190, 126, 0.09), transparent 60%),
    var(--bg-void);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 84px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

code, pre, .mono {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

.shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

/* ================= STICKY SINGLE-ROW COMMAND HEADER ================= */
.kp-header {
  position: sticky;
  top: 12px;
  z-index: 90;
  width: min(1320px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 10px 18px;
  border-radius: 18px;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-die {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
}

.brand-die img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-word {
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-word span {
  color: var(--cyan);
}

.brand-by {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid rgba(226, 190, 126, 0.28);
}

.kp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.kp-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 9px;
  transition: color 0.18s ease, background 0.18s ease;
}

.kp-nav a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ================= TACTILE HARDWARE BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-bevel);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
}

.btn-cyan {
  background: linear-gradient(180deg, #27f4ff 0%, #00c4db 100%);
  color: #031017;
  border-color: #67f9ff;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0, 240, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn-cyan:hover {
  background: linear-gradient(180deg, #5ff8ff 0%, #09d5ec 100%);
  box-shadow: 0 10px 32px rgba(0, 240, 255, 0.42);
}

.btn-gold {
  background: linear-gradient(180deg, #edd098 0%, #c99c4e 100%);
  color: #140e04;
  border-color: #f5dfb2;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(226, 190, 126, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #f4dca9 0%, #d8ab5b 100%);
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14.5px;
  border-radius: 12px;
}

.led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  display: inline-block;
}

.led-cyan {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.led-gold {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ================= HERO SECTION ================= */
.hero {
  padding: 54px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.038em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero h1 .grad-cyan {
  background: linear-gradient(92deg, #ffffff 0%, #7ef9ff 48%, #00d8f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 0 26px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-hardware);
}

.tel-cell {
  padding: 6px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.tel-cell:last-child {
  border-right: none;
}

.tel-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.tel-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
}

.hero-showcase-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: #05070c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 240, 255, 0.12);
}

.hero-showcase-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-hud-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(6, 9, 15, 0.84);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

/* ================= SECTION HEADERS ================= */
.sec {
  padding: 58px 0;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}

.sec-head h2 {
  font-size: clamp(27px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  margin: 6px 0 0;
}

.sec-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ================= 4-MONITOR MISSION WALL ================= */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.pod-card {
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-hardware);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.pod-card:hover, .pod-card.active {
  border-color: var(--cyan);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 240, 255, 0.16);
  transform: translateY(-2px);
}

.pod-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.pod-title {
  font-weight: 700;
  font-size: 15.5px;
}

.pod-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.pod-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.13);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.pod-screen-mini {
  background: var(--bg-well);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 12px;
  font-size: 12px;
  color: #cbd5e1;
  min-height: 112px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pod-term-line {
  color: #7ef9ff;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ================= FULL CO-PILOT GLASS COCKPIT ================= */
.cockpit-frame {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: var(--shadow-hardware);
  overflow: hidden;
}

.cockpit-bar {
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cockpit-body {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  min-height: 430px;
}

.desktop-viewport {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #050811;
  background-size: 28px 28px;
  padding: 20px;
  border-right: 1px solid var(--border-glass);
  overflow: hidden;
  user-select: none;
}

.mock-os-window {
  border-radius: 12px;
  background: rgba(13, 19, 33, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.mock-os-titlebar {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.win-dots {
  display: inline-flex;
  gap: 6px;
}

.win-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
}

.semantic-box {
  border: 1px dashed rgba(0, 240, 255, 0.65);
  background: rgba(0, 240, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
  position: relative;
  transition: background 0.2s ease;
}

.semantic-tag {
  position: absolute;
  top: -9px;
  right: 10px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #032229;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.5);
}

.ai-cursor, .human-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: left 0.75s cubic-bezier(0.22, 1, 0.36, 1), top 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.human-cursor {
  transition: left 0.05s linear, top 0.05s linear;
}

.cursor-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cyan);
  color: #021217;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.45);
}

.human-cursor .cursor-pill {
  background: var(--gold);
  color: #191104;
  box-shadow: 0 4px 14px rgba(226, 190, 126, 0.5);
}

.cockpit-sidebar {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(5, 8, 14, 0.65);
}

.terminal-box {
  background: #030509;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px;
  height: 175px;
  overflow-y: auto;
  font-size: 12px;
  color: #a5f3fc;
}

.cmd-row {
  display: flex;
  gap: 8px;
}

.cmd-input {
  flex: 1;
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid var(--border-bevel);
  background: #04070d;
  color: var(--text-main);
  padding: 0 12px;
  font-size: 16px;
}

/* Time-Travel Fork Scrubber */
.timetravel-bar {
  padding: 14px 18px;
  background: rgba(0, 240, 255, 0.04);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tt-slider {
  flex: 1;
  min-width: 180px;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* ================= COMPARISON & SDK & CALCULATOR ================= */
.bento-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.glass-card {
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-hardware);
  padding: 24px;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.comp-table th, .comp-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.comp-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.comp-highlight {
  color: var(--cyan);
  font-weight: 700;
}

.code-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.code-tab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
}

.code-tab.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.code-pre {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #04060b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 12.5px;
  overflow-x: auto;
  line-height: 1.6;
}

/* ================= PRICING CARDS ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-hardware);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.price-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.8), 0 0 38px rgba(0, 240, 255, 0.16);
  position: relative;
}

.price-big {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 8px 0 4px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: #cbd5e1;
}

/* ================= FOOTER & MODALS ================= */
.kp-footer {
  margin-top: 60px;
  padding: 44px 0 36px;
  border-top: 1px solid var(--border-glass);
  background: rgba(4, 6, 11, 0.9);
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: var(--text-main);
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 0;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: min(560px, 100%);
  border-radius: var(--radius-xl);
  background: #0b101b;
  border: 1px solid var(--border-bevel);
  box-shadow: var(--shadow-hardware);
  padding: 24px;
}

/* ================= MOBILE SUPER-APP BOTTOM DOCK ================= */
.mobile-dock {
  display: none;
}

@media (max-width: 1024px) {
  .hero-grid, .cockpit-body, .bento-2, .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kp-nav {
    display: none;
  }
  .desktop-viewport {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
}

@media (max-width: 768px) {
  .shell {
    width: calc(100% - 24px);
    max-width: 100%;
  }
  .kp-header {
    padding: 9px 12px;
  }
  .brand-by, #tour-btn, .header-actions a.btn-cyan {
    display: none;
  }
  .header-actions .btn {
    padding: 0 10px;
    font-size: 12px;
    min-height: 34px;
  }
  .telemetry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tel-cell {
    border-right: none;
    min-width: 0;
  }
  .mission-grid, .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid > *, .mission-grid > *, .cockpit-body > *, .bento-2 > *, .pricing-grid > * {
    min-width: 0;
    max-width: 100%;
  }
  pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(8, 12, 20, 0.92);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  }
  .mobile-dock a, .mobile-dock button {
    min-height: 46px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 11px;
    cursor: pointer;
  }
  .mobile-dock a.active, .mobile-dock button.highlight {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.1);
  }
}
