/* TallMax marketing + legal site. Palette mirrors the app (src/theme). */
:root {
  --bg: #10141c;
  --bg-elev: #161b25;
  --surface: #1a2130;
  --surface-alt: #222b3b;
  --border: #252d3b;
  --primary: #4c8dff;
  --primary-2: #38bdf8;
  --text: #eceff4;
  --muted: #939db0;
  --faint: #5b6577;
  --max-w: 960px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; 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.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16, 20, 28, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: inline-block;
}
.nav-links a { color: var(--muted); margin-left: 22px; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; }
.kicker {
  color: var(--faint); letter-spacing: 2px; font-size: 13px;
  font-weight: 700; text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { font-size: 44px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.5px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.grad { background: linear-gradient(120deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #08122a; font-weight: 700; font-size: 16px;
}
.btn:hover { text-decoration: none; opacity: 0.94; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: 30px; text-align: center; margin: 0 0 8px; letter-spacing: -0.3px; }
.section-sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px;
}
.card h3 { margin: 12px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

.note {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; color: var(--muted); font-size: 14px; margin-top: 28px;
}

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.foot-links a { color: var(--muted); margin-left: 18px; font-size: 14px; }
.foot-links a:first-child { margin-left: 0; }
.foot-small { font-size: 13px; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: #c6cddb; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: 24px; color: var(--muted); }
.placeholder { color: var(--primary); font-weight: 600; }

@media (max-width: 720px) {
  .hero h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
  .nav-links a { margin-left: 14px; }
  .brand span.name { display: none; }
}
