:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #efeae0;
  --fg-muted: #8a8682;
  --fg-dim: #5a5854;
  --accent: #2da760;
  --accent-glow: rgba(45, 167, 96, 0.18);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Subtle aurora background */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.aurora::before {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: -20vw; left: -10vw;
  animation: drift 28s ease-in-out infinite;
}
.aurora::after {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(45, 167, 96, 0.08), transparent 70%);
  bottom: -15vw; right: -10vw;
  animation: drift 34s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

/* Subtle grid */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.4;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 0 0;
  animation: fadeDown 1s 0.1s ease-out both;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}
.nav-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.nav-mark span {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--fg);
  font-weight: 500;
}
.nav-meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 0 60px;
}

.logo-mark {
  width: 132px;
  height: auto;
  color: var(--accent);
  margin-bottom: 56px;
  animation: fadeUp 1.2s 0.2s ease-out both;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 8.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 22px;
  animation: fadeUp 1.2s 0.4s ease-out both;
}
.wordmark em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  margin-bottom: 36px;
  animation: fadeUp 1.2s 0.55s ease-out both;
}

.pitch {
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 56px;
  animation: fadeUp 1.2s 0.7s ease-out both;
}
.pitch strong { color: var(--fg); font-weight: 500; }
.pitch em { font-family: var(--serif); font-style: italic; color: var(--fg); font-size: 1.05em; }

/* Email form */
.signup {
  display: flex;
  gap: 8px;
  max-width: 460px;
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 1.2s 0.85s ease-out both;
}
.signup:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.signup input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 18px;
}
.signup input::placeholder { color: var(--fg-dim); }
.signup button {
  background: var(--accent);
  color: #0a1f10;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.signup button:hover { background: #38c972; transform: translateY(-1px); }
.signup button:active { transform: translateY(0); }

.signup-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--fg-dim);
  animation: fadeUp 1.2s 1s ease-out both;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 80px 0 60px;
  animation: fadeUp 1.4s 1.1s ease-out both;
}
.pillar {
  background: var(--bg);
  padding: 32px 28px;
  text-align: left;
}
.pillar-num {
  display: inline-block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  font-weight: 500;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: 0.005em;
}
.pillar p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.pillar p code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.92em;
}

/* Field guide */
.guide {
  max-width: 720px;
  margin: 24px auto 40px;
  padding: 0 8px;
  animation: fadeUp 1.4s 1.2s ease-out both;
}
.guide-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--fg);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}
.guide-title em {
  color: var(--accent);
  font-style: italic;
}
.guide-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.guide-item:last-child { border-bottom: 1px solid var(--line); }
.guide-q {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.guide-q::before {
  content: "Q. ";
  color: var(--accent);
  font-weight: 500;
}
.guide-a {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  padding-left: 1.6em;
  text-indent: -1.6em;
}
.guide-a::before {
  content: "A. ";
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 500;
}
.guide-a code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  color: var(--fg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
}
.guide-a em { font-family: var(--serif); font-style: italic; color: var(--fg); }

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 12px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  animation: fadeUp 1.4s 1.3s ease-out both;
}
footer a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 22px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 720px) {
  main { padding: 20px; }
  .hero { padding: 50px 0 40px; }
  .logo-mark { width: 104px; margin-bottom: 40px; }
  .pillars { grid-template-columns: 1fr; margin: 60px 0 40px; }
  .signup { flex-direction: column; border-radius: 16px; padding: 8px; }
  .signup input { padding: 14px 16px; }
  .signup button { padding: 14px 20px; border-radius: 12px; }
  footer { flex-direction: column; gap: 14px; text-align: center; }
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  max-width: 320px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.toast.success { border-color: var(--accent); }
.toast.error { border-color: #c0524a; }
.toast-title {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.toast-msg {
  color: var(--fg-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.signup button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 720px) {
  .toast { top: 16px; right: 16px; left: 16px; max-width: none; }
}

/* Selection */
::selection { background: var(--accent); color: var(--bg); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
