@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/k2d-400.woff2') format('woff2');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/k2d-600.woff2') format('woff2');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/k2d-700.woff2') format('woff2');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/k2d-800.woff2') format('woff2');
}

:root {
  --bg: #0d2b2b;
  --header: #0a2323;
  --card: #122e2e;
  --card-alt: #1e5050;
  --border: #1e4040;
  --border-light: #2a5050;
  --accent: #c8e63a;
  --text: #ffffff;
  --text-sec: #a0c0c0;
  --muted: #5a8a8a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'K2D', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  background: var(--header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
}

.brand img { height: 32px; width: auto; display: block; }

.brand .up { color: var(--accent); }

nav.site-nav { display: flex; gap: 24px; }

nav.site-nav a {
  text-decoration: none;
  color: var(--text-sec);
  font-size: 14px;
  font-weight: 600;
}

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

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero h1 .up { color: var(--accent); }

.hero p.tagline {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 560px;
  margin: 0 auto 36px;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.1s, opacity 0.15s;
}

.store-badge img {
  height: 48px;
  width: auto;
  display: block;
}

.store-badge:hover { opacity: 0.85; }

.store-badge:active { transform: scale(0.97); }

.store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* QR modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 15, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay.open { display: flex; }

body.modal-open { overflow: hidden; }

.modal-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.modal-close svg { width: 20px; height: 20px; }

.modal-close:hover { color: var(--text); }

.modal-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

#qr-box {
  background: #ffffff;
  border-radius: 12px;
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-box.qr-placeholder {
  background: var(--card-alt);
  font-size: 56px;
}

.modal-card p {
  color: var(--text-sec);
  font-size: 14px;
  margin: 0;
}

/* Sections */
section { padding: 64px 0; }

section.alt { background: var(--header); }

h2.section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 8px;
}

p.section-sub {
  text-align: center;
  color: var(--text-sec);
  max-width: 520px;
  margin: 0 auto 48px;
}

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

.features-primary {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.feature-big {
  background: var(--card-alt);
  border-color: var(--border-light);
}

.feature-big h3 { font-size: 19px; }

.feature-big .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dark, #1a3f1a);
}

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

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dark, #1a3f1a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card .icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  display: block;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-sec);
  font-size: 14px;
}

/* CTA */
.cta {
  text-align: center;
}

.cta h2 { margin-bottom: 12px; }

.cta p { color: var(--text-sec); margin-bottom: 32px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site nav { display: flex; gap: 20px; }

footer.site a { text-decoration: none; color: var(--muted); }

footer.site a:hover { color: var(--text-sec); }

/* Legal pages */
.legal-page { padding: 56px 0 96px; }

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.legal-page h1 {
  font-size: 30px;
  margin: 0 0 4px;
}

.legal-page .subtitle {
  color: var(--text-sec);
  margin: 0 0 4px;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 40px;
}

.legal-page h2 {
  font-size: 19px;
  margin: 36px 0 12px;
  color: var(--accent);
}

.legal-page h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}

.legal-page p, .legal-page li {
  color: var(--text-sec);
  font-size: 15px;
}

.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  nav.site-nav { display: none; }
}
