:root {
  --ink: #07131c;
  --deep: #0b1c28;
  --teal: #143447;
  --stone: #2f6f82;
  --mist: #9ec4cf;
  --paper: #f3eee4;
  --muted: #b7c7ce;
  --amber: #d4a45a;
  --amber-deep: #b8843a;
  --line: rgba(158, 196, 207, 0.22);
  --font-display: "Cormorant Garamond", "Songti SC", "Noto Serif SC", serif;
  --font-body: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 55% at 70% 18%, rgba(47, 111, 130, 0.35), transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 75%, rgba(20, 52, 71, 0.9), transparent 60%),
    linear-gradient(165deg, #0a1822 0%, #07131c 48%, #0d2230 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}

.mist-a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: -8%;
  right: 8%;
  background: rgba(47, 111, 130, 0.35);
}

.mist-b {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  left: -6%;
  bottom: 12%;
  background: rgba(212, 164, 90, 0.12);
  animation-delay: -6s;
}

.top,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.top {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(158, 196, 207, 0.25);
}

.top-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a:hover {
  color: var(--paper);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 48px 0 72px;
}

.brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  max-width: 12em;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--paper);
}

.lede {
  margin: 18px 0 0;
  max-width: 28em;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.cta-glyph {
  width: 18px;
  height: 18px;
}

.cta.primary {
  background: var(--amber);
  color: #1a1208;
}

.cta.primary:hover {
  background: var(--amber-deep);
  transform: translateY(-1px);
}

.cta.ghost {
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
}

.cta.ghost:hover {
  border-color: rgba(243, 238, 228, 0.45);
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: min(68vh, 560px);
  perspective: 900px;
}

.council-field {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform 280ms ease;
}

.ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(158, 196, 207, 0.28);
}

.ring-outer {
  inset: 4%;
  box-shadow: 0 0 60px rgba(47, 111, 130, 0.18) inset;
  animation: breathe 7s ease-in-out infinite;
}

.ring-mid {
  inset: 18%;
  border-color: rgba(158, 196, 207, 0.38);
  animation: spin 48s linear infinite;
}

.ring-inner {
  inset: 34%;
  border-color: rgba(212, 164, 90, 0.28);
  animation: breathe 5.5s ease-in-out infinite reverse;
}

.core {
  position: absolute;
  inset: 38%;
  display: grid;
  place-items: center;
  border-radius: 22%;
  background: rgba(7, 19, 28, 0.55);
  box-shadow:
    0 0 0 1px rgba(158, 196, 207, 0.28),
    0 12px 40px rgba(0, 0, 0, 0.35);
  animation: pulse 4.8s ease-in-out infinite;
  overflow: hidden;
}

.core img {
  width: 72%;
  height: 72%;
  object-fit: cover;
  border-radius: 18%;
}

.seat {
  position: absolute;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.seat span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(243, 238, 228, 0.88);
  box-shadow: 0 0 16px rgba(158, 196, 207, 0.55);
}

.seat-1 { top: 5%; left: 47%; }
.seat-2 { top: 26%; right: 6%; }
.seat-3 { bottom: 14%; right: 16%; }
.seat-4 { bottom: 14%; left: 16%; }
.seat-5 { top: 26%; left: 6%; }

.section {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 24px;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-bottom: 88px;
  margin-top: 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mist);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
}

.section-lede {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 34em;
}

.pillars {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.pillars li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 52, 71, 0.35);
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.pillars strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.pillars li > div > span {
  color: var(--muted);
  max-width: 36em;
}

.steps {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}

.step-index {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--amber);
  line-height: 1;
  padding-top: 4px;
}

.steps strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.download {
  padding-bottom: 96px;
}

.download-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
}

.download-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(158, 196, 207, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.download-panel .section-lede {
  margin-top: 10px;
}

.download-panel .cta-row {
  margin-top: 24px;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-note {
  margin: 0;
  color: rgba(183, 199, 206, 0.7);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 240ms; }
.delay-3 { animation-delay: 360ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(24px, -18px, 0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .hero-visual {
    order: -1;
    min-height: auto;
  }

  .council-field {
    width: min(78vw, 340px);
  }

  .brand {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }
}

@media (max-width: 640px) {
  .top {
    width: calc(100% - 28px);
    padding-top: 20px;
  }

  .top-nav {
    gap: 14px;
    font-size: 0.88rem;
  }

  .hero,
  .section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .steps li {
    grid-template-columns: 48px 1fr;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .mist,
  .ring,
  .core {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
