/* ============================================
   AeroX AI — Landing Page Styles
   Premium 3D Experience
   ============================================ */

/* --- Custom Cursor --- */
.cursor-dot { position: fixed; width: 6px; height: 6px; background: var(--text-primary); border-radius: 50%; pointer-events: none !important; z-index: 99999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, opacity 0.2s; }
.cursor-ring { position: fixed; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; pointer-events: none !important; z-index: 99998; transform: translate(-50%, -50%); transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s; }
.cursor-dot.hover { width: 10px; height: 10px; }
.cursor-ring.hover { width: 52px; height: 52px; border-color: rgba(255,255,255,0.6); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* --- Navigation --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; transition: all var(--duration-normal) var(--ease-out); }
.nav.scrolled { background: rgba(0,0,0,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle); padding: 0.75rem 0; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: baseline; gap: 2px; }
.nav-links { display: flex; gap: var(--space-xl); }
.nav-link { font-size: var(--text-sm); color: var(--text-secondary); transition: color var(--duration-fast); font-weight: 500; }
.nav-link:hover { color: var(--text-primary); }
.nav-actions { display: flex; gap: var(--space-md); align-items: center; }
.nav-btn { padding: 0.5rem 1.25rem; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600; transition: all var(--duration-normal) cubic-bezier(0.16, 1, 0.3, 1); }
.nav-btn:active { transform: scale(0.96); }
.nav-btn-secondary { color: var(--text-secondary); }
.nav-btn-secondary:hover { color: var(--text-primary); }
.nav-btn-primary { background: var(--text-primary); color: var(--bg-primary); }
.nav-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; width: 24px; padding: 4px 0; }
.nav-hamburger span { display: block; height: 2px; background: var(--text-primary); transition: all var(--duration-normal); }
.mobile-menu { display: none; }

/* --- Hero --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none !important; }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 800px; padding: 0 var(--space-xl); pointer-events: auto; }
.hero-badge { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 0.5rem 1rem; border: 1px solid var(--border-primary); border-radius: var(--radius-full); font-size: var(--text-xs); color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: var(--space-xl); }
.badge-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { font-size: clamp(2.5rem, 8vw, 5.5rem); line-height: 1.05; margin-bottom: var(--space-lg); letter-spacing: -2px; }
.hero-title-accent { display: block; opacity: 0.4; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.5rem); color: var(--text-secondary); margin-bottom: var(--space-sm); font-weight: 400; }
.hero-description { font-size: var(--text-sm); color: var(--text-tertiary); margin-bottom: var(--space-2xl); }
.hero-ctas { display: flex; gap: var(--space-md); justify-content: center; margin-bottom: var(--space-3xl); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--space-xl); justify-content: center; align-items: center; }
.stat { text-align: center; }
.stat-value { display: block; font-size: var(--text-xl); color: var(--text-primary); letter-spacing: 1px; }
.stat-label { font-size: var(--text-xs); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 32px; background: var(--border-primary); }
.hero-scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--text-muted), transparent); animation: scrollBounce 2s infinite; }
@keyframes scrollBounce { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.3; } }
.hero-scroll-indicator span { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

/* --- Sections --- */
.section { padding: var(--space-4xl) 0; position: relative; }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-label { display: block; font-size: var(--text-sm); letter-spacing: 4px; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-md); }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -1px; margin-bottom: var(--space-lg); }
.section-desc { font-size: var(--text-lg); color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-weight: 400; }

/* --- Intelligence Grid --- */
.intel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-lg); }
.intel-card { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); padding: var(--space-2xl); transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease; }
.intel-card:hover { border-color: var(--border-focus); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.intel-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--bg-surface); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-lg); color: var(--text-secondary); transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
.intel-card:hover .intel-icon { transform: scale(1.08); }
.intel-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-sm); font-weight: 600; }
.intel-card p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* --- Models Filter Tabs --- */
.models-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}
.model-filter-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.model-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-primary);
  transform: translateY(-1px);
}
.model-filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

/* --- Models Grid --- */
.models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease;
}
.model-card.hidden-by-filter {
  display: none !important;
}
.models-grid:not(.is-expanded) .model-card.model-card-overflow {
  display: none !important;
}

/* See More Models Toggle Button */
.models-show-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-3xl);
  padding-top: var(--space-md);
}

.models-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.models-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 255, 255, 0.1);
}

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

.models-toggle-btn .models-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.models-toggle-btn.is-expanded .models-toggle-icon {
  transform: rotate(180deg);
}
.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.model-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 255, 255, 0.06);
}
.model-card:hover::before {
  opacity: 1;
}
.model-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); }
.model-icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--text-secondary); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.model-card:hover .model-icon { transform: scale(1.1) rotate(4deg); border-color: rgba(255, 255, 255, 0.3); color: var(--text-primary); }
.model-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.2;
}
.model-badge svg.badge-icon-svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
  flex-shrink: 0;
  stroke: currentColor;
}
.model-badge.badge-coder {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.model-badge.badge-speed {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}
.model-badge.badge-turbo {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}
.model-badge.badge-context {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.35);
  color: #a78bfa;
}
.model-badge.badge-nexus {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
}
.model-badge.badge-ultra {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}
.model-badge.badge-free {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.35);
  color: #4ade80;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.model-badge.badge-free::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse 2s infinite;
}
.model-name { font-size: var(--text-xl); margin-bottom: var(--space-xs); font-weight: 600; color: #ffffff; letter-spacing: -0.3px; }
.model-desc { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-lg); line-height: 1.6; flex-grow: 1; }
.model-caps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-md); }
.cap-tag { padding: 0.2rem 0.65rem; border-radius: var(--radius-full); background: var(--bg-surface); border: 1px solid rgba(255, 255, 255, 0.06); font-size: var(--text-xs); color: var(--text-tertiary); letter-spacing: 0.4px; }
.model-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs);
}
.model-stat { color: var(--text-tertiary); }
.model-speed { color: #60a5fa; font-weight: 500; }

/* --- Capabilities --- */
.caps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.cap-item { padding: var(--space-xl); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background 0.22s ease; }
.cap-item:hover { border-color: var(--border-primary); background: var(--bg-card); transform: translateY(-2px); }
.cap-num { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 2px; margin-bottom: var(--space-sm); }
.cap-item h3 { font-size: var(--text-base); margin-bottom: var(--space-xs); font-weight: 600; }
.cap-item p { font-size: var(--text-sm); color: var(--text-secondary); }

/* --- Chat Preview --- */
.chat-preview { max-width: 700px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.chat-preview-header { padding: var(--space-md) var(--space-xl); border-bottom: 1px solid var(--border-primary); display: flex; justify-content: space-between; align-items: center; }
.chat-model-indicator { font-size: var(--text-xs); color: var(--text-secondary); letter-spacing: 1px; }
.chat-dots { display: flex; gap: 4px; }
.chat-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-primary); }
.chat-dots span:first-child { background: var(--error); }
.chat-dots span:nth-child(2) { background: var(--warning); }
.chat-dots span:last-child { background: var(--success); }
.chat-preview-messages { padding: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-lg); }
.preview-msg { padding: var(--space-lg); border-radius: var(--radius-lg); }
.preview-msg-user { background: var(--bg-surface); border: 1px solid var(--border-subtle); margin-left: 20%; }
.preview-msg-assistant { background: var(--bg-tertiary); margin-right: 10%; }
.preview-msg p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-sm); }
.preview-msg p:last-child { margin-bottom: 0; }
.preview-msg strong { color: var(--text-primary); }
.chat-preview-input { padding: var(--space-md) var(--space-xl); border-top: 1px solid var(--border-primary); display: flex; align-items: center; justify-content: space-between; }
.chat-preview-input span { font-size: var(--text-sm); color: var(--text-muted); }
.input-send { width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--text-primary); color: var(--bg-primary); display: flex; align-items: center; justify-content: center; }

/* --- Security --- */
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.security-item { display: flex; gap: var(--space-lg); align-items: flex-start; padding: var(--space-xl); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background 0.22s ease; }
.security-item:hover { border-color: var(--border-primary); background: var(--bg-card); transform: translateY(-2px); }
.security-icon { font-size: 1.5rem; flex-shrink: 0; }
.security-item h3 { font-size: var(--text-base); margin-bottom: var(--space-xs); font-weight: 600; }
.security-item p { font-size: var(--text-sm); color: var(--text-secondary); }

/* --- Performance --- */
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.perf-item { text-align: center; padding: var(--space-2xl); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.perf-value { font-size: var(--text-3xl); letter-spacing: 2px; margin-bottom: var(--space-sm); }
.perf-label { font-size: var(--text-sm); color: var(--text-secondary); }

/* --- CTA --- */
.cta-section { padding: var(--space-4xl) 0; }
.cta-content { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: var(--space-lg); letter-spacing: -1px; }
.cta-desc { font-size: var(--text-lg); color: var(--text-secondary); margin-bottom: var(--space-2xl); }
.cta-buttons { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.footer { padding: var(--space-3xl) 0; border-top: 1px solid var(--border-subtle); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-xl); }
.footer-brand { text-align: center; }
.footer-tagline { font-size: var(--text-sm); color: var(--text-tertiary); margin-top: var(--space-sm); }
.footer-links { display: flex; gap: var(--space-xl); }
.footer-links a { font-size: var(--text-sm); color: var(--text-tertiary); transition: color var(--duration-fast); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 1px; }

/* --- Animations --- */
[data-animate]:not(.animated) { opacity: 0; transform: translateY(30px); }
[data-animate].animated { opacity: 1; transform: translateY(0); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
/* No-JS fallback: if JavaScript fails, reveal content instead of leaving it hidden */
html.no-js [data-animate] { opacity: 1; transform: none; }

/* --- Scroll Progress Bar --- */
.scroll-progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #ffffff, #a0a0a0); z-index: 10005; width: 0%; transition: width 0.1s linear; }

/* --- Back To Top Floating Button --- */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border-primary); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center; z-index: 999;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: all var(--duration-normal) cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--bg-hover); border-color: var(--text-primary); transform: translateY(-3px) scale(1.05); }
.back-to-top:active { transform: translateY(0) scale(0.95); }

/* --- Simulated AI Playground --- */
.playground-section { padding: var(--space-4xl) 0; position: relative; }
.pg-container { max-width: 900px; margin: 0 auto; }
.pg-tabs { display: flex; gap: var(--space-xs); margin-bottom: var(--space-lg); border-bottom: 1px solid var(--border-primary); padding-bottom: var(--space-xs); overflow-x: auto; }
.pg-tab {
  padding: 0.6rem 1.25rem; font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary);
  border-radius: var(--radius-md); transition: all var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1); white-space: nowrap;
}
.pg-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.pg-tab:active { transform: scale(0.96); }
.pg-tab.active { color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border-primary); }

.pg-console {
  background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg); transition: border-color var(--duration-normal);
}
.pg-console:hover { border-color: var(--border-focus); }
.pg-topbar {
  display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--border-primary); background: rgba(20,20,20,0.6); backdrop-filter: blur(10px);
  flex-wrap: wrap; gap: var(--space-sm);
}
.pg-meta { display: flex; align-items: center; gap: var(--space-md); }
.pg-model-tag { font-size: var(--text-xs); letter-spacing: 1px; color: var(--text-primary); background: var(--bg-surface); padding: 3px 10px; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); }
.pg-badge-tag { font-size: var(--text-xs); color: var(--text-tertiary); letter-spacing: 0.5px; }
.pg-stats { display: flex; align-items: center; gap: var(--space-md); font-size: var(--text-xs); color: var(--text-secondary); }
.pg-stat-live { display: inline-flex; align-items: center; gap: 4px; color: var(--success); }
.pg-stat-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.pg-copy-btn { font-size: var(--text-xs); padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-primary); color: var(--text-secondary); transition: all var(--duration-fast); }
.pg-copy-btn:hover { color: var(--text-primary); border-color: var(--text-primary); }

.pg-prompt-banner {
  padding: var(--space-md) var(--space-xl); background: var(--bg-tertiary); border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); color: var(--text-secondary); font-style: italic;
}
.pg-prompt-icon { color: var(--text-muted); font-style: normal; font-weight: 700; }

.pg-output-window {
  min-height: 240px; max-height: 480px; overflow-y: auto; padding: var(--space-xl);
  font-size: var(--text-sm); line-height: 1.7; color: var(--text-secondary); font-family: 'Quicksand', sans-serif;
}
.pg-output-window strong { color: var(--text-primary); }
.pg-output-window blockquote.pg-quote {
  border-left: 2px solid var(--border-focus); padding-left: var(--space-md); margin: var(--space-md) 0; color: var(--text-tertiary);
}
.pg-output-window h4.pg-heading { font-size: var(--text-base); color: var(--text-primary); margin: var(--space-md) 0 var(--space-xs); font-family: 'Lora', serif; }
.pg-code-card {
  margin: var(--space-md) 0;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.pg-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pg-code-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Share Tech', monospace;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}
.pg-lang-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.pg-copy-btn {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-family: 'Share Tech', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pg-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.pg-copy-btn:active {
  transform: scale(0.95);
}
.pg-copy-btn.copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}
.pg-code { background: transparent; padding: var(--space-md); font-family: 'JetBrains Mono', 'Share Tech', monospace; font-size: var(--text-xs); color: #d4d4d4; overflow-x: auto; margin: 0; line-height: 1.6; }
.pg-inline-code { background: var(--bg-surface); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', 'Share Tech', monospace; font-size: var(--text-xs); color: var(--text-primary); }
.pg-table-wrap { overflow-x: auto; margin: var(--space-md) 0; }
.pg-table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); }
.pg-table td { padding: 8px 12px; border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.pg-table tr:first-child td { font-weight: 600; color: var(--text-primary); background: var(--bg-surface); }
.pg-cursor { display: inline-block; color: var(--text-primary); animation: blink 0.8s infinite; margin-left: 2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.pg-controls { padding: var(--space-md) var(--space-xl); border-top: 1px solid var(--border-primary); background: var(--bg-secondary); }
.pg-presets { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-md); flex-wrap: wrap; }
.pg-preset-label { font-size: var(--text-xs); color: var(--text-muted); margin-right: 4px; }
.pg-preset { font-size: var(--text-xs); padding: 3px 10px; border-radius: var(--radius-full); background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-secondary); transition: all var(--duration-fast); }
.pg-preset:hover { color: var(--text-primary); border-color: var(--border-focus); }
.pg-preset:active { transform: scale(0.95); }

.pg-input-box { display: flex; gap: var(--space-sm); align-items: center; }
.pg-input { flex: 1; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--border-primary); border-radius: var(--radius-md); color: var(--text-primary); font-size: var(--text-sm); }
.pg-input:focus { outline: none; border-color: var(--border-focus); }

/* --- Pricing & Packages Section --- */
.pricing-section { padding: var(--space-4xl) 0; position: relative; }
.pricing-toggle-wrap { display: flex; justify-content: center; align-items: center; gap: var(--space-md); margin-bottom: var(--space-3xl); }
.pricing-toggle-label { font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500; }
.pricing-toggle-label.active { color: var(--text-primary); font-weight: 700; }

.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-surface); border: 1px solid var(--border-primary); border-radius: 26px; transition: 0.3s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: var(--text-primary); border-radius: 50%; transition: 0.3s; }
input:checked + .slider { background-color: var(--bg-hover); border-color: var(--text-primary); }
input:checked + .slider:before { transform: translateX(24px); }
.pricing-save-badge { font-size: var(--text-xs); color: var(--success); background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.25); padding: 2px 8px; border-radius: var(--radius-full); }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-lg); align-items: stretch; }
.pkg-card {
  background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-xl);
  padding: var(--space-2xl); display: flex; flex-direction: column; justify-content: space-between;
  position: relative; transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.pkg-card:hover { border-color: var(--border-focus); transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), var(--shadow-glow); }
.pkg-card.featured {
  border-color: rgba(255,255,255,0.4); background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 30px rgba(255,255,255,0.05);
}
.pkg-featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: var(--bg-primary); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 3px 14px; border-radius: var(--radius-full);
}
.pkg-header { margin-bottom: var(--space-xl); }
.pkg-title { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--space-xs); }
.pkg-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; min-height: 42px; }

.pkg-price-wrap { display: flex; align-items: baseline; gap: 6px; margin: var(--space-lg) 0 var(--space-xs); }
.pkg-price-val { font-size: clamp(2.2rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -1px; }
.pkg-interval { font-size: var(--text-sm); color: var(--text-secondary); }
.pkg-yearly-note { font-size: var(--text-xs); color: var(--success); display: none; margin-bottom: var(--space-md); }

.pkg-features { list-style: none; margin-bottom: var(--space-2xl); flex-grow: 1; }
.pkg-feature { display: flex; align-items: flex-start; gap: var(--space-sm); font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-md); }
.pkg-check { color: var(--text-primary); font-weight: 700; flex-shrink: 0; }
.pkg-models-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--space-xs); }
.pkg-model-pill { font-size: 11px; padding: 2px 7px; border-radius: var(--radius-full); background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-tertiary); }

.pkg-footer { margin-top: auto; }
.pkg-btn { width: 100%; text-align: center; justify-content: center; }

/* ============================================
   Responsive Layout & Media Queries
   ============================================ */

/* --- Tablet (<= 1024px) --- */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 0 var(--space-lg);
  }
  .nav-links {
    gap: var(--space-md);
  }
  .intel-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Mobile Navigation Collapse (<= 880px) --- */
@media (max-width: 880px) {
  .nav-links, .nav-actions {
    display: none;
  }
  .nav-hamburger {
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  .nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-sm);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .mobile-menu.open {
    display: flex;
    animation: dropIn 0.25s var(--ease-out);
  }
  .mobile-link {
    font-size: var(--text-base);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color var(--duration-fast);
  }
  .mobile-link:hover {
    color: var(--text-primary);
  }
  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
  }
  .mobile-actions .nav-btn {
    text-align: center;
    width: 100%;
  }
}

/* --- Mobile (<= 768px) --- */
@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
  .section-header {
    margin-bottom: var(--space-2xl);
  }
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .section-desc {
    font-size: var(--text-base);
    padding: 0 var(--space-md);
  }

  /* Hero Adjustments */
  .hero {
    min-height: 85vh;
    padding-top: 70px;
  }
  .hero-content {
    padding: 0 var(--space-md);
  }
  .hero-stats {
    gap: var(--space-md);
    flex-wrap: wrap;
  }
  .stat-divider {
    height: 24px;
  }

  /* Grid Reflow */
  .intel-grid {
    grid-template-columns: 1fr;
  }
  .models-grid {
    grid-template-columns: 1fr;
  }
  .caps-grid {
    grid-template-columns: 1fr;
  }
  .security-grid {
    grid-template-columns: 1fr;
  }
  .perf-grid {
    grid-template-columns: 1fr;
  }
  .pkg-grid {
    grid-template-columns: 1fr;
  }

  /* Playground */
  .pg-container {
    padding: 0 var(--space-sm);
  }
  .pg-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
  }
  .pg-output-window {
    padding: var(--space-md);
    max-height: 380px;
  }
  .pg-prompt-banner {
    padding: var(--space-sm) var(--space-md);
    font-size: 13px;
  }

  /* Chat Preview */
  .chat-preview-messages {
    padding: var(--space-md);
  }
  .preview-msg-user {
    margin-left: 5%;
  }
  .preview-msg-assistant {
    margin-right: 0;
  }

  /* Footer */
  .footer {
    padding: var(--space-2xl) 0;
  }
  .footer-inner {
    text-align: center;
    gap: var(--space-lg);
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }
}

/* --- Small Mobile (<= 480px) --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
    letter-spacing: -1px;
    margin-bottom: var(--space-md);
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-badge {
    padding: 0.35rem 0.75rem;
    font-size: 10.5px;
    margin-bottom: var(--space-lg);
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-stats {
    flex-direction: column;
    gap: var(--space-xs);
  }
  .stat-divider {
    display: none;
  }
  .pricing-toggle-wrap {
    gap: var(--space-xs);
    font-size: var(--text-xs);
  }
  .pkg-card {
    padding: var(--space-xl) var(--space-md);
  }
  .pkg-price-val {
    font-size: 2.2rem;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
  }
}

/* ============================================
   Landing Modals — OLED Pure Dark Theme
   ============================================ */
.landing-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-modal-box {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
}

.landing-modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.landing-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.landing-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.landing-modal-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.gateway-choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 14px;
}

.gateway-choice-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
}

.gateway-choice-card:hover .gateway-icon-box {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.gateway-choice-card:hover .gateway-action-pill {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.gateway-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e5e5;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.gateway-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  transition: all 0.2s ease;
}




/* ============================================
   Premium polish — scroll-spy, spotlight, motion
   ============================================ */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--text-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text-primary); }

/* Spotlight glow that follows the pointer (vars set in animations.js) */
.intel-card, .cap-item, .pkg-card, .security-item, .perf-item { position: relative; overflow: hidden; }
.intel-card::after, .cap-item::after, .pkg-card::after, .security-item::after, .perf-item::after, .model-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.07), transparent 42%);
  transition: opacity 0.35s ease;
}
.intel-card:hover::after, .cap-item:hover::after, .pkg-card:hover::after, .security-item:hover::after, .perf-item:hover::after, .model-card:hover::after { opacity: 1; }
.intel-card > *, .cap-item > *, .pkg-card > *, .security-item > *, .perf-item > * { position: relative; z-index: 1; }

/* Hero accent shimmer + content drift */
.hero-content { will-change: transform; }
.hero-title-accent { background: linear-gradient(100deg, var(--text-tertiary) 0%, var(--text-secondary) 35%, var(--text-primary) 50%, var(--text-secondary) 65%, var(--text-tertiary) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: heroShimmer 7s ease-in-out 2; }
@keyframes heroShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-ctas .btn-primary { box-shadow: 0 0 0 0 rgba(255,255,255,0.0); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, opacity 0.3s ease; }
.hero-ctas .btn-primary:hover { box-shadow: 0 10px 40px rgba(255,255,255,0.18); }
.hero-ctas .btn-primary svg { transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.hero-ctas .btn-primary:hover svg { transform: translateX(4px); }
.perf-item { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), border-color 0.25s ease, background 0.25s ease; }
.perf-item:hover { transform: translateY(-4px); border-color: var(--border-primary); background: var(--bg-card); }
.perf-value { transition: letter-spacing 0.3s ease; }
.perf-item:hover .perf-value { letter-spacing: 4px; }
.footer-links a { position: relative; transition: color 0.2s; }
.footer-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.footer-links a:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .hero-title-accent { animation: none; -webkit-text-fill-color: initial; background: none; color: var(--text-secondary); } }

/* Mobile hero: keep stats in a compact row and drop the scroll hint that overlapped them */
@media (max-width: 480px) {
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--space-md) var(--space-xl); }
  .hero-stats .stat { min-width: 90px; }
  .hero-scroll-indicator { display: none; }
}

/* ==========================================================================
   Responsive hero — never slides under the fixed nav, scroll hint never overlaps
   ========================================================================== */
.hero { box-sizing: border-box; padding: 92px 0 84px; }
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }

/* Short laptop screens (e.g. 1366x625 with browser chrome): scale the hero by height */
@media (max-height: 780px) and (min-width: 769px) {
  .hero { padding: 84px 0 64px; }
  .hero-badge { margin-bottom: 1rem; }
  .hero-title { font-size: clamp(2.4rem, 10.5vh, 5.5rem); margin-bottom: 1rem; }
  .hero-subtitle { font-size: clamp(1rem, 2.6vh, 1.4rem); }
  .hero-description { margin-bottom: 1.4rem; }
  .hero-ctas { margin-bottom: 1.6rem; }
}
@media (max-height: 680px) {
  .hero-scroll-indicator { display: none; }
  .hero { padding-bottom: 40px; }
}

/* Perf: never animate the nav's blur itself (it was part of `transition: all`) */
.nav { transition: background-color var(--duration-normal) var(--ease-out), padding var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
/* Phones: a solid bar instead of blurring the live 3D scene behind it */
@media (max-width: 768px) {
  .nav.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, 0.94); }
}

/* Hero legibility: a soft black halo behind the copy so the 3D core frames the text instead of crossing it */
.hero-content::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: 118%; height: 112%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%);
}
@media (max-width: 768px) { .hero-content::before { width: 130%; } }

/* ==========================================================================
   Hero intro v3 — split headline, light-sweep accent, badge sheen, CTA polish
   (timeline lives in js/landing/animations.js, 3D assembly in scene.js)
   ========================================================================== */
.hero-char, .hero-word { display: inline-block; will-change: transform, opacity; }
.hero-title { perspective: 900px; }

/* "Intelligence." — steel-grey with a band of light that sweeps across it now and then */
.hero-title-accent {
  opacity: 1;
  background: linear-gradient(100deg, #5f5f5f 0%, #5f5f5f 40%, #8d8d8d 45%, #ffffff 50%, #8d8d8d 55%, #5f5f5f 60%, #5f5f5f 100%);
  background-size: 300% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none;
}
.hero-title-accent.is-lit { animation: heroAccentSweep 10s cubic-bezier(0.55, 0, 0.25, 1) infinite; }
@keyframes heroAccentSweep {
  0% { background-position: 100% 50%; }
  20%, 100% { background-position: 0% 50%; }
}

/* Badge: a single sheen pass on arrival, and a soft radar ping on the live dot */
.hero-badge { position: relative; overflow: hidden; isolation: isolate; background: rgba(255,255,255,0.02); }
.hero-badge::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.16) 50%, transparent 65%);
  transform: translateX(-120%);
}
.hero-badge.is-lit::after { animation: heroBadgeSheen 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes heroBadgeSheen { to { transform: translateX(120%); } }
.badge-dot { position: relative; animation: none; box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.badge-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--success); animation: heroDotPing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes heroDotPing { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

/* CTAs: transforms are driven by GSAP (magnetic pull), so keep CSS from easing them a second time */
.hero-ctas .btn { position: relative; overflow: hidden; isolation: isolate; transition: box-shadow 0.4s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.hero-ctas .btn-primary:hover { opacity: 1; }
.hero-ctas .btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,0.35), 0 14px 48px rgba(255,255,255,0.22), 0 0 90px rgba(255,255,255,0.08); }
.hero-ctas .btn-ghost::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-ctas .btn-ghost:hover::before { transform: translateX(110%); }
.hero-ctas .btn-ghost:hover { border-color: rgba(255,255,255,0.4); }
.hero-ctas .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.stat-divider { transform-origin: 50% 50%; }

@media (prefers-reduced-motion: reduce) {
  .hero-title-accent, .hero-title-accent.is-lit { animation: none; background: none; -webkit-text-fill-color: initial; color: var(--text-secondary); }
  .badge-dot::after, .hero-badge.is-lit::after { animation: none; display: none; }
}
