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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f6f3;
  --bg-card: #f3f0ec;
  --bg-card-hover: #ece8e2;
  --border: #e2ddd5;
  --border-subtle: #ebe7e1;
  --text-primary: #1a1714;
  --text-secondary: #6b6560;
  --text-tertiary: #9a9490;
  --accent: #9a7b4a;
  --accent-dark: #7a6038;
  --accent-dim: rgba(154, 123, 74, 0.08);
  --accent-border: rgba(154, 123, 74, 0.20);
  --green: #4a8a64;
  --green-dim: rgba(74, 138, 100, 0.08);
  --red: #9a5a5a;
  --red-dim: rgba(154, 90, 90, 0.08);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Nav ─────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img { height: 22px; width: auto; display: block; }
.footer-logo-img { height: 20px; width: auto; display: block; margin-bottom: 12px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-item > a:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.03);
}

.nav-chevron {
  width: 12px; height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s;
}

.nav-item:hover .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  z-index: 1001;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
}

.nav-dropdown a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-dropdown-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px 4px;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-section:last-child { border-bottom: none; }

.mobile-menu-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--text-primary); }

/* ── Shared section styles ───────────── */
.page-section {
  padding: 110px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.65;
}

/* ── Waitlist form ───────────────────── */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  width: 100%;
}

.waitlist-form input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input::placeholder { color: var(--text-tertiary); }
.waitlist-form input:focus { border-color: var(--accent); }

.waitlist-form button {
  padding: 14px 28px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.waitlist-form button:hover { opacity: 0.85; }

/* ── Footer ──────────────────────────── */
.site-footer {
  background: var(--text-primary);
  color: #bbb5ae;
}

.footer-inner {
  max-width: 1176px;
  margin: 0 auto;
  padding: 64px 48px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand-tagline {
  font-size: 14px;
  color: #8a847e;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: #8a847e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #bbb5ae;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: #6a645e;
}

/* ── Sub-page hero ───────────────────── */
.subpage-hero {
  padding: 140px 24px 80px;
  max-width: 1080px;
  margin: 0 auto;
}

.subpage-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.subpage-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Content blocks for sub-pages ────── */
.content-section {
  padding: 80px 24px;
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}

.content-block h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}

.content-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Responsive ──────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  header { padding: 0 24px; }
  .page-section { padding: 80px 20px; }
  .subpage-hero { padding: 120px 20px 60px; }
  .content-section { padding: 60px 20px; }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner { padding: 48px 24px 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
  header { padding: 0 16px; }
}

/* ── Animations ──────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
