/* ============================================================
   LightBridge — Custom CSS
   Aesthetic: Precision Infrastructure / Deep Space Engineering
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --void: #060a14;
  --surface: #0c1222;
  --surface-raised: #111b2e;
  --surface-overlay: #162038;

  --cyan: #00c8e8;
  --cyan-dim: rgba(0, 200, 232, 0.15);
  --blue: #3d6bff;
  --blue-dim: rgba(61, 107, 255, 0.12);
  --purple: #8847ff;
  --magenta: #c040e0;

  --text-1: #e8edf5;
  --text-2: #8694b2;
  --text-3: #556280;

  --stroke: rgba(0, 180, 230, 0.10);
  --stroke-hover: rgba(0, 180, 230, 0.30);

  --navbar-bg: rgba(6, 10, 20, 0.6);
  --navbar-bg-scrolled: rgba(6, 10, 20, 0.92);
  --code-header-bg: rgba(0, 0, 0, 0.15);
  --sidebar-bg: rgba(6, 10, 20, 0.85);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --btn-gradient-text: #060a14;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Light Theme Variables ---------- */
html[data-theme="light"] {
  --void: #f5f7fa;
  --surface: #ffffff;
  --surface-raised: #f0f2f6;
  --surface-overlay: #e8ebf0;

  --cyan: #00b4d0;
  --cyan-dim: rgba(0, 180, 210, 0.12);
  --cyan-muted: #0090a8;
  --blue: #3060ee;
  --blue-dim: rgba(48, 96, 238, 0.10);
  --purple: #7535f0;
  --magenta: #b030d0;

  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  --stroke: rgba(0, 100, 140, 0.12);
  --stroke-hover: rgba(0, 100, 140, 0.25);

  --navbar-bg: rgba(245, 247, 250, 0.75);
  --navbar-bg-scrolled: rgba(245, 247, 250, 0.95);
  --code-header-bg: rgba(0, 0, 0, 0.04);
  --sidebar-bg: rgba(245, 247, 250, 0.92);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --btn-gradient-text: #060a14;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 200, 232, 0.25) var(--void);
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text-1);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 200, 232, 0.25);
  color: var(--text-1);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: rgba(0, 200, 232, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 200, 232, 0.4); }

/* ---------- Canvas Background ---------- */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Grain Overlay ---------- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: var(--navbar-bg-scrolled);
  border-bottom-color: var(--stroke);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-1);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover .logo-mark {
  transform: scale(1.08);
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}

.logo-brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-1);
}

.logo-divider {
  color: var(--text-3);
  font-weight: 400;
}

.logo-product {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--text-1);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--btn-gradient-text);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  box-shadow: 0 0 20px rgba(0, 200, 232, 0.3), 0 0 40px rgba(0, 200, 232, 0.1);
  transform: translateY(-1px);
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-toggle:hover {
  color: var(--text-1);
  border-color: var(--stroke-hover);
}

.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.mobile-menu.open {
  max-height: 320px;
}

.mobile-link {
  display: block;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-top: 1px solid var(--stroke);
  transition: color 0.2s;
}

.mobile-link:hover {
  color: var(--text-1);
}

.mobile-link-cta {
  color: var(--cyan);
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .mobile-menu { display: block; }
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 780px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 200, 232, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 200, 232, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 0 0 28px;
  line-height: 1.0;
}

.hero-line-1 {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-line-2 {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-line-3 {
  display: block;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--text-2);
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--btn-gradient-text);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 20px rgba(0, 200, 232, 0.35),
    0 8px 40px rgba(0, 200, 232, 0.15);
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text-1);
  border-color: var(--stroke-hover);
  background: rgba(0, 200, 232, 0.04);
  transform: translateY(-2px);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, #5865F2, #8847ff);
  padding: 18px 36px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 25px rgba(88, 101, 242, 0.4),
    0 8px 50px rgba(136, 71, 255, 0.2);
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.15); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--cyan-dim);
  border-radius: 100px;
  background: rgba(0, 200, 232, 0.04);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
}

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Coming Soon Badge */
.coming-soon-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  background: rgba(136, 71, 255, 0.1);
  border: 1px solid rgba(136, 71, 255, 0.25);
  padding: 4px 10px;
  border-radius: 100px;
  vertical-align: middle;
}

.feature-card .coming-soon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

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

.feature-card:hover {
  border-color: var(--stroke-hover);
  background: var(--surface-raised);
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px var(--shadow-color),
    0 0 0 1px var(--stroke-hover);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s var(--ease-out);
}

.feature-card:hover .feature-icon {
  border-color: var(--stroke-hover);
  box-shadow: 0 0 16px rgba(0, 200, 232, 0.1);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 12px;
}

.feature-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Highlights Row ---------- */
.highlights-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .highlights-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.highlight-item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: all 0.3s var(--ease-out);
}

.highlight-item:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-2px);
}

.highlight-icon {
  color: var(--cyan);
  margin-bottom: 14px;
}

.highlight-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-1);
  margin-bottom: 6px;
}

.highlight-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ---------- Comparison ---------- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}

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

.comparison-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.comparison-bad {
  border-left: 3px solid #ef4444;
}

.comparison-good {
  border-left: 3px solid var(--cyan);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 20px;
}

.comparison-bad .comparison-header {
  color: #f87171;
}

.comparison-good .comparison-header {
  color: var(--cyan);
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-list li {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.comparison-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.comparison-bad .comparison-list li::before {
  background: #ef4444;
}

.comparison-good .comparison-list li::before {
  background: var(--cyan);
}

/* ---------- Use Cases ---------- */
.use-cases-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  margin: 0 0 24px;
}

.use-cases-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.use-case-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  padding: 12px 22px;
  transition: all 0.3s var(--ease-out);
}

.use-case-chip svg {
  color: var(--cyan);
}

.use-case-chip:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-color);
}

/* ---------- Integration ---------- */
.integration-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .integration-layout {
    grid-template-columns: 1fr;
  }
}

.steps-column {
  padding-top: 8px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--cyan);
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
}

.step:hover .step-number {
  border-color: var(--stroke-hover);
  box-shadow: 0 0 12px rgba(0, 200, 232, 0.15);
}

.step-content {
  padding-top: 4px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 6px;
}

.step-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

.step-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--stroke-hover), transparent);
  margin-left: 21px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ---------- Code Window ---------- */
.code-window {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.code-window:hover {
  border-color: var(--stroke-hover);
  box-shadow: 0 8px 40px var(--shadow-color);
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--stroke);
  background: var(--code-header-bg);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-overlay);
  border: 1px solid var(--stroke);
}

.code-dots span:first-child { background: rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.3); }
.code-dots span:nth-child(2) { background: rgba(234, 179, 8, 0.4); border-color: rgba(234, 179, 8, 0.3); }
.code-dots span:last-child { background: rgba(34, 197, 94, 0.4); border-color: rgba(34, 197, 94, 0.3); }

.code-filename {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.code-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 3px 10px;
  border-radius: 100px;
}

.code-body {
  padding: 24px 20px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  color: var(--text-2);
}

.code-body code {
  font-family: inherit;
}

/* Syntax colors */
.c-keyword { color: var(--purple); }
.c-string { color: var(--cyan); }
.c-comment { color: var(--text-3); font-style: italic; }
.c-func { color: var(--blue); }
.c-var { color: var(--text-1); }
.c-prop { color: #e0a050; }

.code-note {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}

/* ---------- CTA Section ---------- */
.section-cta {
  padding-bottom: 120px;
}

.cta-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--stroke-hover);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 200, 232, 0.08), transparent 70%);
  pointer-events: none;
}

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

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 16px;
  line-height: 1.15;
}

.cta-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 36px;
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.cta-link:hover {
  color: var(--cyan);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--stroke);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.footer-brand strong {
  color: var(--text-1);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-1);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Reveal Animation ---------- */
.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);
}

/* Staggered delays for grid children */
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .section {
    padding: 64px 16px;
  }

  .hero-section {
    padding: 100px 16px 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-ghost, .btn-discord {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .code-body {
    font-size: 11.5px;
    padding: 16px 12px;
  }
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  background: none;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  padding: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.theme-toggle:hover {
  color: var(--cyan);
  border-color: var(--stroke-hover);
  background: rgba(0, 200, 232, 0.04);
}

/* Icon visibility: dark mode shows sun, light mode shows moon */
.theme-icon-moon { display: none; }
.theme-icon-sun { display: block; }

html[data-theme="light"] .theme-icon-moon { display: block; }
html[data-theme="light"] .theme-icon-sun { display: none; }

/* Mobile theme toggle */
.theme-toggle-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.theme-toggle-mobile .theme-icon-sun,
.theme-toggle-mobile .theme-icon-moon {
  color: var(--cyan);
}

.theme-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

/* ---------- Light Theme Component Overrides ---------- */

/* Grain overlay -- less visible on light */
html[data-theme="light"] .grain-overlay {
  opacity: 0.015;
}

/* Selection highlight */
html[data-theme="light"] ::selection {
  background: rgba(0, 160, 200, 0.2);
  color: var(--text-1);
}

/* Scrollbar */
html[data-theme="light"]::-webkit-scrollbar-track { background: var(--void); }
html[data-theme="light"]::-webkit-scrollbar-thumb { background: rgba(0, 100, 140, 0.2); }
html[data-theme="light"]::-webkit-scrollbar-thumb:hover { background: rgba(0, 100, 140, 0.35); }

/* Syntax highlighting -- ensure contrast on light backgrounds */
html[data-theme="light"] .c-keyword { color: var(--purple); }
html[data-theme="light"] .c-string { color: #0090a8; }
html[data-theme="light"] .c-prop { color: #a06010; }
html[data-theme="light"] .c-var { color: var(--text-1); }

/* Smooth transition on toggle */
body,
.navbar,
.feature-card,
.highlight-item,
.comparison-card,
.use-case-chip,
.code-window,
.cta-card,
.site-footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
