/* =========================================================================
   ARKA DESIGN SYSTEM v2.0 — Premium Canonical Foundation
   =========================================================================
   Authority: brand/canonical/ARKA_MASTER_IDENTITY_v1.0.yaml
   Status:    Canonical — all websites, apps, and docs derive from this.
   Date:      2026-02-13
   Revision:  Complete redesign for premium editorial aesthetic

   USAGE:
     @import url('../../brand/canonical/arka-design-system-v2.0.css');

   NOTES:
     - ARKA Gold: #C5A059 (founder directive)
     - ARKA AI = outlined sun core / ARKA Advisors = filled sun core
     - No gradients/shadows/glow on canonical brand marks themselves
     - Rich visual language for UI chrome and experience layers
   ========================================================================= */

/* — Google Fonts — */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* — Master Brand Palette — */
  --arka-gold:            #C5A059;
  --arka-gold-muted:      #A8904D;
  --arka-gold-light:      #D4B46E;
  --arka-gold-dim:        rgba(197, 160, 89, 0.12);
  --arka-black:           #0B0B0D;
  --arka-white:           #FFFFFF;

  /* — Extended Palette — */
  --midnight:             #06060A;
  --charcoal:             #111116;
  --slate-950:            #0C0C10;
  --slate-900:            #18181E;
  --slate-800:            #1F1F28;
  --slate-700:            #2E2E3A;
  --slate-600:            #3E3E4D;
  --slate-500:            #5A5A6E;
  --slate-400:            #8888A0;
  --slate-300:            #ABABBE;
  --slate-200:            #CBCBD8;
  --slate-100:            #E8E8F0;

  /* — Semantic Colors — */
  --color-success:        #22C55E;
  --color-warning:        #F59E0B;
  --color-error:          #EF4444;
  --color-info:           #3B82F6;
  --color-purple:         #8B5CF6;
  --color-cyan:           #06B6D4;

  /* — Surface System — */
  --surface-0:            var(--arka-black);
  --surface-1:            rgba(255, 255, 255, 0.02);
  --surface-2:            rgba(255, 255, 255, 0.04);
  --surface-3:            rgba(255, 255, 255, 0.06);
  --surface-4:            rgba(255, 255, 255, 0.08);
  --surface-glass:        rgba(11, 11, 13, 0.72);
  --surface-glass-heavy:  rgba(11, 11, 13, 0.88);

  /* — Border System — */
  --border-subtle:        rgba(255, 255, 255, 0.05);
  --border-light:         rgba(255, 255, 255, 0.08);
  --border-medium:        rgba(255, 255, 255, 0.12);
  --border-strong:        rgba(255, 255, 255, 0.18);
  --border-gold:          rgba(199, 163, 90, 0.18);
  --border-gold-strong:   rgba(199, 163, 90, 0.35);

  /* — Typography — */
  --font-sans:            'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:            'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --weight-light:         300;
  --weight-regular:       400;
  --weight-medium:        500;
  --weight-semibold:      600;
  --weight-bold:          700;
  --weight-extrabold:     800;

  --text-xs:              12px;
  --text-sm:              14px;
  --text-base:            16px;
  --text-lg:              18px;
  --text-xl:              20px;
  --text-2xl:             24px;
  --text-3xl:             30px;
  --text-4xl:             36px;
  --text-5xl:             48px;
  --text-6xl:             60px;
  --text-7xl:             72px;
  --text-8xl:             96px;

  --tracking-tightest:    -0.04em;
  --tracking-tight:       -0.02em;
  --tracking-normal:      0em;
  --tracking-wide:        0.05em;
  --tracking-wider:       0.1em;
  --tracking-widest:      0.16em;

  /* — Spacing (8px grid) — */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-24:  96px;
  --sp-32:  128px;

  /* — Radii — */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-3xl:  32px;
  --radius-pill: 9999px;

  /* — Shadows — */
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl:    0 16px 50px rgba(0, 0, 0, 0.6);
  --shadow-2xl:   0 25px 80px rgba(0, 0, 0, 0.7);
  --shadow-gold:  0 4px 30px rgba(199, 163, 90, 0.12);
  --shadow-gold-lg: 0 8px 50px rgba(199, 163, 90, 0.18);
  --shadow-glow:  0 0 40px rgba(199, 163, 90, 0.08);

  /* — Motion — */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:    120ms;
  --duration-normal:  250ms;
  --duration-slow:    400ms;
  --duration-slower:  600ms;
  --transition-base:  all 250ms cubic-bezier(0.16, 1, 0.3, 1);

  /* — Layout — */
  --container-max:    1200px;
  --container-wide:   1400px;
  --container-narrow: 800px;
}


/* =========================================================================
   2. GLOBAL RESETS & BASE
   ========================================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--arka-black);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.65;
  letter-spacing: var(--tracking-normal);
  color: var(--slate-300);
  background: var(--arka-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(199, 163, 90, 0.25);
  color: var(--arka-white);
}

img, video, svg { max-width: 100%; display: block; }


/* =========================================================================
   3. TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--arka-white);
  margin: 0;
}

h1 { font-size: var(--text-7xl); line-height: 1.05; font-weight: var(--weight-light); letter-spacing: var(--tracking-tightest); }
h2 { font-size: var(--text-5xl); line-height: 1.10; }
h3 { font-size: var(--text-4xl); line-height: 1.15; }
h4 { font-size: var(--text-3xl); line-height: 1.20; letter-spacing: -0.01em; }
h5 { font-size: var(--text-2xl); line-height: 1.25; letter-spacing: -0.005em; }
h6 { font-size: var(--text-xl); line-height: 1.30; letter-spacing: 0em; }

p {
  margin: 0 0 var(--sp-6) 0;
  color: var(--slate-400);
  line-height: 1.7;
}

a {
  color: var(--arka-gold);
  text-decoration: none;
  transition: var(--transition-base);
}
a:hover { opacity: 0.85; }
a:focus-visible {
  outline: 2px solid var(--arka-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

strong, b { font-weight: var(--weight-semibold); color: var(--arka-white); }
em, i { font-style: italic; }
small { font-size: 0.875em; }

.text-gold    { color: var(--arka-gold); }
.text-white   { color: var(--arka-white); }
.text-muted   { color: var(--slate-500); }
.text-subtle  { color: var(--slate-400); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: var(--sp-4);
  display: block;
}

.eyebrow-gold {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--arka-gold);
  margin-bottom: var(--sp-4);
  display: block;
}

.lede {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--slate-300);
  max-width: 700px;
}

.mono { font-family: var(--font-mono); }


/* =========================================================================
   4. LAYOUT & CONTAINERS
   ========================================================================= */
.page-wrapper {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-24) 0;
  position: relative;
}

.section-sm { padding: var(--sp-16) 0; }
.section-lg { padding: var(--sp-32) 0; }

.section-bordered {
  border-top: 1px solid var(--border-subtle);
}

.section-elevated {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}


/* =========================================================================
   5. AMBIENT LAYER — premium dark-mode atmosphere
   ========================================================================= */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(
    ellipse 60% 40% at 50% 0%,
    rgba(199, 163, 90, 0.04),
    transparent 70%
  );
}

.ambient-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 200px rgba(199, 163, 90, 0.02);
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Accent line — a thin golden horizon across the page */
.horizon-accent {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(199, 163, 90, 0.15) 20%,
    rgba(199, 163, 90, 0.25) 50%,
    rgba(199, 163, 90, 0.15) 80%,
    transparent 100%
  );
}


/* =========================================================================
   6. NAVIGATION — Frosted glass, premium
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  background: var(--surface-glass-heavy);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  color: var(--slate-400);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: var(--sp-2) 0;
  transition: color var(--duration-normal) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--arka-gold);
  transition: width var(--duration-slow) var(--ease-out);
}

.nav-link:hover {
  color: var(--arka-white);
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  color: var(--arka-gold);
}

.nav-link--highlight {
  color: var(--arka-gold);
  font-weight: var(--weight-bold);
}


/* =========================================================================
   7. BUTTONS — Premium pill buttons with micro-animations
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.btn-lg {
  height: 56px;
  padding: 0 var(--sp-10);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
}

.btn-xl {
  height: 64px;
  padding: 0 var(--sp-12);
  font-size: 14px;
}

.btn-primary {
  background: var(--arka-gold);
  color: var(--arka-black);
  box-shadow: var(--shadow-gold);
}

.btn-primary::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
  filter: brightness(1.08);
  opacity: 1;
}

.btn-primary:hover::before { opacity: 1; }

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

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--arka-gold);
}

.btn-secondary:hover {
  background: var(--arka-gold-dim);
  border-color: var(--border-gold-strong);
  transform: translateY(-1px);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--slate-300);
}

.btn-ghost:hover {
  border-color: var(--arka-gold);
  color: var(--arka-gold);
  opacity: 1;
}

.btn-blue {
  background: var(--color-info);
  color: var(--arka-white);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
  background: #2563EB;
  opacity: 1;
}


/* =========================================================================
   8. HERO SECTION — Cinematic, editorial
   ========================================================================= */
.hero {
  padding: var(--sp-16) 0 var(--sp-24);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 100%;
  background: radial-gradient(
    ellipse 50% 60% at 50% 0%,
    rgba(199, 163, 90, 0.06),
    transparent 70%
  );
  pointer-events: none;
}

.hero-badge {
  background: rgba(199, 163, 90, 0.06);
  border: 1px solid rgba(199, 163, 90, 0.15);
  color: var(--arka-gold);
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  position: relative;
  z-index: 2;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--arka-gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  font-weight: var(--weight-light);
  line-height: 1.05;
  letter-spacing: var(--tracking-tightest);
  color: var(--arka-white);
  max-width: 1000px;
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 2;
}

.hero-title .gold { color: var(--arka-gold); }
.hero-title .thin { font-weight: var(--weight-light); opacity: 0.6; }

.hero-subtitle {
  font-size: clamp(var(--text-lg), 1.4vw, var(--text-xl));
  color: var(--slate-400);
  max-width: 680px;
  margin-bottom: var(--sp-10);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* CTA Clarifier — understated micro-copy beneath action buttons */
.cta-clarifier {
  font-size: var(--text-xs);
  color: var(--slate-500);
  margin-top: var(--sp-4);
  letter-spacing: 0.02em;
  text-align: center;
  position: relative;
  z-index: 2;
  line-height: 1.5;
}


/* =========================================================================
   9. CARDS — Glassmorphism, interactive
   ========================================================================= */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--sp-10);
  text-align: left;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Shimmer top-edge on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 163, 90, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.card:hover {
  background: var(--surface-3);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--sp-10);
  transition: var(--transition-base);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--arka-white);
  margin-bottom: var(--sp-3);
}

.card-text {
  font-size: var(--text-sm);
  color: var(--slate-400);
  line-height: 1.7;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  font-size: var(--text-xl);
}

.card-icon--gold {
  background: var(--arka-gold-dim);
  color: var(--arka-gold);
  border: 1px solid var(--border-gold);
}

.card-icon--blue {
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-info);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.card-icon--green {
  background: rgba(34, 197, 94, 0.08);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.card-icon--purple {
  background: rgba(139, 92, 246, 0.08);
  color: var(--color-purple);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

/* Compact card */
.card-compact {
  padding: var(--sp-6);
  border-radius: var(--radius-xl);
}


/* =========================================================================
   10. GRID SYSTEM
   ========================================================================= */
.grid {
  display: grid;
  gap: var(--sp-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }


/* =========================================================================
   11. STAT / METRIC BLOCK
   ========================================================================= */
.stat {
  text-align: center;
  padding: var(--sp-6);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--arka-white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-number--gold { color: var(--arka-gold); }

.stat-label {
  font-size: var(--text-sm);
  color: var(--slate-400);
  line-height: 1.4;
}

.stat-sublabel {
  font-size: var(--text-xs);
  color: var(--slate-500);
  margin-top: var(--sp-1);
}


/* =========================================================================
   12. BADGES & TAGS
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.badge-gold {
  background: var(--arka-gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--arka-gold);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--color-info);
}

.badge-green {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  color: var(--color-success);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--color-purple);
}

.badge-red {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--color-error);
}

.badge-subtle {
  background: var(--surface-3);
  border: 1px solid var(--border-light);
  color: var(--slate-400);
}


/* =========================================================================
   13. FLOW DIAGRAM — Governance pipeline
   ========================================================================= */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--sp-10) var(--sp-6);
  overflow-x: auto;
}

.flow-step {
  text-align: center;
  flex-shrink: 0;
}

.flow-node {
  padding: var(--sp-5) var(--sp-8);
  border-radius: var(--radius-lg);
  border: 2px solid;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--arka-white);
  transition: var(--transition-base);
  position: relative;
}

.flow-node:hover {
  transform: scale(1.05);
}

.flow-node--blue   { border-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.08); }
.flow-node--amber  { border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.08); }
.flow-node--green  { border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.08); }
.flow-node--purple { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.08); }
.flow-node--gold   { border-color: var(--border-gold-strong); background: var(--arka-gold-dim); }

.flow-label {
  font-size: var(--text-xs);
  color: var(--slate-500);
  margin-top: var(--sp-3);
}

.flow-arrow {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  font-size: var(--text-xl);
  flex-shrink: 0;
}


/* =========================================================================
   14. TABLE — Comparison / Differentiation
   ========================================================================= */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table-wrap thead th {
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--slate-400);
  text-align: left;
  border-bottom: 1px solid var(--border-medium);
  background: var(--surface-2);
}

.table-wrap thead th.highlight {
  color: var(--arka-white);
  background: rgba(59, 130, 246, 0.06);
}

.table-wrap tbody td {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--slate-400);
}

.table-wrap tbody td.highlight {
  color: var(--arka-white);
  background: rgba(59, 130, 246, 0.03);
  font-weight: var(--weight-medium);
}

.table-wrap tbody td:first-child {
  color: var(--slate-300);
  font-weight: var(--weight-semibold);
}


/* =========================================================================
   15. CALLOUT / ALERT BOXES
   ========================================================================= */
.callout {
  padding: var(--sp-8);
  border-radius: var(--radius-xl);
  border: 1px solid;
  position: relative;
}

.callout-gold {
  background: rgba(199, 163, 90, 0.03);
  border-color: var(--border-gold);
}

.callout-blue {
  background: rgba(59, 130, 246, 0.03);
  border-color: rgba(59, 130, 246, 0.12);
}

.callout-red {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.15);
}

.callout-green {
  background: rgba(34, 197, 94, 0.03);
  border-color: rgba(34, 197, 94, 0.12);
}

.callout-neutral {
  background: var(--surface-2);
  border-color: var(--border-light);
}


/* =========================================================================
   16. PROCESS / STEPS
   ========================================================================= */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.step-number--gold {
  background: var(--arka-gold);
  color: var(--arka-black);
}

.step-number--outline {
  background: transparent;
  border: 2px solid var(--arka-gold);
  color: var(--arka-gold);
}


/* =========================================================================
   17. LINKS
   ========================================================================= */
.text-link {
  color: var(--arka-gold);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: var(--transition-base);
}

.text-link:hover {
  filter: brightness(1.2);
  gap: var(--sp-3);
  opacity: 1;
}

.text-link::after {
  content: '→';
  transition: transform var(--duration-normal) var(--ease-out);
}

.text-link:hover::after {
  transform: translateX(4px);
}


/* =========================================================================
   18. TERMINAL / SIMULATOR
   ========================================================================= */
.terminal {
  background: #060810;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.terminal-bar {
  background: var(--surface-3);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-dots {
  display: flex;
  gap: var(--sp-2);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot--red    { background: #FF5F56; }
.terminal-dot--yellow { background: #FFBD2E; }
.terminal-dot--green  { background: #27C93F; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--slate-500);
  letter-spacing: var(--tracking-wide);
}

.terminal-body {
  padding: var(--sp-8);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--slate-300);
  min-height: 280px;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}


/* =========================================================================
   19. FOOTER
   ========================================================================= */
.footer {
  padding: var(--sp-20) 0 var(--sp-12);
  border-top: 1px solid var(--border-subtle);
  background: var(--midnight);
}

.footer-grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--sp-8);
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: var(--sp-16);
}

.footer-brand-text {
  color: var(--slate-500);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 360px;
}

.footer-heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: var(--sp-6);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links a {
  display: block;
  color: var(--slate-500);
  font-size: var(--text-sm);
  padding: var(--sp-2) 0;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

.footer-links a:hover {
  color: var(--arka-gold);
  opacity: 1;
}

.footer-bottom {
  max-width: var(--container-wide);
  margin: var(--sp-16) auto 0;
  padding: var(--sp-8) var(--sp-8) 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  color: var(--slate-600);
  font-size: var(--text-xs);
}

.footer-contact {
  display: flex;
  gap: var(--sp-6);
}

.footer-contact a {
  color: var(--slate-500);
  font-size: var(--text-xs);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--arka-gold);
  opacity: 1;
}


/* =========================================================================
   20. UTILITY CLASSES
   ========================================================================= */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }
.gap-10 { gap: var(--sp-10); }
.gap-12 { gap: var(--sp-12); }

.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mt-12 { margin-top: var(--sp-12); }
.mt-16 { margin-top: var(--sp-16); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }
.mb-12 { margin-bottom: var(--sp-12); }
.mb-16 { margin-bottom: var(--sp-16); }

.mx-auto { margin-left: auto; margin-right: auto; }
.w-full  { width: 100%; }
.max-w-lg { max-width: 640px; }
.max-w-xl { max-width: 768px; }
.max-w-2xl { max-width: 960px; }
.max-w-3xl { max-width: 1100px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Fade-in on scroll (use with JS IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================================
   21. LOGO HELPERS
   ========================================================================= */
.arka-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.ark-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}


/* =========================================================================
   22. RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-title { font-size: var(--text-5xl); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
}

@media (max-width: 768px) {
  .nav-inner {
    height: auto;
    padding: var(--sp-4) var(--sp-4);
    flex-direction: column;
    gap: var(--sp-4);
  }

  .nav-right {
    width: 100%;
    flex-direction: column;
    gap: var(--sp-4);
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-4);
  }

  .hero {
    padding: var(--sp-10) var(--sp-4) var(--sp-16);
  }

  .hero-title {
    font-size: var(--text-4xl);
    line-height: 1.1;
  }

  .hero-subtitle { font-size: var(--text-base); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .section { padding: var(--sp-16) 0; }
  .section-lg { padding: var(--sp-20) 0; }

  .grid-2, .grid-3, .grid-4, .grid-auto {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .container, .container-wide, .container-narrow {
    padding: 0 var(--sp-4);
  }

  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }

  .stat-number { font-size: var(--text-3xl); }
  .card { padding: var(--sp-6); }
  .btn-lg { height: 48px; padding: 0 var(--sp-8); }
}

@media (max-width: 480px) {
  .hero-title { font-size: var(--text-3xl); }
  .hero-subtitle { font-size: var(--text-sm); }
  .nav-links { flex-direction: column; gap: var(--sp-3); }
  .section { padding: var(--sp-12) 0; }
  .card { padding: var(--sp-5); border-radius: var(--radius-xl); }
}


/* =========================================================================
   23. THEME MODIFIER: ADVISORS
   ========================================================================= */
.theme-advisors {
  --arka-gold:        var(--arka-gold-muted);
  --surface-0:        #0E1118;
  --surface-glass-heavy: rgba(14, 17, 24, 0.90);
}

.theme-advisors .hero::before {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(184, 150, 84, 0.06),
    transparent 65%
  );
}


/* =========================================================================
   24. SCROLL-DRIVEN ANIMATIONS (Progressive Enhancement)
   ========================================================================= */
@supports (animation-timeline: scroll()) {
  .nav {
    animation: nav-shrink linear;
    animation-timeline: scroll();
    animation-range: 0 200px;
  }

  @keyframes nav-shrink {
    from { background: transparent; border-bottom-color: transparent; }
    to { background: var(--surface-glass-heavy); border-bottom-color: var(--border-subtle); }
  }
}


/* =========================================================================
   25. PREMIUM ANIMATIONS — Staggered reveals, counters, page transitions
   ========================================================================= */

/* --- Page Enter Animation --- */
.page-wrapper {
  animation: pageEnter 0.6s var(--ease-out) both;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Staggered Reveal for Card Grids ---
   Child .reveal elements inside .grid-* get staggered delays */
.grid-2 .reveal:nth-child(2),
.grid-3 .reveal:nth-child(2),
.grid-4 .reveal:nth-child(2),
.grid-auto .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.grid-2 .reveal:nth-child(3),
.grid-3 .reveal:nth-child(3),
.grid-4 .reveal:nth-child(3),
.grid-auto .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.grid-3 .reveal:nth-child(4),
.grid-4 .reveal:nth-child(4),
.grid-auto .reveal:nth-child(4) {
  transition-delay: 240ms;
}

/* Also stagger .card children inside any container with .stagger class */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* --- Reveal Variants --- */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* --- Scroll Progress Indicator --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--arka-gold), var(--arka-gold-light));
  z-index: 10000;
  transition: none;
  pointer-events: none;
}

/* --- Animated Counter ---
   Usage: add class .count-up, JS will animate the number */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}


/* =========================================================================
   26. TYPOGRAPHY HIERARCHY ENFORCEMENT
   ========================================================================= */

/* Standardize hero titles: massive on desktop, scales down gracefully */
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
}

/* Section headers: clear visual break */
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: var(--weight-medium);
  color: var(--arka-white);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-6);
}

/* Subsection headers */
.subsection-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: var(--weight-semibold);
  color: var(--arka-white);
  margin-bottom: var(--sp-4);
}

/* Gold gradient text utility */
.gold-gradient-text {
  background: linear-gradient(135deg, var(--arka-gold) 0%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* =========================================================================
   27. PREMIUM MICRO-INTERACTIONS
   ========================================================================= */

/* Subtle lift on hover for non-card elements */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Gentle glow pulse for emphasis elements */
.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(197, 160, 89, 0.08); }
}

/* Horizon line animation */
.horizon-animate {
  background-size: 200% 100%;
  animation: horizonShimmer 8s ease-in-out infinite;
}

@keyframes horizonShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Link underline grow-from-center */
.link-grow {
  position: relative;
  text-decoration: none;
}

.link-grow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--arka-gold);
  transition: width var(--duration-normal) var(--ease-out),
              left var(--duration-normal) var(--ease-out);
}

.link-grow:hover::after {
  width: 100%;
  left: 0;
}


/* =========================================================================
   28. ACCESSIBILITY — Reduced motion, focus, skip-link
   ========================================================================= */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  background: var(--arka-gold);
  color: var(--arka-black);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  z-index: 10001;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* Focus indicators for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--arka-gold);
  outline-offset: 2px;
}

/* Reduced motion: disable ALL animations for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .page-wrapper {
    animation: none;
    opacity: 1;
  }

  .scroll-progress {
    display: none;
  }
}

