/* …——— existing CSS is unchanged ———… */
:root {
  --bg: #0e0f12;
  --surface: #16171d;
  --surface-2: #1d1e25;
  --text: #e9e9ec;
  --text-muted: #9b9ba5;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0.1, 0, 1);
}
/* Reset */
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font: 16px/1.6 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(
      1200px 800px at 50% -200px,
      rgba(124, 58, 237, 0.12) 0%,
      transparent 70%
    ),
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3e%3ccircle cx='1' cy='1' r='1' fill='%23141418'/%3e%3c/svg%3e");
  background-attachment: fixed;
}
img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.2s var(--ease);
}
a:hover {
  color: var(--accent-hover);
}
h1,
h2,
h3 {
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.4em;
}
section {
  padding: 96px 20px;
}
.container {
  max-width: 1100px;
  margin: auto;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(14, 15, 18, 0.75);
  border-bottom: 1px solid #1c1c22;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  padding: 12px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 15px;
}
nav a {
  opacity: 0.8;
}
nav a:hover,
nav a:focus {
  opacity: 1;
}

/* ===== Hero ===== */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 32px 20px 100px 20px; /* less space above and below */
  background: linear-gradient(to bottom, rgba(124, 58, 237, 0.15), transparent 70%);
}

#hero h1 {
  font-size: 48px;
  line-height: 1.2;
}
#hero p {
  max-width: 720px;
  font-size: 19px;
  color: var(--text-muted);
}

/* Store badges row */
.store-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;     /* keep side by side on desktop */
  margin: 8px 0 16px 0;  /* minimal top and bottom space */
}

@media (max-width: 480px) {
  .store-row {
    flex-wrap: wrap;     /* allow stacking on small screens */
  }
}

.store-badge {
  width: 180px;
  height: 60px;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  padding: 4px;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

/* ===== Features ===== */
.features {
  display: grid;
  gap: 48px;
  margin-top: 48px;
}
.feat {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: 0.2s var(--ease);
}
.feat:hover {
  transform: translateY(-2px);
}
.feat span {
  font-size: 36px;
  color: var(--accent);
  flex-shrink: 0;
}
.feat h3 {
  margin-bottom: 0.25em;
}
.feat p {
  color: var(--text-muted);
}

@media (min-width: 650px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 950px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Download ===== */
#download {
  text-align: center;
}
#download p {
  color: var(--text-muted);
}

/* ===== Contact ===== */
.contact-card {
  background: var(--surface-2);
  border: 1px solid #22232c;
  padding: 32px;
  border-radius: var(--radius);
  max-width: 420px;
  margin: 32px auto 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: 0.2s var(--ease);
}
.contact-card:hover {
  transform: translateY(-2px);
}
.email-icon {
  font-size: 34px;
  margin-bottom: 14px;
  color: var(--accent);
}

/* ===== Footer ===== */
footer {
  margin-top: auto;
  padding: 50px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid #1c1c22;
}
footer a {
  text-decoration: underline;
}

/* ===== Focus ring for keyboard nav ===== */
:where(a, button, .cta-btn):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== Features (even cards) ===== */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 48px;

  /* Make all rows equal height so cards match */
  grid-auto-rows: 1fr;
}

@media (min-width: 680px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2×2 normally */
    gap: 32px;
  }
}

.feat {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.1)), var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid #22232c;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  height: 100%; /* stretch to equal height in the grid */
}
.feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  border-color: #2a2b36;
}
.feat span {
  font-size: 32px;
  color: var(--accent);
  flex-shrink: 0;
  translate: 0 2px;
}
.feat h3 {
  margin-bottom: 0.35em;
  line-height: 1.25;
}
.feat p {
  color: var(--text-muted);
}

/* Stack icon above text on small screens for nicer flow */
@media (max-width: 520px) {
  .feat {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== Contact (nicer card) ===== */
#contact {
  text-align: center;
}

.contact-card {
  --glass: rgba(255, 255, 255, 0.03);
  background: radial-gradient(120% 140% at 100% 0%, rgba(124, 58, 237, 0.12), transparent 60%),
    linear-gradient(180deg, var(--glass), rgba(0, 0, 0, 0.05));
  border: 1px solid #242633;
  padding: 28px clamp(20px, 4vw, 36px);
  border-radius: calc(var(--radius) + 6px);
  max-width: 560px;
  margin: 32px auto 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  text-align: left;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.55);
  border-color: #2f3142;
}
.contact-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.email-icon {
  font-size: 34px;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.contact-title {
  font-weight: 600;
  font-size: 20px;
}
.contact-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #2a2b36;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
    border-color 0.15s var(--ease), opacity 0.15s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: #343548;
}
.btn:active {
  transform: translateY(0);
  opacity: 0.9;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  border-color: transparent;
  color: white;
}
.btn-muted {
  background: var(--surface);
}

.contact-mail {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .contact-card {
    text-align: center;
  }
  .contact-head {
    justify-content: center;
  }
  .contact-actions {
    justify-content: center;
  }
}
