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

:root {
  --void:        #020108;
  --deep:        #06040F;
  --surface:     #0C0A1A;
  --raised:      #130F24;
  --lifted:      #1A152E;

  --violet:      #7C3AED;
  --violet-mid:  #8B5CF6;
  --violet-soft: #A78BFA;
  --violet-pale: #C4B5FD;
  --violet-glow: #6D28D9;

  --white:       #FFFFFF;
  --silver:      #E8E4F5;
  --mist:        #B0A8CC;
  --fog:         #6B638A;

  --grad-brand:  linear-gradient(135deg, #6D28D9 0%, #8B5CF6 50%, #A855F7 100%);
  --grad-shine:  linear-gradient(135deg, #FFFFFF 0%, #DDD6FE 40%, #A78BFA 100%);
  --grad-glow:   radial-gradient(ellipse at center, rgba(139,92,246,0.4) 0%, transparent 70%);

  --border-faint: rgba(139,92,246,0.08);
  --border-dim:   rgba(139,92,246,0.16);
  --border-soft:  rgba(139,92,246,0.28);
  --border-vivid: rgba(139,92,246,0.5);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-pill: 9999px;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo:   cubic-bezier(0.19, 1, 0.22, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body, input, button, select, textarea, label, span, p, h1, h2, h3, h4, h5, h6, a {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--void);
  background-image:
    linear-gradient(rgba(139,92,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--silver);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===================== AMBIENT / ATMOSPHERE ===================== */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbFloat 8s var(--ease-smooth) forwards;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(109,40,217,0.25) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0.5s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  top: 30%; right: -150px;
  animation-delay: 1s;
  animation-duration: 10s;
}

.orb-3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(76,29,149,0.12) 0%, transparent 70%);
  bottom: -200px; left: 20%;
  animation-delay: 1.5s;
  animation-duration: 12s;
}

@keyframes orbFloat {
  0%   { opacity: 0; transform: scale(0.8) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Noise grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  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-size: 200px;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.5s var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(6,4,15,0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 0.5px solid var(--border-faint);
  padding: 0.85rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  opacity: 0;
  animation: navFadeIn 0.8s var(--ease-expo) 0.2s forwards;
}

.logo-gem {
  position: relative;
  width: 44px; height: 44px;
}

.logo-gem svg { width: 44px; height: 44px; }

.logo-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--grad-shine);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  opacity: 0;
  animation: navFadeIn 0.8s var(--ease-expo) 0.4s forwards;
}

.nav-links a {
  color: var(--fog);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--violet-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-smooth);
}

.nav-links a:hover { color: var(--violet-pale); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  opacity: 0;
  animation: navFadeIn 0.8s var(--ease-expo) 0.6s forwards;
  position: relative;
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: white !important;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.nav-cta::after { display: none !important; }
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(109,40,217,0.5); }
.nav-cta:hover::before { opacity: 1; }

@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Radial spotlight behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(109,40,217,0.15) 0%, transparent 65%);
  pointer-events: none;
}

/* Horizontal glow line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
}

.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(109,40,217,0.12);
  border: 0.5px solid var(--border-soft);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--violet-pale);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroReveal 1s var(--ease-expo) 0.3s forwards;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-soft);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(139,92,246,0); }
}

/* Headline */
.hero-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: heroReveal 1s var(--ease-expo) 0.5s forwards;
}

.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line-inner {
  display: block;
  animation: lineSlide 1s var(--ease-expo) forwards;
  opacity: 0;
}
.hero-headline .line:nth-child(1) .line-inner { animation-delay: 0.55s; }
.hero-headline .line:nth-child(2) .line-inner { animation-delay: 0.7s; }
.hero-headline .line:nth-child(3) .line-inner { animation-delay: 0.85s; }

@keyframes lineSlide {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.shine-word {
  background: var(--grad-shine);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

/* Animated underline on .shine-word */
.shine-word::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineExpand 0.6s var(--ease-expo) 1.4s forwards;
}

@keyframes underlineExpand {
  to { transform: scaleX(1); }
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--mist);
  max-width: 520px;
  margin: 0 auto 2.8rem;
  line-height: 1.75;
  opacity: 0;
  animation: heroReveal 1s var(--ease-expo) 1s forwards;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroReveal 1s var(--ease-expo) 1.2s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 2.4rem;
  border-radius: var(--radius-pill);
  background: white;
  color: #0C0A1A;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

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

.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.1); }
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 2.4rem;
  border-radius: var(--radius-pill);
  background: rgba(139,92,246,0.08);
  border: 0.5px solid var(--border-soft);
  color: var(--violet-pale);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(139,92,246,0.16);
  border-color: var(--border-vivid);
  transform: translateY(-2px);
  color: white;
}

/* Scroll indicator */
.scroll-hint {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroReveal 1s var(--ease-expo) 1.8s forwards;
}

.scroll-hint span {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--fog);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--border-soft), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 40%;
  background: var(--violet-soft);
  animation: scrollTrail 1.8s ease infinite;
}

@keyframes scrollTrail {
  to { top: 200%; }
}

/* ===================== SECTION DIVIDER ===================== */
.section-divide {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-dim), transparent);
  margin: 0;
}

/* ===================== NUMBERS BAR ===================== */
.numbers-bar {
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.numbers-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.number-item {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.number-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 0.5px;
  background: var(--border-dim);
}

.number-big {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  background: var(--grad-shine);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}

.number-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fog);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  display: block;
}

/* ===================== MARQUEE ===================== */
.marquee-wrap {
  overflow: hidden;
  padding: 1.5rem 0;
  background: linear-gradient(90deg, var(--void), var(--surface) 20%, var(--surface) 80%, var(--void));
  position: relative;
  z-index: 10;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  animation: marquee 22s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fog);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marquee-item .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet-mid);
  flex-shrink: 0;
}

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

/* ===================== SECTIONS COMMON ===================== */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--violet-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--violet-soft);
}

.section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

.section-title .accent {
  background: var(--grad-shine);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== FEATURES ===================== */
.features-section {
  padding: 7rem 0;
}

.features-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feat-big {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 0.5px solid var(--border-faint);
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  transition: border-color 0.4s, transform 0.4s var(--ease-smooth);
  cursor: default;
}

.feat-big::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 40% 0%, rgba(109,40,217,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.feat-big:hover { border-color: var(--border-soft); transform: translateY(-4px); }

.feat-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 0.5px solid var(--border-faint);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-smooth);
  cursor: default;
}

.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.feat-card:hover { border-color: var(--border-soft); transform: translateY(-3px); }
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(109,40,217,0.2);
  border: 0.5px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.feat-icon i { font-size: 1.3rem; color: var(--violet-soft); }

.feat-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--violet-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.feat-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.feat-desc {
  font-size: 0.85rem;
  color: var(--mist);
  line-height: 1.75;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Visual decorations inside feat-big */
.feat-big-visual {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 160px; height: 160px;
}

.orbit-ring {
  position: absolute;
  border: 0.5px solid var(--border-dim);
  border-radius: 50%;
  animation: orbitSpin linear infinite;
}

.orbit-ring:nth-child(1) { inset: 0; animation-duration: 12s; }
.orbit-ring:nth-child(2) { inset: 20px; animation-duration: 18s; animation-direction: reverse; }
.orbit-ring:nth-child(3) { inset: 40px; animation-duration: 8s; }

.orbit-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--violet-soft);
  border-radius: 50%;
  top: 50%;
  transform-origin: center;
  box-shadow: 0 0 10px var(--violet-mid);
}

.orbit-ring:nth-child(1) .orbit-dot { left: -3px; margin-top: -3px; }
.orbit-ring:nth-child(2) .orbit-dot { right: -3px; margin-top: -3px; }
.orbit-ring:nth-child(3) .orbit-dot { left: 50%; margin-left: -3px; top: -3px; margin-top: 0; }

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.feat-big-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(109,40,217,0.25);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--violet-pale);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ===================== PROCESS ===================== */
.process-section {
  padding: 7rem 0;
  position: relative;
}

.process-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(109,40,217,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}

/* Connecting line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  height: 0.5px;
  background: linear-gradient(90deg, var(--border-faint), var(--border-soft), var(--border-faint));
}

.process-step {
  text-align: center;
  padding: 0 1.5rem;
}

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 0.5px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--violet-soft);
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-smooth);
}

.process-step:hover .step-num {
  background: var(--violet-glow);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 30px rgba(109,40,217,0.5);
  transform: scale(1.1);
}

.step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--mist);
  line-height: 1.7;
  font-weight: 400;
}

/* ===================== MODE TOGGLE ===================== */
.mode-section {
  padding: 7rem 0;
}

.mode-toggle {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.toggle-track {
  display: flex;
  background: var(--surface);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--radius-pill);
  padding: 5px;
  position: relative;
}

.toggle-option {
  padding: 0.7rem 2rem;
  border-radius: var(--radius-pill);
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fog);
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}

.toggle-option.active { color: white; }

.toggle-slider {
  position: absolute;
  top: 5px; bottom: 5px;
  left: 5px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  transition: all 0.4s var(--ease-spring);
  z-index: 0;
}

.mode-panels { position: relative; }

.mode-panel {
  display: none;
  animation: panelIn 0.5s var(--ease-expo) forwards;
}

.mode-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-glass {
  background: rgba(19,15,36,0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.panel-glass::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-vivid), transparent);
}

.panel-glass::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(109,40,217,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.panel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 2rem 0 2.5rem;
}

.pill {
  padding: 0.45rem 1.2rem;
  background: rgba(109,40,217,0.12);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--violet-pale);
  transition: all 0.3s;
}

.pill:hover {
  background: rgba(109,40,217,0.25);
  border-color: var(--border-soft);
  transform: translateY(-2px);
}

.panel-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.panel-sub {
  font-size: 0.95rem;
  color: var(--mist);
  font-weight: 400;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ===================== CHAT DEMO ===================== */
.demo-section {
  padding: 7rem 0;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.demo-copy {}
.demo-copy .section-title { margin-bottom: 1.2rem; }
.demo-copy p { color: var(--mist); font-weight: 400; font-size: 0.97rem; line-height: 1.8; }

.chat-window {
  background: var(--surface);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 0.5px var(--border-faint);
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.5rem;
  border-bottom: 0.5px solid var(--border-faint);
  background: var(--raised);
}

.chat-dots { display: flex; gap: 6px; }
.chat-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.chat-dots span:nth-child(1) { background: #FF5F57; }
.chat-dots span:nth-child(2) { background: #FEBC2E; }
.chat-dots span:nth-child(3) { background: #28C840; }

.chat-label {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--fog);
  font-weight: 500;
}

.chat-body { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }

.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.msg-avatar.user { background: rgba(255,255,255,0.06); color: var(--mist); }
.msg-avatar.ai   { background: var(--grad-brand); color: white; }

.msg-bubble {
  padding: 0.8rem 1rem;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 80%;
}

.msg-bubble.user { background: rgba(255,255,255,0.04); border: 0.5px solid var(--border-faint); color: var(--silver); }
.msg-bubble.ai   { background: rgba(109,40,217,0.18); border: 0.5px solid var(--border-dim); color: var(--violet-pale); }

/* Typing indicator */
.typing { display: flex; gap: 5px; align-items: center; padding: 0.8rem 1rem; }
.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-soft);
  animation: typingBounce 1.2s ease infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(-5px); opacity: 1; }
}

/* ===================== CTA FINAL ===================== */
.cta-final {
  padding: 7rem 0;
}

.cta-card {
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  padding: 5rem 4rem;
  text-align: center;
  background: var(--surface);
  border: 0.5px solid var(--border-dim);
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(109,40,217,0.35) 0%, transparent 65%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.8), transparent);
}

.cta-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-size: 1rem;
  color: var(--mist);
  font-weight: 400;
  max-width: 420px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Glowing orb behind CTA */
.cta-orb {
  position: absolute;
  width: 500px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(109,40,217,0.3) 0%, transparent 70%);
  bottom: -150px; left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 0.5px solid var(--border-faint);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--grad-shine);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--fog);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--violet-soft); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--fog);
  text-align: right;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .features-layout { grid-template-columns: 1fr; }
  .feat-big { grid-column: auto; grid-row: auto; min-height: 280px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .process-steps::before { display: none; }
  .demo-layout { grid-template-columns: 1fr; gap: 3rem; }
  .numbers-inner { grid-template-columns: 1fr; gap: 0; }
  .number-item:not(:last-child)::after { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .container { padding: 0 1.2rem; }
  .hero { padding: 7rem 0 3rem; }
  .section, .features-section, .process-section, .mode-section, .demo-section, .cta-final { padding: 5rem 0; }
  .panel-glass { padding: 2.5rem 1.5rem; }
  .cta-card { padding: 3rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}