/* ============================================
   MOLTCLONE — Premium Dark UI Landing Page
   By OpenMolt
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg: #08080c;
  --bg-elevated: #0e0e14;
  --bg-card: rgba(14, 14, 22, 0.6);
  --text: #f5f5f5;
  --text-muted: #8a8a9a;
  --text-dim: #5a5a6a;
  --accent: #ff6b5b;
  --accent-hover: #ff8a7a;
  --accent-glow: rgba(255, 107, 91, 0.3);
  --purple: #a78bfa;
  --purple-glow: rgba(167, 139, 250, 0.2);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-heading: 'Satoshi', 'General Sans', system-ui, sans-serif;
  --font-body: 'General Sans', 'Satoshi', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

/* --- Noise Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

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

/* --- Utility --- */
.accent { color: var(--accent); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  letter-spacing: 0.01em;
}

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

.nav-x-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-x-link svg {
  transition: color 0.3s var(--ease);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--bg);
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

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

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 8px;
  background: rgba(8, 8, 12, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 15px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s var(--ease);
}

.nav-mobile a:hover { color: var(--text); }

.nav-cta-mobile {
  display: inline-block;
  text-align: center;
  margin-top: 8px;
  padding: 12px 24px !important;
  border-radius: 100px;
  background: var(--accent);
  color: var(--bg) !important;
  border: none !important;
  font-weight: 600;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 138, 101, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.05); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  gap: 48px;
}

/* Twin visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 160px;
  margin-bottom: 8px;
}

.twin-figure {
  position: relative;
  width: 140px;
  height: 140px;
}

.twin-svg {
  width: 100%;
  height: 100%;
}

.twin-human {
  filter: drop-shadow(0 0 20px rgba(255, 107, 91, 0.35));
}

.twin-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(167, 139, 250, 0.4));
}

.twin-left {
  animation: twinBreathLeft 4s ease-in-out infinite;
}

.twin-right {
  animation: twinBreathRight 4s ease-in-out infinite;
}

@keyframes twinBreathLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

@keyframes twinBreathRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.twin-connector {
  position: relative;
  width: 60px;
  height: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,107,91,0.5), rgba(167,139,250,0.5));
}

.connector-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {
  0% { left: 0; opacity: 1; }
  50% { opacity: 0.5; }
  100% { left: calc(100% - 8px); opacity: 1; }
}

.scan-line {
  animation: scanDrift 3s ease-in-out infinite alternate;
}

.scan-line:nth-child(2) { animation-delay: -1s; }
.scan-line:nth-child(3) { animation-delay: -2s; }

@keyframes scanDrift {
  0% { opacity: 0.1; }
  50% { opacity: 0.4; }
  100% { opacity: 0.1; }
}

.data-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; right: 5%; animation-delay: 0.5s; }
.particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 1s; }
.particle:nth-child(4) { top: 30%; right: 15%; animation-delay: 1.5s; background: var(--purple); }
.particle:nth-child(5) { top: 70%; left: 5%; animation-delay: 2s; background: var(--purple); }
.particle:nth-child(6) { top: 50%; right: 10%; animation-delay: 2.5s; }

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.8; transform: translateY(-5px) scale(1); }
  80% { opacity: 0.4; transform: translateY(-25px) scale(0.5); }
  100% { opacity: 0; transform: translateY(-35px) scale(0); }
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ff9a8b 40%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-primary svg {
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  overflow: hidden;
}

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

@keyframes scrollPulse {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* --- Social Proof --- */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.proof-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.proof-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* --- Section Shared --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* --- Features --- */
.features {
  padding: 120px 0;
}

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

.features-grid .feature-card:last-child {
  grid-column: 2;
}

.feature-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(255,107,91,0.2) 70%, rgba(167,139,250,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

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

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--glass-hover);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 60px var(--accent-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  animation: iconFloat 6s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: -1s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: -2s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: -3s; }
.feature-card:nth-child(5) .feature-icon { animation-delay: -4s; }
.feature-card:nth-child(6) .feature-icon { animation-delay: -5s; }
.feature-card:nth-child(7) .feature-icon { animation-delay: -0.5s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Voice Waveform */
.voice-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 20px;
  height: 24px;
}

.wave {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.5;
  animation: waveAnim 1.2s ease-in-out infinite;
}

.wave:nth-child(1)  { height: 8px;  animation-delay: 0s; }
.wave:nth-child(2)  { height: 14px; animation-delay: 0.05s; }
.wave:nth-child(3)  { height: 20px; animation-delay: 0.1s; }
.wave:nth-child(4)  { height: 12px; animation-delay: 0.15s; }
.wave:nth-child(5)  { height: 18px; animation-delay: 0.2s; }
.wave:nth-child(6)  { height: 8px;  animation-delay: 0.25s; }
.wave:nth-child(7)  { height: 22px; animation-delay: 0.3s; }
.wave:nth-child(8)  { height: 10px; animation-delay: 0.35s; }
.wave:nth-child(9)  { height: 16px; animation-delay: 0.4s; }
.wave:nth-child(10) { height: 24px; animation-delay: 0.45s; }
.wave:nth-child(11) { height: 12px; animation-delay: 0.5s; }
.wave:nth-child(12) { height: 18px; animation-delay: 0.55s; }
.wave:nth-child(13) { height: 8px;  animation-delay: 0.6s; }
.wave:nth-child(14) { height: 20px; animation-delay: 0.65s; }
.wave:nth-child(15) { height: 14px; animation-delay: 0.7s; }
.wave:nth-child(16) { height: 10px; animation-delay: 0.75s; }
.wave:nth-child(17) { height: 22px; animation-delay: 0.8s; }
.wave:nth-child(18) { height: 16px; animation-delay: 0.85s; }
.wave:nth-child(19) { height: 8px;  animation-delay: 0.9s; }
.wave:nth-child(20) { height: 12px; animation-delay: 0.95s; }

@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  margin-top: 20px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.5;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-6px); opacity: 0.8; }
}

/* Blink animation */
.blink {
  animation: blinkAnim 2s ease-in-out infinite;
}

@keyframes blinkAnim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Wave bar animation */
.wave-bar {
  animation: waveBarAnim 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(odd) { animation-delay: -0.5s; }

@keyframes waveBarAnim {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1.3); }
}

/* --- How It Works --- */
.how-it-works {
  padding: 120px 0;
  position: relative;
}

.steps-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent), var(--purple));
  transition: height 1s var(--ease);
  border-radius: 1px;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 0;
  padding-left: 64px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.5s var(--ease);
}

.step:hover .step-number {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-desc code {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--accent);
  background: rgba(255, 107, 91, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 91, 0.15);
}

.step-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}

.step:hover .step-icon {
  opacity: 1;
}

/* --- Demo --- */
.demo {
  padding: 120px 0;
}

.demo-window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 14, 22, 0.8);
}

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

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}

.demo-dots span:first-child { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:last-child { background: #28c840; }

.demo-tab {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--border);
}

.demo-body {
  display: flex;
  min-height: 380px;
}

.demo-sidebar {
  width: 260px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.demo-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.3s var(--ease);
}

.demo-sidebar-item.active {
  background: var(--glass-hover);
}

.demo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,107,91,0.2), rgba(167,139,250,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.demo-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.demo-name {
  font-size: 13px;
  font-weight: 600;
}

.demo-preview {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.demo-email-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.demo-email-from {
  font-weight: 600;
  font-size: 15px;
}

.demo-email-subject {
  font-size: 13px;
  color: var(--text-muted);
}

.demo-email-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.demo-divider {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.demo-clone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,107,91,0.3);
  background: rgba(255,107,91,0.05);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-reply {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  position: relative;
  flex: 1;
}

.demo-typing-text {
  overflow: hidden;
  border-right: 2px solid var(--accent);
  animation: typingCursor 1s step-end infinite;
}

@keyframes typingCursor {
  0%, 50% { border-color: var(--accent); }
  51%, 100% { border-color: transparent; }
}

.demo-cursor { display: none; }

.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.demo-accuracy {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.demo-status {
  font-size: 12px;
  color: var(--text-dim);
}

/* --- Stats --- */
.stats {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.7;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* --- Token --- */
.token {
  padding: 120px 0;
}

.token-card {
  position: relative;
  padding: 56px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  overflow: hidden;
}

.token-card-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: tokenGlow 6s ease-in-out infinite;
}

@keyframes tokenGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.token-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.token-benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.token-benefit-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
}

.token-benefit h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.token-benefit p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.token-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.contract-address {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contract-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.contract-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contract-value code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- Comparison --- */
.comparison {
  padding: 120px 0;
}

.comparison-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}

.comparison-row:hover {
  border-color: var(--border-hover);
  background: var(--glass-hover);
}

.comparison-you,
.comparison-clone {
  flex: 1;
}

.comparison-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.comparison-you .comparison-label {
  color: var(--text-dim);
}

.comparison-clone .comparison-label {
  color: var(--accent);
}

.comparison-you p {
  font-size: 14px;
  color: var(--text-muted);
}

.comparison-clone p {
  font-size: 14px;
  color: var(--text);
}

.comparison-arrow {
  flex-shrink: 0;
  opacity: 0.5;
}

/* --- Manifesto --- */
.manifesto {
  padding: 160px 0;
}

.manifesto-inner {
  position: relative;
  text-align: center;
}

.manifesto-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: manifestoGlow 4s ease-in-out infinite;
}

@keyframes manifestoGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.manifesto-quote {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quote-line {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.quote-line.accent {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- FAQ --- */
.faq {
  padding: 120px 0;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.faq-item.active {
  border-color: var(--border-hover);
  background: var(--glass);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s var(--ease);
  letter-spacing: -0.01em;
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.4s var(--ease);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}

.faq-item.active .faq-content {
  max-height: 200px;
}

.faq-content p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: contain;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
}

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

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

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-contract {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contract code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

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

/* --- Animations --- */

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Stagger delays */
.fade-in[data-delay="1"] { transition-delay: 0.1s; }
.fade-in[data-delay="2"] { transition-delay: 0.2s; }
.fade-in[data-delay="3"] { transition-delay: 0.3s; }
.fade-in[data-delay="4"] { transition-delay: 0.4s; }
.fade-in[data-delay="5"] { transition-delay: 0.5s; }
.fade-in[data-delay="6"] { transition-delay: 0.6s; }

/* Hero text reveal */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s var(--ease) forwards;
}

.reveal-text:nth-child(1) { animation-delay: 0.2s; }
.reveal-text:nth-child(2) { animation-delay: 0.35s; }
.reveal-text:nth-child(3) { animation-delay: 0.5s; }
.reveal-text:nth-child(4) { animation-delay: 0.65s; }
.reveal-text:nth-child(5) { animation-delay: 0.8s; }
.reveal-text:nth-child(6) { animation-delay: 0.95s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid .feature-card:last-child {
    grid-column: auto;
  }

  .token-benefits {
    grid-template-columns: 1fr;
  }

  .token-card {
    padding: 40px;
  }

  .demo-sidebar {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-visual {
    height: 120px;
  }

  .twin-figure {
    width: 100px;
    height: 100px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }

  .demo-body {
    flex-direction: column;
  }

  .demo-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
  }

  .demo-sidebar-item {
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--border);
    min-width: 180px;
  }

  .comparison-row {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }

  .token-action {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .proof-inner {
    gap: 32px;
  }

  .proof-divider {
    display: none;
  }

  .manifesto {
    padding: 100px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: 42px;
  }

  .section-title {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .token-card {
    padding: 28px;
  }

  .step {
    padding-left: 56px;
  }

  .clone-modal-content {
    padding: 32px 20px;
  }

  .clone-modal-code-body {
    padding: 16px;
    font-size: 11px;
  }
}

/* --- Demo badge icon --- */
.demo-badge-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
}

/* --- Clone Modal --- */
.clone-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.clone-modal.open {
  opacity: 1;
  visibility: visible;
}

.clone-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.clone-modal-content {
  position: relative;
  max-width: 560px;
  width: calc(100% - 48px);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px var(--accent-glow);
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s var(--ease);
}

.clone-modal.open .clone-modal-content {
  transform: translateY(0) scale(1);
}

.clone-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.clone-modal-close:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.clone-modal-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.clone-modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.clone-modal-code {
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}

.clone-modal-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.clone-modal-code-lang {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.clone-modal-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.clone-modal-code-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.clone-modal-code-copy.copied {
  color: #28c840;
  border-color: rgba(40, 200, 64, 0.3);
}

.clone-modal-code-body {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  -webkit-overflow-scrolling: touch;
}

.clone-modal-code-body code {
  font-family: inherit;
  font-size: inherit;
}

/* Syntax highlight classes */
.code-keyword {
  color: #c792ea;
}

.code-string {
  color: #c3e88d;
}

.code-comment {
  color: #546e7a;
  font-style: italic;
}

.code-method {
  color: #82aaff;
}

.code-prop {
  color: #f78c6c;
}

.code-number {
  color: #f78c6c;
}

.code-template {
  color: #89ddff;
}
