:root {
  --gold: #C4973B;
  --gold-light: #E8D5A3;
  --gold-dim: rgba(196,151,59,0.4);
  --gold-subtle: rgba(196,151,59,0.12);
  --ink: #0A0A0A;
  --ink-1: #111111;
  --ink-2: #1A1A1A;
  --ink-3: #242424;
  --cream: #F5F0E8;
  --cream-dim: rgba(245,240,232,0.6);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--gold-subtle);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-dim); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }

.nav-cta {
  background: var(--gold); color: var(--ink);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.6rem 1.6rem; border-radius: 4px;
  text-decoration: none; text-transform: uppercase;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-light); }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 4rem 6rem;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(196,151,59,0.07) 0%, transparent 70%);
}

.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.8rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 40px; height: 1px; background: var(--gold-dim);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300; line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  color: var(--cream);
}
.hero h1 em {
  font-style: italic; color: var(--gold-light);
}

.hero-sub {
  font-size: 1.1rem; font-weight: 300; line-height: 1.7;
  color: var(--cream-dim); max-width: 560px; margin: 0 auto 3.5rem;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold); color: var(--ink);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.9rem 2.4rem; border-radius: 4px;
  text-decoration: none; text-transform: uppercase;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  border: 1px solid var(--gold-dim); color: var(--gold-light);
  font-size: 0.85rem; letter-spacing: 0.08em;
  padding: 0.9rem 2.4rem; border-radius: 4px;
  text-decoration: none; text-transform: uppercase;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); background: var(--gold-subtle); }

.hero-stats {
  display: flex; gap: 4rem; justify-content: center;
  margin-top: 5rem; padding-top: 4rem;
  border-top: 1px solid var(--gold-subtle);
}
.stat-num {
  font-family: var(--serif); font-size: 2.8rem; font-weight: 600;
  color: var(--gold-light); line-height: 1;
}
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-dim); margin-top: 0.4rem;
}

/* ─── SECTIONS ─────────────────────────────────────── */
section { padding: 7rem 4rem; }

.section-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.2;
  color: var(--cream); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--gold-light); }
.section-sub {
  font-size: 0.95rem; font-weight: 300; color: var(--cream-dim);
  max-width: 520px; line-height: 1.7;
}

/* ─── MODULE GRID ──────────────────────────────────── */
#module { background: var(--ink-1); }

.module-header { max-width: 1200px; margin: 0 auto 4rem; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  max-width: 1200px; margin: 0 auto;
}

.module-card {
  background: var(--ink-2);
  border: 1px solid rgba(196,151,59,0.15);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: all 0.3s; cursor: default;
  position: relative; overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.module-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.module-card:hover::before { opacity: 1; }

.module-card-icon svg { width: 48px; height: 48px; }

.module-card-code {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dim);
}
.module-card-name {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--gold-light); margin-top: 0.1rem;
}
.module-card-desc {
  font-size: 0.82rem; color: var(--cream-dim); line-height: 1.55;
  flex: 1;
}
.module-card-features {
  list-style: none; display: flex; flex-direction: column; gap: 0.35rem;
}
.module-card-features li {
  font-size: 0.75rem; color: var(--cream-dim);
  display: flex; align-items: center; gap: 0.5rem;
}
.module-card-features li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

.tier-badge {
  display: inline-flex; align-items: center;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 20px;
  border: 1px solid var(--gold-dim); color: var(--gold);
  align-self: flex-start;
}

/* Wide cards for bundles/addons */
.module-card.wide { grid-column: span 2; flex-direction: row; gap: 2rem; }
.module-card.wide .module-card-icon { flex-shrink: 0; }

/* ─── INTEGRATIONS ─────────────────────────────────── */
#integrations { background: var(--ink); }

.int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; max-width: 1200px; margin: 3rem auto 0;
}

.int-card {
  background: var(--ink-2); border: 1px solid rgba(196,151,59,0.12);
  border-radius: 10px; padding: 1.4rem 1.6rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: border-color 0.3s;
}
.int-card:hover { border-color: var(--gold-dim); }

.int-arrow {
  font-family: var(--serif); font-size: 1.4rem; color: var(--gold);
  flex-shrink: 0; line-height: 1;
}
.int-from { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.int-title { font-size: 0.9rem; color: var(--cream); margin: 0.2rem 0; font-weight: 500; }
.int-desc { font-size: 0.78rem; color: var(--cream-dim); line-height: 1.5; }

/* ─── PRICING ──────────────────────────────────────── */
#pricing { background: var(--ink-1); }

.pricing-steps {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem; max-width: 1200px; margin: 3rem auto 0;
  align-items: start;
}
.pricing-step-label {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.pricing-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-subtle); border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--gold);
}

.price-cards { display: flex; flex-direction: column; gap: 0.8rem; }
.price-card {
  background: var(--ink-2); border: 1px solid rgba(196,151,59,0.15);
  border-radius: 8px; padding: 1.2rem 1.4rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: border-color 0.2s;
}
.price-card:hover { border-color: var(--gold-dim); }
.price-card-name { font-size: 0.88rem; color: var(--cream); font-weight: 500; }
.price-card-sub { font-size: 0.72rem; color: var(--cream-dim); margin-top: 0.15rem; }
.price-card-price {
  font-family: var(--serif); font-size: 1.3rem; color: var(--gold-light);
  font-weight: 600; white-space: nowrap;
}
.price-card-price span { font-size: 0.7rem; color: var(--cream-dim); }

.user-packages { display: flex; flex-direction: column; gap: 0.8rem; }
.user-pkg {
  background: var(--ink-2); border: 1px solid rgba(196,151,59,0.15);
  border-radius: 8px; padding: 1.2rem 1.4rem;
  transition: border-color 0.2s;
}
.user-pkg:hover { border-color: var(--gold-dim); }
.user-pkg-name { font-size: 0.88rem; color: var(--cream); font-weight: 500; }
.user-pkg-desc { font-size: 0.72rem; color: var(--cream-dim); margin: 0.2rem 0 0.5rem; }
.user-pkg-price { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-light); }

/* ─── COMPARISON ───────────────────────────────────── */
#comparison { background: var(--ink); }

.comp-table { max-width: 900px; margin: 3rem auto 0; }
.comp-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1px; padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(196,151,59,0.08);
  align-items: center;
}
.comp-row.header {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--gold-dim);
}
.comp-row:hover:not(.header) { background: var(--gold-subtle); border-radius: 6px; }
.comp-item { font-size: 0.85rem; color: var(--cream-dim); }
.comp-yes { color: #6DBF8A; font-size: 1rem; }
.comp-no { color: rgba(255,255,255,0.2); font-size: 1rem; }
.comp-val { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-light); }

.savings-box {
  max-width: 900px; margin: 2rem auto 0;
  background: linear-gradient(135deg, rgba(196,151,59,0.12), rgba(196,151,59,0.05));
  border: 1px solid var(--gold-dim); border-radius: 10px;
  padding: 1.8rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.savings-label { font-size: 0.8rem; color: var(--cream-dim); }
.savings-amount {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600;
  color: var(--gold-light);
}

/* ─── AUTH ─────────────────────────────────────────── */
#auth {
  background: var(--ink-1);
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 4rem;
}

.auth-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; max-width: 1000px; width: 100%;
  align-items: center;
}

.auth-pitch h2 {
  font-family: var(--serif); font-size: 2.8rem; font-weight: 300;
  line-height: 1.2; color: var(--cream); margin-bottom: 1.2rem;
}
.auth-pitch h2 em { font-style: italic; color: var(--gold-light); }
.auth-pitch p { font-size: 0.9rem; color: var(--cream-dim); line-height: 1.7; }

.auth-box {
  background: var(--ink-2); border: 1px solid rgba(196,151,59,0.2);
  border-radius: 12px; padding: 2.4rem;
}
.auth-tabs { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 1px solid rgba(196,151,59,0.15); }
.auth-tab {
  flex: 1; text-align: center; padding: 0.8rem;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-dim); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.2s;
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form input {
  background: var(--ink-3); border: 1px solid rgba(196,151,59,0.2);
  border-radius: 6px; padding: 0.9rem 1rem;
  color: var(--cream); font-size: 0.88rem; font-family: var(--sans);
  outline: none; transition: border-color 0.2s;
}
.auth-form input::placeholder { color: rgba(245,240,232,0.25); }
.auth-form input:focus { border-color: var(--gold-dim); }

.auth-submit {
  background: var(--gold); color: var(--ink);
  border: none; border-radius: 6px; padding: 0.9rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; font-family: var(--sans);
}
.auth-submit:hover { background: var(--gold-light); }

.auth-note { font-size: 0.72rem; color: var(--cream-dim); text-align: center; line-height: 1.5; }
.auth-note a { color: var(--gold); text-decoration: none; }

/* ─── FOOTER ───────────────────────────────────────── */
footer {
  background: var(--ink); border-top: 1px solid var(--gold-subtle);
  padding: 3rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: var(--serif); font-size: 1.2rem; color: var(--gold);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.footer-note { font-size: 0.72rem; color: var(--cream-dim); text-align: right; line-height: 1.7; }

/* ─── ANIMATIONS ───────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .pricing-steps { grid-template-columns: 1fr; }
  .auth-container { grid-template-columns: 1fr; gap: 3rem; }
  .module-card.wide { grid-column: span 1; flex-direction: column; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-note { text-align: center; }
}

/* ─── AUTH BOX — functional additions (2026-07-13) ─────────────────────────
 * Added when the landing auth box became a real login/register/2FA/forgot form
 * (Main.js). The auth box therefore intentionally deviates from the static DEV
 * reference here: name-row, inline error/info lines, TOTP + step-intro styling.
 * These rules only ADD; the existing .auth-* design is unchanged. */

/* Vorname + Nachname side-by-side, matching .auth-form input styling */
.auth-name-row { display: flex; gap: 0.8rem; }
.auth-name-row input { flex: 1; min-width: 0; }

/* Inline error / info lines */
.auth-error {
  font-size: 0.78rem; line-height: 1.5; color: #E0827A;
  background: rgba(224,130,122,0.08); border: 1px solid rgba(224,130,122,0.3);
  border-radius: 6px; padding: 0.6rem 0.8rem;
}
.auth-info {
  font-size: 0.78rem; line-height: 1.5; color: var(--gold-light);
  background: var(--gold-subtle); border: 1px solid var(--gold-dim);
  border-radius: 6px; padding: 0.6rem 0.8rem;
}

/* Step intro text (TOTP / forgot) */
.auth-step-intro { font-size: 0.82rem; color: var(--cream-dim); line-height: 1.55; }

/* 6-digit TOTP code input — centred, spaced, monospaced feel */
.auth-totp-input {
  text-align: center; letter-spacing: 0.5em; font-size: 1.2rem;
  font-variant-numeric: tabular-nums; padding-left: 0.5em;
}

/* Busy / disabled submit state */
.auth-submit:disabled { opacity: 0.55; cursor: default; }
.auth-submit:disabled:hover { background: var(--gold); }