:root {
  --ground: #070a12;
  --ground-2: #0a0e18;
  --panel: rgba(15, 21, 34, 0.74);
  --panel-solid: #0f1522;
  --panel-2: #141c2d;
  --edge: #1d2a41;
  --edge-soft: rgba(120, 160, 220, 0.14);
  --ink: #eaf1fb;
  --muted: #8fa0b8;
  --dim: #5b6b84;
  --cyan: #00f0ff;
  --violet: #b388ff;
  --amber: #ffd24d;
  --green: #3dd68c;
  --red: #ff4d5e;
  --pink: #ff2d95;
  --orange: #ff9f1c;
  --teal: #2bb3a3;
  --accent: var(--cyan);
  --body: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", Consolas, ui-monospace, monospace;
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(145deg, rgba(0, 240, 255, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(255, 45, 149, 0.07), transparent 38%),
    linear-gradient(180deg, var(--ground), #05070d 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.field-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(120, 160, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--edge);
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(16px) saturate(1.25);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
}

.brandmark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
  background: conic-gradient(from 210deg, var(--cyan), var(--violet), var(--pink), var(--cyan));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
  mask: radial-gradient(circle at center, transparent 0 28%, black 30%);
  -webkit-mask: radial-gradient(circle at center, transparent 0 28%, black 30%);
}

.brandmark.small {
  width: 24px;
  height: 24px;
}

.brandword,
.deck-brand,
.section-label,
.eyebrow,
.signal-k,
.deck-eyebrow,
.deck-clock,
.btn,
.nav-cta,
.space-tab,
.deck-edit,
.deck-head-btn,
.start-grid span {
  font-family: var(--mono);
  letter-spacing: 0;
}

.brandword,
.deck-brand {
  font-weight: 800;
  text-transform: uppercase;
}

.brandword span,
.deck-brand span span {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

.nav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 14px;
}

.nav nav a:hover {
  color: var(--ink);
  background: rgba(20, 28, 45, 0.76);
}

.nav-cta {
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #c8fbff !important;
  background: rgba(0, 240, 255, 0.08);
}

.mobile-start {
  display: none;
}

.hero {
  position: relative;
  min-height: 82svh;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--edge-soft);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.55), transparent);
}

.hero-preview {
  position: absolute;
  right: max(-90px, calc((100vw - 1120px) / 2 - 130px));
  bottom: 24px;
  width: min(660px, 54vw);
  max-height: 72svh;
  object-fit: contain;
  opacity: 0.78;
  filter: drop-shadow(0 34px 80px rgba(0, 0, 0, 0.62));
  z-index: -1;
}

.hero-inner {
  min-height: 82svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 68px 0 42px;
}

.eyebrow,
.section-label,
.deck-eyebrow,
.signal-k {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 18px;
  font-size: 64px;
  line-height: 1;
  font-weight: 780;
  text-shadow: 0 0 34px rgba(0, 240, 255, 0.24);
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.14;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.hero-sub {
  width: min(540px, 100%);
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  border-color: rgba(61, 214, 140, 0.58);
  background: rgba(61, 214, 140, 0.1);
  color: #c9f3dd;
  box-shadow: 0 0 18px rgba(61, 214, 140, 0.12);
}

.btn.primary:hover {
  box-shadow: 0 0 28px rgba(61, 214, 140, 0.26);
}

.btn.ghost {
  border-color: rgba(0, 240, 255, 0.42);
  background: rgba(0, 240, 255, 0.06);
  color: #bdf8fd;
}

.btn.ghost:hover {
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.22);
}

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

.hero-chips span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 21, 34, 0.62);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}

.signal-band {
  border-bottom: 1px solid var(--edge-soft);
  background: rgba(7, 10, 18, 0.5);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-left: 1px solid var(--edge-soft);
  border-right: 1px solid var(--edge-soft);
  background: var(--edge-soft);
}

.signal-grid article {
  min-height: 168px;
  padding: 26px 24px;
  background: linear-gradient(180deg, rgba(15, 21, 34, 0.78), rgba(10, 14, 24, 0.82));
}

.signal-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.signal-grid p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 92px 0 0;
}

.section-head {
  width: min(760px, 100%);
  margin-bottom: 30px;
}

.section-head p,
.privacy-section p,
.start-panel > p,
.privacy-copy p {
  color: var(--muted);
}

.deck-shell {
  --demo-accent: var(--cyan);
  display: grid;
  grid-template-columns: 246px 1fr;
  min-height: 620px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(8, 12, 21, 0.86);
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.46), 0 0 32px color-mix(in srgb, var(--demo-accent) 12%, transparent);
}

.deck-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 14px;
  border-right: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.9), rgba(10, 14, 23, 0.92));
}

.deck-brand {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-size: 14px;
}

.space-tabs {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.space-tab {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.space-tab span {
  width: 26px;
  text-align: center;
  font-size: 20px;
}

.space-tab:hover,
.space-tab.active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--demo-accent) 42%, transparent);
  background: color-mix(in srgb, var(--demo-accent) 10%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--demo-accent) 14%, transparent);
}

.deck-edit {
  min-height: 52px;
  margin-top: auto;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
}

.deck-edit:hover {
  border-color: var(--demo-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--demo-accent) 20%, transparent);
}

.deck-clock {
  text-align: center;
  color: var(--dim);
  text-transform: uppercase;
}

.deck-clock strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  text-shadow: 0 0 20px color-mix(in srgb, var(--demo-accent) 34%, transparent);
}

.deck-clock span {
  font-size: 10px;
}

.deck-main {
  min-width: 0;
  padding: 30px 30px 42px;
}

.deck-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-eyebrow::after,
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, currentColor 44%, transparent), transparent);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
}

.deck-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.deck-title-row h3 {
  flex: 1;
  font-size: 30px;
}

.deck-head-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(15, 21, 34, 0.76);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
}

.deck-head-btn:hover {
  color: var(--ink);
  border-color: var(--demo-accent);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: 14px;
}

.grid-heading,
.grid-note {
  grid-column: 1 / -1;
}

.grid-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--demo-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.grid-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--demo-accent) 44%, transparent), transparent);
}

.grid-note {
  padding: 16px 18px;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: rgba(15, 21, 34, 0.7);
  color: var(--muted);
}

.command-tile {
  position: relative;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--tile-color) 32%, var(--edge));
  border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tile-color) 10%, var(--panel-solid)), var(--panel-solid) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 26px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.command-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tile-color) 68%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px rgba(0, 0, 0, 0.45), 0 0 24px color-mix(in srgb, var(--tile-color) 20%, transparent);
}

.command-tile::before,
.command-tile::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.18s ease;
  border: 0 solid color-mix(in srgb, var(--tile-color) 74%, transparent);
}

.command-tile::before {
  top: 7px;
  left: 7px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.command-tile::after {
  right: 7px;
  bottom: 7px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.command-tile:hover::before,
.command-tile:hover::after {
  opacity: 1;
}

.command-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tile-color) 38%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--tile-color) 15%, transparent);
  font-size: 23px;
}

.command-title {
  margin-top: auto;
  font-weight: 700;
  font-size: 17px;
}

.command-sub {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 236px;
  padding: 24px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 21, 34, 0.8), rgba(10, 14, 24, 0.74));
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--card-color) 54%, var(--edge));
  box-shadow: 0 0 24px color-mix(in srgb, var(--card-color) 12%, transparent);
}

.feature-card.cyan { --card-color: var(--cyan); }
.feature-card.violet { --card-color: var(--violet); }
.feature-card.green { --card-color: var(--green); }
.feature-card.amber { --card-color: var(--amber); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--card-color) 45%, transparent);
  border-radius: var(--radius);
  color: var(--card-color);
  background: color-mix(in srgb, var(--card-color) 12%, transparent);
}

.feature-card p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: center;
}

.privacy-panel {
  display: grid;
  gap: 1px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--edge);
}

.privacy-panel div {
  position: relative;
  padding: 18px 18px 18px 44px;
  background: rgba(15, 21, 34, 0.82);
}

.privacy-panel span {
  position: absolute;
  top: 24px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.privacy-panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.privacy-actions {
  margin-top: 24px;
}

.start-panel {
  padding: 46px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.06), rgba(15, 21, 34, 0.72));
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.start-grid article {
  min-height: 172px;
  padding: 22px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.46);
}

.start-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius);
  color: var(--cyan);
  font-weight: 800;
}

.start-grid p {
  color: var(--muted);
}

.site-footer {
  margin-top: 92px;
  border-top: 1px solid var(--edge);
  color: var(--dim);
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  pointer-events: none;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

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

.page-hero {
  padding: 92px 0 36px;
  border-bottom: 1px solid var(--edge-soft);
}

.page-hero h1 {
  max-width: 820px;
  font-size: 48px;
  line-height: 1.08;
}

.privacy-copy {
  display: grid;
  gap: 22px;
  max-width: 820px;
}

.privacy-copy article {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--edge-soft);
}

.privacy-copy h2 {
  font-size: 25px;
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 52px;
  }

  .hero-preview {
    width: min(560px, 72vw);
    right: -190px;
    opacity: 0.52;
  }

  .signal-grid,
  .feature-grid,
  .start-grid {
    grid-template-columns: 1fr 1fr;
  }

  .deck-shell,
  .split {
    grid-template-columns: 1fr;
  }

  .deck-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--edge);
  }

  .space-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .space-tab {
    justify-content: center;
    padding: 0 8px;
  }

  .deck-clock {
    display: none;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 64px;
    justify-content: space-between;
    position: relative;
  }

  .brandword {
    font-size: 13px;
    white-space: nowrap;
  }

  .nav nav a:not(.nav-cta) {
    display: none;
  }

  .nav nav {
    flex: none;
    margin-left: 0;
  }

  .nav-cta {
    display: none !important;
  }

  .mobile-start {
    min-height: 44px;
    min-width: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 10px;
    right: auto;
    left: min(264px, calc(100vw - 126px));
    z-index: 80;
    padding: 0 12px;
    border: 1px solid rgba(0, 240, 255, 0.45);
    border-radius: var(--radius);
    background: rgba(0, 240, 255, 0.08);
    color: #c8fbff;
    font-family: var(--mono);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .hero,
  .hero-inner {
    min-height: 76svh;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(7, 10, 18, 0.08), rgba(7, 10, 18, 0.72)),
      url("assets/starboard-preview.png") right -250px bottom 12px / 430px auto no-repeat;
  }

  .hero-inner {
    padding-top: 46px;
  }

  .hero-preview {
    display: none;
  }

  .hero-sub {
    width: min(330px, 100%);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 330px;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 12px;
  }

  .hero-chips {
    max-width: 330px;
  }

  h1,
  .page-hero h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .signal-grid,
  .feature-grid,
  .start-grid {
    grid-template-columns: 1fr;
  }

  .deck-main {
    padding: 24px 16px 30px;
  }

  .deck-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .deck-title-row h3 {
    font-size: 25px;
  }

  .space-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .space-tab {
    min-height: 48px;
  }

  .start-panel {
    padding: 28px 18px;
  }

  .footer-inner,
  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
