:root {
  --primary: #1987d1;
  --primary-dark: #0d4f88;
  --secondary: #8fd11d;
  --secondary-dark: #5f9810;
  --bg: #08111f;
  --bg-soft: #101c30;
  --surface: rgba(255,255,255,0.06);
  --surface-strong: rgba(255,255,255,0.1);
  --text: #f3f8ff;
  --muted: #b7c7da;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 24px 70px rgba(0,0,0,0.35);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(25,135,209,0.35), transparent 28%),
    radial-gradient(circle at top right, rgba(143,209,29,0.2), transparent 22%),
    linear-gradient(180deg, #07101d 0%, #0a1324 40%, #08111f 100%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  flex-wrap: wrap;
  color: var(--muted);
}

.topbar a:hover,
.nav-links a:hover {
  color: #fff;
}

header.sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8,17,31,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-wrap img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.logo-text { min-width: 0; }

.logo-text strong {
  display: block;
  font-size: 18px;
  white-space: nowrap;
}

.logo-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  color: #dce8f7;
  font-weight: 600;
  white-space: nowrap;
  font-size: 15px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #21a3ff 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #c0ea35 100%);
  color: #0b1822;
}

.btn-ghost {
  border-color: var(--border);
  color: #fff;
  background: rgba(255,255,255,0.02);
}

.mobile-toggle {
  display: none;
  background: none;
  color: #fff;
  border: none;
  font-size: 28px;
}

.hero {
  padding: 82px 0 54px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(143,209,29,0.12);
  border: 1px solid rgba(143,209,29,0.35);
  color: #dff6b2;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  margin: 18px 0 16px;
}

.hero h1 span { color: var(--secondary); }

.hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 24px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.trust-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #d9e7f7;
  font-size: 15px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard {
  padding: 28px;
  position: relative;
  min-height: 560px;
  background: radial-gradient(circle at top right, rgba(143,209,29,0.2), transparent 25%), #091424;
}

.dashboard-card,
.feature-card,
.stat-card,
.pricing-card,
.contact-card,
.faq-item,
.page-card,
.story-card,
.cta-box,
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.dashboard-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card { padding: 18px; }

.stat-card strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.dashboard-panel {
  margin-top: 18px;
  padding: 22px;
}

.table-mock {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-mock th,
.table-mock td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.table-mock th {
  color: #98afc9;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.section { padding: 42px 0; }

.section-head {
  max-width: 740px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card,
.pricing-card,
.contact-card,
.page-card,
.story-card,
.support-card {
  padding: 24px;
}

.feature-card h3,
.pricing-card h3,
.page-card h3,
.story-card h3 {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 22px;
}

.muted { color: var(--muted); }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(25,135,209,0.22), rgba(143,209,29,0.18));
  border: 1px solid rgba(255,255,255,0.14);
}

.list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #dce7f5;
}

.list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: 800;
}

.highlight-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(25,135,209,0.12), rgba(143,209,29,0.08));
  border: 1px solid var(--border);
}

.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card.featured {
  transform: translateY(-8px);
  border-color: rgba(143,209,29,0.42);
  box-shadow: 0 22px 55px rgba(97,152,16,.18);
}

.price {
  font-size: 44px;
  font-weight: 800;
  margin: 14px 0 6px;
}

.price small {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

.ribbon {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #0b1822;
  background: var(--secondary);
  padding: 6px 10px;
  border-radius: 999px;
}

.cta-box {
  margin-top: 34px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.cta-box h3 {
  margin: 0 0 8px;
  font-size: 30px;
}

.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-item { padding: 18px 20px; }

.faq-item h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
}

form { display: grid; gap: 14px; }

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: #1a2438;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select option {
  background: #1a2438;
  color: #fff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8fa4be;
}

footer {
  margin-top: 40px;
  padding: 26px 0 38px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr .9fr;
  gap: 20px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #dce7f5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.ai-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #76d0ff);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  font-size: 26px;
  border: none;
  color: #fff;
}

.ai-panel {
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: min(380px, calc(100% - 22px));
  z-index: 90;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d1729;
  box-shadow: var(--shadow);
  display: none;
}

.ai-panel.open { display: block; }

.ai-header {
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, rgba(25,135,209,.95), rgba(143,209,29,.85));
  color: #08111f;
}

.ai-header strong {
  display: block;
  font-size: 18px;
}

.ai-body {
  padding: 16px;
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 12px;
}

.bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
}

.bubble.user {
  background: rgba(25,135,209,0.16);
  margin-left: 28px;
}

.bubble.bot {
  background: rgba(255,255,255,0.06);
  margin-right: 28px;
}

.bubble a {
  color: #8fd11d;
  font-weight: 700;
  text-decoration: underline;
}

.ai-input {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ai-input input { min-width: 0; }

.page-hero { padding: 64px 0 30px; }

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.kpi-band {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-top: 24px;
}

.kpi-band .stat-card strong { font-size: 26px; }

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(143,209,29,0.1);
  border: 1px solid rgba(143,209,29,0.26);
  color: #d7f0a8;
}

@media (max-width: 1240px) {
  .navbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
  }

  .logo-wrap img {
    height: 55px;
    width: auto;
  }

  .logo-text strong { font-size: 17px; }
  .logo-text span { font-size: 11px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .nav-actions .btn {
    padding: 11px 16px;
    font-size: 14px;
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .contact-grid,
  .highlight-box,
  .grid-3,
  .pricing-wrap,
  .footer-grid,
  .faq-wrap,
  .kpi-band {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .dashboard-top {
    grid-template-columns: 1fr 1fr;
  }

  .navbar { grid-template-columns: auto auto auto; }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    background: #0d1729;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
  }

  .nav-links.open { display: flex; }

  .mobile-toggle { display: block; }
}

@media (max-width: 700px) {
  .grid-2,
  .dashboard-top {
    grid-template-columns: 1fr;
  }

  .topbar { display: none; }
  .nav-actions .btn-ghost { display: none; }

  .logo-wrap img {
    height: 50px;
    width: auto;
  }

  .logo-text span { display: none; }
  .hero { padding-top: 50px; }
  .hero p { font-size: 16px; }
  .dashboard { min-height: auto; }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-launcher {
    right: 12px;
    bottom: 12px;
  }

  .ai-panel {
    right: 10px;
    bottom: 86px;
    width: calc(100% - 20px);
  }
}