:root {
  --ground: #070a12;
  --panel: rgba(15, 21, 34, 0.76);
  --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;
  --pink: #ff2d95;
  --orange: #ff9f1c;
  --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;
  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, #070a12, #05070d 74%);
}

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

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.32;
  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,
.eyebrow,
.section-label,
.signal-k,
.btn,
.nav-cta,
.mobile-start,
.project-tab,
.project-status,
.project-specs,
.download-card span,
.feature-icon {
  font-family: var(--mono);
  letter-spacing: 0;
}

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

.brandword 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,
.mobile-start {
  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-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.14), rgba(7, 10, 18, 0.74) 62%, rgba(7, 10, 18, 0.3)),
    url("assets/remington-hero-field.png") center / cover no-repeat;
  opacity: 1;
}

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

.eyebrow,
.section-label,
.signal-k,
.project-status {
  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);
}

.hero-title {
  display: inline-grid;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  margin-bottom: 22px;
}

.hero-title span {
  display: block;
}

.hero-title span + span {
  justify-self: end;
  font-size: 0.52em;
  color: var(--cyan);
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.42);
}

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

h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

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

.hero-actions,
.project-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.ghost {
  border-color: rgba(0, 240, 255, 0.42);
  background: rgba(0, 240, 255, 0.06);
  color: #bdf8fd;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.56;
}

.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,
.section-head p,
.feature-card p,
.download-card p,
.project-copy p,
.downloads-panel > p {
  color: var(--muted);
}

.section {
  padding: 92px 0 0;
}

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

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

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

.project-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.project-tab {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(15, 21, 34, 0.58);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.project-tab span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tab-color, var(--cyan)) 45%, transparent);
  border-radius: var(--radius);
  color: var(--tab-color, var(--cyan));
  background: color-mix(in srgb, var(--tab-color, var(--cyan)) 12%, transparent);
  flex: none;
}

.project-tab strong {
  font-size: 15px;
  text-transform: uppercase;
}

.project-tab:hover,
.project-tab.active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--tab-color, var(--cyan)) 58%, var(--edge));
  box-shadow: 0 0 22px color-mix(in srgb, var(--tab-color, var(--cyan)) 12%, transparent);
}

.project-tab[data-project="starboard"] { --tab-color: var(--cyan); }
.project-tab[data-project="panelz"] { --tab-color: var(--violet); }
.project-tab[data-project="remsound"] { --tab-color: var(--green); }

.project-console {
  --project-color: var(--cyan);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--project-color) 44%, var(--edge));
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 21, 34, 0.82), rgba(7, 10, 18, 0.78));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 32px color-mix(in srgb, var(--project-color) 10%, transparent);
}

.project-copy {
  min-width: 0;
}

.project-copy h3 {
  margin-bottom: 14px;
}

.project-copy > p {
  font-size: 17px;
}

.project-actions {
  margin: 22px 0;
}

.project-specs {
  display: grid;
  gap: 8px;
}

.project-specs span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(7, 10, 18, 0.4);
  font-size: 12px;
  text-transform: uppercase;
}

.project-preview {
  min-width: 0;
  margin: 0;
}

.project-preview img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

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

.feature-card,
.download-card {
  min-height: 224px;
  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.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-card:hover,
.download-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--cyan)) 54%, var(--edge));
  box-shadow: 0 0 24px color-mix(in srgb, var(--card-color, var(--cyan)) 12%, transparent);
}

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

.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.download-card {
  min-height: 184px;
  display: block;
}

.download-card:nth-child(1) { --card-color: var(--cyan); }
.download-card:nth-child(2) { --card-color: var(--green); }
.download-card:nth-child(3) { --card-color: var(--violet); }
.download-card.muted {
  opacity: 0.82;
}

.downloads-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));
}

.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);
}

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

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

  .project-console {
    grid-template-columns: 1fr;
  }
}

@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: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 10px;
    right: auto;
    left: min(284px, calc(100vw - 106px));
    z-index: 80;
    padding: 0 12px;
    border-radius: var(--radius);
    font-weight: 800;
    text-transform: uppercase;
  }

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

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(7, 10, 18, 0.84), rgba(7, 10, 18, 0.78)),
      url("assets/remington-hero-field.png") right center / cover no-repeat;
    opacity: 0.52;
  }

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

  .hero-sub {
    width: min(340px, 100%);
    font-size: 16px;
  }

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

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

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

  h1 {
    font-size: 42px;
  }

  .hero-title {
    gap: 2px;
    margin-bottom: 20px;
  }

  .hero-title span + span {
    justify-self: start;
    margin-left: 58px;
  }

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 28px;
  }

  .signal-grid,
  .feature-grid,
  .download-grid,
  .project-tabs {
    grid-template-columns: 1fr;
  }

  .project-console,
  .downloads-panel {
    padding: 20px;
  }

  .project-preview img {
    max-height: 320px;
  }

  .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;
  }
}
