:root {
  --bg: #121417;
  --surface: #1C2026;
  --surface-elevated: #22272F;
  --border: #262B33;
  --text: #EAECEF;
  --muted: #949BA6;
  --teal: #4A7C7E;
  --teal-hover: #5A9194;
  --ochre: #C49A52;
  --danger: #B55D4C;
  --radius: 14px;
  --maxw: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 20, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--teal);
  color: var(--text);
}

.btn-primary:hover {
  background: var(--teal-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--ochre);
  color: var(--ochre);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ochre);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--ochre);
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.meta-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Phone Mockup */
.phone-frame {
  max-width: 320px;
  margin: 0 auto;
  background: #0D0F12;
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

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

.phone-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.phone-brand strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.1;
}

.phone-brand span {
  font-size: 0.68rem;
  color: var(--muted);
}

.ghost-chip {
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
}

.candencia-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.candencia-card small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
}

.candencia-card strong {
  font-size: 0.78rem;
  color: var(--ochre);
}

.refresh-pill {
  font-size: 0.68rem;
  color: var(--teal-hover);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
}

.chips-row {
  display: flex;
  gap: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.chip {
  font-size: 0.68rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--text);
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.mock-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  background: linear-gradient(155deg, #212831, #15191E);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6px;
  overflow: hidden;
}

.mock-tile .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ochre);
}

.mock-tile .init {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(74, 124, 126, 0.55);
}

.mock-tile strong {
  position: relative;
  font-size: 0.68rem;
  line-height: 1.1;
}

.mock-tile span {
  position: relative;
  font-size: 0.58rem;
  color: var(--ochre);
}

.phone-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 4px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
}

.phone-nav .active {
  color: var(--text);
  font-weight: 600;
}

/* Sections */
section {
  padding: 52px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 640px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ochre);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Steps & Download Box */
.download-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.steps-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.steps-list li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.steps-list .num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ochre);
  color: var(--ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.checksum-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.checksum-card h4 {
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.checksum-card code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--ochre);
  background: var(--surface);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  word-break: break-all;
  margin: 10px 0;
}

.checksum-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: "+";
  color: var(--ochre);
  font-size: 1.2rem;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Legal page */
.prose {
  max-width: 780px;
  display: grid;
  gap: 16px;
}

.prose h1 {
  font-size: 1.9rem;
}

.prose h2 {
  font-size: 1.15rem;
  color: var(--ochre);
  margin-top: 8px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.94rem;
}

.prose ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

@media (max-width: 820px) {
  .hero-grid,
  .download-box {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 36px 0 32px;
  }
}
