/* ============================================
   JavaDom Design System
   Silicon Valley-grade CSS Architecture
   ============================================ */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Color Palette - Dark Theme Primary */
  --color-bg-primary: #0b0d10;
  --color-bg-secondary: #11151c;
  --color-bg-tertiary: #151a22;
  --color-bg-elevated: #1c2230;
  --color-bg-hover: #232a3a;

  /* Surface Colors */
  --color-surface: #121721;
  --color-surface-hover: #171d28;
  --color-surface-active: #202635;
  --color-surface-border: #232a34;

  /* Text Colors */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #b2bdc7;
  --color-text-tertiary: #7f8b99;
  --color-text-muted: #56606d;

  /* Brand Colors - Website */
  --color-brand-primary: #384da1;
  --color-brand-secondary: #ec2224;
  --color-brand-tertiary: #6b7bd1;
  --color-brand-glow: rgba(56, 77, 161, 0.2);

  /* Accent Colors */
  --color-accent-blue: #38bdf8;
  --color-accent-green: #22c55e;
  --color-accent-teal: #14b8a6;
  --color-accent-red: #ef4444;

  /* Gradient */
  --gradient-brand: linear-gradient(135deg, #384da1 0%, #ec2224 100%);
  --gradient-dark: linear-gradient(180deg, #0b0d10 0%, #11151c 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(56, 77, 161, 0.18) 0%, transparent 70%);
  --gradient-mesh: radial-gradient(at 15% 10%, rgba(56, 77, 161, 0.2) 0px, transparent 52%),
                   radial-gradient(at 85% 0%, rgba(236, 34, 36, 0.18) 0px, transparent 45%),
                   radial-gradient(at 0% 60%, rgba(107, 123, 209, 0.14) 0px, transparent 50%);
  --gradient-veil: linear-gradient(120deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.9) 100%);

  /* Typography Scale */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --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;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(6, 8, 12, 0.35);
  --shadow-md: 0 6px 12px -6px rgba(6, 8, 12, 0.6), 0 2px 4px -2px rgba(6, 8, 12, 0.4);
  --shadow-lg: 0 16px 24px -14px rgba(6, 8, 12, 0.7), 0 8px 16px -10px rgba(6, 8, 12, 0.6);
  --shadow-xl: 0 30px 50px -24px rgba(6, 8, 12, 0.8), 0 14px 30px -16px rgba(6, 8, 12, 0.7);
  --shadow-glow: 0 0 40px rgba(56, 77, 161, 0.25);
  --shadow-glow-sm: 0 0 20px rgba(56, 77, 161, 0.18);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* Z-Index Scale */
  --z-below: -1;
  --z-base: 0;
  --z-above: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;

  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="light"] {
  --color-bg-primary: #f7f8fb;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #eef2f8;
  --color-bg-elevated: #ffffff;
  --color-bg-hover: #e7ebf5;

  --color-surface: #ffffff;
  --color-surface-hover: #f3f5fb;
  --color-surface-active: #e9edf7;
  --color-surface-border: #d6dce9;

  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #64748b;
  --color-text-muted: #94a3b8;

  --color-brand-glow: rgba(56, 77, 161, 0.16);
  --gradient-dark: linear-gradient(180deg, #f7f8fb 0%, #eef2f8 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(56, 77, 161, 0.16) 0%, transparent 70%);
  --gradient-mesh: radial-gradient(at 20% 10%, rgba(56, 77, 161, 0.18) 0px, transparent 55%),
                   radial-gradient(at 80% 0%, rgba(236, 34, 36, 0.16) 0px, transparent 50%),
                   radial-gradient(at 0% 60%, rgba(107, 123, 209, 0.12) 0px, transparent 55%);

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 16px -10px rgba(15, 23, 42, 0.2);
  --shadow-lg: 0 16px 28px -16px rgba(15, 23, 42, 0.25);
  --shadow-xl: 0 30px 50px -30px rgba(15, 23, 42, 0.3);
  --shadow-glow: 0 0 36px rgba(56, 77, 161, 0.2);
  --shadow-glow-sm: 0 0 18px rgba(56, 77, 161, 0.14);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  background-image: var(--gradient-dark);
  min-height: 100vh;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-below);
}

body::before {
  background: var(--gradient-mesh);
  opacity: 0.9;
}

body::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.15;
}

html[data-theme="light"] body {
  background-image: linear-gradient(180deg, #f7f8fb 0%, #eef2f8 100%);
}

html[data-theme="light"] body::before {
  opacity: 0.6;
}

html[data-theme="light"] body::after {
  background-image: linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  opacity: 0.08;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
  z-index: var(--z-overlay);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--color-brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-tertiary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

/* ============================================
   Layout Components
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-lg);
}

.container-wide {
  max-width: var(--container-2xl);
}

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

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================
   Components
   ============================================ */

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-surface-border);
  box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  font-family: var(--font-display);
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  box-shadow: var(--shadow-glow-sm);
}

.logo-icon-image {
  width: 100px;
  height: 100px;
  background: transparent;
  box-shadow: none;
}

.logo-icon-image img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-hover);
}

.nav-link.active {
  color: var(--color-brand-primary);
  background: rgba(56, 77, 161, 0.16);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  right: 5%;
  bottom: 10%;
  background: var(--gradient-mesh);
  pointer-events: none;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-16);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-brand-glow);
  border: 1px solid rgba(56, 77, 161, 0.35);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-brand-primary);
  margin-bottom: var(--space-6);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-brand-primary);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
  font-weight: var(--font-bold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, #fff 0%, #a7b0bb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="light"] .hero-title {
  background: none;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-panel {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-veil);
  opacity: 0.6;
  pointer-events: none;
}

.hero-panel-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-surface-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.pill-brand {
  border-color: rgba(56, 77, 161, 0.35);
  background: rgba(56, 77, 161, 0.16);
  color: var(--color-brand-primary);
}

.hero-event {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}

.hero-event-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.hero-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.metric-card {
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
}

.metric-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.metric-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-tertiary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-surface-border);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-surface-border);
  color: var(--color-text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Cards */
.card {
  position: relative;
  border: 1px solid transparent;
  background: linear-gradient(155deg, rgba(20, 27, 38, 0.96), rgba(11, 14, 20, 0.98)) padding-box,
              linear-gradient(140deg, rgba(56, 77, 161, 0.2), rgba(236, 34, 36, 0.16), rgba(56, 189, 248, 0.1)) border-box;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(56, 77, 161, 0.6);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.card-description {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-brand-glow);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-brand-primary);
}

/* Event Card */
.event-card {
  background: linear-gradient(160deg, rgba(20, 27, 38, 0.97), rgba(9, 12, 18, 0.98));
  border: 1px solid rgba(35, 42, 52, 0.9);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.event-card:hover {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-glow-sm);
}

.event-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4)),
              var(--gradient-mesh),
              var(--color-bg-tertiary);
  position: relative;
  overflow: hidden;
}

.event-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.1), rgba(11, 13, 16, 0.85));
  z-index: 0;
}

.event-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-brand-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  z-index: 1;
}

.event-card-content {
  padding: var(--space-6);
}

.event-card-date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-brand-primary);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-3);
}

.event-card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.event-card-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Speaker Card */
.speaker-card {
  text-align: center;
  padding: var(--space-8);
}

.speaker-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(236, 34, 36, 0.25), rgba(56, 77, 161, 0.2)),
              var(--gradient-mesh);
  border: 3px solid rgba(35, 42, 52, 0.9);
  overflow: hidden;
  transition: all var(--transition-base);
}

.speaker-card:hover .speaker-avatar {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-glow-sm);
}

.speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-name {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.speaker-title {
  font-size: var(--text-sm);
  color: var(--color-brand-primary);
  margin-bottom: var(--space-3);
}

.speaker-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.speaker-social {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.speaker-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.speaker-social a:hover {
  background: var(--color-brand-primary);
  color: white;
}

/* Talk Card */
.talk-card {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6);
}

.talk-card-thumbnail {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4)), var(--gradient-mesh);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  border: 1px solid rgba(35, 42, 52, 0.8);
}

.talk-card-content {
  flex: 1;
}

.talk-card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.talk-card-speaker {
  font-size: var(--text-sm);
  color: var(--color-brand-primary);
  margin-bottom: var(--space-3);
}

.talk-card-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.talk-card-actions {
  display: flex;
  gap: var(--space-3);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

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

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-8);
  padding: var(--space-12) 0;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-surface-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-brand-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  transition: transform var(--transition-base);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding-bottom: var(--space-6);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Sponsor Tiers */
.sponsor-tier {
  margin-bottom: var(--space-12);
}

.sponsor-tier-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-surface-border);
}

.sponsor-tier-title.gold {
  color: #fbbf24;
}

.sponsor-tier-title.silver {
  color: #94a3b8;
}

.sponsor-tier-title.bronze {
  color: #d97706;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
}

.sponsor-logo {
  width: 180px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.sponsor-logo:hover {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-glow-sm);
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  transition: filter var(--transition-base);
}

.sponsor-logo:hover img {
  filter: none;
}

/* Community Channels */
.channel-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  justify-content: space-between;
  flex-wrap: wrap;
}

.channel-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  font-size: var(--text-2xl);
  transition: all var(--transition-base);
}

.channel-card:hover .channel-icon {
  background: var(--color-brand-glow);
  color: var(--color-brand-primary);
}

.channel-info {
  flex: 1;
}

.channel-name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.channel-description {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* CTA Section */
.cta-section {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-16);
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

/* Footer */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-surface-border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr repeat(2, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
}

.footer-column p {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin: 0 0 var(--space-4);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-brand-primary);
  color: white;
}

.footer-column h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-3);
}

.footer-column a {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-brand-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-surface-border);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* Page Header */
.page-header {
  padding: var(--space-32) 0 var(--space-16);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh);
  opacity: 0.45;
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.page-description {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Code of Conduct */
.conduct-section {
  margin-bottom: var(--space-12);
}

.conduct-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-surface-border);
}

.conduct-section p,
.conduct-section ul {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.conduct-section ul {
  list-style: none;
  padding-left: var(--space-4);
}

.conduct-section li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
}

.conduct-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-brand-primary);
  border-radius: var(--radius-full);
}

/* Tags */
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
}

.tag-primary {
  background: var(--color-brand-glow);
  color: var(--color-brand-primary);
}

.tag-outline {
  background: transparent;
  border: 1px solid var(--color-surface-border);
  color: var(--color-text-secondary);
}

/* Lists */
.list-check {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  color: var(--color-text-secondary);
}

.list-check li {
  position: relative;
  padding-left: var(--space-6);
}

.list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-brand-primary);
  box-shadow: 0 0 0 4px rgba(56, 77, 161, 0.2);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-8);
}

.value-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-glow);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  font-size: var(--text-2xl);
  color: var(--color-brand-primary);
}

.value-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.value-description {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Light Mode Component Overrides */
html[data-theme="light"] .card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.98)) padding-box,
              linear-gradient(140deg, rgba(56, 77, 161, 0.25), rgba(236, 34, 36, 0.18), rgba(99, 102, 241, 0.14)) border-box;
}

html[data-theme="light"] .event-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
  border-color: rgba(214, 220, 233, 0.9);
}

html[data-theme="light"] .event-card-image {
  background: linear-gradient(120deg, rgba(248, 250, 255, 0.9), rgba(241, 245, 252, 0.75)),
              var(--gradient-mesh),
              var(--color-bg-tertiary);
}

html[data-theme="light"] .event-card-image::after {
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.05), rgba(248, 250, 255, 0.6));
}

html[data-theme="light"] .talk-card-thumbnail {
  background: linear-gradient(135deg, rgba(248, 250, 255, 0.95), rgba(240, 244, 251, 0.9)), var(--gradient-mesh);
  border-color: rgba(214, 220, 233, 0.9);
}

html[data-theme="light"] .speaker-avatar {
  border-color: rgba(214, 220, 233, 0.9);
}

html[data-theme="light"] .gallery-card {
  background: linear-gradient(135deg, rgba(248, 250, 255, 0.95), rgba(236, 241, 249, 0.85));
}

html[data-theme="light"] .cta-section {
  background: #ffffff;
  border-color: rgba(214, 220, 233, 0.9);
}

html[data-theme="light"] .hero-panel {
  background: #ffffff;
  border-color: rgba(214, 220, 233, 0.9);
}

html[data-theme="light"] .hero-event {
  background: rgba(241, 245, 252, 0.9);
}

html[data-theme="light"] .metric-card {
  background: rgba(248, 250, 255, 0.9);
}

html[data-theme="light"] .footer {
  background: #f3f5fb;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

.gallery-card {
  position: relative;
  min-height: 180px;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.55));
  border: 1px solid var(--color-surface-border);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.35;
  pointer-events: none;
}

.gallery-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
}

.gallery-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-3);
}

.gallery-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-tertiary);
}

.gallery-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.gallery-meta {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    flex-wrap: wrap;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-surface-border);
    flex-direction: column;
    padding: var(--space-4);
  }

  .theme-toggle {
    display: none;
  }

  .lang-toggle {
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: var(--space-3) var(--space-4);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    padding: var(--space-6);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .page-title {
    font-size: var(--text-3xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

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

  .talk-card {
    flex-direction: column;
  }

  .talk-card-thumbnail {
    width: 100%;
  }

  .stats {
    flex-direction: column;
    gap: var(--space-6);
  }

  .cta-section {
    padding: var(--space-10);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .card,
  .event-card-content,
  .speaker-card {
    padding: var(--space-4);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-tertiary); }
.text-brand { color: var(--color-brand-primary); }

.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.theme-toggle {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-surface-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--color-text-primary);
  border-color: rgba(56, 77, 161, 0.5);
  background: rgba(56, 77, 161, 0.12);
}

html[data-theme="light"] .theme-toggle {
  background: rgba(56, 77, 161, 0.08);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-surface-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.lang-link {
  color: var(--color-text-tertiary);
}

.lang-link.active {
  color: var(--color-text-primary);
}

.lang-separator {
  color: var(--color-text-tertiary);
}

html[data-theme="light"] .header {
  background: rgba(247, 248, 251, 0.8);
  box-shadow: 0 16px 30px -26px rgba(15, 23, 42, 0.2);
}

/* ============================================
   Fredpena.dev Additions
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-16);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 77, 161, 0.35);
  background: rgba(56, 77, 161, 0.12);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: var(--font-semibold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4.75rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.hero-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 200px;
  height: 200px;
  background: var(--gradient-glow);
  opacity: 0.6;
  z-index: var(--z-below);
}

.focus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  display: grid;
  gap: var(--space-3);
}

.focus-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.focus-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow-sm);
}

.section {
  padding: var(--space-20) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.section-subtitle {
  color: var(--color-text-secondary);
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.feature-grid {
  display: grid;
  gap: var(--space-6);
}

.feature-card {
  background: linear-gradient(155deg, rgba(20, 27, 38, 0.96), rgba(11, 14, 20, 0.98)) padding-box,
              linear-gradient(140deg, rgba(56, 77, 161, 0.25), rgba(236, 34, 36, 0.18), rgba(56, 189, 248, 0.12)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: grid;
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
}

html[data-theme="light"] .feature-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 248, 0.95)) padding-box,
              linear-gradient(140deg, rgba(56, 77, 161, 0.2), rgba(236, 34, 36, 0.15), rgba(56, 189, 248, 0.1)) border-box;
}

.feature-card .btn {
  justify-self: start;
}

.feature-card .proof-meta {
  color: rgba(248, 250, 252, 0.75);
}

html[data-theme="light"] .feature-card .proof-meta {
  color: rgba(15, 23, 42, 0.75);
}

html[data-theme="light"] .feature-card .proof-title,
html[data-theme="light"] .feature-card .proof-desc {
  color: #0f172a;
}

html[data-theme="light"] .feature-card .proof-desc {
  color: rgba(15, 23, 42, 0.78);
}

.github-stats {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.github-stats img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-surface-border);
  background: var(--color-bg-elevated);
  box-shadow: var(--shadow-md);
}

.proof-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.metrics-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: var(--space-8) 0;
}

.proof-card,
.post-card,
.tech-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-surface-border);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.proof-card:hover,
.post-card:hover,
.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 77, 161, 0.4);
  box-shadow: var(--shadow-lg);
}

.proof-meta {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.proof-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.proof-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.tech-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.tech-grid.two-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tech-grid.two-row > .tech-card:nth-child(7),
.tech-grid.two-row > .tech-card:nth-child(8),
.tech-grid.two-row > .tech-card:nth-child(9),
.tech-grid.two-row > .tech-card:nth-child(10),
.tech-grid.two-row > .tech-card:nth-child(11) {
  grid-row: 2;
}

.tech-grid.two-row > .tech-card:nth-child(7) { grid-column: 2; }
.tech-grid.two-row > .tech-card:nth-child(8) { grid-column: 3; }
.tech-grid.two-row > .tech-card:nth-child(9) { grid-column: 4; }
.tech-grid.two-row > .tech-card:nth-child(10) { grid-column: 5; }
.tech-grid.two-row > .tech-card:nth-child(11) { grid-column: 6; }
}

.tech-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.tech-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  background: rgba(56, 77, 161, 0.2);
}

.tech-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tech-card strong {
  font-size: var(--text-lg);
}

.post-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.post-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.post-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-3);
}

.post-card .post-meta {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: 0;
}

.post-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin: 0;
}

.post-card a {
  color: var(--color-brand-secondary);
  font-weight: var(--font-semibold);
}

.post-hero {
  padding: var(--space-16) 0 var(--space-8);
  border-bottom: 1px solid var(--color-surface-border);
  margin-bottom: var(--space-10);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.25rem);
  margin-bottom: var(--space-4);
}

.post-description {
  color: var(--color-text-secondary);
  max-width: 720px;
}

.post-body {
  max-width: 820px;
  margin: 0 auto;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: var(--font-display);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.post-body p,
.post-body li {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.post-body pre {
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-surface-border);
  background: #0b1220;
  padding: var(--space-4);
  overflow-x: auto;
}

.post-body code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.newsletter {
  margin-top: var(--space-12);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-surface-border);
  box-shadow: var(--shadow-md);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.about-dialog {
  width: min(720px, 90vw);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  margin: auto;
}

.about-dialog::backdrop {
  background: rgba(10, 12, 18, 0.72);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.dialog-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
}

.dialog-close {
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-primary);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
}

.dialog-body p {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-4);
}

.dialog-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dialog-grid strong {
  display: block;
  margin-bottom: var(--space-2);
}

.dialog-grid span {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}

.newsletter-cta {
  padding: var(--space-16) 0;
}

.cta-card {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}

.cta-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-family: var(--font-display);
}

.cta-card p {
  margin: 0;
  color: rgba(248, 250, 252, 0.82);
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-form input {
  flex: 1 1 220px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter input {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-surface-border);
  background: rgba(15, 23, 42, 0.4);
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}

.newsletter button {
  border-radius: var(--radius-lg);
}

.blog-index {
  padding: var(--space-12) 0;
}

.blog-index .post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: var(--space-16);
  }

  .tech-grid.two-row {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .tech-grid.two-row > .tech-card:nth-child(7),
  .tech-grid.two-row > .tech-card:nth-child(8),
  .tech-grid.two-row > .tech-card:nth-child(9),
  .tech-grid.two-row > .tech-card:nth-child(10),
  .tech-grid.two-row > .tech-card:nth-child(11) {
    grid-column: auto;
    grid-row: auto;
  }
}
