/* Twilight Technology — Enter Storefront (shop.twilighttech.io) */

:root {
  --bg: #080d18;
  --surface: #0f172a;
  --surface-elevated: #152038;
  --border: #1e2d4d;
  --border-strong: #2d426e;
  --text: #eef2f8;
  --text-soft: #b6c3d9;
  --muted: #8495b3;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-ink: #130b04;
  --teal: #2dd4bf;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max: 1140px;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(249, 115, 22, 0.1), transparent 65%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--radius-sm);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 13, 24, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.brand img {
  width: 26px;
  height: 26px;
}

.brand-sep {
  color: var(--accent);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-left: 1px solid var(--border-strong);
  padding-left: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .nav-sim {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.nav-links .nav-sim:hover {
  border-color: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 18ch;
  color: #fff;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0 0 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.hero-meta span::before {
  content: '— ';
  color: var(--accent);
}

/* Section Headers */
.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

.section-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 58ch;
}

/* Flagship Grid */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.product-card.is-featured {
  background: linear-gradient(180deg, #131f39 0%, var(--surface) 45%);
  border-color: rgba(249, 115, 22, 0.45);
}

.cover-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #060a13;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.cover-frame img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(8, 13, 24, 0.88);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
}

.is-featured .cover-badge {
  border-color: rgba(249, 115, 22, 0.55);
  color: #fdba74;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  color: #fff;
}

.price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.card-desc {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.feature-list li {
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.card-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

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

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

.checkout-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* Filter Bar & Full Catalog Grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--accent);
}

.filter-btn[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card.is-hidden {
  display: none;
}

/* Free Starting Points */
.free-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.free-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.free-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.free-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.free-card strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
}

.free-card span {
  font-size: 13.5px;
  color: var(--text-soft);
}

/* Policies / FAQ */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.policy-item {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.policy-item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 8px;
  color: #fff;
}

.policy-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* Thanks Page */
.thanks-shell {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.thanks-card {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.thanks-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.12;
  margin: 0 0 14px;
  color: #fff;
}

.thanks-card p {
  margin: 0 0 16px;
  color: var(--text-soft);
}

.thanks-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

@media (max-width: 960px) {
  .flagship-grid,
  .catalog-grid,
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .free-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .brand-tag {
    display: none;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }
  .hero {
    padding: 40px 0 32px;
  }
  .flagship-grid,
  .catalog-grid,
  .free-grid,
  .policy-grid,
  .thanks-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .product-card,
  .free-card,
  .btn,
  .filter-btn {
    transition: none;
  }
}
