/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf8f5;
  --bg-dark: #1a1a3e;
  --fg: #1a1a3e;
  --fg-light: #faf8f5;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text-muted: #6b7280;
  --text-light: #faf8f5;
  --kingdom-start: #fde68a;
  --kingdom-end: #fb923c;
  --glitch-start: #6366f1;
  --glitch-end: #1e1b4b;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-orb--warm {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  top: -100px;
  left: -200px;
}

.hero-orb--cool {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: -100px;
  right: -150px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 40px;
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 40px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--fg-light);
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero-headline--line1 {
  display: block;
  opacity: 0.7;
  font-weight: 300;
}

.hero-headline--line2 em {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(250, 248, 245, 0.7);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--fg-light);
  font-weight: 400;
  font-style: italic;
}

.hero-tagline strong {
  color: var(--accent);
  font-weight: 700;
  font-style: normal;
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  background: var(--bg);
  border-bottom: 1px solid rgba(26, 26, 62, 0.1);
}

.philosophy-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 40px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  align-items: start;
}

.philosophy-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.3;
}

.philosophy-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 20px;
}

.philosophy-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== FEATURES ===== */
.features {
  background: var(--bg);
  padding: 100px 0;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.features-header {
  text-align: center;
  margin-bottom: 70px;
}

.features-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.features-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--fg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 62, 0.08);
  border-radius: 20px;
  padding: 40px 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26, 26, 62, 0.1);
}

.feature-icon {
  margin-bottom: 24px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== WORLDS (Kingdom / Glitch) ===== */
.worlds {
  background: var(--bg-dark);
  padding: 100px 0;
}

.worlds-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.worlds-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.5);
  margin-bottom: 60px;
}

.worlds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.world-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 48px 40px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.world-card-bg {
  position: absolute;
  inset: 0;
}

.world-card--kingdom .world-card-bg {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #1a1a3e 100%);
}

.world-card--glitch .world-card-bg {
  background: linear-gradient(135deg, #6366f1 0%, #1e1b4b 50%, #0f0f23 100%);
}

.world-card-content {
  position: relative;
  z-index: 1;
}

.world-mode-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.6);
  margin-bottom: 16px;
}

.world-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.world-desc {
  font-size: 0.95rem;
  color: rgba(250, 248, 245, 0.8);
  line-height: 1.7;
  margin-bottom: 24px;
}

.world-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.world-list li {
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.7);
  padding-left: 20px;
  position: relative;
}

.world-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== MANIFESTO ===== */
.manifesto {
  background: var(--bg);
  padding: 100px 0;
  border-top: 1px solid rgba(26, 26, 62, 0.1);
  border-bottom: 1px solid rgba(26, 26, 62, 0.1);
}

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.manifesto-quote {
  border-left: 3px solid var(--accent);
  padding-left: 40px;
  margin-bottom: 60px;
}

.manifesto-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
  font-weight: 400;
}

.manifesto-attribution {
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.manifesto-cta {}

.manifesto-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
}

/* ===== CLOSING ===== */
.closing {
  background: var(--bg-dark);
  padding: 100px 0;
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
}

.closing-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(250, 248, 245, 0.6);
  margin-bottom: 48px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(26, 26, 62, 0.1);
  padding: 60px 0;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(26, 26, 62, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner { padding: 80px 24px; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 20px; padding: 60px 24px; }
  .philosophy-number { font-size: 3rem; }
  .features-inner { padding: 60px 24px; }
  .worlds-inner { padding: 60px 24px; }
  .worlds-grid { grid-template-columns: 1fr; }
  .world-card { min-height: 400px; }
  .manifesto-inner { padding: 60px 24px; }
  .manifesto-quote { padding-left: 24px; }
  .closing-inner { padding: 60px 24px; }
  .footer-inner { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .btn-primary { padding: 14px 28px; font-size: 0.9rem; }
}
