/* Landing page — self-contained; the app's style.css is untouched. */

:root {
  --bg: #0e141a;
  --bg-raise: #171f27;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8eef2;
  --muted: #9fb0ba;
  --accent: #5fbf6e;
  --accent-press: #4faa5e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

/* Subtle topographic contours behind everything. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(1100px 520px at 78% -10%, rgba(95, 191, 110, 0.12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='1.4'%3E%3Cpath d='M60 240c60-90 170-120 250-80s130 30 190-10'/%3E%3Cpath d='M40 300c80-100 200-130 280-85s150 35 220-15'/%3E%3Cpath d='M20 360c100-110 230-140 310-90s170 40 250-20'/%3E%3Cpath d='M0 420c120-120 260-150 340-95s190 45 280-25'/%3E%3Cpath d='M80 180c50-70 150-100 220-70s120 25 170-5'/%3E%3C/g%3E%3C/svg%3E");
}

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

/* ============ header ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}
.brand__mark { width: 30px; height: 30px; color: var(--accent); }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }

.btn--google { background: #fff; color: #1f1f1f; }
.btn--google:hover { background: #f1f3f4; }
.btn--google:disabled { opacity: 0.6; cursor: default; }
.btn--google__logo { width: 20px; height: 20px; }

.btn--apple { background: #000; color: #fff; border: 1px solid #3a3a3a; margin-top: 10px; }
.btn--apple:hover { background: #161616; }
.btn--apple:disabled { opacity: 0.6; cursor: default; }
.btn--apple__logo { width: 19px; height: 19px; margin-top: -2px; }

.hero__cta .btn { min-width: 262px; }

/* ============ hero ============ */
/* Full-bleed summit photo behind the hero. Dark gradient keeps text
   readable and fades into --bg at the bottom so the features section
   continues seamlessly. Tuning knobs: overlay opacities + position Y%. */
.hero-bleed {
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(14, 20, 26, 0.78) 0%,
      rgba(14, 20, 26, 0.42) 38%,
      rgba(14, 20, 26, 0.55) 72%,
      var(--bg) 100%
    ),
    url("./assets/hero-bg.jpg") center 42% / cover no-repeat;
}

.hero-bleed__credit {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: 10px;
  color: rgba(232, 238, 242, 0.55);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(36px, 7vh, 88px) clamp(20px, 5vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero__sub {
  color: #cdd9e0; /* lighter than --muted: sits on the photo now */
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  margin: 0 0 30px;
  max-width: 34em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero__cta-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 12px 2px 0;
}
.hero__error {
  color: #ff7f7c;
  font-size: 0.92rem;
  margin: 10px 2px 0;
}

/* ============ demo card (hero visual) ============ */
.hero__visual { display: flex; justify-content: center; }

.demo-card {
  width: min(420px, 100%);
  background: linear-gradient(160deg, rgba(30, 40, 50, 0.92), rgba(20, 28, 36, 0.92));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 20px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.demo-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.demo-card__name { font-weight: 700; font-size: 1.04rem; }
.demo-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(95, 191, 110, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.demo-card__badge svg { width: 15px; height: 15px; }

.demo-card__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.demo-stat { display: flex; flex-direction: column; gap: 2px; }
.demo-stat__value { font-weight: 700; font-size: 0.98rem; }
.demo-stat__value--up { color: #7fd48b; }
.demo-stat__value--down { color: #7fb8e6; }
.demo-stat__label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-card__chart {
  width: 100%;
  height: 96px;
  display: block;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.demo-card__devices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 14px;
}
.demo-card__devices svg { width: 18px; height: 18px; color: var(--accent); }

/* ============ features ============ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  padding: 0 clamp(20px, 5vw, 56px) clamp(48px, 8vh, 88px);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.feature {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
}
.feature__icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ============ footer ============ */
.site-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============ responsive ============ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero__visual { order: 2; }
}
