:root {
  color-scheme: dark;
  --bg: #07110f;
  --surface: #0d1b18;
  --surface-soft: #12241f;
  --line: rgba(204, 255, 232, 0.14);
  --text: #f1fff9;
  --muted: #9db5ac;
  --accent: #66f2af;
  --accent-dark: #073d29;
  --danger: #ff8c82;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 80% 4%, rgba(56, 185, 130, 0.13), transparent 25rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #07110f;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer, main { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #04130d;
  font-weight: 900;
}
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand small { margin-top: 3px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.header-link { color: var(--accent); text-decoration: none; font-weight: 700; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 64px;
  align-items: center;
  min-height: 590px;
  padding: 70px 0;
}
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .16em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 24px; font-size: clamp(2.8rem, 7vw, 6.3rem); line-height: .96; letter-spacing: -.065em; }
.hero-lead { max-width: 650px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.primary-link, .secondary-button, .offer-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  padding: 0 20px;
  background: var(--accent);
  color: #04130d;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.hero-art { position: relative; display: grid; min-height: 330px; place-items: center; }
.hero-core {
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 42px;
  background: linear-gradient(145deg, var(--accent), #178c62);
  box-shadow: 0 25px 80px rgba(49, 214, 143, .25);
  color: #042016;
  font-size: 3.5rem;
  font-weight: 950;
  transform: rotate(-8deg);
}
.hero-orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { width: 290px; height: 290px; }
.orbit-two { width: 390px; height: 190px; transform: rotate(28deg); }

.catalog-section { padding: 70px 0 100px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; }
.section-heading > p { max-width: 340px; margin-bottom: 7px; color: var(--muted); text-align: right; }
.catalog-grid { display: grid; gap: 24px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 27, 24, .84); box-shadow: 0 22px 60px rgba(0,0,0,.16); }
.product-featured { border-color: rgba(102, 242, 175, .48); }
.product-header { display: flex; gap: 22px; align-items: center; padding: 28px; border-bottom: 1px solid var(--line); }
.product-logo, .product-monogram { width: 82px; height: 82px; flex: 0 0 auto; border-radius: 19px; object-fit: contain; background: #fff; }
.product-monogram { display: grid; place-items: center; background: var(--accent-dark); color: var(--accent); font-size: 1.55rem; font-weight: 900; }
.product-identity h3 { margin: 3px 0 5px; font-size: 1.65rem; letter-spacing: -.03em; }
.product-identity p { margin-bottom: 0; color: var(--muted); }
.featured-label, .trial-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(102, 242, 175, .1);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-body { padding: 28px; }
.product-description { max-width: 800px; color: var(--muted); }
.trial-badge { margin-bottom: 20px; letter-spacing: 0; text-transform: none; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 14px; }
.plan-card { display: flex; min-height: 290px; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-soft); }
.plan-name { margin-bottom: 5px; font-size: 1.05rem; }
.plan-price { margin-bottom: 14px; color: var(--accent); font-size: 1.75rem; font-weight: 900; letter-spacing: -.035em; }
.plan-description { min-height: 48px; color: var(--muted); font-size: .9rem; }
.plan-details { margin: 0 0 22px; padding: 0; list-style: none; color: #cce3da; font-size: .9rem; }
.plan-details li::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 900; }
.offer-button { width: 100%; margin-top: auto; background: transparent; border: 1px solid rgba(102, 242, 175, .48); color: var(--accent); }
.offer-button:hover { background: rgba(102, 242, 175, .08); }
.catalog-status, .state-card { min-height: 220px; display: grid; place-content: center; justify-items: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.catalog-status[hidden], .state-card[hidden], .catalog-grid[hidden], .selection-status[hidden] { display: none; }
.spinner { width: 34px; height: 34px; margin-bottom: 14px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-card strong { color: var(--text); font-size: 1.2rem; }
.state-card p { max-width: 440px; }
.state-error { border-color: rgba(255, 140, 130, .35); }
.state-error strong { color: var(--danger); }
.secondary-button { min-height: 44px; }
.selection-status { margin: 20px 0 0; padding: 16px 18px; border-radius: 13px; background: rgba(102, 242, 175, .08); color: #cfffea; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.not-found { display: grid; min-height: 100vh; align-content: center; justify-items: start; }
.not-found h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
.not-found p:not(.eyebrow) { color: var(--muted); }
.header-actions, .auth-buttons { display: flex; align-items: center; gap: 10px; }
.commerce-section { padding: 55px 0 80px; }
.checkout-card { max-width: 760px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.checkout-card p { color: var(--muted); }
.checkout-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.checkout-details div { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); }
.checkout-details dt { color: var(--muted); font-size: .82rem; }
.checkout-details dd { margin: 7px 0 0; font-weight: 700; }
.quantity-field, .auth-dialog label { display: grid; gap: 7px; color: var(--muted); }
.quantity-field input, .auth-dialog input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--background); color: var(--text); }
.quantity-field input { width: 110px; }
.checkout-total { display: flex; justify-content: space-between; margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1.2rem; }
.security-note { font-size: .82rem; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.account-grid .state-card { display: block; min-height: 240px; padding: 24px; text-align: left; }
.account-record { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-record span, .account-record small { color: var(--muted); overflow-wrap: anywhere; }
.account-record select { min-width: 190px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--background); color: var(--text); }
.auth-dialog { width: min(92vw, 480px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.auth-dialog::backdrop { background: rgba(4, 8, 18, .82); }
.auth-dialog form { display: grid; gap: 16px; padding: 26px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-heading h2 { margin: 0; }
.dialog-heading button { border: 0; background: transparent; color: var(--text); font-size: 1.8rem; }
.auth-divider { margin: 0; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
  .site-header, .site-footer, main { width: min(100% - 28px, 1180px); }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 15px; padding: 70px 0 55px; }
  .hero-art { min-height: 230px; transform: scale(.75); }
  .section-heading, .site-footer { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .product-header { align-items: flex-start; padding: 22px; }
  .product-logo, .product-monogram { width: 62px; height: 62px; border-radius: 15px; }
  .product-body { padding: 22px; }
  .checkout-details, .account-grid { grid-template-columns: 1fr; }
  .header-actions .header-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation: none; }
}
