/* ═══════════════════════════════════════════
   FlowHouse Landing — "Neural Flow" Design
   A living, breathing page that mirrors the
   flow-builder experience itself.
   ═══════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: #1E293B #060B14;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060B14; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #060B14;
  color: #CBD5E1;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Dot grid pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ensure content sits above dot grid */
body > *:not(style):not(script) {
  position: relative;
  z-index: 1;
}

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

.gradient-text {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 30%, #14B8A6 60%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── FLOATING ORBS ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: orb-drift-1 25s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  top: 40%;
  right: -15%;
  animation: orb-drift-2 30s ease-in-out infinite;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  bottom: 5%;
  left: 15%;
  animation: orb-drift-3 22s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, 40px) scale(1.1); }
  50% { transform: translate(30px, 80px) scale(0.95); }
  75% { transform: translate(-40px, 20px) scale(1.05); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 50px) scale(1.15); }
  66% { transform: translate(40px, -30px) scale(0.9); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -40px); }
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.from-scale { transform: scale(0.92); }

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger children */
.bento-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.bento-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.bento-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.bento-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.bento-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.bento-grid .reveal:nth-child(7) { transition-delay: 0.36s; }

.steps-timeline .reveal:nth-child(2) { transition-delay: 0.12s; }
.steps-timeline .reveal:nth-child(3) { transition-delay: 0.24s; }

.audience-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.audience-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 40%, #14B8A6 100%);
  color: #fff;
  padding: 14px 32px;
  box-shadow: 0 4px 24px rgba(2, 132, 199, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(2, 132, 199, 0.4),
              0 0 0 1px rgba(56, 189, 248, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 10px;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 11, 20, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img { height: 50px; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0EA5E9, #14B8A6);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:not(.btn):hover { color: #E2E8F0; }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-links .btn { color: #fff; }

/* Language switcher — dropdown */
.lang-switcher {
  position: relative;
  margin-left: 8px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748B;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
}

.lang-toggle:hover {
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.15);
}

.lang-switcher.open .lang-toggle {
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(14, 165, 233, 0.25);
}

.lang-globe { flex-shrink: 0; }

.lang-chevron {
  flex-shrink: 0;
  transition: transform 0.25s;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 110;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.lang-option:hover {
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.06);
}

.lang-option.active {
  color: #38BDF8;
  background: rgba(14, 165, 233, 0.1);
}

.lang-option-flag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: inherit;
  opacity: 0.6;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #64748B;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content { text-align: left; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #14B8A6;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14B8A6;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #F1F5F9;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: #64748B;
  max-width: 520px;
  margin-bottom: 50px;
}

.hero-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
}

.hero-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s;
}

.hero-form input[type="email"]::placeholder { color: #475569; }

.hero-form input[type="email"]:focus {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.08),
              0 0 20px rgba(14, 165, 233, 0.05);
  background: rgba(255, 255, 255, 0.06);
}

.hero-note {
  font-size: 13px;
  color: #475569;
  margin-top: 16px;
}

/* ─── HERO VISUAL: Flow Constellation ─── */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-constellation {
  position: relative;
  width: 100%;
  height: 100%;
}

/* SVG connecting lines */
.flow-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.flow-lines line {
  stroke: rgba(148, 163, 184, 0.1);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  animation: dash-flow 20s linear infinite;
}

@keyframes dash-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}

/* Flow nodes */
.flow-node {
  position: absolute;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.1);
  padding: 0 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-node:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.flow-node-1 {
  width: 148px; height: 52px;
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
  top: 12%; left: 8%;
  animation: float-1 7s ease-in-out infinite;
}

.flow-node-2 {
  width: 132px; height: 52px;
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.2);
  top: 38%; left: 42%;
  animation: float-2 6s ease-in-out infinite;
}

.flow-node-3 {
  width: 120px; height: 52px;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(167, 139, 250, 0.2);
  top: 62%; left: 15%;
  animation: float-3 8s ease-in-out infinite;
}

.flow-node-4 {
  width: 128px; height: 52px;
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(251, 146, 60, 0.2);
  top: 22%; right: 2%;
  animation: float-4 7.5s ease-in-out infinite;
}

.flow-node-5 {
  width: 100px; height: 48px;
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(251, 113, 133, 0.15);
  bottom: 12%; right: 10%;
  animation: float-5 6.5s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}
@keyframes float-4 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-5 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Glowing dots at connection points */
.flow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  animation: dot-pulse 3s ease-in-out infinite;
}

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

@keyframes dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ─── SCREENSHOT HERO ─── */
.screenshot-hero {
  padding: 0 0 60px;
  margin-top: -20px;
}

/* ─── SCREENSHOT PLACEHOLDERS ─── */
.screenshot-placeholder {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Gradient border reveal on hover */
.screenshot-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(20, 184, 166, 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}

.screenshot-placeholder:hover::before { opacity: 1; }

.screenshot-placeholder:hover {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.screenshot-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.screenshot-placeholder.has-image .screenshot-placeholder-inner {
  padding: 0;
  height: 100%;
}

.screenshot-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder.has-image {
  aspect-ratio: 16 / 9;
}

 .screenshot-hero .screenshot-placeholder-lg.has-image {
  aspect-ratio: 16 / 8;
  max-height: 420px;
 }

.screenshot-placeholder-lg {
  max-width: 960px;
  margin: 0 auto;
}

.screenshot-placeholder-lg .screenshot-placeholder-inner {
  padding: 100px 24px;
}

.screenshot-placeholder-lg.has-image .screenshot-placeholder-inner {
  padding: 0;
}

.screenshot-how-it-works {
  margin-top: 48px;
}

.bento-item .screenshot-placeholder.has-image {
  aspect-ratio: 16 / 10;
}

/* ─── MARQUEE TRUST BAR ─── */
.trust-bar {
  padding: 50px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.04);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #334155;
  margin-bottom: 20px;
}

.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  gap: 48px;
  padding: 0 24px;
}

.trust-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  white-space: nowrap;
}

.trust-icon svg { color: #0EA5E9; flex-shrink: 0; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECTION SHARED ─── */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #0EA5E9;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #F1F5F9;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: #64748B;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── BENTO GRID (FEATURES) ─── */
.features {
  padding: 140px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

.bento-item {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 24px;
  padding: 50px 32px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Gradient border glow on hover */
.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--bento-color, rgba(56, 189, 248, 0.3)), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-item:hover::before { opacity: 1; }

/* Inner ambient glow on hover */
.bento-item::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 30% 30%, var(--bento-glow, rgba(56, 189, 248, 0.04)), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.bento-item:hover::after { opacity: 1; }

.bento-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.bento-lg { grid-column: span 2; }

/* Color variants */
.bento-blue   { --bento-color: rgba(56, 189, 248, 0.3);  --bento-glow: rgba(56, 189, 248, 0.04); }
.bento-teal   { --bento-color: rgba(20, 184, 166, 0.3);  --bento-glow: rgba(20, 184, 166, 0.04); }
.bento-coral  { --bento-color: rgba(251, 146, 60, 0.3);  --bento-glow: rgba(251, 146, 60, 0.04); }
.bento-purple { --bento-color: rgba(167, 139, 250, 0.3); --bento-glow: rgba(167, 139, 250, 0.04); }
.bento-green  { --bento-color: rgba(74, 222, 128, 0.3);  --bento-glow: rgba(74, 222, 128, 0.04); }
.bento-amber  { --bento-color: rgba(251, 191, 36, 0.3);  --bento-glow: rgba(251, 191, 36, 0.04); }
.bento-rose   { --bento-color: rgba(251, 113, 133, 0.3); --bento-glow: rgba(251, 113, 133, 0.04); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-icon-blue   { background: rgba(2, 132, 199, 0.1);  color: #38BDF8; }
.feature-icon-teal   { background: rgba(20, 184, 166, 0.1);  color: #14B8A6; }
.feature-icon-coral  { background: rgba(249, 115, 22, 0.1);  color: #FB923C; }
.feature-icon-purple { background: rgba(139, 92, 246, 0.1);  color: #A78BFA; }
.feature-icon-green  { background: rgba(34, 197, 94, 0.1);   color: #4ADE80; }
.feature-icon-amber  { background: rgba(245, 158, 11, 0.1);  color: #FBBF24; }
.feature-icon-rose   { background: rgba(244, 63, 94, 0.1);   color: #FB7185; }

.bento-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.bento-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #64748B;
  position: relative;
  z-index: 1;
}

.bento-item .screenshot-placeholder {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.bento-item .screenshot-placeholder .screenshot-placeholder-inner {
  padding: 48px 24px;
}

/* ─── HOW IT WORKS — Connected Timeline ─── */
.how-it-works {
  padding: 140px 0;
  position: relative;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting gradient line */
.steps-timeline::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 16.67%;
  right: 16.67%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(14, 165, 233, 0.25) 20%,
    rgba(14, 165, 233, 0.25) 50%,
    rgba(20, 184, 166, 0.25) 80%,
    transparent
  );
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

/* Dot at top of each step */
.step-card::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0EA5E9;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.4);
  z-index: 2;
}

.step-number {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 28px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.02) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #64748B;
}

/* ─── AUDIENCE ─── */
.audience {
  padding: 140px 0;
}

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

.audience-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Gradient border on hover */
.audience-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}

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

.audience-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.audience-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.audience-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 12px;
}

.audience-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #64748B;
}

/* ─── MULTICHANNEL ─── */
.multichannel {
  padding: 140px 0;
  position: relative;
}

.multichannel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.multichannel-content .section-badge {
  display: inline-block;
  margin-bottom: 20px;
}

.multichannel-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.multichannel-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #64748B;
  margin-bottom: 32px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 100px;
  transition: all 0.3s;
}

.channel-tag:hover {
  color: #94A3B8;
  border-color: rgba(148, 163, 184, 0.15);
}

.channel-tag.active {
  color: #38BDF8;
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.08);
}

.channel-tag.active svg { color: #38BDF8; }

/* ─── TELEGRAM CHAT MOCKUP ─── */
.tg-chat {
  border-radius: 20px;
  overflow: hidden;
  background: #0E1621;
  border: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(148, 163, 184, 0.04);
  max-width: 380px;
  margin: 0 auto;
}

.tg-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #17212B;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.tg-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0EA5E9, #14B8A6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.tg-chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tg-chat-name {
  font-size: 14px;
  font-weight: 600;
  color: #E2E8F0;
}

.tg-chat-status {
  font-size: 12px;
  color: #14B8A6;
}

.tg-chat-body {
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 320px;
  background: #0E1621;
}

/* Messages */
.tg-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
}

.tg-msg-time {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.4);
  margin-left: auto;
  flex-shrink: 0;
}

.tg-msg-bot {
  align-self: flex-start;
  background: #182533;
  color: #CBD5E1;
  border-bottom-left-radius: 4px;
}

.tg-msg-user {
  align-self: flex-end;
  background: #2B5278;
  color: #E2E8F0;
  border-bottom-right-radius: 4px;
}

/* Inline keyboard */
.tg-keyboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: 6px;
}

.tg-msg-keyboard {
  flex-direction: column;
  align-items: flex-start;
}

.tg-keyboard button {
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #7AAFDB;
  background: rgba(43, 82, 120, 0.25);
  border: 1px solid rgba(43, 82, 120, 0.3);
  border-radius: 8px;
  cursor: default;
  transition: all 0.2s;
}

.tg-keyboard button:hover {
  background: rgba(43, 82, 120, 0.4);
}

.tg-kb-accent {
  color: #fff !important;
  background: linear-gradient(135deg, #0284C7, #0EA5E9) !important;
  border-color: transparent !important;
}

/* Product card */
.tg-msg-card {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  max-width: 70%;
}

.tg-card-img {
  height: 80px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(20, 184, 166, 0.1));
  position: relative;
}

.tg-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 12px 12px;
}

.tg-card-body {
  padding: 10px 12px 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.tg-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
}

.tg-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #38BDF8;
}

.tg-card-period {
  font-size: 11px;
  font-weight: 400;
  color: #64748B;
}

.tg-msg-card .tg-keyboard {
  padding: 4px 10px 10px;
}

/* Typing indicator */
.tg-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: #182533;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.tg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
  animation: tg-typing-dot 1.4s ease-in-out infinite;
}

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

@keyframes tg-typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ─── CTA ─── */
.cta {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(139, 92, 246, 0.04) 30%, transparent 60%);
  pointer-events: none;
  animation: cta-pulse 8s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.6; }
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #F1F5F9;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: #64748B;
  max-width: 480px;
  margin: 0 auto 40px;
}

.cta-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
}

.cta-features span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-features span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14B8A6;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
}

/* ─── FOOTER ─── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.04);
}

.footer-inner { text-align: center; }
.footer-brand { margin-bottom: 32px; }

.footer-brand img {
  height: 28px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.footer-brand p {
  font-size: 14px;
  color: #334155;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 13px;
  color: #475569;
  transition: color 0.2s;
}

.footer-links a:hover { color: #94A3B8; }

.footer-bottom {
  font-size: 13px;
  color: #1E293B;
}

/* ─── SURVEY MODAL ─── */
.survey-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.survey-overlay.active {
  opacity: 1;
  visibility: visible;
}

.survey-modal {
  position: relative;
  width: 90%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
  padding: 40px 36px 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(148, 163, 184, 0.05);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.survey-overlay.active .survey-modal {
  transform: translateY(0) scale(1);
}

.survey-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 8px;
  color: #64748B;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.survey-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

/* Progress bar */
.survey-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}

.survey-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #0EA5E9, #14B8A6);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.survey-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

/* Question */
.survey-question {
  font-size: 22px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 6px;
  line-height: 1.3;
}

.survey-hint {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 24px;
}

/* Chips */
.survey-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.survey-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.survey-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.2);
  color: #CBD5E1;
}

.survey-chip.selected {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38BDF8;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.1);
}

.survey-chip-icon {
  flex-shrink: 0;
}

/* "Other" inline input */
.survey-other-input {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #E2E8F0;
  background: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 14px;
  outline: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: survey-other-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes survey-other-slide-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.survey-other-input::placeholder {
  color: rgba(56, 189, 248, 0.35);
  font-style: italic;
}

.survey-other-input:hover {
  border-color: rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.06);
}

.survey-other-input:focus {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08),
              0 0 20px rgba(14, 165, 233, 0.06);
  background: rgba(14, 165, 233, 0.06);
}

/* Textarea */
.survey-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s;
}

.survey-textarea::placeholder { color: #475569; }

.survey-textarea:focus {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.06);
  background: rgba(255, 255, 255, 0.05);
}

/* Navigation */
.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.survey-skip {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.2s;
}

.survey-skip:hover { color: #94A3B8; }

.survey-next {
  min-width: 100px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-form { margin: 0 auto; }
  .hero-note { text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-visual { height: 350px; }
  .hero-title { font-size: 48px; }
  .section-title { font-size: 40px; }
  .cta-title { font-size: 44px; }

  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 11, 20, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    padding: 16px 24px;
  }

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

  .nav-links a {
    padding: 12px 0;
    font-size: 16px;
  }

  .nav-links .btn {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  .lang-switcher {
    margin-left: auto;
    margin-right: 12px;
  }

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

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-visual { display: none; }
  .hero-title { font-size: 50px; }
  .hero-subtitle { font-size: 16px; }

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

  .hero-form input[type="email"] { width: 100%; }

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

  .bento-grid { grid-template-columns: 1fr; }
  .bento-lg { grid-column: span 1; }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-timeline::before { display: none; }
  .step-card::before { display: none; }

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

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

  .tg-chat { max-width: 340px; }
  .tg-chat-body { min-height: 280px; }
  .multichannel-content .section-title { text-align: center; }
  .multichannel-content { text-align: center; }
  .channel-tags { justify-content: center; }

  .cta { padding: 100px 0; }
  .cta-title { font-size: 32px; }

  .screenshot-placeholder-lg .screenshot-placeholder-inner {
    padding: 60px 24px;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .survey-modal {
    width: 95%;
    padding: 32px 24px 28px;
  }

  .survey-question { font-size: 19px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .section-title { font-size: 26px; }
  .cta-title { font-size: 26px; }
  .step-number { font-size: 48px; }
  .bento-item { padding: 28px 24px; }
}
