/* ==========================================================================
   Zip Merger — Design Tokens
   ========================================================================== */

:root {
  --void: #080E1A;
  --deep-blue: #142240;
  --liquid-blue: #3D7BF5;
  --vivid-purple: #7B5CF6;
  --glass: rgba(100, 150, 255, 0.12);
  --glass-edge: rgba(180, 200, 255, 0.18);
  --accent-glow: rgba(77, 159, 255, 0.6);
  --text-primary: rgba(230, 236, 255, 0.95);
  --text-secondary: rgba(180, 195, 230, 0.72);
  --text-muted: rgba(140, 160, 200, 0.55);

  --color-drive-blue: #4285F4;
  --color-drive-green: #34A853;
  --color-drive-red: #EA4335;
  --color-drive-yellow: #F4B400;
  --color-drive-blue-light: #82B1FF;
  --color-drive-green-light: #81C784;
  --color-drive-red-light: #FF8A80;
  --color-drive-yellow-light: #FFE57F;
  --color-drive-blue-dark: #1A73E8;
  --color-drive-green-dark: #00C853;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  --text-hero: clamp(2.5rem, 5vw, 4rem);
  --text-section: clamp(1.5rem, 3vw, 2.25rem);
  --text-body: 1rem;
  --text-caption: 0.8125rem;

  --max-width: 1120px;
  --space-unit: 8px;
  --radius-glass: 16px;
  --radius-hero: 24px;
  --nav-height: 64px;

  --transition-fast: 180ms ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.875em;
  color: var(--liquid-blue);
  background: rgba(61, 123, 245, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: calc(var(--space-unit) * 3);
}

.section {
  padding-block: calc(var(--space-unit) * 10);
}

.section + .section {
  padding-top: calc(var(--space-unit) * 6);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: calc(var(--space-unit) * 6);
}

/* ==========================================================================
   Glass Panel
   ========================================================================== */

.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-glass);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              backdrop-filter var(--transition-fast);
}

.nav--scrolled {
  background: rgba(8, 14, 26, 0.72);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--glass-edge);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.nav__cta {
  font-size: var(--text-caption);
  font-weight: 500;
  padding: calc(var(--space-unit) * 1) calc(var(--space-unit) * 2.5);
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

.nav__cta:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 0 16px rgba(61, 123, 245, 0.2);
  transform: translateY(-1px);
}

.nav__cta:active {
  transform: translateY(0);
}

.nav__cta:focus-visible {
  outline: 2px solid var(--liquid-blue);
  outline-offset: 2px;
}

/* ==========================================================================
   CTA Buttons
   ========================================================================== */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3.5);
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              border-color var(--transition-fast),
              background var(--transition-fast);
}

.cta-button--primary {
  background: linear-gradient(135deg, var(--color-drive-blue), var(--color-drive-green));
  border-color: rgba(180, 200, 255, 0.25);
  box-shadow: 0 2px 12px rgba(61, 123, 245, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(61, 123, 245, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta-button--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 8px rgba(61, 123, 245, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-button--secondary {
  background: transparent;
  border-color: var(--glass-edge);
  color: var(--text-secondary);
}

.cta-button--secondary:hover {
  border-color: var(--accent-glow);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.cta-button--secondary:active {
  transform: translateY(0);
}

.cta-button:focus-visible {
  outline: 2px solid var(--liquid-blue);
  outline-offset: 3px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: calc(var(--nav-height) + var(--space-unit) * 8);
  padding-bottom: calc(var(--space-unit) * 8);
}

.hero__grid {
  display: grid;
  gap: calc(var(--space-unit) * 6);
  align-items: center;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.goo-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 16 / 10;
  filter: url(#goo);
}

.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.orb--left {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 15%;
  margin-top: -60px;
  background: radial-gradient(circle at 35% 35%,
    #4285F4 0%,
    #34A853 70%,
    rgba(244, 180, 0, 0.4) 100%);
  animation: orb-left 6s ease-in-out infinite;
}

.orb--right {
  width: 110px;
  height: 110px;
  top: 50%;
  right: 15%;
  margin-top: -55px;
  background: radial-gradient(circle at 65% 35%,
    #34A853 0%,
    #4285F4 65%,
    rgba(234, 67, 53, 0.4) 100%);
  animation: orb-right 6s ease-in-out infinite;
}

.orb--bridge {
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  margin-top: -40px;
  margin-left: -40px;
  background: radial-gradient(circle at 50% 50%,
    rgba(66, 133, 244, 0.9) 0%,
    #34A853 60%,
    transparent 100%);
  opacity: 0;
  animation: orb-bridge 6s ease-in-out infinite;
}

@keyframes orb-left {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  40%, 60% {
    transform: translateX(calc(50% + 20px)) scale(1.05);
  }
}

@keyframes orb-right {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  40%, 60% {
    transform: translateX(calc(-50% - 20px)) scale(1.05);
  }
}

@keyframes orb-bridge {
  0%, 30%, 70%, 100% {
    opacity: 0;
    transform: scale(0.6);
  }
  45%, 55% {
    opacity: 0.85;
    transform: scale(1.1);
  }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: calc(var(--space-unit) * 2.5);
}

.hero__subhead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: calc(var(--space-unit) * 4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 1.5);
}

/* ==========================================================================
   Benefits
   ========================================================================== */

.benefits {
  padding-block: calc(var(--space-unit) * 4);
}

.benefits__list {
  display: grid;
  gap: calc(var(--space-unit) * 2);
}

.benefits__chip {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 0.5);
  padding: calc(var(--space-unit) * 2.5) calc(var(--space-unit) * 3);
}

.benefits__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.benefits__text {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  line-height: 1.5;
}

.benefits__text code {
  font-size: 0.8125em;
}

/* ==========================================================================
   Problem
   ========================================================================== */

.problem__card {
  padding: calc(var(--space-unit) * 4);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 2);
}

.problem__text {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 65ch;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__list {
  display: grid;
  gap: calc(var(--space-unit) * 2);
}

.faq__item {
  padding: calc(var(--space-unit) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1.5);
}

.faq__question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.faq__answer {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 65ch;
}

/* ==========================================================================
   How It Works — Flow Steps
   ========================================================================== */

.steps {
  display: grid;
  gap: calc(var(--space-unit) * 3);
  position: relative;
}

.step {
  display: flex;
  gap: calc(var(--space-unit) * 2.5);
  padding: calc(var(--space-unit) * 3);
  position: relative;
}

.step__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--liquid-blue);
  background: rgba(61, 123, 245, 0.12);
  border: 1px solid rgba(61, 123, 245, 0.25);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-bottom: calc(var(--space-unit) * 0.75);
}

.step__text {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 36ch;
}

/* Vertical connector (mobile default) */
.steps::before {
  content: "";
  position: absolute;
  left: calc(var(--space-unit) * 3 + 19px);
  top: 52px;
  bottom: 52px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--liquid-blue),
    var(--vivid-purple)
  );
  opacity: 0.45;
  z-index: 0;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta__card {
  text-align: center;
  padding: calc(var(--space-unit) * 8) calc(var(--space-unit) * 4);
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: calc(var(--space-unit) * 1.5);
}

.final-cta__subhead {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  margin-bottom: calc(var(--space-unit) * 4);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding-block: calc(var(--space-unit) * 6);
  border-top: 1px solid rgba(180, 200, 255, 0.08);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space-unit) * 2);
}

.footer__copy,
.footer__tagline,
.footer__req {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.footer__tagline {
  flex: 1;
  text-align: center;
}

@media (max-width: 767px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__tagline {
    flex: none;
  }
}

/* ==========================================================================
   Responsive — Tablet+
   ========================================================================== */

@media (min-width: 768px) {
  .footer__inner {
    flex-wrap: nowrap;
  }

  .footer__tagline {
    text-align: center;
  }

  .benefits__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--space-unit) * 2);
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Horizontal connector */
  .steps::before {
    left: calc(16.67% + 20px);
    right: calc(16.67% + 20px);
    top: 38px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(
      to right,
      var(--liquid-blue),
      var(--vivid-purple)
    );
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--space-unit) * 8);
  }

  .hero__visual {
    order: -1;
  }

  .goo-stage {
    width: 100%;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb--left,
  .orb--right,
  .orb--bridge {
    animation: none;
  }

  .orb--left {
    transform: translateX(calc(50% + 10px));
  }

  .orb--right {
    transform: translateX(calc(-50% - 10px));
  }

  .orb--bridge {
    opacity: 0.7;
    transform: scale(1);
  }

  .cta-button,
  .nav__cta {
    transition: none;
  }
}

html.reduced-motion .orb--left,
html.reduced-motion .orb--right,
html.reduced-motion .orb--bridge {
  animation: none;
}

html.reduced-motion .orb--left {
  transform: translateX(calc(50% + 10px));
}

html.reduced-motion .orb--right {
  transform: translateX(calc(-50% - 10px));
}

html.reduced-motion .orb--bridge {
  opacity: 0.7;
  transform: scale(1);
}

html.reduced-motion {
  scroll-behavior: auto;
}

html.reduced-motion .cta-button,
html.reduced-motion .nav__cta {
  transition: none;
}
