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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1c1c1c;
  --gold: #c9a97a;
  --gold-dim: #8a7254;
  --text: #e2e2e2;
  --muted: #5a5a5a;
  --radius: 14px;
  --max-w: 860px;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ── */

header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ── Header inner ── */

.header-inner {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Hero ── */

.hero {
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.app-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.tagline {
    font-size: 1.4rem;
    font-weight: 200;
    color: var(--gold-dim);
    max-width: 42ch;
}

/* ── Store buttons ── */

.store-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.4rem;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 600;
  min-width: 148px;
  transition: opacity 0.15s;
}

.store-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
}

.store-btn small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.01em;
}

.store-btn--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ── Secondary links ── */

.secondary-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.link-btn {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.link-btn:hover {
  color: var(--gold);
}

/* ── Screenshots ── */

.screenshots {
  padding: 2rem 0 4rem;
  overflow: hidden;
}

.screenshot-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
}

.phone {
  flex: 0 0 auto;
  width: clamp(130px, 20vw, 180px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.phone:nth-child(1),
.phone:nth-child(4) {
  opacity: 0.6;
  transform: scale(0.93) translateY(8px);
}

/* ── Features ── */

.features {
  padding: 3rem 0 5rem;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.feature h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

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

/* ── More ── */

.more {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.more p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Footer ── */

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

footer p {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

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

footer a:hover {
  color: var(--gold);
}

/* ── Modal ── */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal--open {
  display: flex;
}

.modal-inner {
  position: relative;
  max-height: 90vh;
}

.modal-inner img {
  display: block;
  max-height: 90vh;
  max-width: 100%;
  width: auto;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.modal-close:hover {
  color: #fff;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .screenshot-row {
    gap: 0.6rem;
  }

  .phone:nth-child(1),
  .phone:nth-child(4) {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
