:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #050b14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(15, 29, 51, 0.72);
  --text: #f4f7fb;
  --muted: #b4c1d6;
  --accent: #f4b860;
  --accent-hot: #ff9d2e;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);
  --accent-border: rgba(244, 184, 96, 0.28);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  --container: 1120px;
  --radius: 0.9rem;
  --radius-sm: 0.7rem;
  --section-pad: 6rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(24, 41, 66, 0.65), transparent 42%),
    linear-gradient(180deg, #06101d 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

body.promo-body {
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section,
.page-shell,
.quote-page,
.hero,
.promo-page {
  position: relative;
  overflow: clip;
}

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section > .container,
.hero-content,
.page-shell .container {
  position: relative;
  z-index: 1;
}

.section-dark,
#builds,
#gallery,
#about,
#contact,
.quote-page {
  background:
    radial-gradient(circle at top right, rgba(244, 184, 96, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(8, 16, 29, 0.98), rgba(5, 11, 20, 0.98));
}

#contact {
  background:
    linear-gradient(135deg, rgba(255, 157, 46, 0.1), rgba(21, 39, 69, 0.3)),
    linear-gradient(180deg, rgba(12, 22, 38, 0.98), rgba(9, 18, 31, 0.98));
}

.section-art::before,
.section-art::after,
.quote-page::before,
.quote-page::after,
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.12;
}

.section-art::before {
  top: 1.5rem;
  right: -5rem;
  width: min(26vw, 18rem);
  height: min(26vw, 18rem);
  background-image: url("../images/backgrounds/Planet 1.png");
}

.section-art::after {
  left: -6rem;
  bottom: -2rem;
  width: min(28vw, 20rem);
  height: min(22vw, 14rem);
  background-image: url("../images/backgrounds/Gradient 2.png");
}

.section-art-gallery::before,
.quote-page::after {
  background-image: url("../images/backgrounds/Gradient 3_.png");
}

.section-art-builds::before,
.section-art-contact::before {
  right: auto;
  left: -5rem;
}

.section-art-builds::after,
.section-art-contact::after {
  left: auto;
  right: -4rem;
  bottom: 1rem;
  background-image: url("../images/backgrounds/Planet 1.png");
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

.hero-content h1,
.page-hero h1,
.contact-copy h2,
.section-heading h2 {
  margin-bottom: 0;
  line-height: 1.1;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy,
.page-hero p,
.card p,
.build-copy p,
.contact-copy p,
.section-heading p,
.gallery-item figcaption,
.cta-card p,
.quote-sidebar p,
.quote-section-heading p,
.quote-disclaimer,
.quote-hero-copy,
.quote-stat-label,
.sidebar-point p,
.success-card p {
  color: var(--muted);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: linear-gradient(180deg, rgba(3, 8, 16, 0.72), rgba(3, 8, 16, 0.2));
  backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 11, 20, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.hero-actions,
.quote-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-inner,
.footer-inner,
.quote-actions {
  justify-content: space-between;
}

.header-inner {
  margin-top: 0.85rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand,
.nav-toggle,
.button,
.quote-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: auto;
  height: 2.6rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.22));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-nav a,
.footer-inner a {
  color: rgba(244, 247, 251, 0.94);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-inner a:hover {
  color: #fff;
}

.site-nav .nav-cta {
  color: #111;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(244, 184, 96, 0.24);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible,
.button-primary:hover {
  color: #111;
  background: var(--accent-hot);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  aspect-ratio: 1;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero::before {
  top: 12%;
  right: -6rem;
  width: min(38vw, 28rem);
  height: min(38vw, 28rem);
  background-image: url("../images/backgrounds/Planet 1.png");
  opacity: 0.2;
}

.hero::after {
  inset: auto auto -10rem -10rem;
  width: min(60vw, 48rem);
  height: min(36vw, 24rem);
  background-image: url("../images/backgrounds/Gradient 1.png");
  opacity: 0.22;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("../images/optimized/gallery-workstation-detail.jpg") center / cover no-repeat;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(4, 10, 18, 0.22), rgba(7, 17, 31, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(255, 184, 96, 0.14), transparent 32%);
}

.hero-content {
  max-width: 69rem;
  padding-block: 8rem 4rem;
}

.hero-content h1 {
  max-width: 28ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.35rem, 5.8vw, 4.5rem);
}

.hero-copy,
.page-hero p {
  max-width: 42rem;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #111;
  background: var(--accent);
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.feature-grid,
.gallery-grid,
.contact-layout,
.build-list,
.quote-layout,
.option-grid,
.quote-hero-grid,
.quote-hero-panel,
.sidebar-points,
.quote-form,
.field-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.build-list,
.option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.contact-layout,
.quote-layout,
.quote-hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.field-grid,
.field-grid-double {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.build-card,
.gallery-item,
.cta-card,
.quote-sidebar,
.quote-form,
.option-tile,
.quote-hero-panel,
.quote-stat-card,
.success-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card,
.cta-card,
.quote-sidebar,
.success-card {
  padding: 1.75rem;
}

.build-card,
.gallery-item,
.card,
.cta-card {
  backdrop-filter: blur(8px);
}

.build-card,
.gallery-item {
  overflow: hidden;
}

.build-card img,
.gallery-item img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.build-card img {
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  aspect-ratio: 1 / 1;
}

.build-copy,
.gallery-item figcaption {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.build-copy {
  padding: 1.5rem;
}

.gallery-item figcaption {
  padding: 1rem 1.1rem 1.2rem;
}

.contact-copy {
  padding-right: 2rem;
}

.contact-details {
  margin-top: 1.5rem;
}

.contact-details a {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.cta-card {
  align-self: stretch;
}

.page-shell {
  padding-block: 7rem 4rem;
}

.quote-page {
  min-height: 100vh;
}

.quote-page::before {
  top: 3rem;
  right: -8rem;
  width: min(40vw, 30rem);
  height: min(40vw, 30rem);
  background-image: url("../images/backgrounds/Planet 1.png");
}

.quote-page::after {
  left: -10rem;
  bottom: -8rem;
  width: min(52vw, 42rem);
  height: min(34vw, 26rem);
}

.quote-hero {
  margin-bottom: 2.5rem;
}

.quote-hero-grid {
  align-items: end;
}

.quote-hero-panel,
.quote-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
}

.quote-hero-panel {
  grid-template-columns: 1fr;
  padding: 1rem;
}

.quote-stat-card,
.quote-form {
  padding: 1rem 1.1rem;
}

.quote-stat-value {
  display: block;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
}

.quote-stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

.quote-form {
  padding: 1.1rem;
}

.quote-section {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background: rgba(6, 14, 25, 0.45);
}

.quote-section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.quote-section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.quote-section-heading p {
  margin-bottom: 0;
}

.quote-section-index {
  width: 2.4rem;
  aspect-ratio: 1;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(244, 184, 96, 0.12);
  font-weight: 700;
}

.option-tile {
  position: relative;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  padding: 1rem 1rem 1rem 3.2rem;
  background: linear-gradient(180deg, rgba(21, 39, 69, 0.6), rgba(10, 19, 33, 0.6));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.option-tile:hover {
  border-color: rgba(244, 184, 96, 0.24);
  transform: translateY(-1px);
}

.option-tile input {
  position: absolute;
  top: 50%;
  left: 1rem;
  margin: 0;
  accent-color: var(--accent);
  transform: translateY(-50%);
}

.option-tile span,
.input-stack label {
  font-weight: 500;
}

.input-stack label {
  display: block;
  margin-bottom: 0.45rem;
}

.input-stack input,
.input-stack textarea,
.input-stack select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(5, 11, 20, 0.55);
}

.input-stack textarea {
  resize: vertical;
}

.input-stack input:focus,
.input-stack textarea:focus,
.input-stack select:focus {
  border-color: rgba(244, 184, 96, 0.8);
  outline: 2px solid rgba(244, 184, 96, 0.35);
}

.quote-contact-section .field-grid {
  align-items: end;
}

.quote-actions {
  padding: 0.5rem 0.35rem 0;
}

.quote-disclaimer {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.quote-sidebar {
  position: sticky;
  top: 6.5rem;
  background: linear-gradient(180deg, rgba(25, 49, 88, 0.7), rgba(10, 19, 33, 0.88));
}

.sidebar-points {
  margin-top: 1.5rem;
}

.sidebar-point {
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-point:first-child {
  padding-top: 0;
  border-top: 0;
}

.sidebar-point strong {
  display: block;
  margin-bottom: 0.25rem;
}

.promo-page,
.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.promo-page {
  padding: 7.5rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(5, 11, 20, 0.42), rgba(5, 11, 20, 0.66)),
    radial-gradient(circle at 60% 45%, rgba(5, 11, 20, 0.02), rgba(5, 11, 20, 0.2) 54%, rgba(5, 11, 20, 0.48)),
    url("../images/optimized/promo-expedition-bg.jpg") center / cover no-repeat,
    var(--bg);
}

.promo-content,
.success-card {
  max-width: 48rem;
  text-align: center;
}

.promo-content h1 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.05;
}

.promo-content p:not(.eyebrow) {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.promo-content .button {
  margin-top: 2rem;
}

.success-page {
  padding: 1.5rem;
}

.success-card {
  width: min(100%, 34rem);
  background: rgba(255, 255, 255, 0.05);
}

.success-card h1 {
  margin-bottom: 1rem;
  line-height: 1.1;
}

.success-card p {
  margin-bottom: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner {
  padding-block: 1.5rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .feature-grid,
  .build-list,
  .contact-layout,
  .quote-layout,
  .quote-hero-grid,
  .field-grid,
  .field-grid-double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-copy {
    padding-right: 0;
  }

  .quote-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad: 4.5rem;
  }

  .footer-inner,
  .quote-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .build-list,
  .contact-layout,
  .quote-layout,
  .quote-hero-grid,
  .option-grid,
  .field-grid,
  .field-grid-double {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    margin-top: 0.65rem;
    padding: 0.9rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    max-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding-top 0.2s ease;
  }

  .site-header.is-nav-open .site-nav {
    max-height: 18rem;
    padding-top: 0.5rem;
    opacity: 1;
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(0.45rem) rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-0.45rem) rotate(-45deg);
  }

  .site-nav a {
    width: 100%;
  }

  .brand-logo {
    height: 2.2rem;
  }

  .hero-content,
  .page-shell {
    padding-top: 9rem;
  }

  body.promo-body {
    overflow: auto;
  }

  .promo-page {
    min-height: 100svh;
    padding-top: 13rem;
  }

  .quote-sidebar {
    position: static;
  }

  .section-art::before,
  .section-art::after,
  .hero::before,
  .hero::after,
  .quote-page::before,
  .quote-page::after {
    opacity: 0.1;
  }
}
