:root {
  --indigo: #4f46e5;
  --indigo-soft: #6366f1;
  --bg: #09090b;
  --surface: #161618;
  --border: #27272a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --faint: #71717a;
  --radius: 18px;
  --maxw: 1080px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(9, 9, 11, 0.7);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .tile {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--indigo);
  display: grid; place-items: center;
}
.brand .name { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 96px 0 72px; }
.hero .tile-lg {
  width: 88px; height: 88px;
  border-radius: 24px;
  background: var(--indigo);
  display: inline-grid; place-items: center;
  margin-bottom: 28px;
  box-shadow: 0 20px 60px -20px rgba(79, 70, 229, 0.7);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover { background: var(--indigo-soft); transform: translateY(-2px); text-decoration: none; }
.cta-note { display: block; margin-top: 14px; color: var(--faint); font-size: 14px; }

/* ---- Features ---- */
.features { padding: 40px 0 96px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

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

/* ---- Legal pages ---- */
.legal { padding: 64px 0 96px; max-width: 760px; }
.legal h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { word-break: break-word; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.back:hover { color: var(--text); border-color: var(--faint); text-decoration: none; }
