/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
}

body,
[data-reveal] {
  transition: opacity 0.5s ease, transform 0.6s ease;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  color: #0f172a;
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #93c5fd;
}

.container {
  max-width: min(90vw, 72rem);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
}

p {
  margin: 0;
  color: #1e293b;
  font-size: 1.0625rem;
}

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3rem);
  margin: clamp(1.5rem, 5vw, 4rem) auto;
  max-width: min(92vw, 64rem);
  border-radius: 2.5rem;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.35) 45%, transparent 100%);
  box-shadow: 0 24px 60px rgba(15,23,42,0.12);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.5s ease;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(14,165,233,0.12));
  opacity: 0.75;
  z-index: -2;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgba(255,255,255,0.82);
  z-index: -1;
}

.header {
  display: flex;
  justify-content: center;
}

.logo {
  max-width: clamp(6rem, 18vw, 10rem);
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(15,23,42,0.12));
}

.subheading {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: #1e293b;
  max-width: 42rem;
  margin: 0 auto;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.download-actions {
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin: 0 auto;
  max-width: clamp(20rem, 80vw, 32rem);
}

.download-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.store-badge img {
  display: block;
  width: clamp(160px, 40vw, 200px);
  height: auto;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
}

.qr-popover {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translate(-50%, 8px);
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(15,23,42,0.12);
  width: 190px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.qr-popover__heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.qr-popover img {
  width: 144px;
  height: 144px;
  border-radius: 1rem;
  background: #fff;
  padding: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(148,163,184,0.25);
}

.download-item:hover .qr-popover,
.download-item:focus-within .qr-popover {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.download-hint {
  margin: 0;
  font-size: 0.95rem;
  color: #1e293b;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f8fafc;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  box-shadow: 0 16px 30px rgba(37,99,235,0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 20px 40px rgba(29,78,216,0.26);
}

.features {
  background: transparent;
}

.features ul {
  list-style: none;
  padding: 0;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  display: grid;
  gap: 1.5rem;
}

.features li {
  background: rgba(255,255,255,0.75);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(15,23,42,0.12);
  color: #1e293b;
  font-weight: 500;
  line-height: 1.5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.contact {
  background: rgba(37,99,235,0.08);
  border-radius: 2rem 2rem 0 0;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  display: grid;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.email-link:hover {
  color: #1d4ed8;
  text-decoration-color: rgba(29,78,216,0.5);
}

form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 0.9rem;
  background: #ffffff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
  outline: none;
}

form button {
  justify-self: start;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f8fafc;
  border: none;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 30px rgba(37,99,235,0.24);
}

form button:hover,
form button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(29,78,216,0.26);
}

footer {
  text-align: center;
  margin-top: clamp(4rem, 6vw, 6rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: #0f172a;
  color: #e2e8f0;
}

footer h2 {
  color: inherit;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
}

footer a {
  color: #e2e8f0;
  text-decoration: underline;
  text-decoration-color: rgba(226,232,240,0.4);
  margin: 0 0.4rem;
}

footer a:hover {
  color: #93c5fd;
  text-decoration-color: rgba(147,197,253,0.6);
}

@media (hover: hover) and (pointer: fine) {
  .hero:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 90px rgba(15,23,42,0.16);
  }

  .features li:hover,
  .features li:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 28px 65px rgba(15,23,42,0.14);
  }

  .contact:hover,
  .contact:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15,23,42,0.12);
  }
}

@media (min-width: 768px) {
  .download-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 1.5rem;
  }

  .download-item {
    align-items: stretch;
  }

  .download-hint {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero,
  .features li,
  .contact,
  .button,
  .email-link,
  input,
  textarea,
  form button,
  .download-item,
  .qr-popover {
    transition: none !important;
  }
}

@media (min-width: 1024px) {
  body {
    line-height: 1.7;
  }

  .hero-links {
    gap: 1rem;
  }

  .features ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact {
    padding: clamp(3rem, 4vw, 4rem);
  }
}
