/* ===== TFBACK.AI — Apple Liquid Glass Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Deep background */
  --bg-deep: #050508;
  --bg-card: rgba(22, 22, 30, 0.55);
  --bg-card-solid: #16161E;
  --bg-elevated: rgba(32, 32, 42, 0.6);
  /* Glass */
  --glass-bg: rgba(18, 18, 28, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --glass-shine: rgba(255, 255, 255, 0.12);
  --glass-blur: 40px;
  /* Accents */
  --accent: #CEFF00;
  --accent-rgb: 206, 255, 0;
  --accent-glow: rgba(206, 255, 0, 0.15);
  --accent-glow-soft: rgba(206, 255, 0, 0.06);
  --accent-border: rgba(206, 255, 0, 0.2);
  --cyan: #CEFF00;
  --gradient: linear-gradient(135deg, #CEFF00 0%, #B8E600 50%, #A0CC00 100%);
  /* Text */
  --text-primary: #F5F5FA;
  --text-body: #B8B8C8;
  --text-muted: #7A7A8E;
  --text-dim: #4A4A5A;
  /* Semantic */
  --success: #34D399;
  --warning: #FBBF24;
  --error: #F87171;
  /* Borders */
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(206, 255, 0, 0.25);
  /* Spacing */
  --section-pad: clamp(72px, 10vw, 140px);
  --container: 1200px;
  /* Radius — pill-like, Apple style */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg-deep);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
}

/* ===== AMBIENT GLOW MESH ===== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(150px);
  opacity: 0.5;
  animation: ambientFloat 25s ease-in-out infinite alternate;
  will-change: transform;
}
.glow-1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(206, 255, 0, 0.07) 0%, transparent 65%);
  top: -15%; left: -10%;
  animation-delay: 0s;
}
.glow-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(80, 100, 255, 0.06) 0%, transparent 65%);
  top: 25%; right: -15%;
  animation-delay: -7s;
}
.glow-3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(206, 255, 0, 0.04) 0%, transparent 65%);
  bottom: 5%; left: 15%;
  animation-delay: -12s;
}
.glow-4 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(120, 80, 255, 0.04) 0%, transparent 65%);
  top: 55%; right: 10%;
  animation-delay: -18s;
}
@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(30px, -40px) scale(1.06); }
  40% { transform: translate(-15px, 25px) scale(0.94); }
  60% { transform: translate(40px, 15px) scale(1.03); }
  80% { transform: translate(-25px, -15px) scale(0.97); }
  100% { transform: translate(10px, -25px) scale(1); }
}

/* ===== LIQUID GLASS MIXIN ===== */
.liquid-glass,
.terminal-window {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Top specular highlight — the "glass shine" */
.liquid-glass::before,
.terminal-window::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--glass-shine) 30%, var(--glass-highlight) 50%, var(--glass-shine) 70%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.liquid-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}
.terminal-window::after {
  top: auto;
  top: 0;
}

/* Hover glow for glass cards */
.liquid-glass:hover,
.terminal-window:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    0 0 1px rgba(255,255,255,0.1),
    0 0 40px rgba(var(--accent-rgb), 0.04);
  transform: translateY(-4px);
}

/* Terminal header bar */
.terminal-header-bar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}
.terminal-dots {
  display: flex;
  gap: 7px;
}
.terminal-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  position: relative;
}
.terminal-dots span:nth-child(1) { background: #FF5F57; box-shadow: 0 0 6px rgba(255,95,87,0.4); }
.terminal-dots span:nth-child(2) { background: #FEBC2E; box-shadow: 0 0 6px rgba(254,188,46,0.4); }
.terminal-dots span:nth-child(3) { background: #28C840; box-shadow: 0 0 6px rgba(40,200,64,0.4); }
.terminal-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVIGATION — Floating Glass Bar ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 16px 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.5rem;
  color: var(--text-primary); text-decoration: none;
}
.nav-logo .dot-ai { color: var(--accent); }
.nav-logo svg { width: 32px; height: 32px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links li { position: relative; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9375rem; font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a:focus { color: var(--text-primary); }

/* Dropdown — glass */
.dropdown-menu {
  position: absolute; top: 100%; left: -8px;
  background: rgba(22, 22, 30, 0.8);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  min-width: 170px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  list-style: none; z-index: 100;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(4px) scale(1);
}
.dropdown-menu li { padding: 0; }
.dropdown-menu a {
  display: block; width: 100%; padding: 8px 14px;
  border-radius: var(--r-xs);
  transition: background 0.2s;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px; border-radius: var(--r-pill);
  background: var(--accent); color: #000;
  font-weight: 700; font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.3);
}

.nav-mobile-toggle {
  display: none; background: none; border: none;
  color: var(--text-primary); cursor: pointer; padding: 8px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: var(--r-pill);
  background: rgba(206, 255, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(206, 255, 0, 0.12);
  font-size: 0.75rem; color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-weight: 700; margin-bottom: 24px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.6); }
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700; line-height: 1.08;
  color: var(--text-primary); margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 460px; margin-bottom: 36px; line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}

/* ===== BUTTONS — Pill Glass ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px; border-radius: var(--r-pill);
  background: var(--accent); color: #000;
  font-weight: 700; font-size: 0.9375rem; font-family: 'Inter', sans-serif;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Inner shine on primary button */
.btn-primary::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.35), 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-weight: 600; font-size: 0.9375rem; font-family: 'Inter', sans-serif;
  text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ===== Hero Calculator — Glass Panel ===== */
.hero-widget {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 var(--glass-highlight);
}
/* Top shine */
.hero-widget::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine) 40%, var(--glass-highlight) 50%, var(--glass-shine) 60%, transparent);
  z-index: 2;
}
.widget-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.widget-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-primary);
}
.widget-live {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--success); font-weight: 600;
}
.widget-live::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--success);
  box-shadow: 0 0 8px rgba(52,211,153,0.5);
  animation: pulse 1.5s infinite;
}
.calc-group { margin-bottom: 20px; }
.calc-label {
  display: block; font-size: 0.8125rem;
  color: var(--text-muted); margin-bottom: 8px; font-weight: 500;
}
.calc-input {
  width: 100%; padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm); color: var(--text-primary);
  font-size: 1rem; font-family: 'Space Mono', monospace;
  transition: all 0.3s ease; outline: none;
}
.calc-input:focus {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.06), 0 0 20px rgba(var(--accent-rgb), 0.05);
}
.calc-select {
  width: 100%; padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm); color: var(--text-primary);
  font-size: 1rem; font-family: 'Space Mono', monospace;
  appearance: none; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23CEFF00' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  transition: border-color 0.3s;
}
.calc-select:focus { border-color: rgba(var(--accent-rgb), 0.3); }
.calc-result {
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--r-md); padding: 24px; text-align: center;
  position: relative; overflow: hidden;
}
.calc-result::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
}
.calc-result-label {
  font-size: 0.8125rem; color: var(--text-muted);
  margin-bottom: 6px; font-weight: 500;
}
.calc-result-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem; font-weight: 700; color: var(--accent);
  text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.3);
}
.calc-result-sub {
  font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px;
}

/* ===== SECTION COMMON ===== */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--accent);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 16px;
  font-family: 'Space Mono', monospace;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; color: var(--text-primary);
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.section-desc {
  font-size: 1rem; color: var(--text-muted);
  max-width: 540px; margin-bottom: 56px;
  line-height: 1.7;
}
.section-desc.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.centered { text-align: center; }
.section-label.centered { justify-content: center; }

/* ===== EXCHANGES — Glass Cards ===== */
.exchanges { padding: var(--section-pad) 0; }
.exchanges-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.exchanges-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.exchange-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.exchange-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}
.exchange-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}
.exchange-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 16px 64px rgba(0,0,0,0.5),
    0 0 1px rgba(255,255,255,0.15),
    0 0 40px rgba(var(--accent-rgb), 0.04);
}
.exchange-logo {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  overflow: hidden; position: relative; z-index: 1;
}
.exchange-logo svg { width: 100%; height: 100%; }
.exchange-logo img { width: 100%; height: 100%; object-fit: cover; }
.exchange-card h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--text-primary);
  position: relative; z-index: 1;
}
.exchange-rate {
  font-size: 0.875rem; color: var(--success); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  position: relative; z-index: 1;
}
.exchange-desc {
  font-size: 0.8125rem; color: var(--text-muted);
  position: relative; z-index: 1;
}
.exchange-badge {
  background: rgba(var(--accent-rgb), 0.08); color: var(--accent);
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  position: relative; z-index: 1;
}
.exchange-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 24px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04); color: var(--accent);
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.8125rem;
  text-decoration: none; cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%; margin-top: auto;
  position: relative; z-index: 1;
}
.exchange-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.3);
  transform: scale(1.02);
}

/* ===== SERVICES HUB ===== */
.services-hub { padding: var(--section-pad) 0; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: var(--container); margin: 0 auto;
}
.service-card {
  display: flex; flex-direction: column;
}
.service-card-body {
  padding: 32px;
  display: flex; flex-direction: column; align-items: flex-start;
  flex: 1; gap: 12px;
  position: relative; z-index: 1;
}
.service-icon {
  font-size: 2rem; margin-bottom: 8px;
  background: rgba(255,255,255,0.04); width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.06);
}
.service-card h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--text-primary);
}
.service-card p {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.65;
  margin-bottom: 16px; flex: 1;
}
.service-link {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.875rem;
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.25s;
}
.service-link:hover {
  color: #fff;
  transform: translateX(4px);
}
.service-link.disabled {
  color: var(--text-dim);
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== COMING SOON BADGE ===== */
.coming-soon-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warning);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.18);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  vertical-align: middle;
  margin-left: 8px;
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ===== MODAL — Glass Overlay ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active {
  opacity: 1; visibility: visible;
}
.modal-container {
  max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}
.modal-close {
  background: none; border: none;
  color: var(--text-muted); font-size: 1.5rem;
  cursor: pointer; padding: 0 4px; line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--accent); }
.modal-body { padding: 40px 36px; position: relative; z-index: 1; }
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.modal-desc {
  font-size: 0.9375rem; color: var(--text-muted);
  margin-bottom: 32px; line-height: 1.65;
}
.modal-steps {
  display: flex; flex-direction: column;
  gap: 0; margin-bottom: 32px;
}
.modal-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-sm);
}
.modal-step-number {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent);
  min-width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--r-xs);
  flex-shrink: 0;
}
.modal-step-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 4px;
}
.modal-step-content p {
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65;
}
.modal-step-arrow {
  display: flex; justify-content: center;
  padding: 6px 0;
  color: var(--accent); opacity: 0.4;
}
.modal-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-md);
  margin-bottom: 28px;
}
.modal-flow-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; font-size: 0.75rem; color: var(--text-muted);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-flow-icon { font-size: 1.5rem; }
.modal-flow-arrow {
  color: var(--accent); font-size: 1.25rem;
  font-weight: 700; margin: 0 4px; opacity: 0.6;
}
.modal-flow-highlight { color: var(--accent); }
.modal-flow-you { color: var(--accent); font-weight: 700; }
.modal-cta { width: 100%; justify-content: center; text-align: center; }
@media (max-width: 600px) {
  .modal-body { padding: 24px 20px; }
  .modal-step { flex-direction: column; gap: 12px; }
  .modal-flow { gap: 6px; }
  .modal-flow-item { font-size: 0.65rem; }
}

/* ===== COMMUNITY WINS ===== */
.community-wins { padding: var(--section-pad) 0; }
.wins-wrapper { position: relative; max-width: 1200px; margin: 0 auto; }
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(17, 17, 17, 0.8); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s ease;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav-arrow:hover { background: #CEFF00; color: #000; border-color: #CEFF00; }
.left-arrow { left: -24px; }
.right-arrow { right: 0; }
@media (max-width: 1248px) {
  .left-arrow { left: 10px; }
  .right-arrow { right: 10px; }
}
@media (max-width: 768px) {

  .nav-arrow { display: none; /* Hide on mobile since they can swipe easily */ }
}

.wins-grid {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 20px; padding: 10px 0 24px 0; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wins-grid::-webkit-scrollbar { display: none; }
.win-card { display: flex; flex-direction: column; flex: 0 0 360px; scroll-snap-align: center; }
.win-card-body {
  padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1;
  position: relative; z-index: 1;
}
.win-header {
  display: flex; align-items: center; justify-content: space-between;
}
.win-user { display: flex; align-items: center; gap: 12px; }
.win-avatar {
  width: 40px; height: 40px; border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
  font-family: 'Space Grotesk', sans-serif; flex-shrink: 0;
  object-fit: cover; border: 1px solid rgba(255,255,255,0.08);
}
.win-name {
  display: block; font-weight: 600; font-size: 0.875rem;
  color: var(--text-primary); font-family: 'Space Grotesk', sans-serif;
}
.win-time {
  display: block; font-size: 0.6875rem; color: var(--text-dim);
  font-family: 'Space Mono', monospace;
}
.win-badge {
  font-size: 0.65rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(var(--accent-rgb), 0.08); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  font-family: 'Space Mono', monospace;
}
.win-trade {
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-sm); padding: 16px;
}
.win-trade-pair {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.win-pair-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 0.9375rem; color: var(--text-primary);
}
.win-trade-type {
  font-size: 0.65rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--r-pill); text-transform: uppercase;
  letter-spacing: 0.05em; font-family: 'Space Mono', monospace;
}
.win-trade-type.long {
  background: rgba(52,211,153,0.1); color: var(--success);
  border: 1px solid rgba(52,211,153,0.2);
}
.win-trade-type.short {
  background: rgba(248,113,113,0.1); color: var(--error);
  border: 1px solid rgba(248,113,113,0.2);
}
.win-pnl-display { text-align: center; padding: 12px 0; }
.win-pnl-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem; font-weight: 700; color: var(--accent);
  display: block;
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.25);
}
.win-pnl-percent {
  font-size: 0.8125rem; color: var(--success); font-weight: 600;
  font-family: 'Space Mono', monospace;
}
.win-trade-details {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05);
}
.win-detail { text-align: center; }
.win-detail .label {
  display: block; font-size: 0.625rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px;
}
.win-detail .value {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 0.8125rem; color: var(--text-body);
}
.win-detail .win-tp { color: var(--accent); }
.win-text {
  font-size: 0.8125rem; color: var(--text-muted);
  line-height: 1.65; margin: 0;
}

/* ===== BOT PERFORMANCE ===== */
.bot-performance { padding: var(--section-pad) 0; }
.bot-stats-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 32px 16px;
  margin-bottom: 40px;
  position: relative; overflow: hidden;
}
.bot-stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}
.bot-stat { text-align: center; padding: 0 36px; }
.bot-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--accent);
  display: block;
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.2);
}
.bot-stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 500;
}
.bot-stat-divider {
  width: 1px; height: 48px; background: rgba(255,255,255,0.06);
}
.bot-pairs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 32px;
}
.bot-pair-card { display: flex; flex-direction: column; }
.bot-pair-body {
  padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 16px;
  position: relative; z-index: 1;
}
.bot-pair-header {
  display: flex; align-items: center; gap: 12px;
}
.bot-pair-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xs); color: var(--accent);
  font-family: 'Space Grotesk', sans-serif; flex-shrink: 0;
}
.bot-pair-header h3 {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 0;
}
.bot-pair-sub {
  font-size: 0.6875rem; color: var(--text-dim);
  font-family: 'Space Mono', monospace;
}
.bot-pair-stats {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.bot-pair-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem;
}
.bot-pair-row .label { color: var(--text-dim); font-weight: 500; }
.bot-pair-row .value {
  color: var(--text-body); font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}
.bot-pair-row .value.accent { color: var(--accent); }
.bot-pair-bar {
  height: 4px; background: rgba(255,255,255,0.04); border-radius: 2px;
  overflow: hidden;
}
.bot-pair-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.6));
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.3);
}
.bot-cta-row { text-align: center; margin-top: 8px; }

@media (max-width: 900px) {
  .win-card { flex: 0 0 85vw; scroll-snap-align: center; }
  .bot-pairs-grid { grid-template-columns: repeat(2, 1fr); }
  .bot-stats-bar { flex-direction: column; gap: 16px; }
  .bot-stat-divider { width: 80%; height: 1px; }
}
@media (max-width: 600px) {
  .bot-pairs-grid { grid-template-columns: 1fr; }
}

/* ===== FEEDBACK WIDGET — Floating Glass ===== */
.feedback-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(18, 18, 28, 0.7);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  color: var(--accent);
  border-radius: var(--r-pill); cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 0.8125rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 20px rgba(var(--accent-rgb), 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.feedback-fab:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--accent); color: #000;
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(var(--accent-rgb), 0.25);
}
.feedback-fab svg { flex-shrink: 0; }
.feedback-panel {
  position: fixed; bottom: 80px; right: 24px; z-index: 950;
  width: 380px; max-width: calc(100vw - 48px);
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.feedback-panel.active {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.feedback-panel-inner { overflow: hidden; }
.feedback-body { padding: 24px; position: relative; z-index: 1; }
.feedback-question {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 16px;
}
.feedback-step { animation: fbFadeIn 0.3s ease; }
.feedback-step.hidden { display: none; }
@keyframes fbFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.feedback-emojis {
  display: flex; justify-content: center; gap: 12px;
}
.feedback-emoji {
  font-size: 2rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-md);
  width: 64px; height: 64px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.feedback-emoji:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 16px rgba(var(--accent-rgb), 0.1);
}
.feedback-emoji.selected {
  border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08);
  transform: scale(1.1);
}
.feedback-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.feedback-chip {
  padding: 8px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted); font-size: 0.75rem; font-weight: 600;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all 0.25s;
}
.feedback-chip:hover { border-color: rgba(255,255,255,0.15); color: var(--text-primary); }
.feedback-chip.selected {
  background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
}
.feedback-next-btn {
  width: 100%; padding: 11px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 0.8125rem;
  border-radius: var(--r-pill); cursor: pointer;
  transition: all 0.25s;
}
.feedback-next-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.2); color: var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
}
.feedback-textarea {
  width: 100%; padding: 12px 16px; resize: none;
  background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm); color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-size: 0.8125rem;
  outline: none; margin-bottom: 12px;
  transition: all 0.3s;
}
.feedback-textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.05);
}
.feedback-submit { width: 100%; justify-content: center; }
.feedback-note {
  font-size: 0.6875rem; color: var(--text-dim);
  text-align: center; margin-top: 8px;
}
.feedback-thanks {
  text-align: center; padding: 16px 0;
}
.feedback-thanks-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.feedback-thanks h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; color: var(--text-primary); margin-bottom: 8px;
}
.feedback-thanks p {
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65;
}

@media (max-width: 480px) {
  .feedback-panel { bottom: 72px; right: 12px; left: 12px; width: auto; }
  .feedback-fab { bottom: 16px; right: 16px; padding: 10px 16px; }
  .feedback-fab-label { display: none; }
}

/* ===== BENTO GRID ===== */
.why-section { padding: var(--section-pad) 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 32px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}
.bento-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  box-shadow:
    0 16px 64px rgba(0,0,0,0.5),
    0 0 40px rgba(var(--accent-rgb), 0.03);
}
.bento-card.wide { grid-column: span 2; }
.bento-icon {
  width: 48px; height: 48px; border-radius: var(--r-xs);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--accent);
}
.bento-card h3 {
  font-size: 1.25rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 8px;
}
.bento-card p { font-size: 0.9375rem; color: var(--text-muted); }
.bento-metric {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem; font-weight: 700; margin-top: 16px;
}

/* ===== FAQ ===== */
.faq { padding: var(--section-pad) 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; align-items: start; }
.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(255,255,255,0.12); }
.faq-question {
  width: 100%; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-size: 0.9375rem; font-weight: 600;
  font-family: 'Inter', sans-serif; text-align: left;
  transition: color 0.2s;
}
.faq-question svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
}
.faq-item.active .faq-question svg {
  transform: rotate(45deg); color: var(--accent);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section { padding: var(--section-pad) 0; }
.cta-box {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(48px) saturate(1.6);
  -webkit-backdrop-filter: blur(48px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 72px; text-align: center;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine) 30%, var(--glass-highlight) 50%, var(--glass-shine) 70%, transparent);
}
.cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--text-primary);
  margin-bottom: 16px; position: relative;
}
.cta-box p {
  font-size: 1rem; color: var(--text-muted);
  margin-bottom: 32px; max-width: 480px;
  margin-left: auto; margin-right: auto; position: relative;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; position: relative; }

/* ===== FAQ ===== */
.faq {
  padding: 120px 0;
  position: relative;
  z-index: 10;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover, .faq-item.active {
  border-color: rgba(206, 255, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  color: var(--text-color);
  font-family: var(--font-primary);
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 1px;
}

.faq-text {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 24px 24px 72px; /* Aligned with text, accounting for num gap */
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {

  .faq { padding: 80px 0; }
  .faq-question { padding: 20px; gap: 16px; }
  .faq-text { font-size: 1.05rem; }
  .faq-answer p { padding: 0 20px 20px 60px; }
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.875rem; color: var(--text-muted);
  margin-top: 16px; max-width: 280px; line-height: 1.65;
}
.footer-socials {
  display: flex; gap: 12px; margin-top: 20px;
}
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none;
  transition: all 0.3s;
}
.footer-socials a:hover {
  border-color: rgba(var(--accent-rgb), 0.3); color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.1);
}
.footer-col h4 {
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-col a {
  display: block; font-size: 0.875rem;
  color: var(--text-muted); text-decoration: none;
  padding: 5px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.8125rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.8125rem; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text-muted); }

/* ===== BACKGROUND GRID ===== */
.bg-grid {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

/* ===== STEP CARDS ===== */
.how-it-works { padding: var(--section-pad) 0; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 36px 28px;
  text-align: center; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}
.step-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-6px);
  box-shadow:
    0 16px 64px rgba(0,0,0,0.5),
    0 0 40px rgba(var(--accent-rgb), 0.04);
}
.step-number {
  width: 48px; height: 48px; border-radius: var(--r-xs);
  background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 1.25rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}
.step-icon {
  width: 56px; height: 56px; border-radius: var(--r-xs);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--accent);
}
.step-card h3 {
  font-size: 1.25rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 12px;
}
.step-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

/* ===== STATS BAR ===== */
.stats-bar {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 0.875rem; color: var(--text-muted); font-weight: 500;
}

/* ===== FLOW SECTION ===== */
.flow-section { padding: var(--section-pad) 0; }
.flow-visual {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-top: 48px;
}
.flow-node {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px; flex: 0 0 auto;
}
.flow-node-icon {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  transition: all 0.3s;
}
.flow-node-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.15);
}
.flow-node-icon.exchange-icon { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.flow-node-icon.commission-icon { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.flow-node-icon.rebates-icon { background: var(--accent); color: #000; border: 1px solid var(--accent); box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.3); }
.flow-node-icon.you-icon { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.flow-node h4 { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); }
.flow-node p { font-size: 0.8125rem; color: var(--text-muted); max-width: 140px; }
.flow-arrow { display: flex; align-items: center; padding: 0 16px; color: var(--text-dim); margin-bottom: 40px; }
.flow-arrow svg { width: 40px; height: 20px; }
.flow-percent { font-family: 'Space Grotesk', sans-serif; font-size: 0.8125rem; font-weight: 700; text-align: center; margin-bottom: 4px; }
.flow-formula {
  max-width: 680px; margin: 40px auto 0; padding: 20px 28px;
  background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-size: 1rem; color: var(--text-muted);
}
.flow-formula .highlight { color: var(--accent); font-weight: 700; }
.flow-formula .success { color: var(--success); font-weight: 700; }

/* ===== VALUE PROP BANNER ===== */
.value-banner { padding: var(--section-pad) 0; }
.value-banner-inner {
  position: relative;
  background: var(--glass-bg); backdrop-filter: blur(48px) saturate(1.6); -webkit-backdrop-filter: blur(48px) saturate(1.6);
  border: 1px solid var(--glass-border); border-radius: var(--r-xl);
  padding: 56px 48px; display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 48px; align-items: center; overflow: hidden;
}
.value-banner-inner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}
.value-banner-inner::after {
  content: ''; position: absolute; right: -10%; top: -50%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.value-banner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; color: var(--text-primary); line-height: 1.15; margin-bottom: 16px;
}
.value-banner .hero-sub { margin-bottom: 24px; }
.value-rate { display: flex; align-items: flex-end; gap: 12px; position: relative; z-index: 1; }
.value-rate-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(5rem, 10vw, 8rem); font-weight: 700; line-height: 0.9;
}
.value-rate-label {
  font-size: 1rem; color: var(--text-muted); font-weight: 500;
  padding-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em;
}

/* ===== SOCIAL PROOF ===== */
.social-proof { padding: var(--section-pad) 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  position: relative; background: var(--glass-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 28px;
  overflow: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}
.testimonial-card:hover {
  border-color: rgba(255,255,255,0.14); transform: translateY(-4px);
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}
.testimonial-stars { color: var(--warning); font-size: 0.875rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-text { font-size: 0.9375rem; color: var(--text-body); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; font-family: 'Space Grotesk', sans-serif;
}
.testimonial-meta h5 { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.testimonial-meta p { font-size: 0.75rem; color: var(--text-muted); }

/* ===== PARTNER LOGOS ===== */
.partner-bar { padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.partner-bar-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; opacity: 0.35; }
.partner-bar-inner span { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }

/* ===== TRADES ===== */
.best-trades { padding: var(--section-pad) 0; }
.trades-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trade-card {
  position: relative; background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--r-lg); overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.trade-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}
.trade-card:hover {
  border-color: rgba(255,255,255,0.14); transform: translateY(-4px);
  box-shadow: 0 16px 64px rgba(0,0,0,0.5), 0 0 40px rgba(var(--accent-rgb), 0.03);
}
.trade-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.trade-pair { font-family: 'Space Grotesk', sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.trade-type { font-size: 0.6875rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: 0.05em; }
.trade-type.long { background: rgba(52,211,153,0.1); color: var(--success); border: 1px solid rgba(52,211,153,0.2); }
.trade-type.short { background: rgba(248,113,113,0.1); color: var(--error); border: 1px solid rgba(248,113,113,0.2); }
.trade-stats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.trade-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; }
.trade-row .label { color: var(--text-dim); font-weight: 500; }
.trade-row .value { color: var(--text-body); font-weight: 600; font-family: 'Space Grotesk', sans-serif; }
.trade-pnl { padding: 12px; border-radius: var(--r-md); text-align: center; }
.trade-pnl.positive { background: rgba(var(--accent-rgb), 0.04); border: 1px solid rgba(var(--accent-rgb), 0.12); }
.trade-pnl .pnl-label { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; font-family: 'Space Mono', monospace; }
.trade-pnl .pnl-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.trade-pnl .pnl-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; font-family: 'Space Mono', monospace; }
.trade-time { font-size: 0.75rem; color: var(--text-dim); margin-top: 12px; text-align: right; font-family: 'Space Mono', monospace; }

/* Trader wins */
.trader-wins { padding: var(--section-pad) 0; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.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; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .value-banner-inner { grid-template-columns: 1fr; text-align: center; }
  .value-rate { justify-content: center; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .trades-grid { grid-template-columns: 1fr 1fr; }
  .exchanges-grid--4 { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {

      .nav-links { display: none; }
    .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh; /* full screen */
    background: #000; /* completely solid black */
    padding: 40px 24px;
    z-index: 100;
    gap: 28px;
    align-items: flex-start;
    overflow-y: auto;
  }
  .nav-links.active > li > a {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
  }
  .nav-links.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    margin-top: 16px;
    padding: 0 0 0 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .nav-links.active .dropdown-menu a {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    padding: 0;
  }
  .nav-links.active .dropdown-menu a:hover {
    background: transparent;
    color: #CEFF00;
  }
  .nav-links.active .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 14px;
  }
  .nav-mobile-toggle { display: block; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .exchanges-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .exchanges-grid--4 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-box { padding: 40px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .flow-visual { gap: 16px; }
  .flow-arrow { display: none; }
  .flow-node { flex: 1 0 40%; }
  .value-banner-inner { padding: 36px 24px; }
  .value-rate-number { font-size: 4rem; }
  .partner-bar-inner { gap: 24px; }
  .trades-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .win-card { flex-direction: column; flex: 0 0 85vw; scroll-snap-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav { padding: 12px 0; }
  .hero { padding-top: 40px; padding-bottom: 40px; }
}

/* ===== PIXEL ART RENDERING SYSTEM ===== */
.pixel-art {
  shape-rendering: crispEdges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.service-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

/* ===== STICKY ANNOUNCEMENT BAR ===== */
.announce-bar {
  position: relative;
  z-index: 10000;
  background: linear-gradient(90deg, #CEFF00, #E0FF66, #CEFF00, #b8e600, #CEFF00);
  background-size: 300% 100%;
  animation: shineBg 6s linear infinite;
  box-shadow: 0 4px 24px rgba(206,255,0,0.3);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes shineBg {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.announce-bar.hidden { transform: translateY(-100%); }
.announce-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
}
.announce-live-dot {
  width: 10px; height: 10px;
  background: #111;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(17,17,17,0.7);
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(17,17,17,0.7); }
  70% { box-shadow: 0 0 0 6px rgba(17,17,17,0); }
  100% { box-shadow: 0 0 0 0 rgba(17,17,17,0); }
}
.announce-slider {
  height: 24px;
  overflow: hidden;
  position: relative;
  /* removed flex-grow so it centers correctly */
}
.announce-slider-track {
  display: flex;
  flex-direction: column;
  animation: slideAnnounce 8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes slideAnnounce {
  0%, 40% { transform: translateY(0); }
  50%, 90% { transform: translateY(-24px); }
  100% { transform: translateY(-48px); }
}
.announce-text { height: 24px; display: flex; align-items: center; justify-content: center; white-space: nowrap; color: #111; letter-spacing: 0.01em; font-weight: 500; font-size: 0.85rem; }
.announce-text strong { color: #000; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.glow-text { color: #222; text-shadow: 0 0 8px rgba(0,0,0,0.4); font-weight: 900 !important; }
.announce-cta {
  background: #000; color: #CEFF00;
  padding: 8px 18px; border-radius: 8px;
  font-size: 0.8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none; white-space: nowrap;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.announce-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(206,255,0,0.4), transparent);
  animation: btnShine 3s infinite ease-in-out;
}
@keyframes btnShine {
  0% { left: -100%; }
  20%, 100% { left: 200%; }
}
.announce-cta:hover { background: #222; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }



.creative-btn {
  position: relative;
  background: #000;
  color: #CEFF00;
  padding: 8px 24px;
  border-radius: 100px; /* Fully rounded pill */
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(206, 255, 0, 0.5);
  box-shadow: 0 0 15px rgba(206, 255, 0, 0.2), inset 0 0 8px rgba(206, 255, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.creative-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(206, 255, 0, 0.4), transparent);
  transform: skewX(-25deg);
  animation: cleanShine 4s infinite;
  z-index: -1;
}

.creative-btn .btn-text {
  position: relative;
  z-index: 2;
  color: #CEFF00;
}

.creative-btn:hover {
  background: #111;
  color: #fff;
  border-color: #CEFF00;
  box-shadow: 0 0 25px rgba(206, 255, 0, 0.6), inset 0 0 12px rgba(206, 255, 0, 0.3);
  transform: translateY(-2px);
}

.creative-btn:hover .btn-text {
  color: #CEFF00;
}

.creative-btn:active {
  transform: translateY(0) scale(0.98);
}

@keyframes cleanShine {
  0% { left: -100%; }
  20%, 100% { left: 200%; }
}

@media (max-width: 768px) {

  .creative-btn {
    padding: 6px 16px;
    font-size: 0.7rem;
  }
}

.announce-close {
  background: rgba(0,0,0,0.1); border: none; color: #333;
  cursor: pointer; font-size: 0.8rem; padding: 6px 8px;
  line-height: 1; border-radius: 6px; transition: all var(--transition);
}
.announce-close:hover { background: rgba(0,0,0,0.2); color: #000; transform: rotate(90deg); }


@media (max-width: 768px) {

  
  .announce-text { font-size: 0.7rem; }
  .announce-text strong { font-size: 0.75rem; }
  .announce-cta { padding: 6px 12px; font-size: 0.65rem; }
  .creative-btn { padding: 6px 10px; font-size: 0.65rem; }
  .announce-text { white-space: normal; line-height: 1.3; text-align: center; }
}

/* ===== TELEGRAM CHAT BOT DEMO ===== */
.bot-demo { padding: 100px 0; position: relative; }
.bot-demo-header { display: flex; align-items: center; justify-content: flex-start; gap: 16px; margin-bottom: 8px; }
.bot-demo-header .section-label { margin-bottom: 0; }
.gallery-btn {
  background: rgba(206,255,0,0.1); color: var(--accent); border: 1px solid rgba(206,255,0,0.2);
  padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px; cursor: pointer; transition: all var(--transition);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em;
}
.gallery-btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 15px rgba(206,255,0,0.4); }

/* ===== GALLERY MODAL ===== */
.gallery-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100000;
  background: rgba(5,6,8,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.gallery-overlay.active { opacity: 1; pointer-events: all; }
.gallery-modal {
  background: #0e1015; width: 90%; max-width: 1000px; max-height: 90vh;
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  transform: translateY(20px) scale(0.95); transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.gallery-overlay.active .gallery-modal { transform: translateY(0) scale(1); }
.gallery-header {
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
}
.gallery-title { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.gallery-close {
  background: rgba(255,255,255,0.05); border: none; color: #fff; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.gallery-close:hover { background: #ff5252; color: #fff; transform: rotate(90deg); }
.gallery-grid {
  padding: 24px; overflow-y: auto; flex-grow: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start;
}
.gallery-grid a { 
  display: block; width: 100%; position: relative;
  overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: #050608;
}
.gallery-grid a::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 0 1px rgba(206,255,0,0);
  transition: all 0.4s ease; pointer-events: none; border-radius: 12px;
}
.gallery-grid img { 
  width: 100%; height: auto; display: block; 
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.9);
}
.gallery-grid a:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(206,255,0,0.15); 
  border-color: transparent; z-index: 10; 
}
.gallery-grid a:hover::after {
  box-shadow: inset 0 0 0 1px rgba(206,255,0,0.5);
  background: linear-gradient(to top, rgba(206,255,0,0.1), transparent 50%);
}
.gallery-grid a:hover img { 
  transform: scale(1.06); filter: brightness(1.05);
}
@media (max-width: 768px) {

  .bot-demo-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 16px; }
  .gallery-header { padding: 16px; }
  .gallery-title { font-size: 1rem; }
}

/* ===== LIGHTBOX OVERLAY ===== */
.lightbox-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 95%; max-height: 90vh; border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
  transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.lightbox-overlay.active .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: transparent; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; transition: all var(--transition); z-index: 2;
}
.lightbox-close:hover { color: #ff5252; transform: rotate(90deg); }

.tg-chat-wrapper { max-width: 680px; margin: 48px auto 0; }
.tg-chat {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(206,255,0,0.05);
  position: relative;
}
.tg-chat-header {
  background: linear-gradient(135deg, #1a2236 0%, #1c2d3f 100%);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tg-chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a8e000);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; flex-shrink: 0;
}
.tg-chat-info { flex: 1; }
.tg-chat-name {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.9375rem; color: #fff;
}
.tg-chat-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
}
.tg-online-dot {
  width: 6px; height: 6px; background: #4caf50;
  border-radius: 50%; animation: barPulse 2s ease-in-out infinite;
}
.tg-chat-actions { color: rgba(255,255,255,0.4); font-size: 1.25rem; cursor: default; }
.tg-chat-body {
  background: linear-gradient(180deg, #0e1621 0%, #0d1117 100%);
  padding: 16px; min-height: 360px; max-height: 420px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: thin; scrollbar-color: rgba(206,255,0,0.15) transparent;
  position: relative;
}
.tg-chat-body::-webkit-scrollbar { width: 4px; }
.tg-chat-body::-webkit-scrollbar-track { background: transparent; }
.tg-chat-body::-webkit-scrollbar-thumb { background: rgba(206,255,0,0.15); border-radius: 2px; }
.signal-feed-empty {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 100%; min-height: 320px; color: rgba(255,255,255,0.4);
  font-family: var(--font-mono); font-size: 0.8125rem;
}
.signal-feed-loader {
  width: 16px; height: 16px;
  border: 2px solid rgba(206,255,0,0.2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.signal-msg {
  max-width: 92%; padding: 10px 14px;
  background: #1b2838; border-radius: 4px 12px 12px 12px;
  animation: msgSlideIn 0.35s cubic-bezier(0.16,1,0.3,1);
  border-left: 3px solid transparent; position: relative;
}
.signal-msg.is-signal { border-left-color: #3390ec; }
.signal-msg.is-result { border-left-color: #4caf50; }
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.signal-msg-bot-name { font-size: 0.75rem; font-weight: 600; color: #3390ec; margin-bottom: 4px; }
.signal-msg-text {
  font-size: 0.8125rem; color: rgba(255,255,255,0.85);
  line-height: 1.55; font-family: var(--font-primary);
}
.signal-msg-text strong { color: #fff; }
.signal-msg-text .tg-green { color: #4caf50; font-weight: 600; }
.signal-msg-text .tg-red { color: #ff5252; font-weight: 600; }
.signal-msg-text .tg-accent { color: var(--accent); font-weight: 600; }
.signal-msg-text .tg-dim { color: rgba(255,255,255,0.4); }
.signal-msg-time { text-align: right; font-size: 0.6875rem; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ===== PNL IMAGE ===== */
.signal-pnl-img {
  width: 100%;
  max-width: 260px;
  border-radius: 8px;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: block;
}

.tg-chat-lock {
  position: absolute; bottom: 0; left: 0; right: 0; height: 75%;
  background: linear-gradient(0deg, rgba(10,14,20,0.98) 40%, rgba(10,14,20,0.85) 75%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 32px 24px; z-index: 10; opacity: 0;
  pointer-events: none; transition: opacity 0.6s ease;
}
.tg-chat-lock.active { opacity: 1; pointer-events: all; }
.tg-lock-content { text-align: center; max-width: 360px; }
.tg-lock-icon { font-size: 3rem; margin-bottom: 16px; animation: lockBounce 2s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(206,255,0,0.3)); }
@keyframes lockBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tg-lock-content h3 { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.02em; }
.tg-lock-content p { font-size: 0.9375rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 24px; }
.tg-lock-cta {
  display: inline-block; background: var(--accent); color: #000;
  padding: 14px 32px; border-radius: 8px; font-weight: 700;
  font-size: 0.9375rem; text-decoration: none; transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(206,255,0,0.3);
}
.tg-lock-cta:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(206,255,0,0.5); }
.tg-chat-footer {
  padding: 10px 16px; background: #1a2236;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tg-chat-footer-info { font-family: var(--font-mono); font-size: 0.6875rem; color: rgba(255,255,255,0.35); letter-spacing: 0.03em; }
@media (max-width: 768px) {

  .bot-demo { padding: 80px 0; }
  .tg-chat-wrapper { margin-top: 32px; }
  .tg-chat-body { min-height: 300px; max-height: 360px; padding: 12px; }
  .signal-msg { max-width: 95%; }
}

/* ===== LIMITED OFFER POPUP ===== */
.offer-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.offer-overlay.active { opacity: 1; pointer-events: all; }
.offer-popup {
  background: linear-gradient(160deg, #18181b 0%, #0c0c0e 100%);
  border: 1px solid rgba(206,255,0,0.4); border-radius: 24px;
  padding: 48px 40px; max-width: 480px; width: 100%; text-align: center;
  position: relative;
  box-shadow: 0 0 120px rgba(206,255,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.05), 0 24px 64px rgba(0,0,0,0.8);
  transform: scale(0.9) translateY(20px); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.offer-popup::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at top, rgba(206,255,0,0.1) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
.offer-overlay.active .offer-popup { transform: scale(1) translateY(0); }
.offer-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center;
  justify-content: center; transition: all var(--transition); z-index: 10;
}
.offer-close:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); }
.offer-badge {
  display: inline-block; position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(206,255,0,0.2), rgba(206,255,0,0.05));
  border: 1px solid rgba(206,255,0,0.5); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; padding: 8px 20px; border-radius: 100px;
  margin-bottom: 24px; animation: badgePulse 2.5s ease-in-out infinite;
  text-transform: uppercase;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(206,255,0,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(206,255,0,0); }
}
.offer-title { font-size: 2.25rem; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.03em; position: relative; z-index: 1; }
.offer-highlight { background: linear-gradient(135deg, var(--accent), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.offer-desc { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 32px; position: relative; z-index: 1; }
.offer-desc strong { color: #fff; font-weight: 600; }
.offer-countdown { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; position: relative; z-index: 1; }
.offer-time-block {
  background: rgba(206,255,0,0.08); border: 1px solid rgba(206,255,0,0.2);
  border-radius: 16px; padding: 14px 20px; display: flex; flex-direction: column;
  align-items: center; min-width: 80px; box-shadow: inset 0 2px 10px rgba(206,255,0,0.05);
}
.offer-time-block span { font-family: var(--font-mono); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; text-shadow: 0 0 20px rgba(206,255,0,0.4); }
.offer-time-block small { font-family: var(--font-mono); font-size: 0.625rem; color: rgba(255,255,255,0.5); letter-spacing: 2px; margin-top: 8px; text-transform: uppercase; }
.offer-colon { font-family: var(--font-mono); font-size: 1.75rem; color: var(--accent); opacity: 0.5; animation: colonBlink 1s step-end infinite; }
@keyframes colonBlink { 0%, 100% { opacity: 0.7; } 50% { opacity: 0.2; } }
.offer-bot-info {
  display: flex; justify-content: center; align-items: center; margin-bottom: 32px;
  padding: 20px 0; border-top: 1px solid rgba(206,255,0,0.15); border-bottom: 1px solid rgba(206,255,0,0.15); position: relative; z-index: 1;
}
.offer-bot-info span { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.offer-cta {
  display: block; width: 100%; padding: 18px 24px; position: relative; z-index: 1;
  background: var(--accent); color: #000;
  font-weight: 800; font-size: 1.125rem; border-radius: 14px; text-decoration: none;
  text-align: center; transition: all var(--transition);
  box-shadow: 0 6px 30px rgba(206,255,0,0.3); text-transform: uppercase; letter-spacing: 0.5px;
}
.offer-cta:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 10px 40px rgba(206,255,0,0.5); }
.offer-fine { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 16px; position: relative; z-index: 1; }
@media (max-width: 768px) {

  .offer-popup { padding: 36px 24px; }
  .offer-title { font-size: 1.75rem; }
  .offer-time-block { min-width: 64px; padding: 12px 16px; }
  .offer-time-block span { font-size: 1.5rem; }
  .offer-bot-info span { font-size: 0.75rem; }
}

/* ===== SWIPE HINT FOR MOBILE ===== */
.swipe-hint {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  margin-bottom: 16px;
  padding-right: 16px;
  animation: pulseSwipe 2s infinite;
}
.swipe-hint svg { width: 14px; height: 14px; }
@keyframes pulseSwipe {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(5px); opacity: 1; }
}
@media (max-width: 768px) {

  .swipe-hint { display: flex; }
}

/* ===== MOBILE ANNOUNCE BAR FIX ===== */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .announce-slider-track { animation: none !important; justify-content: center; width: 100%; }
  .announce-slider { overflow: visible; display: flex; align-items: center; justify-content: center; }
  .announce-inner { 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    gap: 12px; 
    padding: 16px 20px; 
  }
  .announce-slider {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .announce-slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .creative-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .announce-close {
    top: 8px;
    right: 8px;
  }
  .announce-text { white-space: normal; font-size: 0.8rem; text-align: center; }
  .announce-text strong { font-size: 0.9rem; }
  .creative-btn { padding: 8px 16px; font-size: 0.75rem; width: 100%; text-align: center; }
  .announce-close { position: absolute; right: 12px; top: 12px; }
}
