/* =========================================================
   AINR — Public landing page
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --bg: #050b1a;
  --bg-soft: #0b1530;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-2: #06b6d4;
  --accent: #22c55e;
  --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #22c55e 100%);
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(37, 99, 235, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(6, 182, 212, 0.22), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(34, 197, 94, 0.12), transparent 50%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 10px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-logo {
  height: 36px;
  width: auto;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: var(--card-border);
  color: #fff;
}
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* Hero */
.hero {
  padding: 48px 0 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }

.phone-card {
  position: relative;
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.phone-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.mini-stat {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px;
}
.mini-stat label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.mini-stat strong {
  font-size: 22px;
  font-weight: 800;
}
.mini-stat.expense strong { color: #fb7185; }
.mini-stat.income strong { color: #4ade80; }
.tx-list { display: grid; gap: 10px; }
.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-border);
}
.tx-item .left { min-width: 0; }
.tx-item .name { font-weight: 700; font-size: 14px; }
.tx-item .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tx-item .amt { font-weight: 800; font-size: 14px; white-space: nowrap; }
.tx-item .amt.out { color: #fb7185; }
.tx-item .amt.in { color: #4ade80; }

/* Sections */
section { padding: 56px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .15s, border-color .15s, background .15s;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(255,255,255,.06);
}
.feature-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.18);
  margin-bottom: 14px;
}
.feature-ico svg {
  width: 22px; height: 22px;
  stroke: #93c5fd; fill: none; stroke-width: 1.8;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--card-border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--gradient);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.cta-band {
  margin: 20px 0 40px;
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(37,99,235,.35), transparent 60%),
    radial-gradient(500px 200px at 90% 100%, rgba(34,197,94,.2), transparent 55%),
    rgba(255,255,255,.03);
  border: 1px solid var(--card-border);
}
.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}
.cta-band p {
  margin: 0 auto 22px;
  color: var(--muted);
  max-width: 480px;
}

footer {
  border-top: 1px solid var(--card-border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-row a { color: #cbd5e1; font-weight: 600; }
.footer-row a:hover { color: #fff; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .features, .steps { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  .hero-lead { font-size: 15px; }
  .stat-row { grid-template-columns: 1fr; }
}
