:root {
  --bg: #050814;
  --bg-alt: #0c1122;
  --card-bg: #10172f;
  --accent: #3fb5ff;
  --accent-flag: #f59e0b; /* amber */
  --accent-capital: #a78bfa; /* violet */
  --accent-soft: rgba(63, 181, 255, 0.14);
  --text: #f7f7ff;
  --muted: #9ca3c7;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --max-width: 1080px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #131c3a 0, #050814 55%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: radial-gradient(circle at top, #111827 0, #050814 70%);
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.92),
    rgba(5, 8, 20, 0.55)
  );
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.simple {
  position: static;
  backdrop-filter: none;
  background: #050814;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

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

.logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #4adeff, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.4);
}

/* Real app icon in header */
.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px; /* subtle squircle feel */
  display: block;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.nav a:hover::after {
  width: 100%;
}

.brand-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

/* Hero */

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

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin: 0 0 16px;
}

/* Animated swap word in hero */
.swap-word {
  display: inline-block;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.accent-map { color: var(--accent); }
.accent-flag { color: var(--accent-flag); }
.accent-capital { color: var(--accent-capital); }

.swap-word.anim-out { animation: wordOut 280ms ease forwards; }
.swap-word.anim-in { animation: wordIn 280ms ease forwards; }

@keyframes wordOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-0.45em); }
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(0.45em); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .swap-word.anim-out, .swap-word.anim-in { animation: none; }
}

.hero-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero-cta {
  margin-top: 24px;
}

.hero-note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #050814;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.75);
}

/* App Store badge (use official asset; no styling that alters it) */
.appstore-badge {
  display: inline-block;
  line-height: 0;
}

.appstore-badge img {
  height: 44px;
  width: auto;
}

/* Screenshots */

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screenshot-frame {
  border-radius: 26px;
  background: radial-gradient(circle at top, #1f2937, #020617);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.screenshot-frame img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

/* Transparent hero screenshot (no frame background) */
.screenshot-frame.hero-plain {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.screenshot-frame.hero-plain img {
  border-radius: 0;
}

.screenshot-row {
  display: flex;
  gap: 12px;
}

.screenshot-frame.small {
  flex: 1;
}

/* Cards */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.6);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Small screenshots inside cards */
.mode-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

/* Quotes */

.quote {
  margin: 0 0 10px;
  font-style: italic;
}

.quote-author {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* FAQ */

.faq details {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* CTA section */

.cta-section {
  background: radial-gradient(circle at top, #1e293b, #020617 70%);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0 22px;
  background: #020617;
}

.site-footer.simple {
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

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

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

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

/* Simple pages (privacy / support) */

.page-simple main.simple-main {
  padding-top: 40px;
  padding-bottom: 40px;
}

.simple-main h1 {
  margin-top: 0;
}

.simple-main p,
.simple-main li {
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none; /* keep it simple; could add burger later */
  }

  .hero {
    padding-top: 40px;
  }
}
