/* ══════════════════════════════════════════════════════════════
   Dotts.info — Architectural Ledger Landing Page
   Design System: Gilded Parchment / Modern Amber
   ══════════════════════════════════════════════════════════════ */

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

:root {
  /* Brand — Architectural Ledger */
  --primary: #785600;
  --primary-container: #986D00;
  --on-primary: #FFFFFF;
  --secondary: #735C00;
  --secondary-container: #FED65B;
  --tertiary: #085EA2;
  --error: #BA1A1A;

  /* Surfaces */
  --surface: #FBF9F1;
  --surface-lowest: #FFFFFF;
  --surface-low: #F6F4EC;
  --surface-container: #F0EEE6;
  --surface-high: #EAE8E0;
  --surface-highest: #E4E3DB;

  /* Text */
  --on-surface: #1B1C17;
  --on-surface-variant: #4F4535;
  --outline: #817563;
  --outline-variant: #D3C4AF;

  /* Gradients */
  --gradient-amber: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  --gradient-gold-text: linear-gradient(135deg, #785600 0%, #A67C00 100%);

  /* Typography */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --section-py: clamp(80px, 10vw, 140px);
  --max-w: 1200px;
  --px: clamp(20px, 5vw, 40px);

  /* Radius */
  --r-card: 2rem;
  --r-btn: 0.75rem;
  --r-pill: 9999px;

  /* Shadows — ambient only */
  --shadow-sm: 0 1px 3px rgba(27,28,23,0.04);
  --shadow-card: 0 4px 24px rgba(27,28,23,0.06);
  --shadow-hero: 0 25px 80px rgba(120,86,0,0.08);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utilities ──────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.label-sm { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-surface-variant); opacity: 0.6; }
.text-gold {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--r-btn); border: none;
  background: var(--gradient-amber); color: #fff;
  font-family: var(--font); font-size: 15px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  transition: brightness 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--r-btn);
  border: 1.5px solid var(--outline-variant); background: transparent;
  color: var(--primary); font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--primary); background: rgba(120,86,0,0.04); }

/* ── Navigation ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 16px 0;
  background: rgba(251,249,241,0.85);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled { background: rgba(251,249,241,0.98); box-shadow: 0 1px 0 var(--surface-high); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-brand span { font-size: 22px; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--on-surface-variant);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn-primary { padding: 10px 24px; font-size: 14px; }
.nav-actions .btn-outline { padding: 10px 24px; font-size: 14px; }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--primary); font-size: 28px;
}
.nav-hamburger .material-symbols-outlined { font-size: 28px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
  background: var(--surface-highest); z-index: 60;
  padding: 24px; display: flex; flex-direction: column; gap: 24px;
  transition: right 0.3s var(--ease);
}
.mobile-drawer.open { right: 0; }
.mobile-drawer-overlay {
  position: fixed; inset: 0; background: rgba(27,28,23,0.4); z-index: 55;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-close { align-self: flex-end; background: none; border: none; cursor: pointer; color: var(--on-surface); font-size: 24px; padding: 4px; }
.mobile-drawer a {
  display: block; padding: 14px 16px; font-size: 16px; font-weight: 600;
  color: var(--on-surface); text-decoration: none; border-radius: 12px;
  transition: background 0.2s;
}
.mobile-drawer a:hover { background: var(--surface-low); }

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding: calc(100px + var(--section-py)) 0 var(--section-py);
  position: relative; overflow: hidden;
}
.hero-bg-glow {
  position: absolute; top: -20%; right: -15%; width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center;
}
.hero-text { max-width: 540px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--on-surface-variant);
  line-height: 1.7; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: var(--r-card);
  box-shadow: var(--shadow-hero);
}
.hero-logo-bg {
  position: absolute; top: -30px; right: -60px; width: 200px; opacity: 0.06;
  pointer-events: none;
}

/* ── Trust Bar ──────────────────────────────────── */
.trust { background: var(--surface-low); padding: 48px 0; }
.trust-inner { text-align: center; }
.trust-label { margin-bottom: 28px; }
.trust-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.trust-logos img {
  height: 32px; object-fit: contain; filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s var(--ease);
}
.trust-logos img:hover { filter: grayscale(0%) opacity(1); }

/* ── Features Grid ──────────────────────────────── */
.features { padding: var(--section-py) 0; }
.features-header { text-align: center; margin-bottom: 56px; }
.features-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.features-header p { font-size: 17px; color: var(--on-surface-variant); max-width: 560px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--surface-lowest); padding: 36px 28px; border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(120,86,0,0.06); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--primary);
}
.feature-icon .material-symbols-outlined { font-size: 26px; font-variation-settings: 'FILL' 1; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--on-surface); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--on-surface-variant); line-height: 1.65; }

/* ── Deep Dive ──────────────────────────────────── */
.deep-dive { padding: var(--section-py) 0; }
.deep-dive-row {
  display: grid; grid-template-columns: 7fr 5fr; gap: 56px;
  align-items: center; margin-bottom: 80px;
}
.deep-dive-row.reverse { grid-template-columns: 5fr 7fr; }
.deep-dive-row.reverse .deep-dive-img { order: 2; }
.deep-dive-img img {
  width: 100%; border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.deep-dive-img.mobile img { max-width: 280px; margin: 0 auto; display: block; }
.deep-dive-text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 16px; }
.deep-dive-text p { font-size: 16px; color: var(--on-surface-variant); line-height: 1.7; }

/* ── How It Works ───────────────────────────────── */
.how-it-works { background: var(--surface-low); padding: var(--section-py) 0; }
.how-header { text-align: center; margin-bottom: 56px; }
.how-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.how-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.how-step { text-align: center; }
.how-step-num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.how-step-icon { color: var(--primary); margin-bottom: 12px; }
.how-step-icon .material-symbols-outlined { font-size: 32px; font-variation-settings: 'FILL' 1; }
.how-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.how-step p { font-size: 14px; color: var(--on-surface-variant); line-height: 1.65; max-width: 300px; margin: 0 auto; }

/* ── Security ───────────────────────────────────── */
.security {
  background: var(--primary); color: var(--on-primary);
  padding: var(--section-py) 0; position: relative; overflow: hidden;
}
.security-glow {
  position: absolute; top: -20%; left: -10%; width: 50%; height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.security-inner { position: relative; z-index: 1; }
.security h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 48px; text-align: center; }
.security-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto;
}
.security-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; border-radius: 16px; background: rgba(255,255,255,0.08);
}
.security-item .material-symbols-outlined { font-size: 28px; flex-shrink: 0; color: #FED65B; font-variation-settings: 'FILL' 1; }
.security-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.security-item p { font-size: 13px; opacity: 0.75; line-height: 1.5; }

/* ── Early Access ───────────────────────────────── */
.early-access { padding: var(--section-py) 0; text-align: center; }
.early-card {
  background: var(--surface-lowest); border-radius: var(--r-card);
  padding: 56px 48px; max-width: 560px; margin: 0 auto;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.early-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-amber);
}
.early-card .label-sm { margin-bottom: 8px; }
.early-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }
.early-list { list-style: none; text-align: left; margin-bottom: 32px; }
.early-list li {
  padding: 8px 0; font-size: 15px; color: var(--on-surface-variant);
  display: flex; align-items: center; gap: 10px;
}
.early-list .material-symbols-outlined { font-size: 20px; color: var(--primary); font-variation-settings: 'FILL' 1; }

/* ── Footer ─────────────────────────────────────── */
.site-footer { background: var(--surface-highest); padding: 56px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span { font-size: 20px; font-weight: 800; }
.footer-tagline { font-size: 13px; color: var(--on-surface-variant); line-height: 1.6; }
.footer-col h4 {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--on-surface-variant); opacity: 0.6;
  margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--on-surface); text-decoration: none;
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--outline-variant);
  padding-top: 20px; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: var(--on-surface-variant);
}

/* ── Accessibility Button ───────────────────────── */
.a11y-btn {
  position: fixed; bottom: 70px; left: 16px; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--outline-variant); background: var(--surface-lowest);
  color: var(--primary); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  transition: background 0.2s, transform 0.2s;
}
.a11y-btn:hover { background: var(--primary); color: var(--on-primary); transform: scale(1.08); }
.a11y-btn:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Cookie Consent ─────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(251,249,241,0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 -1px 0 var(--surface-high);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--on-surface-variant);
  transform: translateY(100%); transition: transform 0.4s var(--ease);
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar a { color: var(--primary); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btns button {
  padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font); border: none; transition: opacity 0.2s;
}
.cookie-accept { background: var(--gradient-amber); color: #fff; background-size: 100%; }
.cookie-reject { background: transparent; color: var(--on-surface-variant); border: 1px solid var(--outline-variant) !important; }

/* ── Modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(27,28,23,0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface-lowest); border-radius: var(--r-card);
  max-width: 680px; width: 100%; max-height: 80vh; overflow-y: auto;
  padding: 40px; position: relative;
}
.modal h2 { font-size: 24px; font-weight: 800; color: var(--on-surface); margin-bottom: 8px; }
.modal .updated { font-size: 12px; color: var(--on-surface-variant); margin-bottom: 24px; }
.modal h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; color: var(--on-surface); }
.modal p, .modal li { font-size: 14px; line-height: 1.7; color: var(--on-surface-variant); margin-bottom: 8px; }
.modal ul { padding-left: 20px; }
.modal a { color: var(--primary); }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--on-surface-variant); font-size: 22px; cursor: pointer;
  padding: 4px 10px; border-radius: 8px; transition: background 0.2s;
}
.modal-close:hover { background: var(--surface-low); }
.modal-close:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Animations ─────────────────────────────────── */
[data-animate] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-visual { max-width: 600px; margin: 0 auto; }
  .hero-visual img { transform: none; }
  .hero-logo-bg { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .deep-dive-row, .deep-dive-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .deep-dive-row.reverse .deep-dive-img { order: 0; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(36px, 8vw, 52px); }
  .early-card { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1; transform: none; }
}
