:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 2px 4px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 10px 25px -5px rgba(15,23,42,0.08), 0 8px 10px -6px rgba(15,23,42,0.04);
  --shadow-lg: 0 25px 50px -12px rgba(79,70,229,0.25);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.45); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--ink-soft); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(99,102,241,0.4);
}
.brand small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 80px 0 120px;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(139,92,246,0.12), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(99,102,241,0.10), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.pill {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 32px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-meta { display: flex; gap: 40px; }
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta strong {
  font-size: 28px; font-weight: 800; color: var(--ink);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-meta span { font-size: 13px; color: var(--muted); }

/* ---- Mock window ---- */
.hero-visual { position: relative; }
.mock-window {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transform: perspective(1800px) rotateY(-6deg) rotateX(3deg);
}
.mock-top {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ef4444; } .dot.y { background: #f59e0b; } .dot.g { background: #10b981; }
.mock-url {
  margin-left: 14px; padding: 4px 12px;
  background: white; border-radius: 6px;
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--border);
}
.mock-body { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
.mock-side {
  background: linear-gradient(180deg, #0b1020, #1e1b4b);
  color: #cbd5e1;
  padding: 16px 12px;
}
.mock-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: white; padding: 0 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }
.mock-brand span {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.mock-nav { display: flex; flex-direction: column; gap: 3px; }
.mock-item {
  padding: 8px 10px; border-radius: 7px;
  font-size: 13px; color: #cbd5e1;
}
.mock-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(139,92,246,0.2));
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.mock-main { padding: 20px; background: #fafbff; }
.mock-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-stat {
  background: white; padding: 12px;
  border-radius: 10px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3px;
}
.s-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.s-val { font-size: 18px; font-weight: 700; color: var(--ink); }
.s-up { font-size: 11px; color: var(--success); font-weight: 600; }
.s-dn { font-size: 11px; color: var(--danger); font-weight: 600; }
.mock-chart {
  background: white; padding: 10px 12px 4px; border-radius: 10px;
  border: 1px solid var(--border); margin-bottom: 16px; height: 120px;
}
.mock-chart svg { width: 100%; height: 100%; }
.mock-table { background: white; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.mock-tr {
  display: grid; grid-template-columns: 1.1fr 1.2fr 1fr 0.7fr;
  padding: 10px 12px; font-size: 12px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.mock-tr:last-child { border-bottom: none; }
.mock-tr.th { background: #f8fafc; font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em; }
.b { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; width: fit-content; }
.b-ok { background: #dcfce7; color: #15803d; }
.b-road { background: #fef3c7; color: #b45309; }
.b-new { background: #e0e7ff; color: #4338ca; }

/* Floating cards */
.floating-card {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; gap: 10px; align-items: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 13px; }
.floating-card span { font-size: 11px; color: var(--muted); }
.fc-ic { font-size: 20px; }
.card-1 { top: 12%; left: -30px; animation-delay: 0s; }
.card-2 { bottom: 12%; right: -20px; animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- Logos strip ---- */
.logos { padding: 48px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos-title { text-align: center; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin: 0 0 20px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.logos-row span {
  font-size: 14px; color: var(--ink-soft); font-weight: 600;
  padding: 6px 14px; background: white; border-radius: 8px; border: 1px solid var(--border);
}

/* ---- Sections ---- */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  padding: 4px 12px;
  background: rgba(99,102,241,0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800; margin: 0 0 16px; letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-head p { font-size: 17px; color: var(--ink-soft); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- Feature cards ---- */
.feature {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.f-ic {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: white; padding: 28px 24px;
  border-radius: var(--radius); border: 1px solid var(--border);
  position: relative;
}
.step-n {
  display: block; font-size: 32px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.step h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---- Roles ---- */
.role {
  background: white; padding: 32px 28px;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: all 0.2s;
}
.role.featured {
  background: linear-gradient(180deg, #faf5ff, white);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}
.role-ic { font-size: 36px; margin-bottom: 14px; }
.role h3 { margin: 0 0 16px; font-size: 20px; }
.role ul { padding: 0; margin: 0; list-style: none; }
.role li {
  padding: 8px 0; padding-left: 24px; position: relative;
  color: var(--ink-soft); font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.role li:last-child { border-bottom: none; }
.role li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}

/* ---- Screens gallery ---- */
.screens {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.screen {
  margin: 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.screen:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.screen img, .screen .mock-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-alt);
  display: block;
}
.screen figcaption { padding: 14px 18px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--border); }
.screens-note {
  text-align: center; margin-top: 32px;
  color: var(--muted); font-size: 13px;
}
.screens-note code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; }

/* Mock screen fallback */
.mock-screen {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: var(--primary); font-weight: 700; font-size: 14px;
  position: relative;
}
.mock-screen::before {
  content: ''; position: absolute; inset: 20px;
  background: white; border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}
.mock-screen span { position: relative; z-index: 1; }

/* ---- Pricing ---- */
.plan {
  background: white; padding: 32px 28px;
  border-radius: var(--radius); border: 1px solid var(--border);
  position: relative;
}
.plan.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}
.plan .badge {
  position: absolute; top: -12px; left: 28px;
  padding: 4px 12px; background: var(--primary); color: white;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.plan h3 { margin: 0 0 8px; font-size: 20px; }
.price { margin: 16px 0 24px; display: flex; align-items: baseline; gap: 6px; }
.price span { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; }
.plan li {
  padding: 8px 0; padding-left: 24px; position: relative;
  color: var(--ink-soft); font-size: 14px;
}
.plan li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}

/* ---- Pricing contact ---- */
.pricing-contact {
  display: flex; justify-content: center;
}
.pricing-card {
  background: white;
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 48px 56px;
  text-align: center;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.pricing-icon { font-size: 48px; margin-bottom: 16px; }
.pricing-card h3 { font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.pricing-card > p { color: var(--ink-soft); font-size: 16px; margin: 0 0 32px; }
.contact-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  transition: all 0.18s;
}
.contact-item:hover { border-color: var(--primary); background: #eef2ff; transform: translateY(-1px); }
.ci-icon { font-size: 24px; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.contact-item span { font-size: 15px; font-weight: 600; color: var(--primary-dark); }

/* ---- CTA ---- */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #0b1020, #1e1b4b);
  color: white;
  text-align: center;
}
.cta h2 { color: white; }
.cta p { color: #cbd5e1; font-size: 17px; margin: 0 0 32px; }
.cta-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto 20px; }
.cta-form input {
  flex: 1; padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.1);
  color: white; font-size: 15px;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.5); }
.cta-form input:focus { outline: 2px solid var(--primary); }
.cta-trust { font-size: 13px; color: #94a3b8; }

/* ---- Footer ---- */
.footer { background: #0b1020; color: #94a3b8; padding: 64px 0 24px; }
.foot-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-brand p { font-size: 14px; max-width: 280px; margin-top: 12px; }
.foot-brand .brand-logo { box-shadow: none; }
.foot-brand strong { color: white; }
.foot-inner h5 { color: white; font-size: 14px; margin: 0 0 14px; font-weight: 700; }
.foot-inner a {
  display: block; padding: 4px 0; font-size: 13px; color: #94a3b8;
  transition: color 0.15s;
}
.foot-inner a:hover { color: white; }
.foot-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 60px 0 80px; }
  .floating-card { display: none; }
  .mock-window { transform: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: 1fr 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .role.featured, .plan.featured { transform: none; }
}
@media (max-width: 600px) {
  .steps, .screens, .foot-inner { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; flex-wrap: wrap; }
  .cta-form { flex-direction: column; }
  .mock-stat-row { grid-template-columns: 1fr 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .nav-cta .btn-ghost { display: none; }
}
