/* Project Nova — immersive cyberpunk command-center marketing UI */

:root {
  --bg: #10141a;
  --bg-deep: #0a0e14;
  --surface: rgba(18, 24, 32, 0.78);
  --surface-2: #141a22;
  --text: #dfe2eb;
  --muted: #9aa8b5;
  --faint: #5a6a78;
  --cyan: #00f2ff;
  --cyan-dim: rgba(0, 242, 255, 0.12);
  --cyan-line: rgba(0, 242, 255, 0.32);
  --cyan-glow: rgba(0, 242, 255, 0.22);
  --green: #00e383;
  --green-dim: rgba(0, 227, 131, 0.14);
  --amber: #ffb347;
  --amber-dim: rgba(255, 179, 71, 0.14);
  --pink: #ff6b9d;
  --border: rgba(255, 255, 255, 0.08);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --rail: 220px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--mono);
}

.cyan {
  color: var(--cyan);
}

.dim {
  color: var(--faint);
}

.ok {
  color: var(--green);
}

.label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Background grid — static (no infinite drift; keeps cyber look, cheaper paint) */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(to right, rgba(0, 242, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  will-change: auto;
  contain: strict;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 4px,
    rgba(0, 242, 255, 0.12) 4px,
    rgba(0, 242, 255, 0.12) 5px
  );
  contain: strict;
}

/* Shell */
.os-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  min-height: 100vh;
}

/* Left rail */
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(10, 14, 20, 0.95);
  border-right: 1px solid var(--cyan-line);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 24px;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
}

.dna-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-dim);
  display: grid;
  place-items: center;
}

.rail-title {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.rail-ver {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rail-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.rail-nav a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-left-color: var(--cyan);
  box-shadow: inset 0 0 20px rgba(0, 242, 255, 0.06);
}

.nav-ico {
  font-size: 0.75rem;
  opacity: 0.8;
  width: 1rem;
  text-align: center;
}

.rail-foot {
  display: grid;
  gap: 10px;
}

.rail-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.rail-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--cyan-line);
  padding: 10px;
  border-radius: 6px;
  transition: background 0.15s, box-shadow 0.15s;
}

.rail-cta:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* Command surface */
.command {
  background: linear-gradient(180deg, rgba(16, 20, 26, 0.92), rgba(10, 14, 20, 0.98));
  min-width: 0;
}

.hud-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: rgba(10, 14, 20, 0.96);
  border-bottom: 1px solid var(--border);
}

.hud-left,
.hud-right {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.offer-hud {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-dim);
  border-radius: 6px;
}

.offer-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.offer-text {
  display: flex;
  gap: 8px;
}

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--mono);
}

.tick b {
  color: var(--text);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  min-width: 1.4em;
  text-align: center;
}

.tick i {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--faint);
}

.offer-price {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 20px;
  padding: 36px 28px 20px;
  align-items: stretch;
}

.hero-main {
  padding: 12px 8px 8px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 14px 0 12px;
}

.hero h1 span {
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(0, 242, 255, 0.25);
}

.tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.hero-sub {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 24px;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chips span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-side {
  display: grid;
  gap: 12px;
}

.panel {
  background: rgba(18, 24, 32, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.health-panel,
.log-panel {
  border-color: var(--cyan-line);
  box-shadow: 0 0 24px rgba(0, 242, 255, 0.05);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.meter {
  margin-bottom: 10px;
}

.meter-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.meter-row span:last-child {
  color: var(--cyan);
}

.bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 242, 255, 0.4));
  box-shadow: 0 0 8px var(--cyan-glow);
}

.event-log {
  list-style: none;
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.event-log li {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.35;
  border-left: 2px solid var(--cyan-line);
  padding-left: 10px;
}

.event-log time {
  display: block;
  color: var(--cyan);
  font-size: 0.68rem;
  margin-bottom: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-glow {
  background: var(--cyan);
  color: #00363a;
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.28);
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 242, 255, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-line);
}

.btn-ghost:hover {
  background: var(--cyan-dim);
}

.btn-block {
  width: 100%;
}

/* Framed viewport */
.viewport-block {
  padding: 8px 28px 28px;
}

.viewport-frame {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--cyan-line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 242, 255, 0.06);
}

.viewport-frame.sm {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.frame-corners {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.frame-corners::before,
.frame-corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--cyan);
  border-style: solid;
}

.frame-corners::before {
  top: 6px;
  left: 6px;
  border-width: 2px 0 0 2px;
}

.frame-corners::after {
  top: 6px;
  right: 6px;
  border-width: 2px 2px 0 0;
}

.viewport-frame::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-style: solid;
  border-color: var(--cyan);
  border-width: 0 2px 2px 0;
  z-index: 2;
  pointer-events: none;
}

.viewport-frame::before {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-style: solid;
  border-color: var(--cyan);
  border-width: 0 0 2px 2px;
  z-index: 2;
  pointer-events: none;
}

.viewport-chrome {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(10, 14, 20, 0.92);
  border-bottom: 1px solid var(--border);
}

/* Sections */
.section {
  padding: 48px 28px;
  border-top: 1px solid var(--border);
}

.sec-head {
  max-width: 560px;
  margin-bottom: 28px;
}

.sec-head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}

.sec-head p:last-child {
  color: var(--muted);
}

/* Module cards */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.mod-card {
  background: rgba(18, 24, 32, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

.mod-card:hover {
  border-color: var(--cyan-line);
  box-shadow: 0 0 22px rgba(0, 242, 255, 0.1);
  transform: translateY(-2px);
}

.mod-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

.tag-live {
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(255, 179, 71, 0.3);
}

.tag-ok {
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0, 227, 131, 0.3);
}

.tag-demo {
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-line);
}

.tag-soon {
  color: var(--faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.mod-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mod-card p {
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 2.6em;
}

.mod-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* Feeds */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Constraints */
.constraint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.constraint-grid .panel {
  border-color: var(--border);
}

.constraint-grid strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.constraint-grid span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.price-card {
  position: relative;
  background: rgba(18, 24, 32, 0.94);
  border: 1px solid var(--cyan-line);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 0 32px rgba(0, 242, 255, 0.06);
}

.price-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: var(--cyan);
  color: #00363a;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.price-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.price-amt {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1;
}

.price-amt .cur {
  font-size: 1rem;
  color: var(--muted);
  margin-right: 4px;
}

.price-amt .per {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.price-card li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.note-panel {
  display: grid;
  gap: 10px;
  border-color: var(--cyan-line);
}

.note-panel p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Deploy steps — 2x2 wide cards (not skinny stacked columns) */
.deploy-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.deploy-steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-width: 0;
}

.deploy-steps li > div {
  width: 100%;
}

.step-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.85;
  letter-spacing: 0.04em;
}

.deploy-steps h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.deploy-steps p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: none;
  width: 100%;
}

@media (max-width: 700px) {
  .deploy-steps {
    grid-template-columns: 1fr;
  }
}

/* Early bird callout inside pricing section */
.early-bird-banner {
  margin-bottom: 16px;
  border-color: var(--cyan-line);
  background: var(--cyan-dim);
  text-align: center;
  padding: 16px 20px;
}

.early-bird-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.early-bird-banner > p:last-child {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

/* Download */
.download-panel {
  text-align: center;
  padding: 44px 28px;
  border-color: var(--cyan-line);
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.08);
}

.download-panel h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 12px 0 8px;
}

.download-panel > p {
  color: var(--muted);
  margin-bottom: 22px;
}

.dl-smartscreen-note {
  max-width: 36rem;
  margin: 0 auto 22px !important;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 36px 28px 48px;
  text-align: center;
}

.site-foot .mono {
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.site-foot > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.foot-links a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot-links a:hover {
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .os-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid var(--cyan-line);
  }

  .rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 100%;
    gap: 4px;
  }

  .rail-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .rail-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--cyan);
  }

  .rail-foot {
    flex-direction: row;
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .feed-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .hud-right {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero,
  .section,
  .viewport-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .offer-price {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot {
    animation: none;
  }
}

/* Below-fold sections: skip layout/paint until near viewport */
.section,
.feed-grid,
.viewport-block {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
