:root {
  color-scheme: dark;
  --bg-top: #1c160a;
  --bg-bottom: #090805;
  --surface: rgba(210, 149, 0, 0.06);
  --surface-strong: rgba(210, 149, 0, 0.13);
  --border: #a1761b;
  --border-subtle: rgba(210, 149, 0, 0.34);
  --text: #faf6eb;
  --muted: #d6c8a8;
  --brand: #d29500;
  --accent: #f0b429;
  --accent-hover: #f7ca57;
  --accent-ink: #090805;
  --badge-bg: rgba(210, 149, 0, 0.16);
  --ok-bg: rgba(16, 185, 129, 0.16);
  --ok-border: #34d399;
  --ok-text: #a7f3d0;
  --radius-card: 16px;
  --radius-pill: 999px;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  accent-color: var(--accent);
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

:where(a:any-link, button, input, select, textarea, summary, [tabindex="-1"], .carousel-track):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 8px;
}

.container {
  width: min(1080px, 100%);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 8, 5, 0.84);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-block-size: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-strong);
}

main {
  flex: 1;
}

main.container,
.main-sections {
  padding-block: 2.75rem 3.5rem;
}

.hero {
  position: relative;
  width: 100%;
  min-height: clamp(290px, 32vw, 430px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-bottom);
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 8, 5, 0.86) 0%, rgba(9, 8, 5, 0.72) 48%, rgba(9, 8, 5, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 2.75rem;
}

.hero-content h1 {
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78);
  max-width: 24ch;
}

.hero-content .lead {
  color: #efe6cf;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
  max-width: 60ch;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--badge-bg);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 68ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--border);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(210, 149, 0, 0.2);
}

.btn-logo {
  background: #0d0c08;
  border-color: var(--accent);
  padding: 0.55rem 1.15rem;
}

.btn-logo:hover {
  background: #1a160c;
  border-color: var(--accent-hover);
}

.ct-btn-logo {
  display: block;
  width: 174px;
  height: 30px;
  object-fit: contain;
}

.yt-icon {
  width: 22px;
  height: 16px;
  flex-shrink: 0;
}

.section-block {
  margin-bottom: 2.75rem;
}

.section-heading {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 1.35rem;
  max-width: 72ch;
}

.cards-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.25rem;
}

.cards-grid-featured {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  margin-bottom: 1.25rem;
}

.flagship-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
  gap: 1.75rem;
  align-items: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.flagship-media {
  min-width: 0;
}

.flagship-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.flagship-body p {
  color: var(--muted);
  font-size: 0.98rem;
}

.flagship-body .cta-row {
  margin-top: 0.35rem;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ext-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  background: rgba(210, 149, 0, 0.08);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.cws-link {
  gap: 0.55rem;
}

.cws-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.card-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.carousel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.carousel-stage {
  position: relative;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.5rem;
  pointer-events: none;
}

.carousel-controls[hidden],
.carousel-markers[hidden] {
  display: none;
}

.carousel-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: rgba(9, 8, 5, 0.88);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cards-grid-upcoming .carousel-btn {
  width: 34px;
  height: 34px;
}

.carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  scrollbar-width: none;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #090805;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel-track {
    scroll-behavior: smooth;
  }
}

.carousel-track > * {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.carousel-track > :first-child {
  order: clamp(0, var(--current) - (var(--children-count, sibling-count()) - 3), 1);
}

.carousel-track > :last-child {
  order: calc(-1 * clamp(0, 2 - var(--current), 1));
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.carousel-ext .carousel-slide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #090805;
}

.carousel-markers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.carousel-markers button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 7px solid transparent;
  border-radius: 999px;
  background: var(--muted);
  background-clip: padding-box;
  cursor: pointer;
  touch-action: manipulation;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.carousel-markers button[aria-current="true"] {
  width: 38px;
  background: var(--accent);
  background-clip: padding-box;
}

@media (max-width: 860px) {
  .hero-scrim {
    background: rgba(9, 8, 5, 0.74);
  }

  .hero-content {
    padding-block: 2rem;
  }

  .flagship-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prose-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.prose-card p,
.prose-card li {
  color: var(--muted);
}

.prose-card ul {
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.survey-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.survey-fieldset legend {
  padding-inline: 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-block-size: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(210, 149, 0, 0.04);
  cursor: pointer;
}

.radio-option:hover {
  background: var(--surface-strong);
}

.radio-option input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-wrap label {
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

textarea {
  width: 100%;
  min-height: 110px;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: rgba(9, 8, 5, 0.82);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.status-panel {
  border: 1px solid var(--ok-border);
  background: var(--ok-bg);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.status-panel[hidden] {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 1.5rem;
  background: rgba(9, 8, 5, 0.84);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-address {
  font-size: 0.84rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

@supports not (accent-color: #f0b429) {
  .radio-option input[type="radio"] {
    position: absolute;
    clip-path: inset(50%);
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
  }

  .radio-option {
    position: relative;
    padding-left: 2.5rem;
  }

  .radio-option span::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-bottom);
  }

  .radio-option input[type="radio"]:focus-visible + span::before {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
  }

  .radio-option input[type="radio"]:checked + span::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 3px var(--bg-bottom);
  }
}

@media (forced-colors: active) {
  .hero {
    border-bottom: 2px solid CanvasText;
    background: Canvas;
  }

  .hero-scrim {
    display: none;
  }

  .hero-content {
    background: Canvas;
    color: CanvasText;
    border: 2px solid CanvasText;
    border-radius: 12px;
    padding: 1.5rem;
    margin-block: 1.5rem;
  }

  .hero-content h1,
  .hero-content .lead {
    color: CanvasText;
    text-shadow: none;
  }

  .flagship-card,
  .card,
  .prose-card,
  .survey-fieldset,
  .radio-option,
  .status-panel,
  .carousel-track,
  .carousel-btn,
  .btn,
  textarea {
    border: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .btn-primary,
  .btn-logo {
    border-color: Highlight;
  }

  .carousel-markers button {
    background: ButtonText;
    background-clip: padding-box;
  }

  .carousel-markers button[aria-current="true"] {
    width: 38px;
    background: Highlight;
    background-clip: padding-box;
  }

  a {
    color: LinkText;
  }

  :where(a:any-link, button, input, select, textarea, summary, [tabindex="-1"], .carousel-track):focus-visible {
    outline: 3px solid Highlight;
  }
}
