/* ============================================================
   AlgoDev Studio | Global Design System
   Enterprise Dark UI — TradingView / Vercel Inspired
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-0:          #020510;
  --bg-1:          #050816;
  --bg-2:          #0B1120;
  --bg-3:          #0F172A;
  --bg-4:          #111827;
  --bg-card:       rgba(11, 17, 32, 0.70);
  --bg-glass:      rgba(255, 255, 255, 0.025);
  --bg-glass-md:   rgba(255, 255, 255, 0.05);
  --bg-glass-lg:   rgba(255, 255, 255, 0.08);
  --bg-inset:      rgba(0, 0, 0, 0.25);

  /* Accents */
  --teal:          #47D7AC;
  --teal-2:        #3ED6A8;
  --teal-3:        #2DD4BF;
  --teal-dim:      rgba(71, 215, 172, 0.12);
  --teal-glow:     rgba(71, 215, 172, 0.20);
  --teal-border:   rgba(71, 215, 172, 0.25);
  --blue:          #3B82F6;
  --blue-2:        #2563EB;
  --blue-3:        #60A5FA;
  --blue-dim:      rgba(59, 130, 246, 0.12);
  --blue-glow:     rgba(59, 130, 246, 0.20);
  --blue-border:   rgba(59, 130, 246, 0.25);
  --purple:        #8B5CF6;
  --purple-dim:    rgba(139, 92, 246, 0.12);

  /* Text */
  --txt-1:         #FFFFFF;
  --txt-2:         #E2E8F0;
  --txt-3:         #CBD5E1;
  --txt-4:         #94A3B8;
  --txt-5:         #64748B;
  --txt-6:         #475569;

  /* Borders */
  --bdr-1:         rgba(255, 255, 255, 0.06);
  --bdr-2:         rgba(255, 255, 255, 0.10);
  --bdr-3:         rgba(255, 255, 255, 0.15);

  /* Shadows */
  --shadow-xs:     0 1px 4px rgba(0,0,0,0.25);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.35);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.55);
  --shadow-xl:     0 40px 100px rgba(0,0,0,0.65);
  --glow-teal:     0 0 40px rgba(71,215,172,0.14), 0 0 80px rgba(71,215,172,0.07);
  --glow-blue:     0 0 40px rgba(59,130,246,0.14), 0 0 80px rgba(59,130,246,0.07);
  --glow-card:     0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(71,215,172,0.06);

  /* Typography */
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Scale */
  --text-xs:       0.6875rem;
  --text-sm:       0.8125rem;
  --text-base:     1rem;
  --text-md:       1.0625rem;
  --text-lg:       1.125rem;
  --text-xl:       1.25rem;
  --text-2xl:      1.5rem;
  --text-3xl:      1.875rem;
  --text-4xl:      2.25rem;
  --text-5xl:      3rem;
  --text-6xl:      3.75rem;
  --text-7xl:      4.5rem;
  --text-8xl:      5.5rem;
  --text-9xl:      7rem;

  /* Layout */
  --max-w:         1280px;
  --max-w-lg:      1400px;
  --px:            clamp(20px, 4vw, 48px);
  --section-py:    clamp(80px, 10vw, 140px);

  /* Radii */
  --r-xs:          6px;
  --r-sm:          8px;
  --r-md:          12px;
  --r-lg:          16px;
  --r-xl:          24px;
  --r-2xl:         32px;
  --r-full:        9999px;

  /* Easing */
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo:     cubic-bezier(0.19, 1, 0.22, 1);

  /* Transitions */
  --t-fast:        150ms var(--ease-in-out);
  --t-base:        250ms var(--ease-in-out);
  --t-slow:        400ms var(--ease-in-out);
  --t-spring:      500ms var(--ease-spring);

  /* Z-Index */
  --z-1:     1;
  --z-10:    10;
  --z-50:    50;
  --z-100:   100;
  --z-nav:   1000;
  --z-modal: 2000;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--txt-3);
  background-color: var(--bg-1);
  overflow-x: hidden;
  min-height: 100vh;
}

html {
  overflow-x: hidden;
}

/* Prevent any section from causing horizontal scroll */
section, .section {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Grid children must have min-width:0 to honour 1fr columns on mobile */
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.contact-grid > *, .portfolio-grid > * { min-width: 0; }

/* Selection */
::selection {
  background: var(--teal-dim);
  color: var(--teal);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--bdr-2);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--bdr-3); }

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Lists */
ul, ol { list-style: none; }

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.1;
  color: var(--txt-1);
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(var(--text-5xl), 7vw, var(--text-9xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.display-lg {
  font-size: clamp(var(--text-4xl), 5.5vw, var(--text-8xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.display-md {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-7xl));
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.h1 { font-size: clamp(var(--text-3xl), 4vw, var(--text-6xl)); }
.h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-5xl)); }
.h3 { font-size: clamp(var(--text-xl), 2vw, var(--text-3xl)); }
.h4 { font-size: clamp(var(--text-lg), 1.5vw, var(--text-2xl)); }

.lead {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  line-height: 1.65;
  color: var(--txt-4);
  font-weight: 400;
}

.body-lg {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--txt-4);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--txt-5);
}

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-5);
}

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

/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.gradient-teal {
  background: linear-gradient(135deg, #47D7AC 0%, #3ED6A8 40%, #2DD4BF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-blue {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 60%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-brand {
  background: linear-gradient(135deg, #47D7AC 0%, #3B82F6 60%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-white {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT SYSTEM
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.container-lg {
  max-width: var(--max-w-lg);
  margin-inline: auto;
  padding-inline: var(--px);
}

.container-sm {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--px);
}

.section {
  padding-block: var(--section-py);
}

.section-sm {
  padding-block: clamp(60px, 8vw, 100px);
}

/* Grid System */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.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; }

/* ============================================================
   BACKGROUND EFFECTS
   ============================================================ */

/* Animated Grid */
.bg-grid {
  background-image:
    linear-gradient(rgba(71, 215, 172, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 215, 172, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.bg-grid-fade {
  background-image:
    linear-gradient(rgba(71, 215, 172, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 215, 172, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}

/* Dot Grid */
.bg-dots {
  background-image: radial-gradient(rgba(71, 215, 172, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Noise texture overlay */
.bg-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  border-radius: inherit;
}

/* Gradient Orbs */
.orb-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.orb-teal {
  background: radial-gradient(circle, rgba(71, 215, 172, 0.20) 0%, transparent 70%);
}

.orb-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
}

.orb-purple {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, transparent 70%);
}

/* Section Dividers */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bdr-2) 30%, var(--bdr-2) 70%, transparent);
}

.divider-glow {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-border) 30%, var(--teal-border) 70%, transparent);
  box-shadow: 0 0 10px var(--teal-glow);
}

/* ============================================================
   GLASS CARD SYSTEM
   ============================================================ */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bdr-1);
  border-radius: var(--r-lg);
}

.glass-card {
  background: rgba(11, 17, 32, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bdr-1);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-slow);
}

.glass-card:hover {
  border-color: var(--teal-border);
  box-shadow: var(--glow-card);
  transform: translateY(-4px);
}

.glass-panel {
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--bdr-2);
  border-radius: var(--r-xl);
}

/* ============================================================
   BADGE SYSTEM
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.badge-glass {
  background: var(--bg-glass-md);
  color: var(--txt-4);
  border: 1px solid var(--bdr-1);
}

.badge-dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all var(--t-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--t-fast);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
  color: #050816;
  box-shadow: 0 0 0 1px rgba(71,215,172,0.5), 0 4px 16px rgba(71,215,172,0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(71,215,172,0.8), 0 8px 32px rgba(71,215,172,0.35);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: var(--bg-glass-md);
  color: var(--txt-1);
  border: 1px solid var(--bdr-2);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-glass-lg);
  border-color: var(--bdr-3);
  transform: translateY(-1px);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(59,130,246,0.25);
}

.btn-blue:hover {
  box-shadow: 0 8px 32px rgba(59,130,246,0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--txt-3);
  border: 1px solid var(--bdr-1);
}

.btn-ghost:hover {
  background: var(--bg-glass);
  border-color: var(--bdr-2);
  color: var(--txt-1);
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--text-base);
  border-radius: var(--r-lg);
}

.btn-sm {
  padding: 9px 20px;
  font-size: var(--text-xs);
  border-radius: var(--r-sm);
}

/* ============================================================
   SECTION HEADER SYSTEM
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header.left { text-align: left; margin-inline: 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal-border);
}

.section-eyebrow.left::before { display: none; }

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--txt-1);
  margin-bottom: 20px;
}

.section-desc {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  line-height: 1.7;
  color: var(--txt-4);
}

/* ============================================================
   STAT CARD
   ============================================================ */
.stat-card {
  text-align: center;
  padding: clamp(24px, 3vw, 40px);
}

.stat-number {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--txt-1);
}

.stat-number .accent { color: var(--teal); }

.stat-label {
  font-size: var(--text-sm);
  color: var(--txt-5);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   ICON BOX
   ============================================================ */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
}

.icon-box-teal {
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid var(--teal-border);
}

.icon-box-blue {
  background: var(--blue-dim);
  color: var(--blue-3);
  border: 1px solid var(--blue-border);
}

.icon-box-glass {
  background: var(--bg-glass-md);
  color: var(--txt-3);
  border: 1px solid var(--bdr-1);
}

/* ============================================================
   FORM SYSTEM
   ============================================================ */
.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-glass-md);
  border: 1px solid var(--bdr-1);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--txt-1);
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: var(--txt-6);
}

.form-control:focus {
  outline: none;
  background: rgba(71, 215, 172, 0.04);
  border-color: var(--teal-border);
  box-shadow: 0 0 0 3px rgba(71, 215, 172, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--txt-4);
  margin-bottom: 8px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

select.form-control option {
  background: var(--bg-3);
  color: var(--txt-1);
}

/* ============================================================
   PAGE HERO (non-home pages)
   ============================================================ */
.page-hero {
  padding-top: clamp(100px, 14vw, 180px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}

/* ── Sub-page video hero ── */
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.page-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 40, 0.72);
  z-index: 1;
}

.page-hero .orb-container,
.page-hero .bg-grid {
  z-index: 2;
}

.page-hero-content {
  position: relative;
  z-index: 3;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--txt-5);
  margin-bottom: 20px;
}

.breadcrumb a { transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--teal); }

.breadcrumb-sep {
  color: var(--txt-6);
  font-size: 12px;
}

/* ============================================================
   CARD VARIANTS
   ============================================================ */
.feature-card {
  padding: clamp(24px, 3vw, 36px);
  background: rgba(11, 17, 32, 0.65);
  border: 1px solid var(--bdr-1);
  border-radius: var(--r-lg);
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-border), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.feature-card:hover {
  border-color: rgba(71, 215, 172, 0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(71,215,172,0.05);
  transform: translateY(-4px);
}

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

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, rgba(71,215,172,0.06) 0%, rgba(59,130,246,0.04) 100%);
  border: 1px solid var(--bdr-1);
  border-radius: var(--r-2xl);
  padding: clamp(48px, 6vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.accordion-item {
  border: 1px solid var(--bdr-1);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base);
  margin-bottom: 8px;
}

.accordion-item.active {
  border-color: var(--teal-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-glass-md);
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast);
  gap: 16px;
}

.accordion-trigger:hover { background: var(--bg-glass-lg); }

.accordion-trigger-text {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--txt-1);
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal);
  transition: transform var(--t-base);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease-expo);
}

.accordion-item.active .accordion-body { max-height: 400px; }

.accordion-content {
  padding: 20px 24px;
  font-size: var(--text-base);
  color: var(--txt-4);
  line-height: 1.7;
  border-top: 1px solid var(--bdr-1);
}

/* ============================================================
   TAGS / CHIPS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--txt-5);
  background: var(--bg-glass-md);
  border: 1px solid var(--bdr-1);
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }

  .section-header { text-align: center; margin-inline: auto; }
}

@media (max-width: 480px) {
  :root { --px: 16px; }
}

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

.relative  { position: relative; }
.absolute  { position: absolute; }
.fixed     { position: fixed; }
.sticky    { position: sticky; }

.inset-0   { inset: 0; }
.z-1       { z-index: 1; }
.z-2       { z-index: 2; }
.z-10      { z-index: 10; }

.hidden    { display: none !important; }
.invisible { visibility: hidden; }
.visible   { visibility: visible; }

.w-full    { width: 100%; }
.h-full    { height: 100%; }

.overflow-hidden { overflow: hidden; }
.pointer-none    { pointer-events: none; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }

.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
