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

:root {
  --bg-primary: #060b0a;
  --bg-secondary: #0a100e;
  --bg-card: rgba(16, 32, 28, 0.6);
  --bg-card-hover: rgba(22, 44, 38, 0.7);
  --text-primary: #ecf5f2;
  --text-secondary: #9eb8b0;
  --text-muted: #5e7a72;
  --accent: #4dd6a8;
  --accent-secondary: #38b088;
  --accent-glow: rgba(77, 214, 168, 0.15);
  --accent-light: #7ee8c4;
  --border: rgba(77, 214, 168, 0.07);
  --border-light: rgba(77, 214, 168, 0.15);
  --gradient-accent: linear-gradient(135deg, #38b088 0%, #4dd6a8 50%, #7ee8c4 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(56, 176, 136, 0.2) 0%, rgba(77, 214, 168, 0.05) 100%);
  --shadow-glow: 0 0 60px rgba(77, 214, 168, 0.08);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(77, 214, 168, 0.06);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-heading: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover {
  color: var(--accent-light);
}

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

/* Layout */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 56px 0;
  position: relative;
}

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(6, 11, 10, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.nav-logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero */

.hero {
  padding: 160px 0 128px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  max-width: 1600px;
  height: 800px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(77, 214, 168, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(56, 176, 136, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 30%, rgba(126, 232, 196, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(77, 214, 168, 0.08);
  border: 1px solid rgba(77, 214, 168, 0.15);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.125rem, 7vw, 4.875rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  position: relative;
}

.hero h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.175rem, 2.2vw, 1.325rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
}

.hero-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 14px;
}

.hero-cta img {
  display: block;
  width: auto;
  height: 54px;
}

.hero-requirement {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Section headings */

.section-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.125rem, 4.5vw, 2.875rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.175rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(77, 214, 168, 0.12) 50%, transparent 100%);
  border: none;
  margin: 0;
}

/* App screenshots */

.screenshots {
  scroll-margin-top: 100px;
}

.screenshots .section-header {
  margin-bottom: 48px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.screenshot-card {
  min-width: 0;
  padding-top: 16px;
  text-align: center;
}

.screenshot-link {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(100%, 280px);
  margin: 0 auto;
  padding: 8px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1c382f, #080f0c);
  box-shadow:
    0 30px 80px rgba(77, 214, 168, 0.15),
    0 0 0 1px rgba(126, 232, 196, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: screenshot-float 7s ease-in-out infinite;
}

.screenshot-link::before {
  content: "";
  position: absolute;
  inset: -12% -24%;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 64%);
  pointer-events: none;
}

.screenshot-card:nth-child(2) .screenshot-link {
  animation-delay: -2.3s;
}

.screenshot-card:nth-child(3) .screenshot-link {
  animation-delay: -4.6s;
}

@keyframes screenshot-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.screenshot-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.screenshot-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 1284 / 2778;
  border-radius: 36px;
  background: #fff;
}

.screenshot-card figcaption {
  max-width: 280px;
  margin: 32px auto 0;
}

.screenshot-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.screenshot-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

/* Features */

.features {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, background 0.3s, transform 0.25s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(77, 214, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.175rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* How It Works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 214, 168, 0.15), rgba(77, 214, 168, 0.15), transparent);
}

.step {
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid rgba(77, 214, 168, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 500;
  color: var(--accent-light);
  position: relative;
  padding-bottom: 8px;
  box-shadow: 0 0 32px rgba(77, 214, 168, 0.08);
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Footer */

.footer {
  padding: 56px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 300px;
  margin-top: 10px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

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

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-legal {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-legal p + p {
  margin-top: 4px;
}

/* Legal pages */

.legal {
  padding: 140px 0 80px;
}

.legal h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 12px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 48px;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 40px 0 12px;
  color: var(--text-primary);
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal a {
  color: var(--accent);
}

/* Support page */

.support {
  padding: 140px 0 80px;
}

.support h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
}

.support > .container > p {
  color: var(--text-secondary);
  font-size: 1.175rem;
  text-align: center;
  margin-bottom: 56px;
}

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

.faq-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.faq-item {
  margin-bottom: 24px;
}

.faq-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

/* Responsive */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 44px 0;
  }

  .nav-links {
    display: none;
  }

  .screenshots-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 340px;
    gap: 44px;
  }

  .screenshot-link {
    width: min(100%, 260px);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .steps::before {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
  }

  .hero {
    padding: 128px 0 88px;
  }
}

@media (max-width: 420px) {
  .screenshot-link {
    width: min(100%, 240px);
    border-radius: 40px;
  }

  .screenshot-link img {
    border-radius: 32px;
  }
}

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