/* ============================================================
   FORTUNA — shared base styles
   Each variant lives inside .variant[data-variant="X"] and overrides
   ============================================================ */

:root {
  --fortuna-red: #c8102e;
  --fortuna-red-deep: #8a0b20;
  --fortuna-green: #0f5b2c;
  --fortuna-green-deep: #062e16;
  --fortuna-gold: #e8b94a;
  --fortuna-gold-deep: #9c7c22;
  --fortuna-cream: #f4efe3;
  --fortuna-bg: #07110a;
  --fortuna-ink: #0a0f0b;
  --fortuna-white: #f6f4ec;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--fortuna-bg);
  color: var(--fortuna-white);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.45;
}

/* Fullscreen ball canvas background (shared across every variant) */
#ball-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
}

/* Content sits above the canvas */
.variant {
  position: relative;
  z-index: 1;
}

/* Artboard content — each variant fills its artboard */
.variant-root {
  position: relative;
  width: 100%;
  color: inherit;
}

/* ============================================================
   Shared primitives
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit;
  font-size: 15px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #f2c96b, #b48a28);
  color: #1a1208;
  box-shadow: 0 10px 28px -10px rgba(232, 185, 74, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f6f4ec;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-red {
  background: linear-gradient(180deg, #e72441, #9d0f24);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(200, 16, 46, 0.6);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fortuna-gold);
  box-shadow: 0 0 10px var(--fortuna-gold);
}

.glass {
  background: rgba(10, 18, 12, 0.55);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel {
  border-radius: 20px;
  padding: 28px;
}

/* ============================================================
   Header / nav (shared layout, styled per-variant)
   ============================================================ */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin: 12px 24px 0;
  padding: 10px 16px 10px 14px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-radius: 999px;
}
.site-header .logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.02em;
}
.site-header .logo img { width: 40px; height: 40px; border-radius: 50%; }
.site-header .logo-txt { line-height: 1; }
.site-header .logo-txt small {
  display: block; font-size: 10px; letter-spacing: 0.24em; opacity: 0.6; font-weight: 600;
  margin-top: 3px; text-transform: uppercase;
}
.site-header nav {
  display: flex; gap: 4px; margin-left: auto; margin-right: auto;
}
.site-header nav a {
  color: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.82;
  transition: all 0.18s;
}
.site-header nav a:hover {
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

/* ============================================================
   Section helpers
   ============================================================ */
.section {
  position: relative;
  padding: 120px 48px;
  max-width: 1440px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 32px;
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(40px, 5.2vw, 78px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  max-width: 720px;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  opacity: 0.72;
  max-width: 420px;
  line-height: 1.55;
}

/* ============================================================
   Pricing table (shared base)
   ============================================================ */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.pricing-table th, .pricing-table td {
  padding: 20px 18px;
  text-align: right;
}
.pricing-table th:first-child, .pricing-table td:first-child {
  text-align: left;
}
.pricing-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.55;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-top: 0;
}
.pricing-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.18s;
}
.pricing-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}
.pricing-table tbody td:first-child {
  font-weight: 700;
}
.pricing-table .price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.pricing-note {
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.55;
  line-height: 1.7;
}

/* ============================================================
   Utility
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 24px; }
}

/* ============================================================
   Inline SVG helpers
   ============================================================ */
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Artboards need explicit min-height to not collapse */
.variant-root { min-height: 100%; }

/* Overlap content over global ball background: set variant-root bg to gradient or blank */
