/* ═══════════════════════════════════════════════════════════════
   Labrun Landing Page — Dark Theme with Scroll Animations
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #0b0f19;
  --bg-elevated: #111827;
  --bg-card: #151c2c;
  --border: rgba(148,163,184,0.12);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --accent-dim: rgba(6,182,212,0.12);
  --success: #10b981;
  --error: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 40px rgba(6,182,212,0.15);
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  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");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ─── Scroll Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-blur {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  transition: opacity 1s var(--easing), transform 1s var(--easing), filter 1s var(--easing);
}
.reveal-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }
[data-delay="7"] { transition-delay: 0.56s; }
[data-delay="8"] { transition-delay: 0.64s; }

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

/* ─── Header ─── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11,15,25,0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s var(--easing), background 0.3s;
}

.header.hidden {
  transform: translateY(-100%);
}

.header.scrolled {
  background: rgba(11,15,25,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand svg, .brand img {
  width: 36px;
  height: 36px;
}

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

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s, background 0.25s, transform 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(148,163,184,0.08);
  transform: translateY(-1px);
}

.nav .cta {
  background: var(--accent);
  color: #0b0f19;
  font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(6,182,212,0.25);
}

.nav .cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6,182,212,0.4);
}

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

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.18) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite;
}

.hero .mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
}

.hero .mesh-blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(6,182,212,0.2);
  top: 5%;
  left: 15%;
  animation: blobMove1 20s ease-in-out infinite;
}

.hero .mesh-blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(59,130,246,0.12);
  top: 25%;
  right: 10%;
  animation: blobMove2 25s ease-in-out infinite;
}

.hero .mesh-blob-3 {
  width: 400px;
  height: 400px;
  background: rgba(99,102,241,0.08);
  bottom: 5%;
  left: 35%;
  animation: blobMove3 18s ease-in-out infinite;
}

@keyframes blobMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

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

@keyframes blobMove3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
}

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

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero .bg-grid {
  z-index: 2;
}

.hero .container {
  z-index: 3;
}

.hero .scroll-indicator {
  z-index: 3;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.5s infinite;
}

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

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 8px auto 8px;
}

.hero .logo-big {
  width: 100px;
  height: 100px;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(6,182,212,0.35));
}

.logo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.25) 0%, transparent 70%);
  animation: logoGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes logoGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 40px rgba(11,15,25,0.9), 0 1px 10px rgba(11,15,25,0.7);
}

.hero h1 .accent {
  color: #67e8f9;
  text-shadow: 0 0 40px rgba(6,182,212,0.5), 0 0 80px rgba(6,182,212,0.25), 0 0 120px rgba(6,182,212,0.1);
}

.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s ease 1.2s both;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { top: 7px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--accent);
  color: #0b0f19;
  box-shadow: 0 4px 20px rgba(6,182,212,0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(6,182,212,0.45);
}

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

.btn-secondary:hover {
  background: rgba(148,163,184,0.08);
  border-color: rgba(148,163,184,0.3);
  transform: translateY(-2px);
}

/* ─── Headings ─── */
h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.accent {
  color: var(--accent);
}

.lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Section Base ─── */
.section {
  padding: 110px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header h2 .accent {
  color: #67e8f9;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ─── Features Grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.35s var(--easing), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  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.4s;
  pointer-events: none;
}

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

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s;
  pointer-events: none;
}

.feature-card:hover::after {
  left: 150%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(6,182,212,0.2);
}

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

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 10px;
  transition: opacity 0.3s;
}

.feature-card:hover .feature-num {
  opacity: 0.35;
}

/* ─── Use Cases ─── */
.usecases {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

@media (max-width: 900px) {
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .usecases-grid {
    grid-template-columns: 1fr;
  }
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.35s var(--easing), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.usecase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  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.4s;
  pointer-events: none;
}

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

.usecase-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(6,182,212,0.07);
  border-color: rgba(6,182,212,0.25);
}

.usecase-card .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  transition: background 0.3s, box-shadow 0.3s;
}

.usecase-card:hover .tag {
  background: rgba(6,182,212,0.18);
  box-shadow: 0 0 12px rgba(6,182,212,0.1);
}

.usecase-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.usecase-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.contact-info h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-info h2 .accent {
  color: #67e8f9;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
}

.benefit div strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.benefit div span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ─── Form ─── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow 0.4s, border-color 0.4s;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(6,182,212,0.2), transparent 40%, rgba(6,182,212,0.1));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

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

.form-card:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(6,182,212,0.06);
  border-color: rgba(6,182,212,0.2);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group label .req {
  color: var(--accent);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.6);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12), 0 0 20px rgba(6,182,212,0.06);
  background: rgba(15,23,42,0.8);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-footer {
  margin-top: 8px;
}

.form-footer .btn {
  width: 100%;
  padding: 14px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}

.form-status.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.form-status.success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--success);
}

.form-status.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--error);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
}

.footer .brand {
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

/* ─── Spinner ─── */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Decorative grid background ─── */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

/* ─── Section Accent Line ─── */
.section-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

/* ─── Section Label ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.section-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.5s infinite;
}

/* ─── Feature Row ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.feature-item:hover {
  background: rgba(21,28,44,0.6);
  border-color: var(--border);
  transform: translateX(4px);
}

.feature-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.feature-item:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(6,182,212,0.15);
  background: rgba(6,182,212,0.15);
}

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

.feature-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── IDE Row ─── */
.ide-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
  align-items: center;
}

.ide-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.ide-feature:last-child {
  margin-bottom: 0;
}

.ide-feature:hover {
  background: rgba(21,28,44,0.6);
  border-color: var(--border);
  transform: translateX(4px);
}

.ide-feature .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.ide-feature:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(6,182,212,0.15);
  background: rgba(6,182,212,0.15);
}

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

.ide-feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ide-feature p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Product Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.35s var(--easing), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  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.4s;
  pointer-events: none;
}

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

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(6,182,212,0.06);
  border-color: rgba(6,182,212,0.25);
}

.product-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}

.product-card:hover .product-logo {
  transform: scale(1.08);
}

.product-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.product-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ─── Competitor Row ─── */
.competitor-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
}

.competitor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  flex: 1;
  max-width: 280px;
  transition: transform 0.35s var(--easing), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.competitor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  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.4s;
  pointer-events: none;
}

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

.competitor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(6,182,212,0.06);
  border-color: rgba(6,182,212,0.25);
}

.competitor-card .comp-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: block;
  object-fit: contain;
  transition: transform 0.3s;
}

.competitor-card:hover .comp-logo {
  transform: scale(1.1);
}

.competitor-card .comp-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.competitor-card .comp-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.client-strip {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.client-logo {
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(0.3);
  transition: opacity 0.3s, filter 0.3s, transform 0.3s;
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-2px);
}

.logo-invert {
  filter: invert(1) brightness(2);
}

.logo-invert:hover {
  filter: invert(1) brightness(2.5);
}

/* ─── Meta Pills ─── */
.meta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.meta-pill:hover {
  border-color: rgba(6,182,212,0.25);
  box-shadow: 0 0 20px rgba(6,182,212,0.06);
  transform: translateY(-2px);
}

.meta-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ─── CTA Benefits ─── */
.cta-benefits {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  background: rgba(21,28,44,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.cta-benefit:hover {
  border-color: rgba(6,182,212,0.2);
  box-shadow: 0 0 20px rgba(6,182,212,0.05);
  transform: translateY(-2px);
}

.cta-benefit svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── Visual Box ─── */
.visual-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s, border-color 0.4s, transform 0.4s;
}

.visual-box:hover {
  box-shadow: var(--shadow-lg), 0 0 60px rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.2);
  transform: translateY(-3px);
}

.visual-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6,182,212,0.08), transparent 70%);
  pointer-events: none;
}

.visual-box img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Layout helper classes (responsive overrides) ─── */
.features-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.feature-row--reversed {
  grid-template-columns: 1.35fr 0.65fr;
}

.ide-row--wide {
  grid-template-columns: 0.65fr 1.35fr;
}

/* ─── Mobile Nav ─── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: rgba(148,163,184,0.08);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--easing), opacity 0.2s;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(11,15,25,0.97);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 16px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

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

.mobile-nav.open {
  display: flex;
  animation: mobileNavSlide 0.22s var(--easing);
}

.mobile-nav a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.mobile-nav a:hover {
  color: var(--text);
  background: rgba(148,163,184,0.08);
}

.mobile-nav .mobile-cta {
  background: var(--accent);
  color: #0b0f19;
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
  border-radius: var(--radius-sm);
}

.mobile-nav .mobile-cta:hover {
  background: var(--accent-hover);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .feature-row, .ide-row,
  .feature-row--reversed, .ide-row--wide {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .features-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .competitor-row {
    flex-direction: column;
    align-items: center;
  }
  .section {
    padding: 80px 0;
  }
  .visual-box {
    min-height: 260px !important;
  }
}

@media (max-width: 640px) {
  .header .container {
    height: 60px;
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    padding: 110px 0 80px;
    min-height: auto;
  }
  .hero .logo-big {
    width: 64px;
    height: 64px;
  }
  .section {
    padding: 56px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .form-card {
    padding: 20px;
  }
  .contact-grid {
    gap: 36px;
  }
  .feature-item:hover, .ide-feature:hover {
    transform: translateX(0);
  }
  .features-grid--3col {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .visual-box {
    min-height: 220px !important;
  }
  .competitor-card {
    max-width: 100%;
    width: 100%;
  }
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--easing);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  transform: scale(0.92);
  transition: transform 0.3s var(--easing);
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(148, 163, 184, 0.1);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(21, 28, 44, 0.85);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent);
  transform: rotate(90deg);
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .meta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .meta-pill {
    justify-content: center;
  }
  .client-strip {
    gap: 20px;
  }
  .client-logo {
    height: 18px;
  }
  .cta-benefits {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }
  .btn {
    padding: 13px 20px;
    font-size: 0.95rem;
  }
}

/* ─── iPhone 14 и малые экраны ≤ 430px ─── */
@media (max-width: 430px) {
  .hero {
    padding: 90px 0 64px;
  }
  .hero h1 {
    font-size: 1.9rem;
    letter-spacing: -0.025em;
  }
  .hero p {
    font-size: 0.97rem;
  }
  .hero .logo-big {
    width: 52px;
    height: 52px;
  }
  .hero-logo-wrap {
    margin: 4px auto 4px;
  }
  .meta-row {
    margin-top: 20px !important;
  }
  .hero-actions {
    margin-top: 28px !important;
  }
  .section {
    padding: 48px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  h2 {
    font-size: 1.5rem;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }
  .feature-card {
    padding: 20px;
  }
  .usecase-card {
    padding: 20px;
  }
  .form-card {
    padding: 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .scroll-indicator {
    display: none;
  }
}
