/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #00FF66;
  --primary-dark: #00cc52;
  --primary-light: #00ff6699;
  --primary-lighter: #00ff6615;
  --accent: #00FF66;
  --bg: #111113;
  --bg-card: #1a1a1c;
  --bg-card-hover: #1f1f22;
  --text: #FAFAFA;
  --text-muted: #888890;
  --border: #2a2a2e;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.header-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-brand span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-download {
  background: var(--primary);
  color: #050505 !important;
  border-radius: 8px;
  padding: 8px 18px !important;
  font-weight: 600;
  transition: background 0.2s !important;
}

.btn-download:hover {
  background: var(--primary-dark) !important;
}

/* ===== Hero ===== */
.hero {
  padding: 72px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.25);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--primary);
}

.hero-text > p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #050505;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(0, 255, 102, 0.06);
  transform: translateY(-2px);
}

/* ===== QR Row ===== */
.qr-row {
  display: flex;
  gap: 20px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qr-item canvas,
.qr-item img {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 6px;
  background: var(--bg-card);
  display: block;
}

/* ===== Hero Visual ===== */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 102, 0.12) 0%, transparent 70%);
  border-radius: 32px;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 102, 0.2);
  box-shadow:
    0 0 0 1px rgba(0, 255, 102, 0.1),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 255, 102, 0.12);
  position: relative;
}

/* ===== Screenshots Section ===== */
.screenshots-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.screenshots-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  justify-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 4px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.screenshot-frame {
  flex-shrink: 0;
  width: clamp(140px, 18vw, 200px);
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  scroll-snap-align: start;
}

.screenshot-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 255, 102, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 255, 102, 0.3);
}

.screenshot-frame .notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 18px;
  background: #000;
  border-radius: 100px;
  z-index: 2;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Features Section ===== */
.features {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border);
}

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

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: rgba(0, 255, 102, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-lighter);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 32px;
  text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0, 255, 102, 0.05) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1rem;
}

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

/* ===== Footer ===== */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.footer-brand span {
  font-weight: 700;
  font-size: 0.95rem;
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* ===== Privacy / Support Pages ===== */
.policy-page {
  flex: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

.policy-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.policy-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.policy-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
}

.policy-page p,
.policy-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.policy-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.policy-page a {
  color: var(--primary);
  text-decoration: none;
}

.policy-page a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .qr-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  header {
    padding: 0 20px;
  }

  .hero {
    padding: 48px 20px 60px;
  }

  .header-nav a:not(.btn-download) {
    display: none;
  }

  .screenshots-inner {
    padding: 0 20px;
  }

  .features {
    padding: 60px 20px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  footer {
    padding: 32px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
