/* ==========================================================================
   PORTAL-VTT LANDING PAGE (APPLE GLASS · SLATE & PARCHMENT TOKENS)
   ========================================================================== */

:root,
[data-theme="slate"] {
  --bg-canvas: #0b0e14;
  --bg-surface: rgba(22, 26, 35, 0.78);
  --bg-subpanel: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.09);
  --text-primary: #f5f5f7;
  --text-muted: #98a2b3;
  --accent-primary: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.48);
  --surface-spec: rgba(255, 255, 255, 0.08);
  --glow-a: rgba(139, 92, 246, 0.22);
  --glow-b: rgba(56, 189, 248, 0.1);
  --grid-line: rgba(255, 255, 255, 0.04);
  --badge-ok: #6ee7b7;
}

[data-theme="parchment"] {
  --bg-canvas: #f2f2f7;
  --bg-surface: rgba(255, 255, 255, 0.84);
  --bg-subpanel: rgba(120, 120, 128, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.1);
  --hairline: rgba(15, 23, 42, 0.08);
  --text-primary: #1d1d1f;
  --text-muted: #6e6e73;
  --accent-primary: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --shadow-float: 0 18px 44px rgba(15, 23, 42, 0.1);
  --surface-spec: rgba(255, 255, 255, 0.7);
  --glow-a: rgba(124, 58, 237, 0.13);
  --glow-b: rgba(14, 165, 233, 0.08);
  --grid-line: rgba(15, 23, 42, 0.045);
  --badge-ok: #059669;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(ellipse 75% 55% at 50% -10%, var(--glow-a), transparent 70%),
    radial-gradient(ellipse 55% 40% at 85% 20%, var(--glow-b), transparent 65%);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.landing-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-float), inset 0 1px 0 var(--surface-spec);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.glass-sub {
  background: var(--bg-subpanel);
  border: 1px solid var(--hairline);
}

/* Navbar */
.landing-nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding-top: 14px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px 10px 16px;
  border-radius: 999px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subpanel);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.btn:hover {
  background: var(--surface-spec);
  transform: translateY(-1px);
}

.btn:focus-visible,
.landing-input:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--badge-ok);
}

/* Auth Notice Banner */
.auth-notice {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.hidden {
  display: none !important;
}

/* Hero */
.hero {
  padding: 56px 0 42px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-title {
  margin: 14px 0 14px;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.join-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  max-width: 440px;
}

.landing-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 12.5px;
  padding: 7px 12px;
}

.landing-input::placeholder {
  color: var(--text-muted);
}

/* Stylized Board Preview */
.preview-card {
  border-radius: 26px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 11px;
}

.preview-board {
  height: 250px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background-color: rgba(8, 11, 18, 0.85);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 42% 48%, rgba(139, 92, 246, 0.28), transparent 52%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}

.preview-token {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.preview-token--ally {
  left: 36%;
  top: 42%;
  background: #6366f1;
  border: 2px solid #a5b4fc;
}

.preview-token--foe {
  left: 66%;
  top: 30%;
  background: #e11d48;
  border: 2px solid #fda4af;
}

.preview-dock {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  color: #f5f5f7;
  background: rgba(15, 20, 30, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.feature-card h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card--pro {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--accent-soft), inset 0 1px 0 var(--surface-spec);
}

.plan-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.plan-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  font-size: 22px;
  font-weight: 700;
}

.plan-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-list li::before {
  content: '✓';
  color: var(--badge-ok);
  font-weight: 700;
}

.landing-footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
