/* ==========================================================================   
   Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: #050810;
  --color-surface: #101522;
  --color-surface-alt: #151a28;
  --color-text: #f7f7fb;
  --color-text-muted: #a5afc7;
  --color-primary: #ff6b5a; /* warm accent to echo interior lighting */
  --color-primary-soft: rgba(255, 107, 90, 0.12);
  --color-primary-strong: #ff866f;
  --color-success: #3ccf91;
  --color-warning: #ffc857;
  --color-danger: #ff4b6a;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (soft, interior-design inspired) */
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease;
  --transition-slow: 320ms ease;

  /* Layout */
  --container-max-width: 1120px;
  --nav-height: 72px;
}

/* ==========================================================================   
   Reset & Normalize
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================================   
   Base
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  background: radial-gradient(circle at top, #171c2b 0, #050810 55%, #020309 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: calc(100vh - var(--nav-height));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray-50);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.5rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* Links */
a {
  position: relative;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-strong);
}

a.inline-link {
  color: var(--color-primary);
}

a.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), #ffb077);
  opacity: 0;
  transform: scaleX(0.9);
  transform-origin: center;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

a.inline-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Lists */
ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

/* ==========================================================================   
   Utilities
   ========================================================================== */

/* Layout */
.container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 960px) {
  .container {
    padding-inline: var(--space-6);
  }
}

.section {
  padding-block: var(--space-12);
}

.section--dense {
  padding-block: var(--space-8);
}

.section--alt {
  background: radial-gradient(circle at top left, #1b2235 0, #101522 40%, #050810 100%);
}

/* Flex utilities */
.flex {
  display: flex;
}

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

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Text alignment */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

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

/* Spacing utilities (limited set for base) */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

/* Screen reader only */
.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;
}

/* ==========================================================================   
   Components
   ========================================================================== */

/* Navigation (generic shell for all pages) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(90deg, rgba(5, 8, 16, 0.96), rgba(10, 14, 26, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav__link {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-block: 0.25rem;
  color: var(--color-text-muted);
  position: relative;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #ffb077);
  transition: width var(--transition-base);
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--gray-50);
}

.site-nav__link:hover::after,
.site-nav__link--active::after {
  width: 100%;
}

/* HERO layout helpers */
.hero {
  padding-block: var(--space-16);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

@media (max-width: 960px) {
  .hero {
    padding-block: var(--space-12);
  }
  .hero__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #bbf7d0;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero__eyebrow {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.hero__lead {
  font-size: var(--font-size-lg);
}

/* CTA buttons (including store buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--color-primary);
  color: #050810;
  box-shadow: 0 18px 45px rgba(255, 107, 90, 0.45);
  transition:
    background var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
}

.btn:hover {
  background: var(--color-primary-strong);
  box-shadow: 0 24px 60px rgba(255, 107, 90, 0.6);
  transform: translateY(-1px);
  color: #ffff;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 28px rgba(255, 107, 90, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-50);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(248, 250, 252, 0.9);
  color: var(--gray-50);
}

.btn--subtle {
  background: rgba(148, 163, 184, 0.14);
  color: var(--gray-50);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: none;
}

.btn--subtle:hover {
  background: rgba(148, 163, 184, 0.24);
  color: var(--gray-50);
}

.btn--icon-left svg,
.btn--icon-right svg {
  width: 18px;
  height: 18px;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Store buttons */
.btn-store {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: #050816;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.85);
  align-items: center;
}

.btn-store__logo {
  width: 22px;
  height: 22px;
}

.btn-store__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-store__small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.btn-store__brand {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
}

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

/* Inputs */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: var(--gray-50);
  font-size: var(--font-size-sm);
  outline: none;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.08),
    0 0 0 3px rgba(255, 107, 90, 0.55);
  background: rgba(15, 23, 42, 0.98);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}

.field__label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-100);
}

.field__hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.field--error .input,
.field--error .textarea,
.field--error .select {
  border-color: var(--color-danger);
}

.field--error .field__hint {
  color: var(--color-danger);
}

/* Card */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #1e2538 0, #101522 45%, #050810 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}

.card--soft {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.card--outlined {
  background: transparent;
  border-style: dashed;
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.card__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.card--pill {
  border-radius: var(--radius-pill);
}

/* Tag / pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  color: var(--gray-100);
}

.tag--success {
  border-color: rgba(34, 197, 94, 0.65);
  color: #bbf7d0;
}

.tag--warning {
  border-color: rgba(234, 179, 8, 0.7);
  color: #fef3c7;
}

/* Accordion / FAQ shell */
.accordion {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.accordion__item + .accordion__item {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.accordion__button {
  width: 100%;
  text-align: left;
  padding: var(--space-4);
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
  color: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.accordion__icon {
  transition: transform var(--transition-base);
}

.accordion__button[aria-expanded="true"] .accordion__icon {
  transform: rotate(90deg);
}

.accordion__panel {
  padding: 0 var(--space-4) var(--space-4);
  background: rgba(15, 23, 42, 0.98);
}

/* Table (for brand or feature lists) */
.table {
  width: 100%;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table thead {
  background: rgba(15, 23, 42, 0.92);
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.table th {
  font-weight: 500;
  color: var(--gray-200);
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.78);
}

.table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.96);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at bottom, #0b1120 0, #020617 55%, #000 100%);
  padding-block: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================   
   Accessibility & Motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9),
    0 0 0 4px rgba(255, 255, 255, 0.8),
    0 0 0 6px rgba(255, 107, 90, 0.75);
  border-radius: var(--radius-md);
}

button:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible,
.site-nav__link:focus-visible {
  outline: none;
}

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