/* ==========================================================================
   GenBi Systems — Design System & Landing Page Styles
   A premium, dark-mode enterprise AI landing page.
   ========================================================================== */

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

:root {
  /* Palette */
  --bg-primary: #06060e;
  --bg-secondary: #0c0c1d;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.25);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b85;

  --accent-blue: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --accent-glow: 0 0 60px rgba(99, 102, 241, 0.15), 0 0 120px rgba(139, 92, 246, 0.08);

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Dark mode */
  color-scheme: dark;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

/* ---------- Background Effects ---------- */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  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-size: 256px 256px;
}

.bg-gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-gradient-orb--top {
  width: 800px;
  height: 800px;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

.bg-gradient-orb--mid {
  width: 600px;
  height: 600px;
  top: 55%;
  right: -200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.bg-gradient-orb--bottom {
  width: 700px;
  height: 700px;
  bottom: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  background: rgba(6, 6, 14, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.4s var(--ease-out-expo);
}

.nav--scrolled {
  background: rgba(6, 6, 14, 0.92);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav__brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
  letter-spacing: 0.02em;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  background: var(--accent-gradient);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  letter-spacing: 0.02em;
}

.nav__cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 3rem) clamp(1.5rem, 5vw, 3rem) 4rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 30%, #a0a0b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: white;
  background: var(--accent-gradient);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.35s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.4);
}

.btn-primary__arrow {
  transition: transform 0.3s var(--ease-spring);
}

.btn-primary:hover .btn-primary__arrow {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-glass);
}

/* ---------- Hero Visual / Video ---------- */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 960px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--accent-glow), 0 32px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.3), transparent 60%);
  -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;
  pointer-events: none;
}

.hero__visual-inner {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
}

.hero__visual-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-glass);
}

.hero__visual-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hero__visual-dot--red { background: #ff5f57; }
.hero__visual-dot--yellow { background: #ffbd2e; }
.hero__visual-dot--green { background: #28c840; }

.hero__visual-url {
  flex: 1;
  margin-left: 12px;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.hero__visual-content {
  position: relative;
  aspect-ratio: 16 / 9.5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__visual-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video play overlay */
.hero__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(6, 6, 14, 0.35);
  cursor: pointer;
  transition: background 0.35s;
  z-index: 2;
}

.hero__play-overlay:hover {
  background: rgba(6, 6, 14, 0.2);
}

.hero__play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-spring), background 0.3s;
}

.hero__play-overlay:hover .hero__play-btn {
  transform: scale(1.1);
  background: rgba(99, 102, 241, 0.3);
}

.hero__play-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
  margin-left: 3px;
}

.hero__play-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Social Proof / Logos ---------- */
.social-proof {
  position: relative;
  z-index: 1;
  padding: 4rem clamp(1.5rem, 5vw, 3rem) 5rem;
  text-align: center;
}

.social-proof__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.social-proof__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4rem);
  flex-wrap: wrap;
  opacity: 0.35;
}

.social-proof__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ---------- Features Section ---------- */
.features {
  position: relative;
  z-index: 1;
  padding: 6rem clamp(1.5rem, 5vw, 3rem);
}

.features__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-label__line {
  width: 24px;
  height: 1px;
  background: var(--accent-blue);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 4rem;
  line-height: 1.7;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  padding: 2.2rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-spring);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.3rem;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- How It Works ---------- */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 6rem clamp(1.5rem, 5vw, 3rem) 8rem;
}

.how-it-works__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.step-card {
  position: relative;
  padding: 2.2rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-gradient);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.step-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.step-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- CTA Section ---------- */
.cta {
  position: relative;
  z-index: 1;
  padding: 8rem clamp(1.5rem, 5vw, 3rem);
}

.cta__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 3rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(6, 6, 14, 0) 100%);
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
}

.cta__subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}

.cta__button {
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--border-glass);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer__link:hover {
  color: var(--text-secondary);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* ---------- Typing Cursor ---------- */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent-blue);
  margin-left: 4px;
  animation: blink-cursor 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Glow line dividers ---------- */
.glow-divider {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features__grid,
  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* Mobile menu overlay */
  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 6, 14, 0.97);
    backdrop-filter: blur(24px);
    padding: 2rem;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    z-index: 99;
  }

  .nav__links--open .nav__link {
    font-size: 1.1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .cta__inner {
    padding: 3rem 1.5rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero__visual-toolbar {
    padding: 10px 14px;
  }

  .hero__visual-url {
    display: none;
  }

  .hero__play-btn {
    width: 60px;
    height: 60px;
  }

  .hero__play-btn svg {
    width: 22px;
    height: 22px;
  }

  .social-proof__logos {
    gap: 1.5rem;
  }

  .social-proof__logo {
    font-size: 0.9rem;
  }
}
