/* ===== CSS Variables ===== */
:root {
  --bg: #0c0f14;
  --bg-alt: #12161e;
  --bg-card: #171c26;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --max-width: 1100px;
  --header-h: 72px;
}

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

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Typography ===== */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; }

.section-lead, .hero-lead, .cta-lead {
  color: var(--text-muted);
  max-width: 36rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-lead {
  margin: 0.75rem auto 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #0c0f14;
}

.btn-primary:hover { background: #d4ad2e; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

.btn-nav {
  background: var(--accent);
  color: #0c0f14;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin: 0.5rem 0 1.5rem;
  font-weight: 400;
}

.hero-lead {
  font-size: 1.125rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-gradient {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

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

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.about-text p strong { color: var(--text); }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-card h3 {
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.about-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-card li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.about-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.card-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== Principles ===== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.principle-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

.principle-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.principle-card h3 {
  margin-bottom: 0.5rem;
}

.principle-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== Architecture ===== */
.architecture-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.arch-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.arch-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
}

.arch-content h3 {
  margin-bottom: 0.35rem;
}

.arch-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ===== Audience ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.audience-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.audience-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ===== CTA / Waitlist ===== */
.cta-section {
  padding-bottom: 4rem;
}

.cta-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.cta-box .cta-lead {
  margin: 1rem auto 2rem;
}

.waitlist-form .form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-radius: 8px;
  color: #f5a5ad;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-success {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 500;
}

.waitlist-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.recaptcha-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

.recaptcha-note a {
  color: var(--text-muted);
  text-decoration: underline;
}

.recaptcha-note a:hover {
  color: var(--text);
}


/* ===== Invitation ===== */
.invitation {
  text-align: center;
  padding: 4rem 0 5rem;
}

.invitation blockquote {
  max-width: 28rem;
  margin: 0 auto;
}

.invitation blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.invitation cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

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

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 20rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-legal {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-legal p + p { margin-top: 0.5rem; }

.ip-note {
  max-width: 36rem;
  opacity: 0.85;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .waitlist-form .form-row {
    flex-direction: column;
  }

  .waitlist-form input[type="email"],
  .waitlist-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .arch-item { flex-direction: column; gap: 0.75rem; }
}
