/* BINII Landing — brand palette from project */
:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --blue: #3b82f6;
  --blue-light: #93c5fd;
  --blue-hover: #2563eb;
  --violet: #a78bfa;
  --violet-deep: #7c3aed;
  --green: #22c55e;
  --red: #ef4444;
  --tg: #2aabee;
  --tg-dark: #229ed9;
  --tg-glow: rgba(42, 171, 238, 0.45);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Background effects */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -200px; right: -100px;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
  bottom: 20%; left: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  bottom: -100px; right: 30%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s;
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 10px;
  font-size: 1rem;
  color: #fff;
}

.logo-ii {
  background: linear-gradient(135deg, var(--violet), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.nav-tg {
  color: var(--tg) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-tg:hover { color: #7dd3fc !important; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-tg { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.3s;
}

.btn:active { transform: scale(0.97); }

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-hover));
  color: #fff;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(30, 41, 59, 0.6);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
}

.btn-telegram {
  background: linear-gradient(135deg, var(--tg), var(--tg-dark));
  color: #fff;
  box-shadow: 0 4px 24px var(--tg-glow);
}

.btn-telegram:hover {
  box-shadow: 0 8px 32px var(--tg-glow);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.pulse-dot.sm { width: 6px; height: 6px; }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--violet) 50%, var(--blue) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

.gradient-text-violet {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-sub strong { color: var(--violet); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 2rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 4rem;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal mock */
.hero-visual {
  width: 100%;
  max-width: 520px;
  perspective: 1000px;
}

.terminal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(167, 139, 250, 0.1);
  transform: rotateX(2deg);
  animation: terminalFloat 6s ease-in-out infinite;
}

@keyframes terminalFloat {
  0%, 100% { transform: rotateX(2deg) translateY(0); }
  50% { transform: rotateX(2deg) translateY(-8px); }
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--dim);
  font-weight: 500;
}

.terminal-body {
  padding: 1.25rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  text-align: left;
}

.term-line { margin-bottom: 0.5rem; }
.term-prompt { color: var(--violet); }
.term-cmd { color: var(--blue-light); }
.term-arg { color: var(--green); }
.term-dim { color: var(--dim); }
.term-val { color: var(--text); }
.term-pnl.pos { color: var(--green); }
.term-pnl.neg { color: var(--red); }
.mode-sim { color: #eab308; }

.term-chart {
  height: 60px;
  margin: 0.75rem 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.term-chart .bar {
  flex: 1;
  background: linear-gradient(to top, var(--violet-deep), var(--violet));
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: height 0.5s var(--ease);
}

.term-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Telegram banner */
.tg-banner {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  margin-top: -1rem;
  margin-bottom: 1rem;
}

.tg-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(42, 171, 238, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(42, 171, 238, 0.1);
}

.tg-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tg), var(--tg-dark));
  color: #fff;
  flex-shrink: 0;
}

.tg-banner-text {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tg-banner-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.tg-banner-text span {
  color: var(--muted);
  font-size: 0.9rem;
}

.tg-banner-text em {
  color: var(--tg);
  font-style: normal;
  font-weight: 600;
}

.tg-banner-btn { flex-shrink: 0; }

/* Floating Telegram */
.tg-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem 0.85rem 0.95rem;
  background: linear-gradient(135deg, var(--tg), var(--tg-dark));
  color: #fff;
  border-radius: 100px;
  box-shadow: 0 6px 28px var(--tg-glow);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.3s;
  animation: tgFabPulse 3s ease-in-out infinite;
}

.tg-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 36px var(--tg-glow);
}

.tg-fab-label { letter-spacing: 0.02em; }

@keyframes tgFabPulse {
  0%, 100% { box-shadow: 0 6px 28px var(--tg-glow); }
  50% { box-shadow: 0 6px 36px rgba(42, 171, 238, 0.65); }
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: 6rem clamp(1.25rem, 4vw, 3rem);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-desc {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  padding: 2rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.about-icon svg { width: 24px; height: 24px; }
.about-icon.violet { background: rgba(167, 139, 250, 0.15); color: var(--violet); }
.about-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--green); }

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Features */
.features { background: linear-gradient(180deg, transparent, rgba(30, 41, 59, 0.3), transparent); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(167, 139, 250, 0.4);
}

.feature-card:hover::before { opacity: 1; }

.feature-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(51, 65, 85, 0.6);
  line-height: 1;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Modes */
.modes-track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.mode-card {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  padding: 2rem 1.5rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}

.mode-card:hover,
.mode-card.active {
  transform: scale(1.03);
  border-color: var(--violet);
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.15);
}

.mode-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--blue-light);
}

.mode-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.mode-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.mode-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue-light);
  border-radius: 100px;
}

.mode-tag-live {
  background: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.mode-connector {
  display: flex;
  align-items: center;
  width: 60px;
  opacity: 0.6;
}

.mode-connector svg { width: 100%; }

/* Fusion */
.fusion {
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
}

.fusion-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.fusion-desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.fusion-list {
  list-style: none;
}

.fusion-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text);
  font-weight: 500;
}

.fusion-list .check {
  color: var(--green);
  font-weight: 700;
}

.fusion-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.2);
  animation: ringRotate 20s linear infinite;
}

.ring-1 { width: 280px; height: 280px; }
.ring-2 { width: 220px; height: 220px; animation-direction: reverse; animation-duration: 15s; border-color: rgba(59, 130, 246, 0.25); }
.ring-3 { width: 160px; height: 160px; animation-duration: 10s; }

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brain-core {
  position: relative;
  z-index: 2;
  width: 100px; height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--violet-deep), var(--violet));
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.75rem;
  color: #fff;
  box-shadow: 0 0 60px rgba(167, 139, 250, 0.5);
  animation: corePulse 3s ease-in-out infinite;
}

.brain-core small {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: -4px;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 60px rgba(167, 139, 250, 0.5); }
  50% { box-shadow: 0 0 80px rgba(167, 139, 250, 0.8); }
}

.brain-nodes .node {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue);
  animation: nodeBlink 2s ease-in-out infinite;
}

.n1 { top: 10%; left: 50%; animation-delay: 0s; }
.n2 { top: 30%; right: 10%; animation-delay: 0.3s; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.n3 { bottom: 30%; right: 15%; animation-delay: 0.6s; }
.n4 { bottom: 10%; left: 50%; animation-delay: 0.9s; background: var(--green); box-shadow: 0 0 12px var(--green); }
.n5 { bottom: 30%; left: 10%; animation-delay: 1.2s; }
.n6 { top: 30%; left: 15%; animation-delay: 1.5s; background: var(--violet); box-shadow: 0 0 12px var(--violet); }

@keyframes nodeBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* CTA */
.cta-box {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, var(--violet), transparent, var(--blue), transparent);
  opacity: 0.08;
  animation: ctaSpin 12s linear infinite;
}

@keyframes ctaSpin {
  to { transform: rotate(360deg); }
}

.cta-box h2 {
  position: relative;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-box > p {
  position: relative;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.cta-btn { position: relative; }

.cta-note {
  position: relative;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--dim);
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.logo-sm { justify-content: center; margin-bottom: 1rem; }

.footer-tg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tg);
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-tg:hover {
  background: rgba(42, 171, 238, 0.2);
  color: #7dd3fc;
  transform: translateY(-2px);
}

.mobile-tg { justify-content: center; width: 100%; }

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--dim);
  max-width: 480px;
  margin: 0 auto;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(51, 65, 85, 0.5);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
  background: rgba(59, 130, 246, 0.2);
  color: var(--text);
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.modal__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal__desc strong {
  color: var(--blue-light);
  font-weight: 600;
}

.mail-form__row {
  margin-bottom: 1rem;
}

.mail-form__row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.mail-form__row .req {
  color: var(--violet);
}

.mail-form__row input,
.mail-form__row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mail-form__row input:focus,
.mail-form__row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.mail-form__row textarea {
  resize: vertical;
  min-height: 100px;
}

.mail-form__row--hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.mail-form__success {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
}

.mail-form__error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
}

body.modal-open {
  overflow: hidden;
}

.footer-mail {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-mail:hover {
  color: var(--violet);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .nav, .header-actions { display: none; }
  .burger { display: flex; }
  .tg-banner-inner { justify-content: center; text-align: center; }
  .tg-banner-text { align-items: center; }
  .tg-banner-btn { width: 100%; justify-content: center; }
  .fusion-inner { grid-template-columns: 1fr; }
  .fusion-visual { height: 280px; order: -1; }
  .mode-connector { display: none; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 60px; height: 1px; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .tg-fab-label { display: none; }
  .tg-fab { padding: 0.95rem; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tg-fab { animation: none; }
}
