/* style.css — SiuClaw Landing Page */

/* ============================================
   COLOR SYSTEM — Dark-first AI product
   ============================================ */

/* Dark mode (primary) */
:root, [data-theme="dark"] {
  --color-bg:              #0a0a0f;
  --color-surface:         #111118;
  --color-surface-2:       #18181f;
  --color-surface-offset:  #1e1e28;
  --color-surface-dynamic: #252530;
  --color-divider:         #2a2a38;
  --color-border:          #333345;

  --color-text:            #e8e8f0;
  --color-text-muted:      #8888a0;
  --color-text-faint:      #555568;
  --color-text-inverse:    #0a0a0f;

  /* Primary — Red */
  --color-primary:         #E63946;
  --color-primary-hover:   #FF4D5A;
  --color-primary-active:  #C52F3B;
  --color-primary-highlight: rgba(230, 57, 70, 0.1);
  --color-primary-glow:    rgba(230, 57, 70, 0.15);

  /* Accent — Coral */
  --color-accent:          #FF6B6B;
  --color-accent-hover:    #FF8585;
  --color-accent-glow:     rgba(255, 107, 107, 0.15);

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(255, 107, 107, 0.08) 100%);
  --gradient-border: linear-gradient(135deg, rgba(230, 57, 70, 0.3) 0%, rgba(255, 107, 107, 0.3) 100%);

  /* Success / Warning / Error */
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-error:   #f87171;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(230, 57, 70, 0.12);
  --shadow-glow-lg: 0 0 80px rgba(230, 57, 70, 0.15), 0 0 160px rgba(255, 107, 107, 0.08);
}

/* Light mode */
[data-theme="light"] {
  --color-bg:              #f8f9fc;
  --color-surface:         #ffffff;
  --color-surface-2:       #f1f3f8;
  --color-surface-offset:  #ebedf5;
  --color-surface-dynamic: #e2e5ee;
  --color-divider:         #d5d8e3;
  --color-border:          #c0c4d4;

  --color-text:            #111827;
  --color-text-muted:      #6b7280;
  --color-text-faint:      #9ca3af;
  --color-text-inverse:    #f8f9fc;

  --color-primary:         #C52F3B;
  --color-primary-hover:   #A82533;
  --color-primary-active:  #8B1D28;
  --color-primary-highlight: rgba(197, 47, 59, 0.08);
  --color-primary-glow:    rgba(197, 47, 59, 0.06);

  --color-accent:          #E63946;
  --color-accent-hover:    #C52F3B;
  --color-accent-glow:     rgba(230, 57, 70, 0.06);

  --gradient-primary: linear-gradient(135deg, #C52F3B 0%, #E63946 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(197, 47, 59, 0.06) 0%, rgba(230, 57, 70, 0.06) 100%);
  --gradient-border: linear-gradient(135deg, rgba(197, 47, 59, 0.2) 0%, rgba(230, 57, 70, 0.2) 100%);

  --color-success: #059669;
  --color-warning: #d97706;
  --color-error:   #dc2626;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(197, 47, 59, 0.06);
  --shadow-glow-lg: 0 0 80px rgba(197, 47, 59, 0.08), 0 0 160px rgba(230, 57, 70, 0.04);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:              #f8f9fc;
    --color-surface:         #ffffff;
    --color-surface-2:       #f1f3f8;
    --color-surface-offset:  #ebedf5;
    --color-surface-dynamic: #e2e5ee;
    --color-divider:         #d5d8e3;
    --color-border:          #c0c4d4;
    --color-text:            #111827;
    --color-text-muted:      #6b7280;
    --color-text-faint:      #9ca3af;
    --color-text-inverse:    #f8f9fc;
    --color-primary:         #C52F3B;
    --color-primary-hover:   #A82533;
    --color-primary-active:  #8B1D28;
    --color-primary-highlight: rgba(197, 47, 59, 0.08);
    --color-primary-glow:    rgba(197, 47, 59, 0.06);
    --color-accent:          #E63946;
    --color-accent-hover:    #C52F3B;
    --color-accent-glow:     rgba(230, 57, 70, 0.06);
    --gradient-primary: linear-gradient(135deg, #C52F3B 0%, #E63946 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(197, 47, 59, 0.06) 0%, rgba(230, 57, 70, 0.06) 100%);
    --gradient-border: linear-gradient(135deg, rgba(197, 47, 59, 0.2) 0%, rgba(230, 57, 70, 0.2) 100%);
    --color-success: #059669;
    --color-warning: #d97706;
    --color-error:   #dc2626;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(197, 47, 59, 0.06);
    --shadow-glow-lg: 0 0 80px rgba(197, 47, 59, 0.08), 0 0 160px rgba(230, 57, 70, 0.04);
  }
}


/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section-padding {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ============================================
   HEADER / NAV
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  background: transparent;
  transition: background 0.3s var(--ease-out),
              backdrop-filter 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.header--scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--color-divider);
}

[data-theme="light"] .header--scrolled {
  background: rgba(248, 249, 252, 0.85);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-interactive);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 2px 0;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--color-bg);
  padding: calc(var(--space-16) + var(--space-8)) var(--space-6) var(--space-8);
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-xl);
  font-weight: 600;
  font-family: var(--font-display);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  transition: all var(--transition-interactive);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md), 0 0 20px rgba(230, 57, 70, 0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(230, 57, 70, 0.25);
}

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

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

.btn-secondary:hover {
  background: var(--color-surface-dynamic);
  border-color: var(--color-text-faint);
  transform: translateY(-1px);
}

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

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

.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
  background: var(--color-surface-2);
  transform: translateY(-1px);
}

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

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-16) + var(--space-8));
  overflow: hidden;
}

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

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.12) 0%, rgba(255, 107, 107, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 60%);
  filter: blur(80px);
  animation: heroGlow 10s ease-in-out 2s infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

[data-theme="light"] .hero-bg::before {
  background: radial-gradient(circle, rgba(197, 47, 59, 0.08) 0%, rgba(230, 57, 70, 0.05) 40%, transparent 70%);
}

[data-theme="light"] .hero-bg::after {
  background: radial-gradient(circle, rgba(230, 57, 70, 0.06) 0%, transparent 60%);
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--color-divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-divider) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  line-height: 1.05;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.6;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Chat mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.chat-mockup {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.chat-header-status {
  font-size: var(--text-xs);
  color: var(--color-success);
}

.chat-messages {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
  min-height: 400px;
}

.chat-msg {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: var(--space-1);
}

[data-theme="light"] .chat-msg.user {
  background: var(--color-primary);
  color: #fff;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--color-surface-offset);
  color: var(--color-text);
  border-bottom-left-radius: var(--space-1);
}

.chat-msg.bot .msg-pre {
  white-space: pre-line;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.chat-input-field {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.chat-input-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-input-send svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  align-self: flex-start;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-faint);
  animation: typing 1.4s ease-in-out infinite;
}

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

@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ============================================
   FEATURES
   ============================================ */

.features {
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-interactive);
}

.feature-card:hover {
  border-color: rgba(230, 57, 70, 0.2);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-2px);
}

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

[data-theme="light"] .feature-card:hover {
  border-color: rgba(197, 47, 59, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  margin: 0 auto var(--space-6);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.2);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 280px;
  margin-inline: auto;
}

/* ============================================
   PRICING
   ============================================ */

.pricing {
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: var(--shadow-glow-lg);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: var(--gradient-primary);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.pricing-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.pricing-currency {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-muted);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================
   PAIN POINTS
   ============================================ */

.pain {
  position: relative;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}

.pain-card {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(248, 113, 113, 0.15);
  background: var(--color-surface);
  position: relative;
  transition: border-color var(--transition-interactive),
              transform var(--transition-interactive);
}

.pain-card:hover {
  border-color: rgba(248, 113, 113, 0.3);
  transform: translateY(-2px);
}

[data-theme="light"] .pain-card {
  border-color: rgba(220, 38, 38, 0.1);
}

[data-theme="light"] .pain-card:hover {
  border-color: rgba(220, 38, 38, 0.2);
}

.pain-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(248, 113, 113, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-error);
}

[data-theme="light"] .pain-icon {
  background: rgba(220, 38, 38, 0.06);
  color: var(--color-error);
}

.pain-icon svg {
  width: 22px;
  height: 22px;
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pain-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.pain-solution {
  max-width: 640px;
  margin-inline: auto;
}

.pain-solution-inner {
  text-align: center;
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-primary);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.pain-solution-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  pointer-events: none;
}

.pain-solution-inner h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  position: relative;
}

.pain-solution-inner p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  position: relative;
}

.pain-solution-inner .btn {
  position: relative;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison {
  position: relative;
}

.comparison-table {
  max-width: 800px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-surface);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background: var(--color-surface-2);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
}

.comparison-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th.highlight {
  color: var(--color-primary);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.comparison-table td {
  color: var(--color-text-muted);
}

.comparison-table td.highlight {
  color: var(--color-primary);
  font-weight: 600;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--color-surface-offset);
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  position: relative;
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color var(--transition-interactive);
}

.faq-item.active {
  border-color: rgba(230, 57, 70, 0.2);
}

[data-theme="light"] .faq-item.active {
  border-color: rgba(197, 47, 59, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-text-faint);
  transition: transform 0.3s var(--ease-out), color var(--transition-interactive);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  text-align: center;
  padding: clamp(var(--space-12), 6vw, var(--space-20));
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(230, 57, 70, 0.3);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.06) 0%, var(--color-surface) 50%, rgba(230, 57, 70, 0.04) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(230, 57, 70, 0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(230, 57, 70, 0.15) 0%, rgba(230, 57, 70, 0.05) 40%, transparent 70%);
  pointer-events: none;
  animation: cta-pulse 4s ease-in-out infinite alternate;
}
@keyframes cta-pulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

[data-theme="light"] .cta-glow {
  background: radial-gradient(ellipse, rgba(197, 47, 59, 0.05) 0%, transparent 60%);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  position: relative;
}

.cta p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 480px;
  margin-inline: auto;
  position: relative;
}

.cta .btn {
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-interactive);
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-bottom a:hover {
  color: var(--color-text-muted);
}

.footer-operator {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-operator a {
  color: var(--color-text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-operator a:hover {
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-4);
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-faint);
  transition: background 0.2s, color 0.2s;
}
.footer-social-link:hover {
  background: #25D366;
  color: #fff;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes revealFade {
  to { opacity: 1; }
}

/* JS fallback for scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .chat-mockup {
    max-width: 380px;
    margin-inline: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin-inline: auto;
    width: 100%;
  }

  .comparison-table {
    overflow-x: auto;
  }
}

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

  .mobile-menu-btn {
    display: flex;
  }

  .hero h1 {
    font-size: var(--text-2xl);
  }

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

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .steps-grid::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .pricing-card:last-child {
    max-width: 100%;
  }

  .chat-mockup {
    max-width: 340px;
  }

  .chat-messages {
    min-height: 260px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }

  .comparison-table td:first-child {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }

  .hero-stats {
    gap: var(--space-6);
  }
}

/* ========== INVITE CODE ========== */
.invite-hint {
  margin-top: var(--space-4);
}

.invite-link {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.2s;
}

.invite-link:hover {
  color: var(--color-primary);
}

.invite-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.invite-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.invite-content p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  max-width: 100%;
}

.invite-form {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.invite-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-base);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  width: 240px;
  text-align: center;
  transition: border-color 0.2s;
}

.invite-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

.invite-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.invite-result {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  min-height: 1.5em;
}

.invite-result.success {
  color: #22c55e;
}

.invite-result.error {
  color: #ef4444;
}

.invite-result a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.invite-result a:hover {
  text-decoration: underline;
}

/* ============================================
   REGISTRATION FORM (inline after invite code)
   ============================================ */

.register-form {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  animation: fadeSlideIn 0.3s var(--ease-out);
}

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

.register-form h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.reg-field {
  margin-bottom: var(--space-4);
  text-align: left;
}

.reg-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  padding-left: var(--space-1);
}

.reg-field .invite-input {
  width: 100%;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
}

.register-form .btn {
  width: 100%;
  margin-top: var(--space-4);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-6);
}

.reg-hint {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================
   TELEGRAM GUIDE & REGISTRATION DIVIDER
   ============================================ */

.reg-divider {
  margin: var(--space-5) 0 var(--space-4);
  text-align: center;
  position: relative;
}

.reg-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.reg-divider span {
  position: relative;
  background: var(--color-surface);
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tg-guide {
  margin-top: var(--space-2);
  text-align: left;
}

.tg-guide summary {
  font-size: var(--text-xs);
  color: var(--color-primary);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.tg-guide summary:hover {
  text-decoration: underline;
}

.tg-guide ol {
  margin: var(--space-2) 0 0 var(--space-4);
  padding: 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.tg-guide a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.tg-guide a:hover {
  text-decoration: underline;
}

.tg-guide code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--color-bg);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.reg-field .invite-input[id="regTelegramToken"] {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
}

/* ============================================
   CHANNEL SELECTOR
   ============================================ */
.channel-selector {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.channel-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
}

.channel-option:hover {
  border-color: var(--text-secondary);
}

.channel-option.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(230, 57, 70, 0.06);
}

.channel-option svg {
  flex-shrink: 0;
}

.channel-fields {
  animation: fadeIn 0.25s ease;
}

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

/* WhatsApp info box */
.wa-info {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.wa-info p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.wa-info .wa-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* WhatsApp QR Section */
.wa-qr-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.wa-qr-section h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.wa-qr-status {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.wa-qr-image {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.wa-qr-image img {
  max-width: 280px;
  width: 100%;
  border-radius: 8px;
  border: 2px solid var(--border);
}

.wa-qr-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 0.75rem;
}

/* ========== SOCIAL PROOF ========== */
.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.proof-card {
  background: var(--card-bg, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.proof-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.proof-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary, #b0b0b0);
  margin-bottom: 20px;
  font-style: italic;
}

.proof-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E63946;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.proof-name {
  font-weight: 600;
  color: var(--text-primary, #fff);
  font-size: 0.95rem;
}

.proof-role {
  font-size: 0.8rem;
  color: var(--text-tertiary, #888);
}

.proof-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.proof-stat-item {
  text-align: center;
}

.proof-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #E63946, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary, #888);
  margin-top: 4px;
}

/* ========== WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
