:root {
  --bg-deep: #060b14;
  --bg-navy: #0e1b33;
  --bg-card: rgba(16, 27, 48, 0.72);
  --bg-card-strong: rgba(14, 24, 44, 0.92);
  --border-glass: rgba(255, 255, 255, 0.11);
  --border-gold: rgba(212, 175, 90, 0.38);
  --gold: #d4af5a;
  --gold-bright: #f2d479;
  --gold-dim: #9c7928;
  --text: #f3f6fc;
  --text-muted: #a2b0c9;
  --text-soft: #7b8aa5;
  --emerald: #34d399;
  --crimson: #f87171;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-glow: 0 28px 80px rgba(3, 7, 16, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 14% -5%, rgba(212, 175, 90, 0.13), transparent 60%),
    radial-gradient(850px 580px at 88% 8%, rgba(44, 82, 130, 0.28), transparent 60%),
    radial-gradient(700px 600px at 50% 100%, rgba(22, 42, 76, 0.45), transparent 65%),
    var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle architectural grid overlay */
.bg-blueprint {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(212, 175, 90, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 90, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 25%, rgba(0, 0, 0, 0.9), transparent 78%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.font-display {
  font-family: 'Cinzel', Georgia, serif;
}

/* Top Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 11, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-lockup img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(212, 175, 90, 0.25);
}

.brand-name {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, #b88b2e 100%);
  color: #091122;
  box-shadow: 0 10px 30px rgba(212, 175, 90, 0.28);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(212, 175, 90, 0.38);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass);
  color: var(--text);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-gold);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  padding: 68px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  align-items: center;
}

.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 90, 0.11);
  border: 1px solid rgba(212, 175, 90, 0.3);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-bright);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.25rem, 4.4vw, 3.55rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.gold-gradient {
  background: linear-gradient(125deg, #ffffff 10%, var(--gold-bright) 52%, #c99733 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* Quick invite code bar */
.code-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 430px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(14, 24, 44, 0.85);
  border: 1px solid var(--border-glass);
}

.code-jump span {
  font-size: 0.8rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.code-jump input {
  flex: 1;
  min-width: 90px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Architectural Phone Mockup */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-halo {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 90, 0.22), transparent 68%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(18px);
}

.phone-frame {
  position: relative;
  width: 326px;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.phone-screen {
  border-radius: 32px;
  background: linear-gradient(180deg, #0b1426 0%, #09101f 100%);
  padding: 18px 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-island {
  width: 88px;
  height: 22px;
  border-radius: 999px;
  background: #04070d;
  margin: 0 auto 14px;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.phone-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.phone-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px 13px;
  margin-bottom: 10px;
}

.phone-card.featured {
  background: linear-gradient(145deg, rgba(22, 42, 76, 0.9), rgba(14, 24, 44, 0.9));
  border-color: rgba(212, 175, 90, 0.34);
}

.phone-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 90, 0.18);
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.phone-card h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
}

.phone-card p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.phone-pill-row {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.phone-mini-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.phone-mini-pill.gold {
  background: rgba(212, 175, 90, 0.22);
  color: var(--gold-bright);
}

/* Bento Feature Grid */
.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.section-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-glow);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 90, 0.13);
  border: 1px solid rgba(212, 175, 90, 0.28);
  color: var(--gold-bright);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.glass-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.glass-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Waitlist Card */
.waitlist-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(145deg, rgba(20, 35, 64, 0.86), rgba(10, 18, 33, 0.92));
  border: 1px solid rgba(212, 175, 90, 0.3);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-glow);
}

.waitlist-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.waitlist-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.waitlist-points li strong {
  color: var(--text);
}

.check-badge {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212, 175, 90, 0.18);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  margin-top: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 11, 20, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 90, 0.15);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  display: none;
}

.form-status.ok {
  display: block;
  background: rgba(52, 211, 153, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: #a7f3d0;
}

.form-status.err {
  display: block;
  background: rgba(248, 113, 113, 0.13);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: #fecaca;
}

/* Join Landing Page */
.join-container {
  max-width: 600px;
  margin: 48px auto 72px;
}

.lodge-crest {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lodge-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(6, 11, 20, 0.75);
  border: 1px dashed rgba(212, 175, 90, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 24px;
}

.meta-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0 44px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold-bright);
}

@media (max-width: 960px) {
  .hero-grid,
  .waitlist-shell,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  .waitlist-shell {
    padding: 26px 20px;
  }

  .nav-links .hide-sm {
    display: none;
  }
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
