/* EndLog's neutral dark theme (Theme.java in the app). */
:root {
  --bg-top: #20242a;
  --bg-bottom: #14161a;
  --card: #252a31;
  --card-top: #2a2f37;
  --border: #363c45;
  --text: #f2f4f7;
  --muted: #9aa1ab;
  --accent: #ff5252;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { background: var(--bg-bottom); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 82, 82, .14), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 70%);
}
a { color: inherit; }
img { display: block; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Header */
.top {
  max-width: 1120px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top nav .pill { color: #fff; background: var(--accent); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.top nav .pill:hover { color: #fff; filter: brightness(1.08); }

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

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; letter-spacing: .04em; margin: 0 0 14px; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 82, 82, .6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, .6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 30px; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; }

.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid #4a4f57; border-radius: 12px; padding: 9px 20px 9px 16px;
  transition: transform .15s, border-color .15s;
}
.store:hover { transform: translateY(-2px); border-color: var(--accent); }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-size: 20px; font-weight: 600; }
.store small { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }

/* Phone mock-up */
.phone {
  justify-self: center; width: 290px; padding: 12px; border-radius: 40px;
  background: #0b0c0f; border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 82, 82, .12);
}
.screen {
  border-radius: 30px; padding: 22px 18px 26px; min-height: 520px;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}
.screen-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 40px; }
.goc-label { color: var(--muted); font-size: 12px; text-align: center; }
.goc { text-align: center; font-size: 26px; font-weight: 800; margin: 6px 0 26px; font-variant-numeric: tabular-nums; }
.goc span { color: var(--accent); }
.meter { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #4caf7a, #f5c242, var(--accent)); }
.meter-mark { position: absolute; left: 38%; top: -5px; width: 4px; height: 20px; border-radius: 2px; background: var(--text); }
.meter-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin: 6px 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); }
.year { margin-top: 34px; text-align: center; color: var(--muted); font-size: 13px; }
.year b { color: var(--text); }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.cards { display: grid; gap: 16px; margin-top: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--card-top), var(--card));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 82, 82, .15); color: var(--accent); font-weight: 800; margin-bottom: 14px;
}

.factors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.factors li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; }
.factors b { font-size: 15px; }
.factors span { color: var(--muted); font-size: 13px; }

.final { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final img { border-radius: 16px; margin-bottom: 18px; }
.final .section-lead { margin-bottom: 24px; }

footer { max-width: 1120px; margin: 0 auto; padding: 32px 20px 48px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
footer b { color: var(--text); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .cards.three { grid-template-columns: 1fr; }
  .top nav a:not(.pill) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .live { animation: none; }
  html { scroll-behavior: auto; }
}
