/* Aegira — Design System */
:root {
  --bg: #07090f;
  --surface: #0d1018;
  --surface-2: #131824;
  --surface-3: #1a2030;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --text: #eef1f8;
  --muted: #8b93a7;
  --accent: #7c5cff;
  --accent-2: #00e0b8;
  --accent-3: #ff6ec7;
  --grad: linear-gradient(135deg, #7c5cff 0%, #00e0b8 100%);
  --grad-text: linear-gradient(135deg, #a78bfa 0%, #00e0b8 60%, #6ee7b7 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,.4);
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* Aurora blobs */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: .28;
  animation: float 20s ease-in-out infinite;
}
.aurora-1 { width: 560px; height: 560px; background: #7c5cff; top: -180px; left: -180px; }
.aurora-2 { width: 480px; height: 480px; background: #00e0b8; top: 40%; right: -180px; animation-delay: -6s; }
.aurora-3 { width: 400px; height: 400px; background: #ff6ec7; bottom: -160px; left: 30%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(.95); }
}

/* Grain */
.grain {
  position: fixed; inset: 0; z-index: -1; opacity: .035; pointer-events: none;
  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.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,9,15,.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-mark { color: var(--accent-2); font-size: 22px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 12px; }
.nav-toggle { display: none; font-size: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: all .2s ease; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad); color: #07090f;
  box-shadow: 0 4px 20px rgba(124,92,255,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(124,92,255,.5); color: #07090f; }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* Hero */
.hero { padding: 100px 0 60px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-size: 13px; color: var(--muted); margin-bottom: 28px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 400;
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--accent-2); }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 18px; color: var(--muted); max-width: 640px; margin-bottom: 32px; line-height: 1.6; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.large { font-size: 18px; }

.hero-visual {
  position: relative; height: 360px; margin-top: 60px;
  display: grid; grid-template-columns: 1fr 1fr .6fr; gap: 20px;
  align-items: end;
}
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow);
}
.hero-card-1 { height: 260px; transform: rotate(-2deg); }
.hero-card-2 { height: 300px; }
.hero-card-3 { height: 220px; transform: rotate(2deg); }

.chip {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  background: rgba(124,92,255,.14); color: #a78bfa;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 16px;
}
.chip-mint { background: rgba(0,224,184,.14); color: var(--accent-2); }
.chip-pink { background: rgba(255,110,199,.14); color: var(--accent-3); }

.skeleton-line {
  height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3), var(--border-strong), var(--surface-3));
  background-size: 200% 100%;
  margin-bottom: 12px;
  animation: shimmer 3s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.w-60 { width: 60%; } .w-70 { width: 70%; } .w-75 { width: 75%; }
.w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; }
.w-95 { width: 95%; } .w-100 { width: 100%; }

.score-ring {
  width: 100px; height: 100px; border-radius: 50%;
  background: conic-gradient(var(--accent-2) 92%, var(--surface-3) 0);
  display: grid; place-items: center; position: relative;
  margin: 12px auto 0;
}
.score-ring::before {
  content: ''; position: absolute; inset: 8px;
  border-radius: 50%; background: var(--surface);
}
.score-ring span {
  position: relative; z-index: 1;
  font-family: var(--font-serif); font-size: 32px; color: var(--accent-2);
}

/* Logos */
.logos { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos-label { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.logos-grid { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.logos-grid span {
  font-family: var(--font-serif); font-size: 22px; font-style: italic;
  color: var(--muted); opacity: .6;
}

/* Sections */
.section { padding: 100px 0; }
.section-dark { background: rgba(0,0,0,.3); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1; font-weight: 400;
  letter-spacing: -.02em;
}
.section-title em { font-style: italic; color: var(--accent-2); }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all .3s ease; position: relative; overflow: hidden;
}
.bento-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-card h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.bento-card p { color: var(--muted); font-size: 15px; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(124,92,255,.14); color: #a78bfa;
  display: grid; place-items: center; font-size: 20px;
  margin-bottom: 20px;
}
.fi-mint { background: rgba(0,224,184,.14); color: var(--accent-2); }
.fi-pink { background: rgba(255,110,199,.14); color: var(--accent-3); }
.fi-cyan { background: rgba(56,189,248,.14); color: #38bdf8; }
.fi-gold { background: rgba(250,204,21,.14); color: #facc15; }
.bento-visual {
  margin-top: 24px; padding: 20px;
  background: var(--surface-2); border-radius: 14px;
}
.persona-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.persona { padding: 16px; background: var(--surface-2); border-radius: 12px; }
.persona strong { display: block; margin-bottom: 4px; font-size: 14px; }
.persona span { font-size: 13px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-num {
  font-family: var(--font-serif); font-size: 48px; font-style: italic;
  color: var(--accent-2); margin-bottom: 16px; line-height: 1;
}
.step h3 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; position: relative;
}
.price-pop {
  border: 1px solid rgba(124,92,255,.5);
  background: linear-gradient(180deg, rgba(124,92,255,.08), var(--surface));
  box-shadow: 0 8px 40px rgba(124,92,255,.15);
}
.price-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #07090f;
  padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 18px; margin-bottom: 16px; }
.price { font-family: var(--font-serif); font-size: 48px; line-height: 1; margin-bottom: 28px; }
.price span { font-family: var(--font-sans); font-size: 14px; color: var(--muted); margin-left: 6px; }
.price-card ul { list-style: none; margin-bottom: 32px; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.price-card li::before { content: '✓ '; color: var(--accent-2); margin-right: 8px; }

/* Testimonial */
.section-testimonial { padding: 80px 0; }
.testimonial { max-width: 800px; margin: 0 auto; text-align: center; }
.quote { font-family: var(--font-serif); font-size: 32px; line-height: 1.4; margin-bottom: 32px; letter-spacing: -.01em; }
.author { display: flex; align-items: center; gap: 16px; justify-content: center; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #07090f;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}

/* CTA */
.cta-section { padding: 80px 0; }
.cta-box {
  text-align: center; padding: 80px 40px;
  background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(0,224,184,.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
}
.cta-box h2 {
  font-family: var(--font-serif); font-size: clamp(28px, 4vw, 44px);
  font-weight: 400; margin-bottom: 16px;
}
.cta-box h2 em { font-style: italic; color: var(--accent-2); }
.cta-box p { margin-bottom: 32px; }

/* Studio */
.studio { padding: 60px 0; }
.studio-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.studio-head h1 { font-family: var(--font-serif); font-size: 44px; font-weight: 400; margin-top: 8px; }
.studio-head h1 em { font-style: italic; color: var(--accent-2); }
.studio-meta { display: flex; gap: 8px; }
.studio-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.studio-form, .studio-output {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.studio-form { position: sticky; top: 96px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,255,.15);
}
.form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

.output-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab {
  padding: 12px 18px; font-size: 14px; font-weight: 500;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: all .2s;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent-2); }
.tab-panel { display: none; min-height: 400px; }
.tab-panel.active { display: block; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .3; }

.result-box { padding: 8px 0; }
.result-box h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin: 20px 0 12px; }
.result-box h3 { font-size: 16px; margin: 20px 0 8px; color: var(--accent-2); }
.result-box p { color: var(--muted); margin-bottom: 12px; }
.result-box ul { padding-left: 20px; margin-bottom: 16px; color: var(--muted); }
.result-box li { margin-bottom: 6px; }
.outline-h2 { padding: 12px; background: var(--surface-2); border-radius: 10px; margin-top: 16px; font-weight: 600; }
.meta-pill {
  display: inline-block; padding: 4px 10px; background: var(--surface-3);
  border-radius: 8px; font-size: 12px; margin: 2px;
}
.output-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Auth */
.auth-section { padding: 80px 0; min-height: calc(100vh - 400px); display: grid; place-items: center; }
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-family: var(--font-serif); font-size: 32px; font-weight: 400; margin-bottom: 8px; }
.auth-card > p { margin-bottom: 24px; }
.auth-card form { margin-top: 24px; }
.auth-card form button { margin-top: 12px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--accent-2); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-err { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.alert-ok { background: rgba(0,224,184,.12); color: var(--accent-2); border: 1px solid rgba(0,224,184,.3); }

/* Dashboard */
.dash { padding: 60px 0; }
.dash-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.dash-head h1 { font-family: var(--font-serif); font-size: 44px; font-weight: 400; margin-top: 8px; }
.dash-head h1 em { font-style: italic; color: var(--accent-2); }
.dash-title { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin: 40px 0 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat-num { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--accent-2); margin-bottom: 8px; }
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 20px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  align-items: center; flex-wrap: wrap;
}
.article-row h3 { font-size: 16px; margin-bottom: 4px; }
.article-meta { display: flex; gap: 8px; align-items: center; }

/* Blog */
.page-hero { padding: 80px 0 40px; }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(36px, 6vw, 64px); font-weight: 400; line-height: 1.1; margin-bottom: 16px; }
.page-hero h1 em { font-style: italic; color: var(--accent-2); }
.page-hero .muted { font-size: 18px; max-width: 640px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  padding: 32px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all .2s; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.blog-icon { font-size: 32px; margin-bottom: 16px; }
.blog-cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--accent-2); margin-bottom: 12px; }
.blog-card h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin-bottom: 10px; line-height: 1.3; }
.blog-card p { font-size: 14px; margin-bottom: 20px; flex-grow: 1; }
.blog-read { font-size: 13px; color: var(--accent-2); font-weight: 600; }

/* Article */
.article { padding: 60px 0; }
.back-link { color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 24px; }
.article h1 { font-family: var(--font-serif); font-size: clamp(36px, 6vw, 56px); font-weight: 400; line-height: 1.1; margin: 16px 0 12px; }
.article-body { margin-top: 40px; font-size: 17px; line-height: 1.75; }
.article-body h2 { font-family: var(--font-serif); font-size: 32px; font-weight: 400; margin: 40px 0 16px; }
.article-body h3 { font-size: 20px; margin: 28px 0 12px; font-weight: 600; }
.article-body p { margin-bottom: 20px; color: #cbd2e0; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; color: #cbd2e0; }
.article-body a { color: var(--accent-2); text-decoration: underline; }
.article-body blockquote { border-left: 3px solid var(--accent-2); padding-left: 20px; margin: 24px 0; font-style: italic; color: var(--muted); }
.ad-slot { margin: 40px 0; padding: 40px; text-align: center; background: var(--surface-2); border-radius: var(--radius); color: var(--muted); font-size: 12px; }

.prose h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; color: #cbd2e0; }
.prose ul { padding-left: 24px; margin-bottom: 16px; color: #cbd2e0; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-2); }
.contact-form { max-width: 560px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 24px; margin-top: 60px; background: rgba(0,0,0,.3); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 6px 0; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}

/* Cookie */
.cookie-bar {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 16px; z-index: 200;
  box-shadow: var(--shadow); display: none;
}
.cookie-bar.show { display: block; }
.cookie-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { font-size: 13px; color: var(--muted); flex: 1; min-width: 240px; }
.cookie-inner a { color: var(--accent-2); }
.cookie-actions { display: flex; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .bento, .steps, .pricing, .blog-grid, .stat-grid { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-form { position: static; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .hero-visual { grid-template-columns: 1fr; height: auto; }
  .hero-card-1, .hero-card-2, .hero-card-3 { height: auto; transform: none; }
  .persona-row { grid-template-columns: 1fr; }
  .quote { font-size: 24px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .article-row { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 16px; }
}
