/* Reset and Variables */
:root {
  --bg-color: #17162C;
  --bg-card: #25243E;
  --text-primary: #FFFFFF;
  --text-secondary: #9BA1B0;

  --accent-blue: #1D729F;
  --accent-gold: #A3832B;
  --accent-purple: #5B39A3;
  --accent-green: #247D46;
}

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

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--bg-card);
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-accent {
  background-color: var(--accent-blue);
}

/* Header */
header {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #FFFFFF;
  padding: 4px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 5rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero p {
  margin: 0 auto 2.5rem;
  font-size: 1.25rem;
  max-width: 700px;
}

/* Screenshots Showcase */
.showcase {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0 5rem;
  flex-wrap: wrap;
}

.app-screenshot {
  width: 250px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 4px solid var(--bg-card);
}

/* Split Hero */
.hero-split {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  text-align: left;
}

.hero-split .hero-copy {
  max-width: 560px;
}

.hero-split .hero-copy p {
  margin: 0 0 2.5rem;
}

.hero-screenshot {
  width: 300px;
}

/* Feature Blocks (full-width intro + screenshot strip) */
.feature-block {
  padding: 4rem 0 2rem;
}

.feature-block-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.feature-block-header p {
  max-width: none;
}

.screen-strip {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
}

.scroller-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 2rem 0;
}

.scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 calc(50vw - 125px); /* Centers the 250px screenshot */
  scrollbar-width: none;
}

.scroller::-webkit-scrollbar {
  display: none;
}

.entry {
  scroll-snap-align: center;
  flex: 0 0 auto;
}

.screen-strip figure {
  text-align: center;
}

.screen-strip .app-screenshot {
  width: 220px;
}

.screen-strip figcaption {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Alternating Feature Rows */
.feature-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 0;
  flex-wrap: wrap;
}

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

.feature-row-copy {
  max-width: 480px;
}

.feature-row-copy h2 {
  font-size: 2rem;
}

.feature-row-copy p {
  max-width: none;
}

.feature-row .app-screenshot {
  width: 260px;
}

.screen-pair {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.screen-pair .app-screenshot {
  width: 230px;
}

.fine-print {
  font-size: 0.95rem;
  font-style: italic;
}

.feature-row-copy a,
.feature-card a {
  color: #7dd3fc;
  font-weight: 500;
}

/* Closing CTA */
.closing-cta {
  padding: 5rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing-cta p {
  margin: 0 auto 2rem;
}

/* Features Grid */
.features {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(37, 36, 62, 0.7); /* Hex #25243E equivalent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(37, 36, 62, 0.85);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.icon-blue {
  background-color: var(--accent-blue);
}

.icon-gold {
  background-color: var(--accent-gold);
}

.icon-purple {
  background-color: var(--accent-purple);
}

.icon-green {
  background-color: var(--accent-green);
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Legal Pages (privacy policy, terms) */
.legal {
  padding: 2rem 0;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2.5rem;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.legal p {
  max-width: none;
  margin-bottom: 1rem;
}

.legal ul {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 0 0 1.5rem 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal a {
  color: #7dd3fc;
  font-weight: 500;
}

.legal-updated {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Confirmed Page */
.confirmed-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.confirmed-card {
  background: var(--bg-card);
  padding: 4rem 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.confirmed-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 4rem 0 2rem;
  }

  .app-screenshot {
    width: 200px;
  }

  .hero-split {
    text-align: center;
    gap: 2.5rem;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem 0;
    text-align: center;
  }

  .screen-strip .app-screenshot,
  .screen-pair .app-screenshot {
    width: 180px;
  }
}

/* Scroll-Driven Animations */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @keyframes carousel-animate {
    0% { scale: 0.85; opacity: 0.5; }
    50% { scale: 1; opacity: 1; }
    100% { scale: 0.85; opacity: 0.5; }
  }

  .scroller > .entry {
    animation: carousel-animate auto linear both;
    animation-timeline: view(inline);
  }

  @keyframes reveal-animate {
    from {
      opacity: 0;
      transform: translateY(60px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .reveal-on-scroll {
    animation: reveal-animate auto both;
    animation-timeline: view(block);
    animation-range: entry 10% cover 25%;
  }
}

/* Fallback JS classes for reveal-on-scroll */
.reveal-on-scroll.js-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.js-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}