:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --panel: #142039;
  --panel-border: #233458;
  --text: #e8eef8;
  --muted: #9aabc6;
  --accent: #3aa0ff;
  --accent-ink: #04111f;
  --green: #2ecc71;
  --amber: #f5b72e;
  --red: #ff4d4f;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.lang {
  font-size: 14px; color: var(--muted); border: 1px solid var(--panel-border);
  padding: 6px 12px; border-radius: 999px;
}
.lang:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(58,160,255,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(46,204,113,.07), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--panel-border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 40px 0 72px;
}
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app-id img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.app-id .name { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.app-id .tag { color: var(--accent); font-weight: 600; font-size: 16px; }
h1 {
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 18px; font-weight: 800;
}
.lead { color: var(--muted); font-size: 19px; margin: 0 0 30px; max-width: 34em; }

.store { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 17px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 24px rgba(58,160,255,.35);
}
.store-btn:hover { text-decoration: none; filter: brightness(1.08); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn.soon {
  background: transparent; color: var(--text); box-shadow: none;
  border: 1.5px dashed var(--accent); cursor: default;
}
.store-btn.soon svg { color: var(--accent); }
.store-note { color: var(--muted); font-size: 14px; }

.hero-shot { display: flex; justify-content: center; }
.hero-shot img {
  width: min(340px, 100%); height: auto; border-radius: 28px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(58,160,255,.08);
}

/* Sections */
section { padding: 80px 0; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.intro { color: var(--muted); max-width: 40em; margin: 0 0 40px; }

.features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.feature {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(58,160,255,.12); color: var(--accent); margin-bottom: 14px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Screenshots */
.shots-section { background: var(--bg-2); border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 20px 18px; margin: 0 -20px;
  scrollbar-width: thin; scrollbar-color: var(--panel-border) transparent;
  list-style: none;
}
.shots li { flex: none; scroll-snap-align: start; }
.shots img {
  display: block; width: 240px; height: auto; border-radius: 20px;
  border: 1px solid var(--panel-border); background: var(--panel);
}
.ipad { margin-top: 36px; }
.ipad img {
  display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto;
  border-radius: 20px; border: 1px solid var(--panel-border);
}

/* Built by / CTA */
.built { text-align: center; }
.built .intro { margin-left: auto; margin-right: auto; }
.built .store { align-items: center; }

/* Footer */
footer { border-top: 1px solid var(--panel-border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.disclaimer { margin: 22px 0 0; font-size: 13px; line-height: 1.5; max-width: 60em; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 56px; }
  .hero-shot img { width: min(300px, 80vw); }
  section { padding: 56px 0; }
  .shots img { width: 200px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .shots { padding: 4px 16px 18px; margin: 0 -16px; }
  .app-id img { width: 72px; height: 72px; border-radius: 17px; }
  .app-id .name { font-size: 26px; }
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
