:root {
  --navy: #0D1B2A;
  --gold: #D4A853;
  --cream: #F8F4EF;
  --charcoal: #2C3A47;
  --light-navy: #1B2A3B;
  --muted: #8A9BB0;
  --card-bg: #112032;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.88) 0%,
    rgba(13, 27, 42, 0.55) 50%,
    rgba(13, 27, 42, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 8vw 12vh 8vw;
  max-width: 700px;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 0.92;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  max-width: 420px;
}

.hero-badge {
  position: absolute;
  top: 2.5rem;
  right: 8vw;
  z-index: 2;
}

.badge-text {
  display: inline-block;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  border-radius: 2px;
}

/* PILLARS */
.pillars {
  background: var(--navy);
  padding: 8vh 8vw;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pillar-card {
  background: var(--card-bg);
  padding: 3rem 2.5rem;
  border-left: 1px solid rgba(212, 168, 83, 0.2);
}

.pillar-icon {
  margin-bottom: 1.5rem;
}

.pillar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.pillar-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* MANIFESTO */
.manifesto {
  background: var(--cream);
  padding: 10vh 8vw;
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-bar {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 2.5rem;
}

blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.manifesto-attr {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* JOURNEY */
.journey {
  background: var(--light-navy);
  padding: 10vh 8vw;
}

.journey-header {
  margin-bottom: 5rem;
}

.journey-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.journey-header p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.step {
  padding: 2.5rem 2rem;
  border-top: 2px solid var(--gold);
  background: rgba(255,255,255,0.03);
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(212, 168, 83, 0.25);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.step-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.step-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* CLOSING */
.closing {
  background: var(--navy);
  padding: 12vh 8vw;
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.closing > .closing-inner > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  margin-bottom: 3rem;
}

.closing-divider {
  width: 1px;
  height: 60px;
  background: var(--gold);
  margin: 0 auto 3rem;
  opacity: 0.5;
}

.closing-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* FOOTER */
.footer {
  background: #070F1A;
  padding: 2rem 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-content { padding: 0 6vw 10vh 6vw; }
  .hero-badge { top: 1.5rem; right: 6vw; }
  .pillars { padding: 6vh 6vw; }
  .pillars-grid { grid-template-columns: 1fr; gap: 1px; }
  .pillar-card { padding: 2rem; }
  .manifesto { padding: 7vh 6vw; }
  .journey { padding: 7vh 6vw; }
  .journey-steps { grid-template-columns: 1fr; }
  .closing { padding: 8vh 6vw; }
  .footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { flex-direction: column; gap: 0.5rem; }
}

/* HUB PAGE */
.hub-hero {
  background: var(--navy);
  padding: 8vh 8vw 7vh;
  position: relative;
  overflow: hidden;
}
.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(212,168,83,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hub-hero-inner { max-width: 700px; position: relative; z-index: 1; }
.hub-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hub-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hub-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 540px;
}

/* TABS */
.hub-tabs {
  background: var(--light-navy);
  border-bottom: 1px solid rgba(212,168,83,0.15);
  position: sticky;
  top: 60px;
  z-index: 99;
}
.hub-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  gap: 0;
}
.hub-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.hub-tab:hover { color: rgba(255,255,255,0.8); }
.hub-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* PANELS */
.hub-content { max-width: 1200px; margin: 0 auto; padding: 0 4vw 8vh; }
.hub-panel { display: none; padding-top: 4rem; }
.hub-panel.active { display: block; }
.panel-header { margin-bottom: 3rem; }
.panel-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.panel-header p { font-size: 0.95rem; color: var(--muted); max-width: 540px; line-height: 1.65; }

/* AI TOOL */
.ai-tool { max-width: 680px; }
.ai-form { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; min-width: 160px; }
.form-group--wide { flex: 1; min-width: 200px; }
.form-group label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal); }
.form-group select, .form-group input {
  background: #fff;
  border: 1px solid rgba(42,58,71,0.2);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  appearance: none;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--gold); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  align-self: flex-end;
  transition: opacity 0.2s;
}
.btn-gold:hover { opacity: 0.85; }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--charcoal);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  color: var(--charcoal);
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); }
.btn-ghost {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.6rem 0.8rem;
}

.ai-output {
  background: #fff;
  border: 1px solid rgba(42,58,71,0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.ai-output-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(42,58,71,0.1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.btn-copy {
  background: var(--cream);
  border: 1px solid rgba(42,58,71,0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.2s;
}
.btn-copy:hover { border-color: var(--gold); color: var(--navy); }
.ai-result {
  padding: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--charcoal);
  white-space: pre-wrap;
}
.ai-actions { display: flex; gap: 0.75rem; padding: 0.85rem 1.25rem; border-top: 1px solid rgba(42,58,71,0.1); }
.ai-loading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.ai-error {
  background: #fff0f0;
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  color: #c53030;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(42,58,71,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* TEMPLATES */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.template-card {
  background: #fff;
  border: 1px solid rgba(42,58,71,0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.template-card:hover { box-shadow: 0 4px 20px rgba(13,27,42,0.08); }
.template-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(42,58,71,0.08);
  background: var(--navy);
}
.template-platform-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
}
.template-type { font-size: 0.78rem; color: rgba(255,255,255,0.5); font-weight: 400; }
.template-card-body { padding: 1.25rem; }
.template-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.template-content {
  font-size: 0.85rem;
  color: rgba(42,58,71,0.7);
  line-height: 1.6;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  background: var(--cream);
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}
.template-textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(42,58,71,0.12);
  border-radius: 4px;
  padding: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--charcoal);
  resize: vertical;
  min-height: 120px;
}
.template-card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(42,58,71,0.08);
}
.btn-copy-tpl {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-copy-tpl:hover { opacity: 0.85; }

.template-filter { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.filter-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.filter-btn {
  background: transparent;
  border: 1px solid rgba(42,58,71,0.2);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* GUIDE */
.guide-timeline { position: relative; padding-left: 2rem; }
.guide-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(212,168,83,0.2) 100%);
}
.guide-day {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}
.guide-day::before {
  content: '';
  position: absolute;
  left: -2.15rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.guide-day-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.guide-day-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.guide-day-content p {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.guide-day-content ul {
  list-style: none;
  padding: 0;
}
.guide-day-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: rgba(42,58,71,0.75);
  line-height: 1.6;
}
.guide-day-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
  top: 0.1rem;
}
.guide-cta {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: var(--navy);
  border-radius: 8px;
}
.guide-cta p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 480px) {
  .hub-hero { padding: 6vh 6vw 5vh; }
  .hub-tabs-inner { overflow-x: auto; }
  .hub-tab { padding: 1rem 1rem; white-space: nowrap; }
  .templates-grid { grid-template-columns: 1fr; }
  .ai-form { flex-direction: column; }
  .form-group { min-width: 100%; }
  .guide-timeline { padding-left: 1.5rem; }
}
