/* Speed Reading — layout aligned with PokeScannerWebPage (reading-themed palette) */

:root {
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --secondary: #6366f1;
  --accent: #a78bfa;
  --accent-2: #22d3ee;
  --text-primary: #1e1b2e;
  --text-secondary: #5c5a6b;
  --text-muted: #8b8899;
  --background: #ffffff;
  --background-alt: #f4f6fb;
  --border: #e8eaf2;
  --shadow-sm: 0 2px 8px rgba(30, 27, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 27, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(30, 27, 46, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-3xl: 48px;
  --gradient-primary: linear-gradient(
    135deg,
    #0284c7 0%,
    #2563eb 22%,
    #6366f1 45%,
    #7c3aed 68%,
    #0891b2 100%
  );
  --gradient-glow: radial-gradient(
    circle at 30% 20%,
    rgba(56, 189, 248, 0.45) 0%,
    rgba(99, 102, 241, 0.25) 35%,
    transparent 65%
  );
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(
      circle at 50% 50%,
      rgba(56, 189, 248, 0.1) 0%,
      rgba(99, 102, 241, 0.06) 30%,
      rgba(124, 58, 237, 0.04) 60%,
      rgba(8, 145, 178, 0.03) 100%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

/* Navbar — gradient strip like PokeScanner */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--gradient-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.download-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: 8px;
}

.nav-link.download-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.85;
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.05);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #fff 0%,
    rgba(255, 255, 255, 0.88) 40%,
    #e0f2fe 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-2xl);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
  min-width: 200px;
}

.btn-primary {
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
  color: #1d4ed8;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.hero-screenshots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot-main {
  position: relative;
  max-width: 340px;
  width: 100%;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: slideInRight 1s ease-out 0.2s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.screenshot-main img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screenshot-main img.loaded {
  opacity: 1;
}

.hero-icon {
  position: absolute;
  top: -28px;
  right: -18px;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

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

/* Features — light band */
.features {
  padding: 100px 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--background);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.feature-card a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.feature-card a:hover {
  text-decoration: underline;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.feature-card.fade-in-up:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before,
.feature-card.fade-in-up:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* Screenshots */
.screenshots {
  padding: 100px 0;
  background: var(--background-alt);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.screenshot {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.35s ease;
  border: 1px solid var(--border);
  background: var(--background);
}

.screenshot.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.screenshot.fade-in-up:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screenshot img.loaded {
  opacity: 1;
}

/* Download CTA */
.download {
  padding: 100px 0;
  background: var(--gradient-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.5;
}

.download .container {
  position: relative;
  z-index: 1;
}

.download h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.download p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.store-btn svg {
  width: 28px;
  height: 28px;
}

.store-text {
  text-align: left;
  line-height: 1.2;
}

.store-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
}

.store-text span {
  font-size: 1.05rem;
}

/* Footer */
.footer {
  background: var(--background-alt);
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

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

.footer-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

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

.footer-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 400px;
}

.footer-tagline strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-copy {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Privacy / Terms */
.privacy-content {
  padding: 120px 0 80px;
  min-height: 100vh;
  background: var(--background);
}

.privacy-content .container {
  max-width: 760px;
}

.privacy-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.privacy-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text-primary);
}

.privacy-content p,
.privacy-content li {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
}

.privacy-content ul {
  margin: 0 0 20px 22px;
}

.privacy-content a {
  color: var(--primary-dark);
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    order: 1;
  }

  .hero-screenshots {
    order: 2;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-icon {
    right: 50%;
    transform: translateX(calc(50% + 120px));
    animation: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.98) 0%,
      rgba(30, 27, 75, 0.98) 100%
    );
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .nav-link.download-btn {
    margin-left: 0;
    margin-top: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero {
    padding: 110px 0 64px;
  }

  .hero-icon {
    width: 72px;
    height: 72px;
    top: -20px;
    right: 8px;
    transform: none;
  }

  .screenshot-main {
    max-width: 280px;
  }

  .features,
  .screenshots,
  .download {
    padding: 72px 0;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .container,
  .nav-container {
    padding: 0 18px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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