/* =========================================
   Signature Extractor — Landing Page
   ========================================= */

:root {
  --color-bg: #0b0e1a;
  --color-bg-alt: #111633;
  --color-surface: #181d3a;
  --color-primary: #FF5252;
  --color-primary-hover: #ff3333;
  --color-text: #f0f0f5;
  --color-text-muted: #a0a4c0;
  --color-accent-glow: rgba(255, 82, 82, 0.25);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --section-pad: 120px;
  --section-pad-mobile: 72px;
}

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

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 24px var(--color-accent-glow);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 6px 32px rgba(255, 82, 82, 0.4);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn--lg .btn__icon {
  width: 24px;
  height: 24px;
}

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(11, 14, 26, 0.55) 0%,
      rgba(11, 14, 26, 0.75) 50%,
      rgba(11, 14, 26, 0.95) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  margin-bottom: 20px;
  font-size: clamp(2rem, 7vw, 5rem);
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 60%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-text-muted);
  margin-bottom: 36px;
  font-weight: 400;
}

/* ===== FEATURES ===== */

.features {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.feature {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 100px;
  padding: 0 24px;
}

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

.feature--right {
  flex-direction: row;
}

.feature--left {
  flex-direction: row-reverse;
}

.feature__image-wrap {
  flex: 0 0 45%;
  max-width: 380px;
}

.feature__image-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 82, 82, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature__image-wrap img:hover {
  transform: scale(1.03);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 82, 82, 0.1);
}

.feature__text {
  flex: 1;
}

.feature__text h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature__text p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 460px;
}

.feature--left .feature__text {
  text-align: right;
}

.feature--left .feature__text p {
  margin-left: auto;
}

/* ===== SCREENSHOTS (infinite scroll) ===== */

.screenshots {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.screenshots__track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.screenshots__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-loop 60s linear infinite;
}


.screenshots__track img {
  height: 480px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

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

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

.cta {
  padding: var(--section-pad) 24px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 82, 82, 0.08) 0%, transparent 70%),
    var(--color-bg);
  text-align: center;
  display: flex;
  justify-content: center;
}

.cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta__sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

/* ===== CONTACT ===== */

.contact {
  padding: var(--section-pad) 24px;
  background: var(--color-bg-alt);
  text-align: center;
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  margin-top: -40px;
}

.contact__email {
  display: inline-block;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  padding: 12px 32px;
  border: 2px solid rgba(255, 82, 82, 0.3);
  border-radius: 60px;
  transition: all 0.25s ease;
}

.contact__email:hover {
  background: rgba(255, 82, 82, 0.1);
  border-color: var(--color-primary);
  box-shadow: 0 0 24px var(--color-accent-glow);
}

/* ===== FOOTER ===== */

.footer {
  padding: 32px 24px;
  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer__sep {
  color: rgba(255, 255, 255, 0.15);
}

/* ===== SCROLL-REVEAL ANIMATIONS ===== */

.feature {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */

@media (max-width: 860px) {
  :root {
    --section-pad: var(--section-pad-mobile);
  }

  .feature,
  .feature--right,
  .feature--left {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    margin-bottom: 72px;
  }

  .feature__image-wrap {
    flex: none;
    max-width: 300px;
    margin: 0 auto;
  }

  .feature--left .feature__text {
    text-align: center;
  }

  .feature--left .feature__text p {
    margin-left: auto;
    margin-right: auto;
  }

  .feature__text p {
    margin-left: auto;
    margin-right: auto;
  }

  .screenshots__track img {
    height: 380px;
  }

  .screenshots__track {
    animation-duration: 40s;
  }

  .footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 32px 16px;
  }

  .screenshots__track img {
    height: 300px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .feature {
    margin-bottom: 56px;
  }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .screenshots__track {
    animation: none;
  }

  .feature {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
