/* ===== FataWaktu Brand Tokens ===== */
:root {
  --bg: #0a0a12;
  --bg-card: #0f0f1e;
  --bg-card-alt: #141428;
  --fg: #f0ead8;
  --fg-muted: #a09880;
  --accent: #c9a84c;
  --accent-dim: rgba(201, 168, 76, 0.18);
  --accent-mid: rgba(201, 168, 76, 0.4);
  --parchment: #f4ede0;
  --border: rgba(201, 168, 76, 0.12);
  --border-mid: rgba(201, 168, 76, 0.25);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.nav-systems {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 3rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Animated stars */
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  animation: twinkle 4s ease-in-out infinite;
}
.star-1 { width: 2px; height: 2px; top: 12%; left: 8%; animation-delay: 0s; }
.star-2 { width: 1.5px; height: 1.5px; top: 22%; left: 85%; animation-delay: 1.2s; }
.star-3 { width: 2px; height: 2px; top: 65%; left: 5%; animation-delay: 2.5s; }
.star-4 { width: 1px; height: 1px; top: 45%; left: 92%; animation-delay: 0.8s; }
.star-5 { width: 1.5px; height: 1.5px; top: 85%; left: 75%; animation-delay: 3.1s; }
.star-6 { width: 2px; height: 2px; top: 8%; left: 55%; animation-delay: 1.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

/* Orbital rings */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.07;
  animation: orbit-spin 20s linear infinite;
}
.ring-1 { width: 300px; height: 300px; animation-duration: 22s; }
.ring-2 { width: 440px; height: 440px; animation-duration: 30s; animation-direction: reverse; opacity: 0.05; }
.ring-3 { width: 580px; height: 580px; animation-duration: 38s; }
.ring-4 { width: 720px; height: 720px; animation-duration: 50s; animation-direction: reverse; opacity: 0.03; }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Central globe */
.globe {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.3;
  animation: pulse-ring 3s ease-in-out infinite;
}
.globe-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--accent), #8a6a20);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  animation: fade-up 1s ease-out;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--parchment);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

/* Four orb badges */
.hero-orbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.orb svg {
  width: 40px;
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.orb:hover svg { opacity: 1; }

.orb span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ===== Section Shared Styles ===== */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--parchment);
  margin-bottom: 1.5rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 560px;
}

/* ===== Systems Section ===== */
.systems {
  padding: 7rem 3rem;
  position: relative;
}

.systems::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  opacity: 0.3;
}

.systems-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.systems-inner .section-title {
  max-width: 520px;
}

.system-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  margin-top: 4rem;
  background: var(--border);
  border: 1px solid var(--border);
}

.system-card {
  background: var(--bg-card);
  padding: 2.5rem 2.5rem 2rem;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.system-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.system-card:hover { background: var(--bg-card-alt); }
.system-card:hover::after { opacity: 0.6; }

.card-icon svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: block;
}

.system-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.75rem;
}

.system-card p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-mid);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

/* ===== Daily Section ===== */
.daily {
  padding: 7rem 3rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.daily-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.daily-flow {
  display: flex;
  align-items: center;
  margin-top: 4rem;
  margin-bottom: 4rem;
  gap: 0;
}

.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.flow-connector {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-mid), var(--accent), var(--border-mid));
  flex-shrink: 0;
  margin: 0 1rem;
  margin-top: -2rem;
}

.daily-quote {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem;
  border: 1px solid var(--border);
  position: relative;
}

.daily-quote::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.daily-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== Manifesto Section ===== */
.manifesto {
  padding: 7rem 3rem;
  position: relative;
  overflow: hidden;
}

.manifesto-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.m-star {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.06;
}
.m-1 { width: 300px; height: 300px; top: -80px; left: -60px; }
.m-2 { width: 200px; height: 200px; bottom: -40px; right: -40px; }
.m-3 { width: 150px; height: 150px; top: 40%; left: 60%; }
.m-4 { width: 100px; height: 100px; bottom: 20%; right: 20%; }

.manifesto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--parchment);
  margin-bottom: 4rem;
  max-width: 500px;
}

.manifesto-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.m-col h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.m-col p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ===== Closing Section ===== */
.closing {
  padding: 8rem 3rem 7rem;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.closing-glyph {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
}

.closing-glyph svg {
  width: 80px;
  height: 80px;
  animation: glyph-spin 40s linear infinite;
}

@keyframes glyph-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.closing-tagline {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.closing-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.4;
}

/* ===== CTA Button ===== */
.cta-btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 2.2rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-systems { display: none; }

  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-sub { font-size: 0.95rem; }

  .systems { padding: 5rem 1.5rem; }
  .system-cards { grid-template-columns: 1fr; }

  .daily { padding: 5rem 1.5rem; }
  .daily-flow { flex-direction: column; gap: 2.5rem; }
  .flow-connector { width: 1px; height: 40px; margin: 0; background: linear-gradient(to bottom, var(--border-mid), var(--accent), var(--border-mid)); }

  .manifesto { padding: 5rem 1.5rem; }
  .manifesto-columns { grid-template-columns: 1fr; gap: 2rem; }

  .closing { padding: 5rem 1.5rem 4rem; }
  .closing-title { font-size: 3rem; }

  .footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}