/* ============================================================
   DREAM VACATION ORLANDO — Design System
   ds.css — Tokens, Layout, Components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,600&display=swap');

/* ========== DESIGN TOKENS ========== */
:root {
  /* Brand Colors */
  --blue:          #0b4d87;
  --blue-dark:     #083a68;
  --blue-deeper:   #062d52;
  --blue-light:    #1a6bb5;
  --blue-subtle:   #e8f0f8;
  --blue-muted:    #c4d9ef;

  --red:           #e3282d;
  --red-dark:      #c01f23;
  --red-light:     #f04a4e;
  --red-subtle:    #fde8e9;

  --gold:          #f2bc56;
  --gold-dark:     #d9a33c;
  --gold-deeper:   #b8882e;
  --gold-light:    #f7d07e;
  --gold-subtle:   #fef6e4;

  --white:         #ffffff;

  /* Neutral Scale */
  --n-950:  #0d0f1a;
  --n-900:  #1e2235;
  --n-800:  #2d3252;
  --n-700:  #3d4260;
  --n-600:  #545b78;
  --n-500:  #6b7280;
  --n-400:  #9ca3af;
  --n-300:  #d1d5db;
  --n-200:  #e5e7eb;
  --n-100:  #f3f4f6;
  --n-50:   #f9fafb;

  /* Semantic Roles */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f9fafb;
  --bg-tertiary:   #f3f4f6;
  --text-primary:  #1e2235;
  --text-second:   #545b78;
  --text-muted:    #9ca3af;
  --border:        #e5e7eb;
  --border-strong: #d1d5db;

  /* Typography */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type Scale */
  --t-xs:   0.6875rem;   /* 11px */
  --t-sm:   0.8125rem;   /* 13px */
  --t-base: 1rem;        /* 16px */
  --t-lg:   1.125rem;    /* 18px */
  --t-xl:   1.25rem;     /* 20px */
  --t-2xl:  1.5rem;      /* 24px */
  --t-3xl:  1.875rem;    /* 30px */
  --t-4xl:  2.25rem;     /* 36px */
  --t-5xl:  3rem;        /* 48px */
  --t-6xl:  3.75rem;     /* 60px */
  --t-7xl:  4.5rem;      /* 72px */

  /* Font Weights */
  --w-light:    300;
  --w-regular:  400;
  --w-medium:   500;
  --w-semibold: 600;
  --w-bold:     700;
  --w-extrabold:800;
  --w-black:    900;

  /* Line Heights */
  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;
  --lh-loose:   1.85;

  /* Letter Spacing */
  --ls-tight:   -0.03em;
  --ls-normal:  0em;
  --ls-wide:    0.04em;
  --ls-wider:   0.08em;
  --ls-widest:  0.14em;

  /* Spacing Scale */
  --sp-1:   0.25rem;   /* 4px */
  --sp-2:   0.5rem;    /* 8px */
  --sp-3:   0.75rem;   /* 12px */
  --sp-4:   1rem;      /* 16px */
  --sp-5:   1.25rem;   /* 20px */
  --sp-6:   1.5rem;    /* 24px */
  --sp-8:   2rem;      /* 32px */
  --sp-10:  2.5rem;    /* 40px */
  --sp-12:  3rem;      /* 48px */
  --sp-16:  4rem;      /* 64px */
  --sp-20:  5rem;      /* 80px */
  --sp-24:  6rem;      /* 96px */
  --sp-32:  8rem;      /* 128px */

  /* Border Radius */
  --r-xs:   2px;
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs:    0 1px 2px rgba(0,0,0,0.04);
  --sh-sm:    0 1px 4px rgba(0,0,0,0.06);
  --sh-md:    0 4px 12px rgba(0,0,0,0.08);
  --sh-lg:    0 8px 24px rgba(0,0,0,0.10);
  --sh-xl:    0 16px 48px rgba(0,0,0,0.12);
  --sh-2xl:   0 24px 64px rgba(0,0,0,0.14);
  --sh-blue:  0 4px 20px rgba(11,77,135,0.22);
  --sh-red:   0 4px 20px rgba(227,40,45,0.20);
  --sh-gold:  0 4px 20px rgba(242,188,86,0.30);

  /* Transitions */
  --ease-fast:  150ms cubic-bezier(0.4,0,0.2,1);
  --ease-base:  250ms cubic-bezier(0.4,0,0.2,1);
  --ease-slow:  400ms cubic-bezier(0.4,0,0.2,1);
  --ease-spring:300ms cubic-bezier(0.34,1.56,0.64,1);

  /* Layout */
  --sidebar-w: 268px;
  --content-max: 960px;
}

/* ========== BASE RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ========== LAYOUT ========== */
.ds-layout {
  display: flex;
  min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.ds-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--blue-deeper);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: transform var(--ease-base);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.ds-sidebar::-webkit-scrollbar { width: 4px; }
.ds-sidebar::-webkit-scrollbar-track { background: transparent; }
.ds-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.sidebar-brand {
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.sidebar-logo-text {
  font-size: var(--t-lg);
  font-weight: var(--w-black);
  color: var(--white);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.sidebar-logo-text span { color: var(--red); }
.sidebar-logo-text em { font-style: italic; color: var(--gold); }

.sidebar-tagline {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
}

.sidebar-version {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.3);
  margin-top: var(--sp-1);
}

.sidebar-nav {
  flex: 1;
  padding: var(--sp-4) 0 var(--sp-8);
}

.nav-group {
  margin-bottom: var(--sp-2);
}

.nav-group-label {
  display: block;
  padding: var(--sp-3) var(--sp-6) var(--sp-1);
  font-size: 9px;
  font-weight: var(--w-black);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-6);
  font-size: var(--t-sm);
  font-weight: var(--w-medium);
  color: rgba(255,255,255,0.65);
  border-left: 2px solid transparent;
  transition: all var(--ease-fast);
  line-height: var(--lh-snug);
}

.sidebar-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.sidebar-nav a.active {
  color: var(--white);
  border-left-color: var(--gold);
  background: rgba(255,255,255,0.08);
  font-weight: var(--w-semibold);
}

.sidebar-nav a .nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

.sidebar-nav a.active .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.3);
}

/* ========== MAIN CONTENT ========== */
.ds-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

/* ========== SECTION BASE ========== */
.ds-section {
  max-width: calc(var(--content-max) + var(--sp-24));
  padding: var(--sp-20) var(--sp-12);
  border-bottom: 1px solid var(--border);
}

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: var(--w-black);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-4);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: var(--r-full);
}

.section-eyebrow.red { color: var(--red); }
.section-eyebrow.red::before { background: var(--red); }
.section-eyebrow.gold { color: var(--gold-deeper); }
.section-eyebrow.gold::before { background: var(--gold); }

.section-title {
  font-size: var(--t-5xl);
  font-weight: var(--w-black);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-5);
}

.section-lead {
  font-size: var(--t-lg);
  color: var(--text-second);
  line-height: var(--lh-relaxed);
  max-width: 640px;
  margin-bottom: var(--sp-12);
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-12) 0;
}

/* ========== OVERVIEW / HERO SECTION ========== */
#overview {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 60%, var(--blue-light) 100%);
  padding: var(--sp-20) var(--sp-12);
  max-width: none;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

#overview::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(242,188,86,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

#overview::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(227,40,45,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.overview-inner {
  max-width: calc(var(--content-max) + var(--sp-24));
  position: relative;
  z-index: 1;
}

.overview-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--sp-8);
}

.overview-badge::before {
  content: '✦';
  font-size: 8px;
}

.overview-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: var(--w-black);
  color: var(--white);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-6);
  max-width: 700px;
}

.overview-title em {
  font-style: normal;
  color: var(--gold);
}

.overview-desc {
  font-size: var(--t-lg);
  color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-bottom: var(--sp-12);
}

.overview-stats {
  display: flex;
  gap: var(--sp-12);
  padding-top: var(--sp-10);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item { }

.stat-number {
  font-size: var(--t-3xl);
  font-weight: var(--w-black);
  color: var(--white);
  line-height: 1;
  letter-spacing: var(--ls-tight);
}

.stat-label {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--sp-1);
  font-weight: var(--w-medium);
}

/* Principles grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-12);
}

.principle-card {
  padding: var(--sp-6);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: box-shadow var(--ease-base), transform var(--ease-base);
}

.principle-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}

.principle-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-lg);
}

.principle-icon.blue { background: var(--blue-subtle); }
.principle-icon.red  { background: var(--red-subtle); }
.principle-icon.gold { background: var(--gold-subtle); }

.principle-name {
  font-size: var(--t-base);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.principle-desc {
  font-size: var(--t-sm);
  color: var(--text-second);
  line-height: var(--lh-relaxed);
}

/* ========== BRAND SECTION ========== */
.brand-essence {
  padding: var(--sp-12);
  background: var(--blue);
  border-radius: var(--r-2xl);
  color: var(--white);
  margin-bottom: var(--sp-12);
  position: relative;
  overflow: hidden;
}

.brand-essence::after {
  content: '✦';
  position: absolute;
  right: var(--sp-8);
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  color: rgba(255,255,255,0.05);
  line-height: 1;
}

.brand-essence-quote {
  font-size: var(--t-3xl);
  font-weight: var(--w-bold);
  line-height: var(--lh-snug);
  max-width: 640px;
  margin-bottom: var(--sp-4);
}

.brand-essence-quote em {
  font-style: normal;
  color: var(--gold);
}

.brand-essence-attr {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.55);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.attribute-pill {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-primary);
}

.attribute-symbol {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.attribute-name {
  font-size: var(--t-base);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.attribute-desc {
  font-size: var(--t-sm);
  color: var(--text-second);
  line-height: var(--lh-relaxed);
}

.positioning-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

.positioning-card {
  padding: var(--sp-8) var(--sp-8);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}

.positioning-card.featured {
  background: var(--n-50);
  border-color: var(--blue-muted);
}

.positioning-label {
  font-size: var(--t-xs);
  font-weight: var(--w-black);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-3);
}

.positioning-text {
  font-size: var(--t-xl);
  font-weight: var(--w-semibold);
  color: var(--text-primary);
  line-height: var(--lh-snug);
}

.tone-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.tone-table th {
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--t-xs);
  font-weight: var(--w-black);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--white);
  text-align: left;
}

.tone-table th:first-child { background: var(--blue); }
.tone-table th:last-child  { background: var(--red); }

.tone-table td {
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--t-sm);
  border-top: 1px solid var(--border);
  line-height: var(--lh-relaxed);
}

.tone-table td.good { color: var(--n-900); }
.tone-table td.avoid {
  color: var(--n-500);
  text-decoration: line-through;
  text-decoration-color: var(--red);
}

/* ========== LOGO SECTION ========== */
.logo-stage {
  padding: var(--sp-16) var(--sp-12);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-8);
}

.logo-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
  user-select: none;
}

.logo-text-dream {
  font-family: var(--font);
  font-size: 56px;
  font-weight: var(--w-black);
  font-style: italic;
  color: var(--red);
  letter-spacing: -1px;
  line-height: 1;
}

.logo-text-vacation {
  font-family: var(--font);
  font-size: 44px;
  font-weight: var(--w-black);
  font-style: italic;
  color: var(--blue);
  letter-spacing: -1px;
  line-height: 1;
  position: relative;
}

.logo-text-vacation::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -10%;
  width: 120%;
  height: 3px;
  background: var(--blue);
  border-radius: 50px;
  transform: rotate(-1deg);
}

.logo-text-orlando {
  font-family: var(--font);
  font-size: 18px;
  font-weight: var(--w-black);
  color: var(--blue);
  letter-spacing: var(--ls-widest);
  margin-top: 20px;
  text-transform: uppercase;
}

.logo-star {
  color: var(--gold);
  font-size: 10px;
  display: inline;
  vertical-align: super;
}

.logo-flyboy {
  font-size: 36px;
  transform: rotate(-15deg) translateX(4px);
  display: inline-block;
  color: var(--gold);
  line-height: 1;
}

.logo-variations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.logo-variant-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.logo-variant-preview {
  padding: var(--sp-12) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-bottom: 1px solid var(--border);
}

.logo-variant-preview.bg-white  { background: var(--white); }
.logo-variant-preview.bg-blue   { background: var(--blue); }
.logo-variant-preview.bg-red    { background: var(--red); }
.logo-variant-preview.bg-dark   { background: var(--n-900); }
.logo-variant-preview.bg-light  { background: var(--n-50); }

.logo-variant-info {
  padding: var(--sp-4) var(--sp-5);
}

.logo-variant-name {
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.logo-variant-desc {
  font-size: var(--t-xs);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

/* Logo do/don't grid */
.logo-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.logo-rule-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.logo-rule-preview {
  padding: var(--sp-8);
  background: var(--n-50);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  position: relative;
}

.logo-rule-preview.bad::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(227,40,45,0.06);
  border-bottom: 3px solid var(--red);
}

.logo-rule-text {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--t-xs);
  font-weight: var(--w-semibold);
  line-height: var(--lh-relaxed);
}

.logo-rule-text.bad { color: var(--red-dark); }

/* ========== COLOR SECTION ========== */
.color-palette-row {
  margin-bottom: var(--sp-12);
}

.color-row-title {
  font-size: var(--t-base);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.color-swatches.neutral-scale {
  grid-template-columns: repeat(5, 1fr);
}

.color-swatch {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--ease-fast), box-shadow var(--ease-fast);
}

.color-swatch:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.swatch-block {
  height: 100px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-2) var(--sp-3);
}

.swatch-copy {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  padding: 2px 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 9px;
  font-weight: var(--w-bold);
  color: rgba(255,255,255,0.8);
  opacity: 0;
  transition: opacity var(--ease-fast);
  pointer-events: none;
}

.color-swatch:hover .swatch-copy { opacity: 1; }

.swatch-info {
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
}

.swatch-name {
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.swatch-hex {
  font-size: var(--t-xs);
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Mono', monospace;
  letter-spacing: 0.03em;
}

.swatch-role {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  font-style: italic;
}

.color-semantic-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-12);
}

.color-semantic-table th {
  padding: var(--sp-3) var(--sp-5);
  background: var(--n-50);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-second);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.color-semantic-table td {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--t-sm);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.color-semantic-table tr:last-child td { border-bottom: none; }

.swatch-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  vertical-align: middle;
  margin-right: var(--sp-2);
}

.contrast-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
}

.contrast-badge.aaa { background: #d1fae5; color: #065f46; }
.contrast-badge.aa  { background: #dbeafe; color: #1e3a8a; }
.contrast-badge.fail{ background: #fee2e2; color: #991b1b; }

/* ========== TYPOGRAPHY SECTION ========== */
.type-specimen-large {
  padding: var(--sp-10) var(--sp-10);
  background: var(--n-50);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-6);
}

.type-specimen-display {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: var(--w-black);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.type-specimen-display .accent { color: var(--blue); }

.type-weight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.type-weight-card {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
}

.type-weight-sample {
  font-size: var(--t-3xl);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.type-weight-label {
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--w-bold);
}

.type-weight-value {
  font-size: var(--t-sm);
  color: var(--blue);
  font-family: monospace;
  font-weight: var(--w-regular);
}

.type-scale-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-12);
}

.type-scale-table th {
  padding: var(--sp-3) var(--sp-5);
  background: var(--n-50);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-second);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.type-scale-table td {
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.type-scale-table tr:last-child td { border-bottom: none; }

.type-scale-table td:nth-child(3) {
  font-family: 'SF Mono', 'Fira Mono', monospace;
  font-size: var(--t-xs);
  color: var(--blue);
}

.type-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.type-role-card {
  padding: var(--sp-6) var(--sp-7);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.type-role-label {
  font-size: var(--t-xs);
  font-weight: var(--w-black);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-3);
}

.type-composition-example {
  padding: var(--sp-10) var(--sp-10);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 560px;
}

.comp-eyebrow {
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-3);
}

.comp-headline {
  font-size: var(--t-4xl);
  font-weight: var(--w-black);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-4);
}

.comp-body {
  font-size: var(--t-base);
  color: var(--text-second);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}

.comp-caption {
  font-size: var(--t-xs);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
}

/* ========== FOUNDATIONS SECTION ========== */
.spacing-visual {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-12);
}

.spacing-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.spacing-bar {
  background: var(--blue);
  height: 24px;
  border-radius: var(--r-sm);
  opacity: 0.85;
  flex-shrink: 0;
  transition: opacity var(--ease-fast);
}

.spacing-bar:hover { opacity: 1; }

.spacing-info {
  display: flex;
  gap: var(--sp-4);
  align-items: baseline;
}

.spacing-token {
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  font-family: monospace;
  min-width: 64px;
}

.spacing-value {
  font-size: var(--t-xs);
  color: var(--text-muted);
  font-family: monospace;
}

.radius-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.radius-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.radius-preview {
  width: 80px;
  height: 80px;
  background: var(--blue-subtle);
  border: 2px solid var(--blue-muted);
}

.radius-info { text-align: center; }

.radius-token {
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  font-family: monospace;
}

.radius-value {
  font-size: var(--t-xs);
  color: var(--text-muted);
}

.shadow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

.shadow-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--white);
  border-radius: var(--r-xl);
  text-align: center;
}

.shadow-token {
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  font-family: monospace;
  margin-bottom: var(--sp-1);
}

.shadow-value {
  font-size: var(--t-xs);
  color: var(--text-muted);
  font-family: monospace;
}

.grid-demo {
  margin-bottom: var(--sp-12);
}

.grid-example {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--n-50);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.grid-col {
  background: var(--blue-subtle);
  border: 1px solid var(--blue-muted);
  border-radius: var(--r-sm);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: var(--w-bold);
  color: var(--blue);
}

.bp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-12);
}

.bp-table th {
  padding: var(--sp-3) var(--sp-5);
  background: var(--n-50);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-second);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.bp-table td {
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--border);
  font-size: var(--t-sm);
}

.bp-table tr:last-child td { border-bottom: none; }

.bp-table td:nth-child(2) {
  font-family: monospace;
  color: var(--blue);
}

/* ========== COMPONENTS SECTION ========== */
.component-block {
  margin-bottom: var(--sp-16);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--bg-primary);
}

.component-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-8);
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.component-name {
  font-size: var(--t-lg);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}

.component-desc {
  font-size: var(--t-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.component-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.component-tag {
  font-size: 10px;
  font-weight: var(--w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-subtle);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* Variant label row — labels each preview group */
.component-variant-label {
  font-size: 10px;
  font-weight: var(--w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-3) var(--sp-8);
  background: var(--n-50);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

/* Component group — wraps a labelled preview */
.component-group {
  border-top: 1px solid var(--border);
}
.component-group:first-of-type { border-top: none; }

/* Spec table inside component blocks */
.component-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
.component-spec-table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-6);
  font-size: 10px;
  font-weight: var(--w-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--n-50);
  border-bottom: 1px solid var(--border);
}
.component-spec-table td {
  padding: var(--sp-3) var(--sp-6);
  border-bottom: 1px solid var(--border);
  color: var(--text-second);
  vertical-align: middle;
  line-height: 1.5;
}
.component-spec-table tr:last-child td { border-bottom: none; }
.component-spec-table code {
  font-family: monospace;
  font-size: 11px;
  background: var(--n-100);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--blue);
}
.component-spec-table .spec-preview {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.component-preview {
  padding: var(--sp-10) var(--sp-8);
  background: var(--n-50);
  border: none;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.component-preview.dark {
  background: var(--n-900);
}

.component-preview.column {
  flex-direction: column;
  align-items: flex-start;
}

.component-code {
  background: var(--n-950);
  border: none;
  border-top: 1px solid var(--n-800);
  border-radius: 0;
  overflow: hidden;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-4);
  background: var(--n-900);
  border-bottom: 1px solid var(--n-800);
}

.code-lang {
  font-size: var(--t-xs);
  color: var(--n-400);
  font-family: monospace;
}

.code-copy-btn {
  font-size: var(--t-xs);
  color: var(--n-400);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--n-800);
  transition: all var(--ease-fast);
  font-family: var(--font);
  font-weight: var(--w-semibold);
}

.code-copy-btn:hover { background: var(--blue); color: var(--white); }
.code-copy-btn.copied { background: #065f46; color: #6ee7b7; }

.code-block {
  padding: var(--sp-5) var(--sp-6);
  font-family: 'SF Mono', 'Fira Mono', 'Fira Code', Consolas, monospace;
  font-size: var(--t-sm);
  color: var(--n-300);
  line-height: var(--lh-relaxed);
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

.code-block .c-tag   { color: #93c5fd; }
.code-block .c-attr  { color: #6ee7b7; }
.code-block .c-val   { color: #fca5a5; }
.code-block .c-cls   { color: #fcd34d; }
.code-block .c-str   { color: #fca5a5; }
.code-block .c-com   { color: #4b5563; }

/* ========== BUTTON COMPONENTS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-6);
  height: 44px;
  font-family: var(--font);
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-wide);
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm { height: 36px; padding: 0 var(--sp-5); font-size: var(--t-xs); }
.btn-lg { height: 52px; padding: 0 var(--sp-8); font-size: var(--t-base); }
.btn-xl { height: 60px; padding: 0 var(--sp-10); font-size: var(--t-lg); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(11,77,135,0.30);
}

.btn-primary:active { transform: translateY(0); }

.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: var(--sh-red);
}

.btn-danger:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--n-900);
  border-color: var(--gold);
  box-shadow: var(--sh-gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-second);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--n-50);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ========== CARD COMPONENTS ========== */
.property-card {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--ease-base), transform var(--ease-base);
  cursor: pointer;
}

.property-card:hover {
  box-shadow: var(--sh-xl);
  transform: translateY(-4px);
}

.property-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blue-subtle), var(--gold-subtle));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}
.property-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-card-badges {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
}

.card-badge {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-wide);
}

.card-badge.themed { background: var(--blue); color: var(--white); }
.card-badge.available { background: #d1fae5; color: #065f46; }
.card-badge.pool { background: var(--gold-subtle); color: var(--gold-deeper); border: 1px solid var(--gold); }
.card-badge.new { background: var(--red); color: var(--white); }

.property-card-body {
  padding: var(--sp-5) var(--sp-6);
}

.property-card-location {
  font-size: var(--t-xs);
  font-weight: var(--w-semibold);
  color: var(--text-muted);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.property-card-title {
  font-size: var(--t-lg);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  line-height: var(--lh-snug);
}

.property-card-meta {
  display: flex;
  gap: var(--sp-4);
  font-size: var(--t-sm);
  color: var(--text-second);
  margin-bottom: var(--sp-4);
}

.property-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.property-card-price {
  font-size: var(--t-xl);
  font-weight: var(--w-black);
  color: var(--blue);
}

.property-card-price span {
  font-size: var(--t-sm);
  font-weight: var(--w-regular);
  color: var(--text-muted);
}

.testimonial-card {
  padding: var(--sp-8) var(--sp-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--sp-5);
  left: var(--sp-6);
  font-size: 80px;
  color: var(--gold-subtle);
  line-height: 1;
  font-weight: var(--w-black);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-4);
}

.star { color: var(--gold); font-size: var(--t-base); }

.testimonial-text {
  font-size: var(--t-base);
  color: var(--text-second);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-subtle), var(--blue-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--w-bold);
  color: var(--blue);
  font-size: var(--t-base);
  flex-shrink: 0;
}

.author-name {
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--text-primary);
}

.author-location {
  font-size: var(--t-xs);
  color: var(--text-muted);
}

.feature-card {
  padding: var(--sp-8) var(--sp-7);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--white);
  transition: all var(--ease-base);
}

.feature-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
  border-color: var(--blue-muted);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-5);
}

.feature-icon.blue { background: var(--blue-subtle); }
.feature-icon.red  { background: var(--red-subtle); }
.feature-icon.gold { background: var(--gold-subtle); }

.feature-title {
  font-size: var(--t-lg);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.feature-desc {
  font-size: var(--t-sm);
  color: var(--text-second);
  line-height: var(--lh-relaxed);
}

/* ========== HEADER COMPONENT ========== */
.header-demo {
  background: var(--white);
  box-shadow: var(--sh-sm);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-8);
  border-bottom: 1px solid var(--border);
}

.header-logo-text {
  font-size: var(--t-xl);
  font-weight: var(--w-black);
  font-style: italic;
  color: var(--red);
  white-space: nowrap;
}

.header-logo-text span { color: var(--blue); }

.header-nav {
  display: flex;
  gap: var(--sp-8);
}

.header-nav-link {
  font-size: var(--t-sm);
  font-weight: var(--w-semibold);
  color: var(--text-second);
  transition: color var(--ease-fast);
  white-space: nowrap;
}

.header-nav-link:hover { color: var(--blue); }
.header-nav-link.active { color: var(--blue); }

.header-cta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* ========== HERO BLOCK ========== */
.hero-demo {
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 100%);
  padding: var(--sp-16) var(--sp-12);
  text-align: center;
  position: relative;
}

.hero-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-6);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--w-black);
  color: var(--white);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-5);
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-size: var(--t-lg);
  color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-row {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BADGE COMPONENTS ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-wide);
  white-space: nowrap;
}

.badge-blue   { background: var(--blue-subtle); color: var(--blue); }
.badge-red    { background: var(--red-subtle); color: var(--red-dark); }
.badge-gold   { background: var(--gold-subtle); color: var(--gold-deeper); border: 1px solid var(--gold); }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-dark   { background: var(--n-900); color: var(--white); }

.badge-themed    { background: var(--blue); color: var(--white); }
.badge-pool      { background: #dbeafe; color: #1e3a8a; }
.badge-gameroom  { background: var(--red-subtle); color: var(--red-dark); }

/* ========== FORM COMPONENTS ========== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form-label {
  font-size: var(--t-sm);
  font-weight: var(--w-semibold);
  color: var(--text-primary);
}

.form-label .required { color: var(--red); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0 var(--sp-4);
  height: 44px;
  font-family: var(--font);
  font-size: var(--t-base);
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-lg);
  outline: none;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-textarea {
  height: auto;
  padding: var(--sp-3) var(--sp-4);
  resize: vertical;
  min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--n-400); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,77,135,0.1);
}

.form-input.error,
.form-select.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227,40,45,0.08);
}

.form-hint {
  font-size: var(--t-xs);
  color: var(--text-muted);
}

.form-error-msg {
  font-size: var(--t-xs);
  color: var(--red);
  font-weight: var(--w-medium);
}

.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: '▾';
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: var(--t-sm);
}

/* ========== FAQ / ACCORDION ========== */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--t-base);
  font-weight: var(--w-semibold);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  background: var(--white);
  transition: background var(--ease-fast);
  gap: var(--sp-4);
}

.faq-question:hover { background: var(--n-50); }
.faq-question.open  { background: var(--blue-subtle); color: var(--blue); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--ease-base);
  font-size: 16px;
  line-height: 1;
}

.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: var(--t-base);
  color: var(--text-second);
  line-height: var(--lh-relaxed);
  background: var(--white);
}

.faq-answer.open { display: block; }

/* ========== CTA COMPONENTS ========== */
.cta-banner {
  padding: var(--sp-12) var(--sp-12);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.cta-content { flex: 1; }

.cta-overline {
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}

.cta-title {
  font-size: var(--t-3xl);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-3);
}

.cta-subtitle {
  font-size: var(--t-base);
  color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* ========== STATS STRIP ========== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--n-900);
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.stat-block {
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-block:last-child { border-right: none; }

.stat-num {
  font-size: var(--t-4xl);
  font-weight: var(--w-black);
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-num .stat-accent { color: var(--gold); }

.stat-desc {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.5);
  font-weight: var(--w-medium);
}

/* ========== FOOTER COMPONENT ========== */
.footer-demo {
  background: var(--n-900);
  border-radius: var(--r-2xl);
  overflow: hidden;
  padding: var(--sp-10) var(--sp-10);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.5);
  line-height: var(--lh-relaxed);
  margin-top: var(--sp-3);
  max-width: 260px;
}

.footer-col-title {
  font-size: var(--t-xs);
  font-weight: var(--w-black);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--ease-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.35);
}

/* ========== PROMOTIONAL BANNER ========== */
.promo-banner {
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(90deg, var(--red-dark) 0%, var(--red) 100%);
  padding: var(--sp-6) var(--sp-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.promo-badge {
  padding: var(--sp-2) var(--sp-5);
  background: var(--gold);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: var(--w-black);
  color: var(--n-900);
  white-space: nowrap;
}

.promo-text {
  color: var(--white);
}

.promo-title {
  font-size: var(--t-xl);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
}

.promo-sub {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* ========== SOCIAL MEDIA SECTION ========== */
.social-formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-12);
}

.social-format-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.social-format-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--n-50);
  padding: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

.social-canvas {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--sp-4);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}

.social-canvas::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.social-canvas-label {
  position: relative;
  z-index: 1;
  font-size: 7px;
  font-weight: var(--w-black);
  color: var(--gold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.social-canvas-title {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: var(--w-black);
  color: var(--white);
  line-height: 1.3;
}

.social-format-info {
  padding: var(--sp-4) var(--sp-5);
}

.social-format-name {
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.social-format-specs {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.social-spec {
  font-size: var(--t-xs);
  color: var(--text-muted);
  display: flex;
  gap: var(--sp-2);
}

.social-spec strong { color: var(--text-second); font-weight: var(--w-semibold); min-width: 60px; }

.social-rule-block {
  padding: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-5);
}

.social-rule-block.do {
  border-color: #86efac;
  background: #f0fdf4;
}

.social-rule-block.dont {
  border-color: #fca5a5;
  background: #fff1f2;
}

.social-rule-heading {
  font-size: var(--t-sm);
  font-weight: var(--w-black);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.social-rule-block.do .social-rule-heading { color: #15803d; }
.social-rule-block.dont .social-rule-heading { color: var(--red-dark); }

.social-rule-list li {
  font-size: var(--t-sm);
  color: var(--text-second);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  line-height: var(--lh-relaxed);
}

.social-rule-list li:last-child { border-bottom: none; }

.social-rule-list.do li::before  { content: '✓'; color: #16a34a; font-weight: var(--w-bold); flex-shrink: 0; }
.social-rule-list.dont li::before { content: '✗'; color: var(--red); font-weight: var(--w-bold); flex-shrink: 0; }

/* ========== CONTENT / TONE SECTION ========== */
.voice-spectrum {
  display: flex;
  gap: 0;
  margin-bottom: var(--sp-12);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.voice-pole {
  flex: 1;
  padding: var(--sp-6) var(--sp-6);
  text-align: center;
}

.voice-pole:first-child { background: var(--blue-subtle); }
.voice-pole:last-child  { background: var(--n-50); }

.voice-pole-word {
  font-size: var(--t-xl);
  font-weight: var(--w-black);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.voice-pole-not {
  font-size: var(--t-sm);
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--red);
}

.copy-example {
  padding: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-4);
}

.copy-context {
  font-size: var(--t-xs);
  font-weight: var(--w-black);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-3);
}

.copy-do {
  padding: var(--sp-4) var(--sp-5);
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--r-lg);
  font-size: var(--t-base);
  color: var(--text-primary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-3);
  position: relative;
}

.copy-do::before {
  content: 'USE';
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-3);
  font-size: 9px;
  font-weight: var(--w-black);
  color: #15803d;
  letter-spacing: var(--ls-wider);
}

.copy-dont {
  padding: var(--sp-4) var(--sp-5);
  background: #fff1f2;
  border: 1px solid #fca5a5;
  border-radius: var(--r-lg);
  font-size: var(--t-base);
  color: var(--n-500);
  line-height: var(--lh-relaxed);
  text-decoration: line-through;
  text-decoration-color: rgba(227,40,45,0.4);
  position: relative;
}

.copy-dont::before {
  content: 'EVITE';
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-3);
  font-size: 9px;
  font-weight: var(--w-black);
  color: var(--red-dark);
  letter-spacing: var(--ls-wider);
  text-decoration: none;
}

/* ========== DOWNLOADS SECTION ========== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--white);
  transition: all var(--ease-base);
}

.download-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
  transform: translateY(-2px);
}

.download-info {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.download-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  background: var(--blue-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.download-name {
  font-size: var(--t-base);
  font-weight: var(--w-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.download-meta {
  font-size: var(--t-xs);
  color: var(--text-muted);
}

.download-btn {
  flex-shrink: 0;
}

/* ========== TOKEN DISPLAY ========== */
.token-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--n-50);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--ease-fast);
}

.token-row:hover {
  background: var(--blue-subtle);
  border-color: var(--blue-muted);
}

.token-name {
  font-size: var(--t-sm);
  font-family: monospace;
  color: var(--blue);
  font-weight: var(--w-semibold);
}

.token-val {
  font-size: var(--t-sm);
  font-family: monospace;
  color: var(--text-second);
}

/* ========== TEMPLATES SECTION ========== */
.template-card {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin-bottom: var(--sp-8);
}

.template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  background: var(--n-50);
  border-bottom: 1px solid var(--border);
}

.template-name {
  font-size: var(--t-base);
  font-weight: var(--w-bold);
  color: var(--text-primary);
}

.template-preview {
  padding: var(--sp-8);
  background: var(--white);
  display: flex;
  gap: var(--sp-4);
}

.wireframe-block {
  background: var(--n-100);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-xs);
  color: var(--text-muted);
  font-weight: var(--w-semibold);
}

/* ========== MOBILE TOGGLE ========== */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 200;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-lg);
  font-size: var(--t-xl);
  box-shadow: var(--sh-md);
  align-items: center;
  justify-content: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  :root { --sidebar-w: 240px; }
  .ds-section { padding: var(--sp-16) var(--sp-8); }
  .principles-grid,
  .attributes-grid { grid-template-columns: repeat(2, 1fr); }
  .type-weight-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 768px) {
  .sidebar-toggle { display: flex; }
  .sidebar-overlay.visible { display: block; }

  .ds-sidebar {
    transform: translateX(-100%);
  }

  .ds-sidebar.open {
    transform: translateX(0);
  }

  .ds-main {
    margin-left: 0;
  }

  .ds-section { padding: var(--sp-12) var(--sp-6); }
  #overview { padding: var(--sp-16) var(--sp-6); }

  .section-title { font-size: var(--t-4xl); }
  .overview-title { font-size: var(--t-4xl); }
  .overview-stats { gap: var(--sp-6); }

  .principles-grid,
  .attributes-grid,
  .logo-variations-grid,
  .logo-rules-grid,
  .color-swatches,
  .color-swatches.neutral-scale,
  .type-weight-grid,
  .type-roles-grid,
  .radius-grid,
  .shadow-grid,
  .social-formats-grid,
  .downloads-grid,
  .token-grid { grid-template-columns: 1fr; }

  .positioning-block { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }

  .color-swatches { grid-template-columns: repeat(2, 1fr); }
  .logo-rules-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ds-section { padding: var(--sp-10) var(--sp-4); }
  .color-swatches { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: 1fr; }
}

/* ========== UTILITY ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }
.text-muted   { color: var(--text-muted); }
.text-blue    { color: var(--blue); }
.text-red     { color: var(--red); }
.text-gold    { color: var(--gold-deeper); }
.font-mono    { font-family: 'SF Mono', 'Fira Mono', monospace; }
.text-center  { text-align: center; }
.inline-flex  { display: inline-flex; }
.flex         { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.flex-wrap { flex-wrap: wrap; }
