:root {
  --bg: #060911;
  --bg-elevated: #0d1424;
  --surface: #131b2e;
  --border: #223049;
  --text: #eef2fb;
  --text-muted: #8fa0bf;
  --accent: #3e8eff;
  --accent-light: #6ba9ff;
  --accent-dark: #2563eb;
  --accent-contrast: #ffffff;
  --income: #2ecc71;
  --expense: #f0506e;
  --warning-bg: #241d0c;
  --warning-border: #55440f;
  --warning-text: #eac765;
  --radius: 14px;
  --max-width: 1080px;

  --app-bg: #eef1f7;
  --app-card: #ffffff;
  --app-text: #12141a;
  --app-muted: #6b7280;
  --app-orange: #e4792a;
  --app-purple: #8b5cf6;
  --app-green: #17a673;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  margin-left: 28px;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: radial-gradient(circle at 15% 0%, rgba(62, 142, 255, 0.14), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 32px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.1s ease;
  box-shadow: 0 12px 30px -12px rgba(62, 142, 255, 0.55);
}

.btn-download:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-download:active { transform: translateY(0); }

.icon-download { width: 20px; height: 20px; }

.download-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.download-meta .dot { opacity: 0.5; }

.trust-note {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  max-width: 52ch;
}

/* Phone mock */
.hero-visual { display: flex; justify-content: center; }

.phone-mock {
  width: 250px;
  height: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 16px 12px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.phone-notch {
  width: 60px;
  height: 8px;
  border-radius: 6px;
  background: var(--border);
  margin: 0 auto 14px;
}

.phone-screen {
  background: var(--app-bg);
  border-radius: 18px;
  height: calc(100% - 22px);
  padding: 18px 14px;
  color: var(--app-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-greeting { font-size: 0.68rem; color: var(--app-muted); }
.app-username { font-size: 0.92rem; font-weight: 700; }

.app-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-balance-card {
  background: var(--app-card);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px -12px rgba(20, 30, 60, 0.35);
  margin-bottom: 14px;
}

.app-balance-label { font-size: 0.62rem; color: var(--app-muted); margin-bottom: 4px; }
.app-balance-amount { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }

.app-pill-row { display: flex; gap: 8px; }

.app-pill {
  flex: 1;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-pill-income { background: rgba(46, 204, 113, 0.14); color: var(--app-green); }
.app-pill-expense { background: rgba(240, 80, 110, 0.12); color: var(--expense); }
.app-pill-arrow { font-size: 0.75rem; }

.app-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--app-muted);
  margin: 4px 0 8px;
}

.app-tx-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--app-card);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 0.72rem;
}

.app-tx-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
}

.app-tx-icon-orange { background: var(--app-orange); }
.app-tx-icon-purple { background: var(--app-purple); }
.app-tx-icon-green { background: var(--app-green); }

.app-tx-name { flex: 1; font-weight: 600; }

.app-tx-amount { font-weight: 700; }
.app-tx-amount-income { color: var(--app-green); }
.app-tx-amount-expense { color: var(--expense); }

.app-bottom-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 30, 60, 0.08);
}

.app-nav-item { color: var(--app-muted); font-size: 1rem; }
.app-nav-active { color: var(--accent); }

/* Install steps */
.install, .faq {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.install h2, .faq h2 {
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-muted); }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* Responsive */
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone-mock { width: 210px; height: 400px; }
  nav a { margin-left: 18px; font-size: 0.88rem; }
  .brand-tagline { display: none; }
}
