/* ===== ALGATEKA — Design System ===== */
:root {
  --bg-deep: #061018;
  --bg-card: rgba(12, 28, 42, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --teal: #00d4aa;
  --teal-dim: #0ea5a0;
  --aqua: #38bdf8;
  --emerald: #10b981;
  --text: #e8f4f8;
  --text-muted: #8ba3b5;
  --gradient-hero: linear-gradient(135deg, #00d4aa 0%, #38bdf8 50%, #10b981 100%);
  --gradient-card: linear-gradient(145deg, rgba(0, 212, 170, 0.12), rgba(56, 189, 248, 0.06));
  --shadow-glow: 0 0 60px rgba(0, 212, 170, 0.15);
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 212, 170, 0.35);
  color: #fff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== Canvas & Orbs ===== */
#ocean-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gradient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-1 { width: 520px; height: 520px; background: #00d4aa; top: -220px; right: -120px; }
.orb-2 { width: 420px; height: 420px; background: #38bdf8; bottom: 15%; left: -180px; animation-delay: -7s; opacity: 0.22; }
.orb-3 { width: 360px; height: 360px; background: #10b981; top: 55%; right: 15%; animation-delay: -14s; opacity: 0.18; }

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ===== Typography ===== */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-primary {
  background: var(--gradient-hero);
  color: #061018;
  box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 212, 170, 0.45);
}

.btn-orange {
  background: #f97316;
  color: #fff;
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.35);
}

.btn-orange:hover {
  background: #ea580c;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(234, 88, 12, 0.45);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-2px);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.navbar.scrolled {
  background: rgba(6, 16, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.footer-brand .logo-img {
  height: 112px;
  border-radius: 14px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bg-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links li { list-style: none; }

.nav-links > li > a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s;
}

.nav-links > li > a:hover { color: var(--text); }
.nav-links > li > a:hover::after { width: 100%; }

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
  color: var(--text);
}

.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  padding: 8px;
  background: rgba(8, 18, 28, 0.96);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 1100;
}

.nav-dropdown.open > .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown-menu a::after { display: none !important; }

.nav-dropdown-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-account .nav-dropdown-toggle {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-cta-vitrina {
  margin-left: 4px;
}

.nav-cta {
  margin-left: 4px;
  padding: 10px 16px !important;
  font-size: 0.8rem !important;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 212, 170, 0.25) !important;
  color: #ffffff !important;
  transition: color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link-auth {
  font-size: 0.85rem;
  color: var(--text-muted) !important;
}

.nav-link-auth:hover {
  color: var(--teal) !important;
}

.nav-cta:hover,
.nav-links a.nav-cta:hover {
  color: var(--teal) !important;
}

.nav-links a.btn-orange.nav-cta,
.nav-links a.btn-orange.nav-cta:hover {
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.35) !important;
}

.nav-links a.nav-cta::after { display: none; }

@media (max-width: 1200px) {
  .nav-links { gap: 12px; }
  .nav-links > li > a { font-size: 0.78rem; }
  .nav-dropdown-toggle { font-size: 0.78rem; }
  .nav-cta { padding: 8px 14px !important; }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-visual {
  position: relative;
  z-index: 3;
}

.hero-card {
  background: rgba(12, 28, 42, 0.82);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(6, 16, 24, 0.85);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  text-shadow: 0 2px 16px rgba(6, 16, 24, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  pointer-events: none;
}

.ecosystem-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s;
}

.flow-item:hover {
  transform: translateX(8px);
  border-color: rgba(0, 212, 170, 0.3);
}

.flow-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.flow-item span { font-weight: 500; }

.flow-arrow {
  text-align: center;
  color: var(--teal);
  font-size: 0.8rem;
  opacity: 0.6;
}

.hero-tagline {
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 100px;
  font-weight: 600;
  color: var(--teal);
  position: relative;
  z-index: 1;
}

.floating-badge {
  position: absolute;
  padding: 10px 16px;
  background: rgba(12, 28, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  animation: float-badge 6s ease-in-out infinite;
  z-index: 3;
  white-space: nowrap;
}

.floating-badge.b1 { top: 12px; right: 12px; animation-delay: 0s; }
.floating-badge.b2 { bottom: 56px; left: 12px; animation-delay: -3s; }

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Sections ===== */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

/* ===== Problem / Mission ===== */
.mission-block {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(16px);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.problem-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.problem-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 170, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.problem-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 212, 170, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.problem-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Market Stats ===== */
.stats-section {
  background: linear-gradient(180deg, transparent, rgba(0, 212, 170, 0.04), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.3s;
}

.stat-card:hover { transform: scale(1.03); }

.stat-card .big-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card .stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.stat-card .stat-source {
  font-size: 0.75rem;
  color: rgba(139, 163, 181, 0.6);
  margin-top: 12px;
}

/* ===== USP Bento ===== */
.usp-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 48px;
}

.usp-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.usp-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.3s;
}

.usp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.2);
}

.usp-card:hover::after { opacity: 1; }

.usp-card.featured {
  grid-column: span 2;
  grid-row: span 1;
}

.usp-card .usp-icon {
  font-size: 1.8rem;
  color: var(--teal);
  margin-bottom: 16px;
}

.usp-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.usp-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Roles ===== */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.role-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
  cursor: default;
}

.role-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  background: rgba(0, 212, 170, 0.05);
}

.role-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0, 212, 170, 0.4);
  line-height: 1;
}

.role-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.role-card .role-pain {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.role-card .role-benefit {
  font-size: 0.85rem;
  color: var(--teal);
}

/* ===== Modules ===== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.module-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 170, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.module-card:hover::before { opacity: 1; }

.module-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.module-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 16px;
}

.module-card .module-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.module-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.module-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.module-card .module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.module-card .tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 100px;
  color: var(--teal);
}

/* ===== AI Flow ===== */
.ai-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
}

.ai-step {
  text-align: center;
  padding: 24px 20px;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
}

.ai-step .step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
}

.ai-step h5 { font-size: 0.9rem; margin-bottom: 4px; }
.ai-step p { font-size: 0.75rem; color: var(--text-muted); }

.ai-arrow {
  color: var(--teal);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* ===== Comparison Table ===== */
.compare-wrap {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.compare-table th {
  background: rgba(0, 212, 170, 0.08);
  font-weight: 600;
  color: var(--text);
}

.compare-table td { color: var(--text-muted); }

.compare-table tr:last-child td { border-bottom: none; }

.compare-table .highlight {
  background: rgba(0, 212, 170, 0.06);
  color: var(--teal);
  font-weight: 600;
}

.check { color: var(--teal); }
.cross { color: rgba(139, 163, 181, 0.4); }

/* ===== Roadmap Timeline ===== */
.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--aqua), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--teal);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
}

.timeline-content {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}

.timeline-content:hover { border-color: rgba(0, 212, 170, 0.25); }

.timeline-content .phase {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.timeline-meta {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--teal);
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.price-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.price-card:hover { transform: translateY(-4px); }

.price-card.popular {
  border-color: rgba(0, 212, 170, 0.4);
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.08), var(--bg-card));
  position: relative;
}

.price-card.popular::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-hero);
  color: var(--bg-deep);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 100px;
}

.price-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 16px 0;
}

.price-card .price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  flex: 1;
  margin: 16px 0;
}

.price-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-card li i {
  color: var(--teal);
  margin-top: 3px;
  font-size: 0.7rem;
}

/* ===== KPI ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.kpi-item {
  text-align: center;
  padding: 28px;
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: var(--radius-lg);
}

.kpi-item .kpi-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
}

.kpi-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== Quote ===== */
.quote-block {
  margin-top: 60px;
  padding: 40px 48px;
  background: var(--bg-card);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  position: relative;
}

.quote-block cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--teal);
}

/* ===== CTA ===== */
.cta-section {
  padding: 80px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section.cta-grid {
  text-align: left;
  overflow: visible;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
}

.cta-note i { color: var(--teal); }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-glass);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(6, 16, 24, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-glass);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .menu-toggle { display: flex; }
  .nav-cta { margin-left: 0; width: 100%; justify-content: center; box-shadow: none !important; }
  .nav-cta-vitrina { margin-left: 0; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 4px 0;
  }
  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
  .nav-account .nav-dropdown-toggle {
    max-width: none;
  }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-bento { grid-template-columns: 1fr 1fr; }
  .usp-card.featured { grid-column: span 2; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #hero-seaweed { display: none; }
}

@media (max-width: 768px) {
  .logo-img { height: 40px; }
  .footer-brand .logo-img { height: 88px; }
  section { padding: 64px 0; }
  .mission-block { padding: 32px 24px; }
  .problem-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .usp-bento { grid-template-columns: 1fr; }
  .usp-card.featured { grid-column: span 1; }
  .modules-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .ai-flow { flex-direction: column; }
  .ai-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 48px 24px; }
  .floating-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
