:root {
  --navy: #0c1f3d;
  --blue: #1e40af;
  --blue-dark: #1e3a8a;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --radius: 16px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: 5rem 0; }
.section-alt { background: linear-gradient(180deg, #eef2f8 0%, var(--slate-50) 100%); }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-lead {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 640px;
}
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 31, 61, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); font-weight: 800; font-size: 1.1rem;
  text-decoration: none;
}
.logo:hover { text-decoration: none; opacity: .95; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-dark), var(--teal));
  display: grid; place-items: center;
}
.logo-icon svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500;
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .65rem 1.25rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white) !important; font-weight: 600; font-size: .9rem;
  box-shadow: 0 4px 14px rgba(30,64,175,.35);
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; color: white; cursor: pointer; }

/* Hero */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 8rem 0 5rem; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 45%, #0f766e 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    url("https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1920&q=80") center/cover no-repeat;
  opacity: .22;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .07;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,31,61,.92) 0%, rgba(30,58,138,.75) 50%, rgba(15,118,110,.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex; padding: .4rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -0.03em;
}
.hero h1 span {
  background: linear-gradient(90deg, #93c5fd, #5eead4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  margin-top: 1.25rem; font-size: 1.15rem; color: rgba(255,255,255,.88);
  line-height: 1.65; max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .9rem 1.6rem; border-radius: 12px; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--white); color: var(--blue-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.btn-outline {
  background: rgba(255,255,255,.1); color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat strong { display: block; font-size: 1.75rem; color: var(--white); font-weight: 800; }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Stats bar */
.stats-bar {
  background: var(--white); border-bottom: 1px solid var(--slate-200);
  padding: 2rem 0; box-shadow: 0 4px 24px rgba(15,23,42,.04);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
.stats-grid strong { font-size: 1.5rem; color: var(--blue-dark); font-weight: 800; }
.stats-grid span { font-size: .85rem; color: var(--slate-500); display: block; margin-top: .25rem; }

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  border: 1px solid var(--slate-200); box-shadow: 0 4px 20px rgba(15,23,42,.04);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1rem;
}
.feature-icon.blue { background: #dbeafe; }
.feature-icon.teal { background: #ccfbf1; }
.feature-icon.amber { background: #fef3c7; }
.feature-icon.violet { background: #ede9fe; }
.feature-icon.rose { background: #ffe4e6; }
.feature-icon.emerald { background: #d1fae5; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--slate-900); margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--slate-500); line-height: 1.55; }

/* Product showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }
.showcase-tag {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  background: #dbeafe; color: var(--blue); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem;
}
.showcase h3 { font-size: 1.75rem; font-weight: 800; color: var(--slate-900); margin-bottom: 1rem; }
.showcase ul { list-style: none; margin: 1.25rem 0; }
.showcase li {
  padding: .5rem 0 .5rem 1.75rem; position: relative; font-size: .95rem; color: var(--slate-700);
}
.showcase li::before {
  content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700;
}

/* UI Mockup */
.mockup {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--slate-200); background: var(--white);
}
.mockup-browser {
  background: var(--slate-100); padding: .65rem 1rem;
  display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--slate-200);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #f87171; }
.mockup-dot.y { background: #fbbf24; }
.mockup-dot.g { background: #34d399; }
.mockup-url {
  flex: 1; margin-left: 8px; background: var(--white); border-radius: 6px;
  padding: .25rem .75rem; font-size: .7rem; color: var(--slate-500);
}
.mock-admin { display: flex; min-height: 320px; }
.mock-sidebar {
  width: 72px; background: #0f172a; padding: 1rem .5rem;
  display: flex; flex-direction: column; gap: 8px;
}
.mock-nav-item {
  height: 32px; border-radius: 8px; background: rgba(255,255,255,.08);
}
.mock-nav-item.active { background: var(--blue); }
.mock-main { flex: 1; background: #eef2f8; }
.mock-header {
  background: linear-gradient(135deg, var(--navy), var(--blue-dark), #0f766e);
  padding: 1.25rem 1.5rem; color: white;
}
.mock-header h4 { font-size: .95rem; font-weight: 700; }
.mock-header p { font-size: .7rem; opacity: .8; margin-top: 2px; }
.mock-body { padding: 1rem 1.25rem; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mock-stat {
  background: white; border-radius: 10px; padding: .65rem;
  border: 1px solid var(--slate-200);
}
.mock-stat small { font-size: .55rem; color: var(--slate-500); text-transform: uppercase; }
.mock-stat strong { font-size: .85rem; color: var(--slate-900); display: block; }
.mock-table {
  background: white; border-radius: 12px; border: 1px solid var(--slate-200); overflow: hidden;
}
.mock-table-head {
  background: var(--slate-100); padding: .5rem 1rem;
  font-size: .6rem; text-transform: uppercase; color: var(--slate-500); font-weight: 700;
  display: grid; grid-template-columns: 1fr 1fr 1fr 80px; gap: 8px;
}
.mock-table-row {
  padding: .55rem 1rem; font-size: .7rem; border-top: 1px solid var(--slate-100);
  display: grid; grid-template-columns: 1fr 1fr 1fr 80px; gap: 8px; align-items: center;
}
.mock-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .55rem; font-weight: 600;
}
.mock-badge.green { background: #d1fae5; color: #065f46; }
.mock-badge.amber { background: #fef3c7; color: #92400e; }

/* Mobile mockup */
.mock-phone {
  width: 280px; margin: 0 auto; border-radius: 32px; padding: 12px;
  background: #1e293b; box-shadow: var(--shadow);
}
.mock-phone-screen {
  border-radius: 24px; overflow: hidden; background: #eef2f8;
}
.mock-mobile-header {
  background: linear-gradient(135deg, var(--navy), var(--blue-dark), #0f766e);
  padding: 2rem 1.25rem 1.25rem; color: white;
}
.mock-mobile-header h4 { font-size: 1rem; font-weight: 700; }
.mock-mobile-header p { font-size: .7rem; opacity: .85; margin-top: 4px; }
.mock-mobile-body { padding: 1rem; }
.mock-debt-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--teal));
  border-radius: 16px; padding: 1.25rem; color: white; margin-bottom: 1rem;
}
.mock-debt-card small { font-size: .65rem; opacity: .8; }
.mock-debt-card strong { font-size: 1.5rem; display: block; margin-top: 4px; }
.mock-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-quick {
  background: white; border-radius: 12px; padding: .75rem .5rem; text-align: center;
  border: 1px solid var(--slate-200); font-size: .55rem; font-weight: 600; color: var(--slate-700);
}
.mock-quick-icon { font-size: 1.1rem; margin-bottom: 4px; }

.mobile-showcase { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: center; margin-top: 3rem; }

/* Demo */
.demo-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 50%, #0f766e 100%);
  color: white; position: relative; overflow: hidden;
}
.demo-section::before {
  content: ""; position: absolute; inset: 0;
  background: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&q=80") center/cover;
  opacity: .12;
}
.demo-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem;
}
.demo-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 1.75rem; backdrop-filter: blur(8px);
}
.demo-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.demo-card .role { font-size: .75rem; opacity: .7; margin-bottom: 1rem; }
.demo-field { margin-bottom: .75rem; }
.demo-field label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .65; display: block; margin-bottom: 4px; }
.demo-field code {
  display: block; background: rgba(0,0,0,.25); padding: .5rem .75rem;
  border-radius: 8px; font-size: .85rem; font-family: ui-monospace, monospace;
  word-break: break-all;
}
.demo-note { margin-top: 2rem; font-size: .9rem; opacity: .85; text-align: center; }

/* Modules */
.modules-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem;
}
.module-pill {
  background: white; border: 1px solid var(--slate-200); border-radius: 12px;
  padding: 1rem; text-align: center; font-size: .85rem; font-weight: 600; color: var(--slate-700);
  transition: border-color .2s, box-shadow .2s;
}
.module-pill:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(30,64,175,.1); }
.module-pill span { display: block; font-size: 1.25rem; margin-bottom: .35rem; }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  border-radius: 24px; padding: 3.5rem 2rem; text-align: center; color: white;
  box-shadow: var(--shadow);
}
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.cta-box p { margin-top: 1rem; opacity: .9; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-box .hero-actions { justify-content: center; margin-top: 2rem; }

/* Footer */
.footer {
  background: var(--navy); color: rgba(255,255,255,.7); padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.footer h4 { color: white; font-size: .9rem; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .5rem; }
.footer a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .features-grid, .demo-grid { grid-template-columns: 1fr 1fr; }
  .showcase, .mobile-showcase { grid-template-columns: 1fr; gap: 2rem; }
  .showcase.reverse { direction: ltr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy);
    padding: 1.5rem; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-toggle { display: block; }
  .features-grid, .demo-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .section { padding: 3.5rem 0; }
}
