/* ═══════════════════════════════════════════════════
   KUMAR PERSONAL BRAND — DESIGN SYSTEM v1.0
   Tokens, Typography, Layout Utilities
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@300;400;500&family=Syne:wght@400;600;700;800&display=swap');

/* ── TOKENS ── */
:root {
  /* Colors */
  --bg:           #07090D;
  --bg-2:         #0B0F16;
  --surface:      #0F1520;
  --surface-2:    #141C2A;
  --border:       #1A2335;
  --border-light: #243048;
  --text:         #E6EDF8;
  --text-2:       #9BAEC8;
  --muted:        #5A6B85;
  --accent:       #C8A96E;
  --accent-dim:   rgba(200,169,110,0.10);
  --accent-glow:  rgba(200,169,110,0.05);
  --green:        #3DD68C;
  --green-dim:    rgba(61,214,140,0.10);
  --blue:         #5B9CF6;
  --blue-dim:     rgba(91,156,246,0.10);
  --purple:       #A78BFA;
  --purple-dim:   rgba(167,139,250,0.10);
  --red:          #F06A6A;
  --orange:       #FB923C;
  --orange-dim:   rgba(251,146,60,0.10);

  /* Domain Colors */
  --d365-color:   #0078D4;
  --d365-dim:     rgba(0,120,212,0.10);
  --ai-color:     #A78BFA;
  --ai-dim:       rgba(167,139,250,0.10);
  --trading-color:#3DD68C;
  --trading-dim:  rgba(61,214,140,0.10);
  --blog-color:   #C8A96E;
  --blog-dim:     rgba(200,169,110,0.10);
  --projects-color:#5B9CF6;
  --projects-dim: rgba(91,156,246,0.10);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-sans:    'Syne', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  100px;

  /* Layout */
  --max-w:       1280px;
  --nav-h:       68px;
  --radius:      2px;
  --radius-md:   4px;

  /* Transitions */
  --t-fast:  0.15s ease;
  --t-base:  0.25s ease;
  --t-slow:  0.45s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grid texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.section { padding: var(--space-3xl) 48px; position: relative; z-index: 1; }
.section-sm { padding: var(--space-2xl) 48px; position: relative; z-index: 1; }

/* ── TYPOGRAPHY ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.93;
  letter-spacing: -0.025em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.01em;
}

.subheading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.label {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.label-sm {
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.body { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.body-sm { font-size: 12px; line-height: 1.7; color: var(--muted); }

em { font-style: italic; color: var(--accent); }

/* ── COMPONENTS ── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(200,169,110,0.35);
}

.btn-ghost {
  border: 1px solid var(--border-light);
  color: var(--text-2);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 8px 18px; font-size: 10px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-base);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

/* Section label with line */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  border-radius: 1px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* Status dot */
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}
.status-live.green { background: var(--green-dim); border: 1px solid rgba(61,214,140,0.2); color: var(--green); }
.status-live.blue  { background: var(--blue-dim);  border: 1px solid rgba(91,156,246,0.2);  color: var(--blue); }
.status-live.gold  { background: var(--accent-dim);border: 1px solid rgba(200,169,110,0.2); color: var(--accent); }

.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-blink 2s ease-in-out infinite;
}
@keyframes pulse-blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* Divider */
.divider { width: 100%; height: 1px; background: var(--border); position: relative; z-index: 1; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.anim-fade-up   { animation: fadeUp   0.7s ease forwards; }
.anim-fade-in   { animation: fadeIn   0.5s ease forwards; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── NAV (shared) ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,9,13,0.94);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 6px 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover   { color: var(--text); background: var(--surface); }
.nav-link.active  { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Domain nav pills */
.nav-domain {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--t-fast);
}
.nav-domain:hover { border-color: var(--accent); color: var(--accent); }

/* ── TICKER ── */
.ticker-wrap {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  gap: 56px;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.ticker-item .sym { color: var(--text); font-weight: 500; }
.ticker-item .up   { color: var(--green); }
.ticker-item .dn   { color: var(--red); }
.ticker-sep { color: var(--border-light); }

/* ── FOOTER (shared) ── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-brand p { font-size: 12px; color: var(--muted); margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-col-label { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { font-size: 12px; color: var(--muted); transition: color var(--t-fast); }
.footer-col-links a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom-left { font-size: 11px; color: var(--muted); }
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .section, .section-sm { padding-left: 32px; padding-right: 32px; }
  .nav { padding: 0 32px; }
  .footer { padding: 40px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section, .section-sm { padding-left: 20px; padding-right: 20px; }
  .nav { padding: 0 20px; }
  .nav-center { display: none; }
  .footer { padding: 32px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}
