/* ===================================
   SOLIOS AI — Dark Blue-Black Theme
   =================================== */

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

:root {
  /* Core palette — exact Framer tokens */
  --bg-deep:        #030507;
  --bg-ui1:         #0a0c10;
  --bg-ui2:         #060708;
  --bg-foreground:  #141414;
  --bg-card:        #08090b;  /* Near-black card fill */
  --bg-card-inner:  #0a0b0e;  /* Slightly lighter inner */

  /* Accent blues */
  --blue-light:     #B8C7D9;
  --blue-400:       #60a5fa;
  --blue-500:       #3b82f6;
  --blue-600:       #2563eb;
  --blue-700:       #1d4ed8;
  --blue-glow:      rgba(59, 130, 246, 0.14);
  --blue-glow-soft: rgba(59, 130, 246, 0.05);

  /* Text */
  --text-primary:   #D5DBE6;
  --text-secondary: #B8C7D9;
  --text-muted:     #64748b;

  /* Gradient border colors */
  --border-grad-from: rgba(216, 231, 242, 0.12);
  --border-grad-to:   rgba(216, 231, 242, 0.03);

  /* Misc */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px var(--blue-glow), 0 0 120px var(--blue-glow-soft);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-ui2);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography (Inter + Instrument Serif) ---------- */

/* Metallic gradient — dark gray -> bright white -> gray */
.silver-text,
h1, h2, h3 {
  background: linear-gradient(
    180deg,
    #6b7280 0%,
    #d1d5db 20%,
    #ffffff 42%,
    #f3f4f6 55%,
    #9ca3af 75%,
    #4b5563 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* H1 — massive */
h1 {
  font-size: clamp(2.8rem, 8vw, 112px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* H2: 44px / 1.2 */
h2 {
  font-size: clamp(1.75rem, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* H3: 28px / 1.2 (Heading 3) */
h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}

/* H3b variant: 32px / 1.4 — use via class */
.h3b {
  font-size: 32px;
  line-height: 1.4;
}

/* H4: 22px / 1.4 */
h4 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Instrument Serif for italic accent words */
.serif-accent,
.faq h2 em,
.hero h1 em {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(
    180deg,
    #6b7280 0%,
    #e5e7eb 25%,
    #ffffff 45%,
    #9ca3af 70%,
    #4b5563 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* p1: 16px / 1.6 — default body */
/* p1 semibold: 16px / 1.2 */
/* p2 medium: 14px / 22px */
/* p2 regular: 14px / 30px */
/* p3: 12px / 1.3 */
/* p4: 20px / 1.2 */

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

.text-p1-semibold {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.text-p2 {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.text-p2-regular {
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
}

.text-p3 {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.text-p4 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.section-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ---------- Glass Card — dark with gradient border + white top glow ---------- */
.glass-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
  overflow: hidden;
  /* Gradient border via background-clip trick */
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 40%, rgba(255,255,255,0.0) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Top-edge line on cards — spreads outward on hover, no bloom */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  z-index: 1;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.8s ease;
}

.glass-card:hover::before {
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.3) 75%, transparent 100%);
}

/* ---------- Buttons — card style with bottom-up glow on hover ---------- */

/* Glow spread animation — from center outward */
@keyframes glow-spread-up {
  0%   { width: 30%; opacity: 0.3; }
  100% { width: 100%; opacity: 0.6; }
}

@keyframes glow-spread-down {
  0%   { width: 30%; opacity: 0.3; }
  100% { width: 100%; opacity: 0.6; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color 0.4s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  background: var(--bg-card);
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Static glow at BOTTOM for buttons */
.btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  z-index: 1;
  transition: width 0.6s ease, opacity 0.6s ease;
}

/* On hover — glow spreads from bottom center outward */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.08);
}

.btn:hover::before {
  width: 100%;
  opacity: 0.7;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 30%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.5) 70%, transparent 100%);
}

/* Bloom glow behind the line */
.btn::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04), transparent 70%);
  z-index: 0;
  transition: width 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.btn:hover::after {
  width: 80%;
  opacity: 1;
}

.btn-card {}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  background-image: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: 0 0 12px rgba(59,130,246,0.06), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(59,130,246,0.08), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 15px;
}

/* ---------- Asset Placeholders ---------- */
.asset-placeholder {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(216, 231, 242, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

.asset-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(216,231,242,0.02), transparent 70%);
}

.asset-placeholder--hero {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
}

.asset-placeholder--wide {
  width: 100%;
  height: 200px;
  margin-top: 20px;
}

.asset-placeholder--med {
  width: 100%;
  height: 160px;
  margin-top: 16px;
}

.asset-placeholder--sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.asset-placeholder--icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.asset-placeholder--logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
}

.logo-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  flex-shrink: 0;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* Inline logo for text contexts */
.inline-logo {
  height: 18px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.inline-logo--footer {
  height: 14px;
  margin: 0 4px;
  opacity: 0.7;
}

/* ===================================
   NAV — transparent, floating
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: transparent;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
}

/* Nav links — big capsule pill */
.nav-links.glass-pill {
  display: flex;
  gap: 0;
  padding: 8px 8px;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.nav-links.glass-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Metallic gradient hover animation on nav links */
@keyframes metallic-shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1;
  padding: 6px 18px;
  border-radius: 100px;
  transition: color 0.2s ease;
  background: none;
  -webkit-text-fill-color: var(--text-secondary);
}

.nav-links a:hover {
  background: linear-gradient(
    90deg,
    var(--text-secondary) 0%,
    #ffffff 40%,
    #ffffff 60%,
    var(--text-secondary) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallic-shimmer 1.2s ease forwards;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===================================
   MOBILE MENU — glass sheet overlay
   =================================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-sheet {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  background: rgba(16, 18, 22, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transform: translateY(-20px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.mobile-overlay.open .mobile-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mobile-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.mobile-close:hover {
  color: var(--text-primary);
}

.mobile-sheet-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.mobile-sheet-links a {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 14px 0;
  transition: color var(--transition);
  text-align: center;
}

.mobile-sheet-links a:hover {
  color: var(--text-primary);
}

.mobile-sheet-cta {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

/* Card icons with background badge */
.card-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  filter: invert(1);
  opacity: 0.6;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

/* Icon badge — used in contact cards */
.icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.icon-badge--center {
  align-self: center;
}

.badge-icon {
  width: 22px;
  height: 22px;
  filter: invert(1);
  opacity: 0.6;
}

/* FAQ chevron icon */
.faq-chevron-icon {
  width: 16px;
  height: 16px;
  filter: invert(1);
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-chevron-icon {
  transform: rotate(180deg);
}

/* FAQ CTA icon */
.faq-icon {
  width: 24px;
  height: 24px;
  filter: invert(1);
  opacity: 0.5;
}

/* ===================================
   HERO
   =================================== */
/* ---------- Particle Canvas ---------- */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Video — fixed fullscreen behind everything, visible through nav */
.hero-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.05;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  transform: scale(1.2);
}

.hero {
  height: 95vh;
  height: 95svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: transparent;
}

/* Bottom fade + rising glow */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(to bottom, transparent 20%, var(--bg-ui2) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
  max-width: 1400px;
}

/* Blue glows removed — clean dark background */
.hero-glow,
.hero-glow-2 {
  display: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 100%;
  width: 100%;
}

/* "New Horizons" in serif italic */
.hero h1 em {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Green pulsing dot in label */
.label-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 4px rgba(74, 222, 128, 0.3); }
}

/* Icon images inside buttons */
.btn-icon {
  width: 14px;
  height: 14px;
  filter: invert(1);
  opacity: 0.8;
}

/* Social icon images */
.social-icon {
  width: 18px;
  height: 18px;
  filter: invert(1);
  opacity: 0.4;
  transition: opacity var(--transition);
}

.hero-socials a:hover .social-icon {
  opacity: 0.9;
}

/* Scroll down icon */
.scroll-icon {
  width: 24px;
  height: 24px;
  filter: invert(1);
  opacity: 0.3;
}

/* Author avatar */
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Hero particles canvas — positioned at the bottom of hero */
.hero-particles-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 3;
  pointer-events: none;
}

/* Social icons row */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.hero-socials a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
}

.hero-socials a:hover {
  color: var(--text-primary);
}

.social-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.12);
}

/* Scroll down arrow — anchored at bottom of hero */
.hero-scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  transition: opacity var(--transition);
  animation: bob 2.5s ease-in-out infinite;
}

.hero-scroll-arrow:hover {
  opacity: 0.8;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===================================
   ANALYSIS
   =================================== */
.analysis {
  padding: 40px 0 100px;
  background: linear-gradient(180deg, var(--bg-ui2) 0%, var(--bg-ui1) 100%);
}

.analysis-card {
  padding: 48px;
  text-align: center;
  position: relative;
}

/* Override global card glow — wider + brighter for this card */
.analysis-card::before {
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.analysis-card .section-label {
  margin-bottom: 24px;
}

.analysis-card blockquote {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.analysis-author {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.author-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
}

.author-role {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.3;
}

/* ===================================
   BENEFITS
   =================================== */
.benefits {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-ui1) 0%, var(--bg-ui2) 100%);
}

.benefits h2 {
  margin-bottom: 48px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 36px 28px;
  text-align: left;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-2px);
}

.card-timeline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #4ade80;
  margin-bottom: 8px;
}

.benefit-card h3 {
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

/* ===================================
   SERVICES
   =================================== */
.services {
  padding: 100px 0;
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-ui2) 0%, var(--bg-ui1) 100%);
}

.services-glow {
  position: absolute;
  top: 200px;
  left: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.03), transparent 70%);
  pointer-events: none;
}

.services h2 {
  margin-bottom: 48px;
}

.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

.services-split .glass-card {
  padding: 36px;
}

.services-main p,
.services-side p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 12px;
}

.service-tags,
.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(19, 35, 60, 0.5);
  color: var(--blue-light);
  border: 1px solid rgba(216, 231, 242, 0.1);
}

.tag--outline {
  background: transparent;
  border-color: rgba(216,231,242,0.08);
  color: var(--text-secondary);
}

/* Code block */
.code-block-card {
  margin-top: 24px;
  text-align: left;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(216,231,242,0.05);
  background: rgba(0,0,0,0.3);
}

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

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #eab308; }
.code-dots span:nth-child(3) { background: #22c55e; }

.code-filename {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-block-card pre {
  padding: 24px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.code-block-card .kw { color: #c084fc; }
.code-block-card .cls { color: #60a5fa; }
.code-block-card .fn { color: #34d399; }
.code-block-card .param { color: #fb923c; }
.code-block-card .str { color: #86efac; }

/* ===================================
   FEATURES
   =================================== */
.features {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-ui1) 0%, var(--bg-ui2) 100%);
}

.features h2 {
  margin-bottom: 48px;
}

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

.feature-card {
  padding: 36px 28px;
  text-align: left;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

/* ===================================
   PROCESS
   =================================== */
.process {
  padding: 100px 0;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, var(--bg-ui2) 0%, var(--bg-ui1) 100%);
}

.process-glow {
  position: absolute;
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.03), transparent 70%);
  pointer-events: none;
}

.process h2 {
  margin-bottom: 48px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-step {
  padding: 36px 28px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.step-number {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

/* ===================================
   INTEGRATIONS
   =================================== */
.integrations {
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-ui1) 0%, var(--bg-ui2) 100%);
}

/* Marquee carousel */
.marquee-wrap {
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.tech-logo {
  width: 36px;
  height: 36px;
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 0.4s ease;
}

.tech-logo:hover {
  opacity: 0.8;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Decorative asset placeholders — gradient mesh visuals */
.asset-placeholder--wide,
.asset-placeholder--med {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.04), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(139,92,246,0.03), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255,255,255,0.01), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.005) 100%);
  border: 1px solid rgba(255,255,255,0.03);
}

.asset-placeholder--wide span,
.asset-placeholder--med span {
  display: none;
}

/* ===================================
   FAQ
   =================================== */
.faq {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-ui2) 0%, var(--bg-ui1) 100%);
}

.faq h2 {
  margin-bottom: 48px;
}

/* .faq h2 em — handled by global .serif-accent rule */

.faq .section-sub {
  margin-bottom: 48px;
}

/* Two-column: CTA left, accordion right */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: start;
}

.faq-cta-card {
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.faq-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(216,231,242,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-cta-icon svg {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
}

.faq-cta-card h3 {
  font-size: 28px;
  line-height: 1.2;
}

.faq-cta-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  color: var(--text-secondary);
}

.faq-chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

/* ===================================
   COMPARISON — two-column layout
   =================================== */
.comparison {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-ui1) 0%, var(--bg-ui2) 100%);
}

.comparison h2 {
  margin-bottom: 48px;
}

.comparison h2 em {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
}

.comp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 16px;
  text-align: left;
  align-items: start;
}

.comp-col-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.comp-logo {
  height: 22px;
  width: auto;
}

.comp-others-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--text-secondary);
}

.comp-others-label em {
  font-family: inherit;
}

.comp-icon-header {
  width: 20px;
  height: 20px;
  filter: invert(1);
  opacity: 0.5;
}

.comp-list {
  padding: 8px 0;
}

.comp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comp-item:last-child {
  border-bottom: none;
}

.comp-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.comp-icon--check {
  filter: invert(1);
  opacity: 0.7;
}

.comp-list--dim .comp-item {
  color: var(--text-muted);
}

.comp-x {
  font-size: 16px;
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

/* Icon inside section labels */
.label-icon {
  width: 14px;
  height: 14px;
  filter: invert(1);
  opacity: 0.5;
}

/* ===================================
   CONTACT
   =================================== */
.contact {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-ui2) 0%, var(--bg-ui1) 100%);
}

.contact h2 em {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  text-align: left;
  margin-top: 16px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  padding: 32px;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-card-header h3 {
  margin-bottom: 0;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 16px;
}

.contact-link {
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.2);
  transition: text-decoration-color var(--transition);
}

.contact-link:hover {
  text-decoration-color: rgba(255,255,255,0.6);
}

.contact-form-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.form-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  margin: 16px 0 24px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.15);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  margin-top: 4px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(216,231,242,0.08);
  background: var(--bg-ui1); /* #10131C */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .text-muted {
  margin-top: 12px;
  font-size: 14px;
  line-height: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(216,231,242,0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-muted);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 960px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .benefits-grid,
  .features-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .services-split {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .comp-columns {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 100px 0 40px;
    height: 100svh;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

}

/* ---------- All sections above particle canvas ---------- */
.hero, .analysis, .benefits, .services, .features,
.process, .integrations, .faq, .comparison, .contact, .footer, .nav {
  position: relative;
  z-index: 1;
}

/* ---------- Scroll animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
