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

:root {
  --bg:       #06100a;
  --bg2:      #091509;
  --green:    #4ade80;
  --green-dim:#2d5a38;
  --text:     #e8f5e9;
  --muted:    #6b9e78;
  --serif:    'EB Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #0d2018 0%, #06100a 60%);
}

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

.stars span {
  position: absolute;
  border-radius: 50%;
  background: #ddeeff;
  animation: twinkle linear infinite;
  filter: blur(0.3px);
}

@keyframes twinkle {
  0%, 100% { opacity: var(--op, 0.5); transform: scale(1); }
  50%       { opacity: calc(var(--op, 0.5) * 0.35); transform: scale(0.85); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  max-width: 680px;
}

.crest-logo-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.crest-logo {
  width: 160px;
  height: 160px;
  border-radius: 32px;          /* iOS-style rounded square */
  box-shadow:
    0 0 0 1px rgba(74,222,128,0.15),
    0 0 40px rgba(74,222,128,0.12),
    0 20px 60px rgba(0,0,0,0.5);
  object-fit: cover;
  display: block;
}

.crest-name-row {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  opacity: 0.7;
}

.footer-crest {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.8;
}

h1 {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--green-dim);
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.badge.secondary {
  background: transparent;
  border: 1px solid var(--green-dim);
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
  opacity: 0.5;
  font-size: 22px;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
  padding: 96px 0;
}

.section.what {
  background: var(--bg2);
}

.section.phases {
  background: var(--bg);
}

.section.principles {
  background: var(--bg2);
}

.section.parents {
  background: var(--bg);
}

h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
}

p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 680px;
}

/* ── Two-col ──────────────────────────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.two-col p {
  margin-bottom: 16px;
  color: rgba(232,245,233,0.75);
}

@media (max-width: 620px) {
  .two-col { grid-template-columns: 1fr; gap: 0; }
}

/* ── Phases ───────────────────────────────────────────────────────────── */

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.phase {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px 20px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}

.phase:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.phase-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0.8;
}

.phase-age {
  font-size: 12px;
  color: var(--muted);
}

.phase strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-top: 4px;
}

.phase p {
  font-size: 14px;
  color: rgba(232,245,233,0.55);
  line-height: 1.5;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .phase-grid { grid-template-columns: 1fr; }
}

/* ── Principles ───────────────────────────────────────────────────────── */

.principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 8px;
}

.principles-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.principles-list .icon {
  color: var(--green);
  font-size: 16px;
  margin-top: 5px;
  flex-shrink: 0;
  opacity: 0.7;
}

.principles-list strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}

.principles-list p {
  color: rgba(232,245,233,0.65);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

footer {
  padding: 56px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.footer-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.footer-sub.small {
  font-size: 12px;
  opacity: 0.5;
}

.footer-legal {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-legal a {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.65;
  letter-spacing: 0.02em;
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--green);
}
