:root {
  color-scheme: dark;
  --bg: #020617;
  --surface: rgba(15, 23, 42, 0.82);
  --surface-strong: #111a2e;
  --surface-soft: rgba(30, 41, 59, 0.54);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(129, 140, 248, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #818cf8;
  --accent-bright: #a5b4fc;
  --cyan: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -10%, rgba(129, 140, 248, 0.2), transparent 34rem),
    radial-gradient(circle at 95% 65%, rgba(34, 211, 238, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

body.red-tees-page {
  --accent: #fb575d;
  --accent-bright: #ff8b8f;
  --cyan: #fb7185;
  background:
    radial-gradient(circle at 18% -10%, rgba(251, 87, 93, 0.22), transparent 34rem),
    radial-gradient(circle at 95% 65%, rgba(197, 53, 62, 0.13), transparent 34rem),
    #0a0303;
}

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

a:hover {
  color: white;
}

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

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: var(--radius-sm);
  background: white;
  color: #0f172a;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(22px);
}

.nav-shell,
.page-shell,
.footer-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand span,
.gradient-text {
  background: linear-gradient(135deg, var(--accent-bright), var(--cyan));
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: white;
}

.page-shell {
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.hero-grid,
.content-grid,
.portal-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: start;
}

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

.home-section + .home-section {
  margin-top: clamp(4rem, 9vw, 8rem);
}

.home-product-visual {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle, rgba(129, 140, 248, 0.2), transparent 55%),
    var(--surface-soft);
  box-shadow: var(--shadow);
}

.app-icon {
  width: min(72%, 290px);
  height: auto;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.48));
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.project-card p {
  flex: 1;
}

.project-thumb,
.project-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  object-fit: cover;
}

.project-placeholder {
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.38);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent-bright);
  padding: 0.35rem 0.7rem;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
  box-shadow: 0 0 14px currentColor;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: white;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.lede {
  max-width: 62ch;
  margin: 0 0 1.5rem;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

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

.small {
  font-size: 0.85rem;
}

.tiny {
  font-size: 0.75rem;
}

.stack > * + * {
  margin-top: 1rem;
}

.stack-lg > * + * {
  margin-top: 1.5rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.7rem 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #6366f1, #0891b2);
  color: white;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.24);
}

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

.button-danger {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.09);
  color: #fecdd3;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-soft {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 1.15rem;
}

.price {
  margin-block: 0.35rem 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.price-note {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.check-list,
.plain-list,
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-block: 0.65rem;
  padding-left: 1.65rem;
  color: var(--muted-strong);
}

.check-list li::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  color: var(--success);
  content: "✓";
  font-weight: 900;
}

.plain-list li + li,
.link-list li + li {
  margin-top: 0.55rem;
}

.divider {
  height: 1px;
  margin-block: 1.25rem;
  border: 0;
  background: var(--border);
}

.form-group {
  display: grid;
  gap: 0.4rem;
}

.form-group + .form-group,
fieldset + .form-group,
.form-group + fieldset {
  margin-top: 1rem;
}

label,
legend {
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 750;
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.78);
  color: white;
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.65rem;
  align-items: start;
  margin-top: 0.85rem;
}

.checkbox-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.checkbox-row label {
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.status {
  margin-top: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
}

.status[data-tone="success"] {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}

.status[data-tone="warning"] {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

.status[data-tone="error"] {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
}

.callout {
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(129, 140, 248, 0.08);
  padding: 0.85rem 1rem;
  color: var(--muted-strong);
}

.device-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.device-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.48);
  padding: 0.9rem;
}

.device-item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.prose {
  max-width: 780px;
}

.prose h1 {
  max-width: none;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.prose h2 {
  margin-top: 2.4rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.6rem;
}

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

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.document-meta {
  margin: -0.65rem 0 2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  font-size: 0.84rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2rem;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .hero-grid,
  .portal-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .page-shell,
  .footer-shell {
    width: min(100% - 1.25rem, 1120px);
  }

  .page-shell {
    padding-block: 2.5rem;
  }

  .card {
    border-radius: 18px;
    padding: 1.15rem;
  }

  .footer-shell,
  .device-item {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .button,
  .form-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
