﻿:root {
  --paper: #f7f2e8;
  --paper-2: #fff7ee;
  --ink: #1c1a17;
  --ink-2: #3a342f;
  --muted: #6f665e;
  --accent: #1e5eff;
  --accent-2: #00b3ff;
  --accent-3: #7dd3fc;
  --border: rgba(28, 26, 23, 0.16);
  --shadow: 0 18px 40px rgba(28, 26, 23, 0.16);
  --shadow-soft: 0 8px 18px rgba(28, 26, 23, 0.12);
  --radius: 18px;
  --font-display: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(30, 94, 255, 0.18), transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, rgba(0, 179, 255, 0.2), transparent 55%),
    repeating-linear-gradient(135deg, rgba(28, 26, 23, 0.04) 0 6px, transparent 6px 18px),
    var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.link { position: relative; }
.link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.link:hover::after { width: 100%; }

.container { width: min(1100px, 92%); margin: 0 auto; }
.container.narrow { width: min(780px, 92%); }

/* Card nav */
header.site-header { position: sticky; top: 0; z-index: 1000; background: transparent; }
.card-nav-container { width: min(1100px, 94%); margin: 0 auto; padding: 12px 0 6px; }
.card-nav {
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 rgba(28, 26, 23, 0.45);
  position: relative;
  overflow: hidden;
  transition: height .28s cubic-bezier(.2,.7,.1,1), box-shadow .2s ease;
}
.card-nav.open { box-shadow: 10px 10px 0 rgba(28, 26, 23, 0.5); }
.card-nav-top { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.hamburger-menu {
  height: 40px; width: 40px; border-radius: 10px; border: 2px solid var(--ink);
  background: var(--paper-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 3px 3px 0 rgba(28, 26, 23, 0.55); cursor: pointer; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hamburger-menu:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(28, 26, 23, 0.6); background: #fff; }
.hamburger-line { width: 22px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.hamburger-menu.open .hamburger-line:first-child { transform: translateY(4px) rotate(45deg); }
.hamburger-menu.open .hamburger-line:last-child { transform: translateY(-4px) rotate(-45deg); }
.logo-container { display: inline-flex; align-items: center; gap: 10px; position: absolute; left: 50%; top: 30px; transform: translate(-50%, -50%); font-family: var(--font-display); }
.logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 2px solid var(--ink); }
.logo-text { font-weight: 700; letter-spacing: 0.4px; }
.card-nav-actions { display: inline-flex; align-items: center; gap: 8px; }
.nav-icon-btn {
  height: 40px; width: 40px; border-radius: 12px; border: 2px solid var(--ink);
  background: var(--paper-2); font-weight: 700; cursor: pointer;
  box-shadow: 3px 3px 0 rgba(28, 26, 23, 0.55);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-icon-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(28, 26, 23, 0.6); background: linear-gradient(135deg, rgba(30, 94, 255, 0.18), rgba(125, 211, 252, 0.2)); }
.card-nav-content {
  padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .22s ease, transform .22s ease;
}
.card-nav.open .card-nav-content { opacity: 1; transform: none; pointer-events: auto; }
.nav-card { min-height: 120px; border-radius: 14px; border: 2px solid var(--ink); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: #fffaf4; box-shadow: 4px 4px 0 rgba(28, 26, 23, 0.45); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nav-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(28, 26, 23, 0.5); border-color: var(--accent); }
.nav-card-label { font-weight: 600; font-size: 18px; font-family: var(--font-display); }
.nav-card-links { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.nav-card-link { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; position: relative; transition: transform .18s ease, color .2s ease; }
.nav-card-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.nav-card-link:hover { transform: translateX(2px); color: var(--accent); }
.nav-card-link:hover::after { width: 100%; }
.nav-card.primary { background: linear-gradient(135deg, rgba(30, 94, 255, 0.18), rgba(125, 211, 252, 0.2)); }
.nav-card.secondary { background: linear-gradient(135deg, rgba(0, 179, 255, 0.16), rgba(255, 255, 255, 0.9)); }
.nav-card.tertiary { background: linear-gradient(135deg, rgba(30, 94, 255, 0.12), rgba(0, 179, 255, 0.12)); }

@media (max-width: 720px) {
  .logo-container { position: static; transform: none; }
  .card-nav-content { grid-template-columns: 1fr; }
}

/* Sections */
section { padding: 58px 0; }
.hero { position: relative; padding: 88px 0 60px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 600px at 12% 0%, rgba(30, 94, 255, 0.25), transparent 60%), radial-gradient(900px 600px at 90% 10%, rgba(0, 179, 255, 0.25), transparent 60%), repeating-linear-gradient(145deg, rgba(28, 26, 23, 0.05) 0 8px, transparent 8px 20px); }
.hero h1 { font-family: var(--font-display); font-size: clamp(34px, 4.8vw, 64px); margin: 0 0 14px; }
.hero .lead { color: var(--muted); font-size: clamp(16px, 1.8vw, 20px); }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid.responsive-1 { grid-template-columns: 1fr; }
@media (min-width: 780px) { .grid.responsive-1 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .grid.responsive-1.cols-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 980px) { .grid.responsive-1.cols-4 { grid-template-columns: repeat(4,1fr); } }

.card { background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); border-color: var(--accent); }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: 12px; opacity: .8; display: inline-block; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink);
  box-shadow: 4px 4px 0 rgba(28, 26, 23, 0.7);
}
.btn { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(28, 26, 23, 0.75); filter: saturate(1.1); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 rgba(28, 26, 23, 0.6); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-3)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.center { display: grid; place-items: center; }
.section-divider { height: 2px; width: 100%; margin: 28px 0 0; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); }

footer.site-footer { color: var(--muted); border-top: 2px solid var(--border); padding: 26px 0 48px; margin-top: 24px; }

.highlight { color: var(--accent); }
.hero-actions { margin: 18px 0 14px; }
.pill {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 3px 3px 0 rgba(28, 26, 23, 0.45);
}
.stat-card { text-align: center; }
.stat-value { font-size: 30px; font-weight: 700; font-family: var(--font-display); }
.media-card img { width: 100%; border-radius: 12px; }
.media-card img { transition: transform .25s ease, filter .25s ease; }
.media-card:hover img { transform: scale(1.02); filter: saturate(1.05); }
.media-card figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.sponsor-card { display: grid; place-items: center; gap: 10px; }
.sponsor-card img { width: 120px; height: 48px; object-fit: contain; }
.sponsor-card img { transition: transform .2s ease, filter .2s ease; }
.sponsor-card:hover img { transform: scale(1.05); filter: drop-shadow(0 8px 18px rgba(30, 94, 255, 0.2)); }
.package-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.package-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.package-card .price-tag { align-self: flex-start; font-weight: 700; color: var(--accent); }
.package-card.featured { border-color: var(--accent); box-shadow: 0 18px 36px rgba(30, 94, 255, 0.2); }
.package-card.featured { position: relative; overflow: hidden; }
.package-card.featured::after {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 60%;
  background: radial-gradient(circle at 10% 10%, rgba(30, 94, 255, 0.28), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.package-card.featured:hover::after { opacity: 1; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  padding: 10px 12px; border-radius: 12px; border: 2px solid var(--ink); background: #fff;
  font-family: var(--font-body);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 94, 255, 0.15);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.note-card { background: linear-gradient(135deg, rgba(30, 94, 255, 0.18), rgba(125, 211, 252, 0.2)); }
.error-card { text-align: center; }

/* Generator layout */
.gen-controls { display: flex; flex-direction: column; gap: 12px; }
.gen-current { font-size: 13px; }
.gen-span-2 { grid-column: span 2; }
.gen-form { display: flex; flex-direction: column; gap: 16px; }
.gen-group {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fffaf1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gen-group > .kicker { margin-bottom: 2px; }
.gen-array {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gen-asset-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}
.gen-array-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gen-array-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gen-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .gen-span-2 { grid-column: auto; }
}
