/* ============================================================
   clavitor — global stylesheet
   ONE rule per class. No exceptions. No inline styles.
   All layout, spacing, color and type lives here.
   ============================================================ */

/* === TOKENS === */
:root {
  --width:        1280px;
  --pad:          2rem;
  --radius:       1rem;
  --radius-sm:    0.5rem;
  --gap:          1.25rem;

  --bg:           #0d1520;
  --surface:      #142542;
  --surface-alt:  #0e2414;
  --surface-gold: #2a1f00;

  --border:       rgba(255,255,255,0.09);
  --border-gold:  rgba(212,175,55,0.3);

  --text:         #f1f5f9;
  --muted:        #94a3b8;
  --subtle:       #64748b;

  --accent:       #4ade80;
  --gold:         #D4AF37;
  --red:          #EF4444;

  --font-sans:    Inter, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body                   { background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.6; }
a                      { color: inherit; text-decoration: none; }
img, svg               { display: block; max-width: 100%; }

/* === LAYOUT === */
.container             { max-width: var(--width); margin: 0 auto; padding: 0 var(--pad); }
.section               { padding-top: 5rem; padding-bottom: 5rem; }
hr.divider             { border: none; border-top: 1px solid var(--border); }

/* === TYPOGRAPHY === */
h1                     { font-size: clamp(2rem, 4vw, 3.5rem);    font-weight: 800; line-height: 1.1; color: var(--text); }
h2                     { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; color: var(--text); }
h3                     { font-size: 1.2rem;   font-weight: 700; line-height: 1.3; color: var(--text); }
p                      { color: var(--muted); font-size: 1rem;   line-height: 1.75; }
p.lead                 { font-size: 1.125rem; }

/* === LABELS === */
.label                 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.label.accent          { color: var(--accent); }
.label.gold            { color: var(--gold); }
.label.red             { color: var(--red); }

/* === VAULTNAME === */
.vaultname             { font-family: var(--font-mono); font-weight: 700; color: var(--text); }
.vaultname .n          { color: var(--accent); }

/* === CARDS === */
.card                  { background: rgba(100,140,200,0.18); border: 1px solid rgba(148,163,184,0.22); border-radius: var(--radius); padding: 1.75rem; }
.card.alt              { background: rgba(34,197,94,0.15);   border-color: rgba(34,197,94,0.3);                                                       }
.card.gold             { background: rgba(212,175,55,0.15);  border-color: rgba(212,175,55,0.35);                                                      }
.card.red              { background: rgba(239,68,68,0.15);   border-color: rgba(239,68,68,0.3);                                                        }
.card-hover            { transition: transform 0.2s, box-shadow 0.2s; border-color: rgba(255,255,255,0.12); }
.card-hover:hover      { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* === GRID === */
.grid-2                { display: grid; grid-template-columns: 1fr 1fr;     gap: var(--gap); }
.grid-3                { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); }

/* === BUTTONS === */
.btn                   { display: inline-block; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; padding: 0.625rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: opacity 0.15s; text-align: center; }
.btn:hover             { opacity: 1; filter: brightness(1.15); }
.btn-primary           { background: var(--accent);             color: var(--bg);     border-color: var(--accent);                }
.btn-ghost             { background: transparent;               color: var(--text);   border-color: rgba(74,222,128,0.4);         }
.btn-accent            { background: rgba(34,197,94,0.15);      color: var(--accent); border-color: rgba(34,197,94,0.3);          }
.btn-gold              { background: rgba(212,175,55,0.15);     color: var(--gold);   border-color: rgba(212,175,55,0.3);         }
.btn-red               { background: rgba(239,68,68,0.15);      color: var(--red);    border-color: rgba(239,68,68,0.3);          }
.btn-block             { display: block; width: 100%; }
.btn-row               { display: flex; flex-wrap: wrap; gap: 1rem; }

/* === HERO === */
.hero                  { padding-top: 100px; padding-bottom: 4rem; text-align: center; }
.hero h1               { margin-bottom: 1rem; }
.hero p.lead           { max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-split            { padding-top: 100px; padding-bottom: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* === MAP === */
.map-wrap              { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrap svg          { display: block; width: 100%; background: var(--bg); }
.map-gap               { height: 1rem; }

/* === DC GRID (3 action cards below map) === */
#dc-grid               { display: flex; gap: var(--gap); }
#dc-grid .dc-card      { flex: 1; min-width: 0; border-radius: var(--radius); padding: 1rem; text-align: center; background: var(--surface); border: 1px solid var(--border); }
#dc-grid .dc-card.gold { background: var(--surface-gold); border-color: var(--border-gold); }
#dc-grid .dc-card.red  { background: #1a0505;             border-color: rgba(239,68,68,0.3); }
#dc-grid .dc-icon      { font-size: 1.5rem; margin-bottom: 0.375rem; }
#dc-grid .dc-name      { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
#dc-grid .dc-sub       { font-size: 0.75rem;  color: var(--subtle); margin-bottom: 0.625rem; }
#dc-grid .dc-status    { display: flex; align-items: center; justify-content: center; gap: 0.375rem; font-size: 0.75rem; color: var(--subtle); margin-bottom: 0.75rem; }
#dc-grid .dc-dot       { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* === SPACING === */
.mt-2  { margin-top: 0.5rem;  }  .mb-2  { margin-bottom: 0.5rem;  }
.mt-3  { margin-top: 0.75rem; }  .mb-3  { margin-bottom: 0.75rem; }
.mt-4  { margin-top: 1rem;    }  .mb-4  { margin-bottom: 1rem;    }
.mt-6  { margin-top: 1.5rem;  }  .mb-6  { margin-bottom: 1.5rem;  }
.mt-8  { margin-top: 2rem;    }  .mb-8  { margin-bottom: 2rem;    }
.mt-12 { margin-top: 3rem;    }  .mb-12 { margin-bottom: 3rem;    }

/* === ANIMATIONS === */
@keyframes hostedPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.3; transform:scale(1.8); } }

/* === NAV === */
.nav                   { position: fixed; top: 0; width: 100%; z-index: 50; background: rgba(10,22,40,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner             { max-width: var(--width); margin: 0 auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo              { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.nav-logo .n           { color: var(--accent); }
.nav-links             { display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; }
.nav-link              { color: var(--muted); transition: color 0.15s; }
.nav-link:hover        { color: var(--text); }
.nav-link.active       { color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 0.375rem; }
.nav-link.active::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--gold); animation: hostedPulse 2s ease-in-out infinite; }

/* --- Nav dropdown --- */
.nav-dropdown          { position: relative; }
.nav-dropdown > a      { cursor: pointer; }
.nav-dropdown-menu     { display: none; position: absolute; top: 100%; right: 0; padding-top: 0.75rem; min-width: 10rem; z-index: 100; }
.nav-dropdown-menu-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem 0; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.nav-dropdown-menu a   { display: block; padding: 0.5rem 1rem; color: var(--muted); font-size: 0.8125rem; transition: color 0.15s, background 0.15s; }
.nav-dropdown-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

/* === GRADIENT TEXT === */
.gradient-text         { background: linear-gradient(135deg, #22C55E 0%, #4ade80 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* === CODE BLOCKS === */
.code-block            { background: rgba(0,0,0,0.6); border: 1px solid rgba(148,163,184,0.2); border-radius: var(--radius); padding: 1.5rem; font-family: var(--font-mono); font-size: 0.875rem; overflow-x: auto; line-height: 1.7; }
.code-block .prompt    { color: var(--accent); }
.code-block .comment   { color: var(--subtle); }
.code-label            { font-size: 0.75rem; color: var(--subtle); margin-bottom: 0.75rem; font-family: var(--font-sans); }
.code-block pre        { margin: 0; color: var(--muted); }
pre, code              { font-family: var(--font-mono); }

/* === FEATURE ICON === */
.feature-icon          { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: rgba(34,197,94,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; flex-shrink: 0; }
.feature-icon svg      { width: 1.25rem; height: 1.25rem; color: var(--accent); stroke: var(--accent); }
.feature-icon.red      { background: rgba(239,68,68,0.1); }
.feature-icon.red svg  { color: var(--red); stroke: var(--red); }

/* === CHECK LIST === */
.checklist             { list-style: none; }
.checklist li          { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.75rem; }
.checklist li::before  { content: ''; width: 1rem; height: 1rem; flex-shrink: 0; background: var(--accent); border-radius: 50%; margin-top: 0.125rem; clip-path: polygon(20% 50%, 40% 70%, 80% 25%, 85% 30%, 40% 80%, 15% 55%); }
.checklist.red li::before { background: var(--red); }

/* === FOOTER === */
.footer                { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-inner          { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-links          { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--subtle); }
.footer-links a        { color: var(--subtle); transition: color 0.15s; }
.footer-links a:hover  { color: var(--muted); }
.footer-copy           { text-align: center; font-size: 0.75rem; color: var(--subtle); margin-top: 2rem; }

/* === PROSE (legal pages) === */
.prose h2              { font-size: 1.375rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 1rem; }
.prose h3              { font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 1.75rem 0 0.75rem; }
.prose p               { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.prose ul              { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1rem; line-height: 1.8; }
.prose a               { color: var(--accent); }
.prose a:hover         { text-decoration: underline; }

/* === BADGE === */
.badge                 { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 9999px; }
.badge.accent          { background: rgba(34,197,94,0.15); color: var(--accent); border: 1px solid rgba(34,197,94,0.3); }
.badge.gold            { background: rgba(212,175,55,0.15); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }
.badge.recommended     { background: var(--accent); color: var(--bg); }
.badge.red             { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }

/* === PRICING CARDS === */
.price-card            { border-radius: var(--radius); border: 1px solid var(--border); padding: 2.5rem; background: rgba(100,140,200,0.08); }
.price-card.featured   { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.06); }
.price-amount          { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; }
.price-period          { font-size: 1rem; color: var(--muted); font-weight: 400; }

/* === SCROLL === */
html                   { scroll-behavior: smooth; }

/* === ANIMATIONS (pulse for map/decorative) === */
@keyframes pulseDot    { 0%,100% { transform:scale(1); } 50% { transform:scale(1.15); } }
@keyframes pulseRing   { 0% { transform:scale(0.8); opacity:1; } 100% { transform:scale(2.5); opacity:0; } }
.pulse-dot             { animation: pulseDot 2s ease-in-out infinite; }
.pulse-ring            { animation: pulseRing 2s ease-out infinite; }
.pulse-ring-2          { animation: pulseRing 2s ease-out infinite 0.5s; }
