/* ═══ Landing page — level 1000 ═══════════════════════════════════════ */

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 80px; text-align: center;
}

/* Animated mesh gradient */
.hero-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(640px 420px at 22% 28%, rgba(124,58,237,.30), transparent 65%),
    radial-gradient(560px 380px at 78% 18%, rgba(99,102,241,.22), transparent 65%),
    radial-gradient(700px 480px at 55% 78%, rgba(147,51,234,.18), transparent 65%),
    radial-gradient(480px 340px at 8% 82%, rgba(76,29,149,.25), transparent 65%);
  animation: meshShift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshShift {
  0% { transform: translate(0, 0) scale(1); opacity: .9; }
  50% { transform: translate(2.5%, -1.5%) scale(1.04); opacity: 1; }
  100% { transform: translate(-2%, 2%) scale(1.02); opacity: .85; }
}

/* Giant blurred orbs */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; will-change: transform; }
.hero-orb.o1 { width: 800px; height: 800px; left: 50%; top: -340px; margin-left: -400px; background: rgba(124,58,237,.34); animation: orbDrift1 22s ease-in-out infinite alternate; }
.hero-orb.o2 { width: 600px; height: 600px; right: -200px; bottom: -240px; background: rgba(139,92,246,.24); animation: orbDrift2 26s ease-in-out infinite alternate; }
@keyframes orbDrift1 { to { transform: translate(70px, 50px) scale(1.08); } }
@keyframes orbDrift2 { to { transform: translate(-60px, 70px) scale(0.94); } }

/* Perspective grid overlay */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1.2px);
  background-size: 40px 40px;
  animation: dotDrift 14s linear infinite;
  -webkit-mask-image: radial-gradient(80% 75% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(80% 75% at 50% 40%, #000 40%, transparent 100%);
}
@keyframes dotDrift { from { background-position: 0 0; } to { background-position: 0 40px; } }
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Particle layer styles live in global.css (shared with auth pages + CTA) */

.hero .container { position: relative; z-index: 2; }

/* Headline */
.hero h1 {
  font-size: clamp(44px, 8.6vw, 96px);
  line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 auto 22px; max-width: 900px; font-weight: 800;
}
.hero h1 .chrome {
  background: linear-gradient(100deg, #9CA3AF 0%, #F8F8FF 28%, #C4C9D4 48%, #FFFFFF 62%, #9CA3AF 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chromeShimmer 4.5s linear infinite;
}
@keyframes chromeShimmer { to { background-position: 220% center; } }
.hero h1 .electric {
  background: linear-gradient(120deg, #A78BFA, #7C3AED, #C084FC, #A78BFA);
  background-size: 260% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: electricPulse 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(124,58,237,.45));
}
@keyframes electricPulse {
  0%, 100% { background-position: 0% center; filter: drop-shadow(0 0 14px rgba(124,58,237,.35)); }
  50% { background-position: 130% center; filter: drop-shadow(0 0 34px rgba(167,139,250,.7)); }
}

/* Terminal window typer */
.hero-terminal {
  width: min(460px, calc(100% - 8px)); margin: 10px auto 28px;
  border-radius: 12px; overflow: hidden; text-align: left;
  background: rgba(10, 10, 18, 0.85); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 40px rgba(124,58,237,.18);
}
.hero-terminal .term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,.02);
}
.hero-terminal .term-bar span:not(.term-title) { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hero-terminal .term-bar span:nth-child(1) { background: #FF5F57; }
.hero-terminal .term-bar span:nth-child(2) { background: #FEBC2E; }
.hero-terminal .term-bar span:nth-child(3) { background: #28C840; }
.hero-terminal .term-bar .term-title { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.hero-terminal .term-body {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 16px; min-height: 46px;
  font-family: var(--font-mono); font-size: 14.5px; color: var(--primary-2);
}
.hero-terminal .prefix { color: var(--text-3); }
.hero-terminal .caret { display: inline-block; width: 8px; height: 17px; background: var(--primary-2); animation: caretBlink 1s steps(1) infinite; border-radius: 1px; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* Feature pills */
.hero-pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.hero-pill .dot-icon { filter: drop-shadow(0 0 8px rgba(167,139,250,.9)); }

/* CTAs */
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-ctas .btn-lg { padding: 18px 40px; font-size: 17px; border-radius: 12px; min-height: 56px; }
.hero-ctas .btn-primary::before { animation: autoShine 3s ease-in-out infinite; transition: none; }
@keyframes autoShine { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }
.btn-glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover:not(:disabled) { border-color: var(--primary-2); box-shadow: 0 0 24px rgba(124,58,237,.25); color: var(--text); }

/* Social proof */
.hero-proof { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.proof-avatars { display: flex; }
.proof-avatars span {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg);
  margin-left: -9px; display: inline-block;
}
.proof-avatars span:first-child { margin-left: 0; }
.proof-avatars span:nth-child(1) { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.proof-avatars span:nth-child(2) { background: linear-gradient(135deg, #DB2777, #F472B6); }
.proof-avatars span:nth-child(3) { background: linear-gradient(135deg, #2563EB, #60A5FA); }
.proof-avatars span:nth-child(4) { background: linear-gradient(135deg, #059669, #34D399); }
.proof-avatars span:nth-child(5) { background: linear-gradient(135deg, #D97706, #FBBF24); }

/* ── Live demo card ── */
.demo-section { position: relative; padding: 0 0 84px; margin-top: -30px; }
.demo-card {
  max-width: 920px; margin: 0 auto; position: relative;
  border-radius: 18px; overflow: hidden;
  background: rgba(19,19,26,.85); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 90px rgba(124,58,237,.22);
  animation: demoFloat 5.5s ease-in-out infinite;
}
@keyframes demoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.demo-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--glass-border);
  background: rgba(10,10,15,.6);
}
.demo-chrome .dots { display: flex; gap: 7px; }
.demo-chrome .dots span { width: 11px; height: 11px; border-radius: 50%; }
.demo-chrome .dots span:nth-child(1) { background: #FF5F57; }
.demo-chrome .dots span:nth-child(2) { background: #FEBC2E; }
.demo-chrome .dots span:nth-child(3) { background: #28C840; }
.demo-chrome .url {
  flex: 1; max-width: 340px; margin: 0 auto;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
  padding: 5px 14px; text-align: center;
}
.demo-chrome .win-btns { display: flex; gap: 10px; color: var(--text-3); font-size: 12px; }

.demo-stage { position: relative; height: 380px; overflow: hidden; user-select: none; }
.demo-before {
  position: absolute; inset: 0;
  background:
    radial-gradient(300px 180px at 26% 32%, rgba(190,195,215,.28), transparent 70%),
    radial-gradient(500px 220px at 60% 72%, rgba(120,126,150,.22), transparent 72%),
    linear-gradient(180deg, #2b2b38 0%, #232330 45%, #191922 78%, #14141c 100%);
}
.demo-before::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.demo-after {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 0 0 50%);
}
.demo-after .fill {
  position: absolute; inset: 0;
  background:
    radial-gradient(460px 300px at 62% 38%, rgba(192,132,252,.45), transparent 70%),
    radial-gradient(380px 260px at 40% 75%, rgba(124,58,237,.5), transparent 70%),
    linear-gradient(150deg, #2c1a5e 0%, #4c1d95 55%, #6d28d9 100%);
  box-shadow: inset 0 0 120px rgba(167,139,250,.35);
}
.demo-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; z-index: 3;
  background: linear-gradient(180deg, transparent, var(--primary-2) 15%, var(--primary-2) 85%, transparent);
  box-shadow: 0 0 18px rgba(167,139,250,.9);
}
.demo-divider .handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 0 26px rgba(124,58,237,.8);
}
.demo-tag {
  position: absolute; top: 16px; z-index: 4;
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: rgba(10,10,15,.75); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px); color: var(--text);
}
.demo-tag.before { left: 16px; }
.demo-tag.after { right: 16px; color: var(--primary-2); border-color: rgba(124,58,237,.5); }
.demo-prompt-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-top: 1px solid var(--glass-border);
  background: rgba(10,10,15,.6);
  font-family: var(--font-mono); font-size: 14px; color: var(--primary-2);
  min-height: 54px;
}
.demo-prompt-bar .prompt-caret { width: 8px; height: 16px; background: var(--primary-2); animation: caretBlink 1s steps(1) infinite; }
.demo-glow-floor {
  position: absolute; left: 15%; right: 15%; bottom: 22px; height: 60px; z-index: -1;
  background: radial-gradient(50% 100% at 50% 100%, rgba(124,58,237,.5), transparent 75%);
  filter: blur(28px);
}

/* ── Stats bar ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; box-shadow: var(--glow-soft);
}
.stats-bar .stat {
  padding: 34px 20px; text-align: center;
  border-left: 1px solid var(--border);
}
.stats-bar .stat:first-child { border-left: none; }
.stats-bar .stat .icon { font-size: 22px; margin-bottom: 8px; }
.stats-bar .stat .num {
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800;
  color: var(--text); line-height: 1.1;
}
.stats-bar .stat .lbl { font-size: 13px; color: var(--text-3); margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 640px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stats-bar .stat { border-left: none; border-top: 1px solid var(--border); }
  .stats-bar .stat:first-child { border-top: none; }
}

/* ── How it works: timeline ── */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; margin-top: 56px; }
.timeline-step { position: relative; text-align: center; padding: 0 22px; }
.timeline-step .t-icon { font-size: 34px; margin-bottom: 18px; filter: drop-shadow(0 0 14px rgba(124,58,237,.5)); }
.timeline-step .t-num {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  box-shadow: 0 0 30px rgba(124,58,237,.55);
  position: relative; z-index: 2;
}
.timeline-step h3 { margin-bottom: 8px; }
.timeline-step p { font-size: 14.5px; }
.timeline-step .t-line {
  position: absolute; top: 81px; left: calc(50% + 40px); width: calc(100% - 80px); height: 2px;
  background-image: linear-gradient(90deg, rgba(124,58,237,.5) 55%, transparent 45%);
  background-size: 14px 2px; z-index: 1;
}
.timeline-step .t-line::after {
  content: ''; position: absolute; top: -2px; left: 0; width: 34px; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary-2), transparent);
  filter: blur(1px);
  animation: lineTravel 2.6s linear infinite;
}
@keyframes lineTravel { from { left: -8%; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } to { left: 100%; opacity: 0; } }
.timeline-step:last-child .t-line { display: none; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 44px; }
  .timeline-step .t-line { top: calc(100% + 4px); left: 50%; width: 2px; height: 36px;
    background-image: linear-gradient(180deg, rgba(124,58,237,.5) 55%, transparent 45%); background-size: 2px 12px; }
  .timeline-step .t-line::after { display: none; }
}

/* ── Feature cards ── */
.feature-card {
  position: relative; overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  transition: all var(--transition);
}
.feature-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 17px; padding: 1px; opacity: 0;
  background: conic-gradient(from var(--fc-angle, 0deg), transparent 0%, rgba(167,139,250,.9) 12%, transparent 28%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .3s ease; pointer-events: none;
}
.feature-card::after {
  content: ''; position: absolute; inset: 0; background: var(--gradient-shine);
  transform: translateX(-130%); transition: transform .8s ease; pointer-events: none;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--glow-strong); border-color: rgba(167,139,250,.3); }
.feature-card:hover::before { opacity: 1; animation: borderSpin 2.4s linear infinite; }
.feature-card:hover::after { transform: translateX(130%); }
@property --fc-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --fc-angle: 360deg; } }

.feature-icon {
  font-size: 26px; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; margin-bottom: 16px;
  background: rgba(124,58,237,.14);
  box-shadow: 0 0 24px rgba(124,58,237,.25);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 14px; }
.fi-purple { background: rgba(124,58,237,.16); box-shadow: 0 0 26px rgba(124,58,237,.35); }
.fi-blue { background: rgba(59,130,246,.16); box-shadow: 0 0 26px rgba(59,130,246,.35); }
.fi-pink { background: rgba(236,72,153,.16); box-shadow: 0 0 26px rgba(236,72,153,.35); }
.fi-green { background: rgba(16,185,129,.16); box-shadow: 0 0 26px rgba(16,185,129,.35); }
.fi-orange { background: rgba(245,158,11,.16); box-shadow: 0 0 26px rgba(245,158,11,.35); }
.fi-indigo { background: rgba(99,102,241,.16); box-shadow: 0 0 26px rgba(99,102,241,.35); }

/* ── Testimonial marquee ── */
.marquee-wrap { overflow: hidden; position: relative; padding: 6px 0; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-row { display: flex; gap: 18px; width: max-content; margin-bottom: 18px; }
.marquee-row.ltr { animation: marqueeL 46s linear infinite; }
.marquee-row.rtl { animation: marqueeR 52s linear infinite; }
.marquee-wrap:hover .marquee-row { animation-play-state: paused; }
@keyframes marqueeL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.t-card {
  width: 340px; flex-shrink: 0;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; padding: 20px;
}
.t-card .stars { color: var(--warning); font-size: 13px; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.t-card blockquote { margin: 0 0 14px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.t-author { display: flex; align-items: center; gap: 10px; }
.t-author .avatar-sm {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.t-author .t-name { font-weight: 700; color: var(--text); font-size: 13.5px; line-height: 1.3; }
.t-author .t-role { color: var(--text-3); font-size: 12.5px; }
.marquee-wrap.static::before, .marquee-wrap.static::after { display: none; }
.marquee-wrap.static .marquee-row {
  animation: none; width: auto; flex-wrap: wrap; justify-content: center;
  max-width: 1120px; margin-left: auto; margin-right: auto; padding: 0 20px;
}

/* Prompt gallery cards */
.g-card { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.g-card .g-prompt { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; color: var(--electric); }
.g-card .g-prefix { color: var(--text-3); }
.g-card .g-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-card .g-op { font-size: 12px; font-weight: 600; color: var(--text-2); }
.g-card .g-cost {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--primary-2);
  padding: 2px 10px; border-radius: var(--radius-pill);
  background: rgba(124,58,237,.14); border: 1px solid rgba(124,58,237,.35);
}

/* ── Final CTA ── */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  padding: 88px 24px; border-radius: 24px;
  background: radial-gradient(600px 380px at 50% 30%, rgba(124,58,237,.4), rgba(10,10,15,.2) 75%), var(--card);
  border: 1px solid rgba(124,58,237,.4);
}
.cta-banner h2 { font-size: clamp(32px, 5vw, 52px); position: relative; z-index: 2; }
.cta-banner p, .cta-banner .btn, .cta-banner .cta-pills { position: relative; z-index: 2; }
.cta-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.cta-pills .pill { background: rgba(10,10,15,.5); backdrop-filter: blur(8px); font-weight: 500; color: var(--text-2); }
#cta-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 76px 0 56px; }
  .demo-stage { height: 260px; }
  .hero-terminal .term-body { font-size: 13px; }
}
