:root {
  --primary: #1f3a5f;
  --primary-dark: #0f243d;
  --primary-light: #d9e4f2;
  --slate-900: #0b1b2f;
  --slate-700: #27405f;
  --slate-500: #5b6f8f;
  --slate-100: #eef2f8;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #2f5bb8;
  --hero-gradient: linear-gradient(135deg, #0b1b2f 0%, #12365e 55%, #164b6a 100%);
  --cta-gradient: linear-gradient(90deg, #0f2a4f 0%, #1f4f8a 100%);
  --card-hover: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --font-heading: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1200px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-md: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 18px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.nav-logo span {
  font-size: 1.1rem;
}

.nav-logo img {
  width: auto;
  height: 34px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--slate-700);
  font-weight: 500;
}

.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--slate-700);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.button.primary {
  background: var(--cta-gradient);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.3);
}

.button.primary:hover {
  transform: translateY(-1px);
}

.button.ghost {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--slate-700);
  background: transparent;
}

.button.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.hero {
  background: var(--hero-gradient);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.35), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.25), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.2), transparent 40%);
  opacity: 0.9;
  animation: heroGlow 16s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 96px 0 72px;
}

.hero-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(14, 165, 233, 0.2);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 20px 0 16px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.hero-panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  align-self: start;
}

.hero-panel h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.hero-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 22px;
  font-family: var(--font-mono);
}

.hero-metric strong {
  font-size: 2rem;
  color: var(--primary-light);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.2);
  font-size: 0.8rem;
}

.hero .hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.hero .button.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.hero .button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hero-mini div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 12px;
}

.hero-mini span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.hero-mini strong {
  font-size: 1.2rem;
  color: var(--white);
}

.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--slate-100);
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.section h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.25rem);
  margin: 0;
  color: var(--slate-900);
  font-family: var(--font-heading);
}

.section-subtitle {
  max-width: 640px;
  margin: 0;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 12px 0 10px;
  color: var(--slate-900);
  font-size: 1.25rem;
}

.card p {
  margin: 0;
}

.card-cta {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 600;
  color: var(--primary-dark);
}

.icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
}

.icon-chip svg {
  width: 24px;
  height: 24px;
}

.bullets {
  display: grid;
  gap: 12px;
  padding-left: 18px;
}

.bullets li {
  list-style: disc;
  color: var(--slate-700);
}

.step .bullets {
  margin: 12px 0 0;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  text-align: left;
}

.data-table th {
  background: var(--slate-100);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--slate-700);
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.badge.warning { background: var(--warning); }
.badge.success { background: var(--success); }
.badge.info { background: var(--info); }

.chat-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.chat-window {
  display: grid;
  gap: 16px;
}

.chat-message {
  background: var(--slate-100);
  padding: 14px 18px;
  border-radius: 16px 16px 16px 6px;
}

.chat-message span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 6px;
}

.chat-message.client {
  background: var(--cta-gradient);
  color: var(--white);
  border-radius: 16px 16px 6px 16px;
}

.chat-message.client span {
  color: rgba(255, 255, 255, 0.7);
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  color: var(--slate-500);
  font-size: 0.9rem;
}

.chat-input button {
  border: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}

.case-card {
  display: grid;
  gap: 16px;
}

.case-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.case-result strong {
  font-size: 2rem;
  color: var(--slate-900);
}

.stats {
  background: var(--slate-900);
  color: var(--white);
  padding: 70px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.stat strong {
  font-size: 2rem;
  display: block;
}

.cta {
  background: var(--cta-gradient);
  color: var(--white);
  padding: 64px 0;
}

.cta {
  background: linear-gradient(120deg, #0b1b2f 0%, #102a4b 55%, #133057 100%);
}

.cta .button.primary {
  background: linear-gradient(90deg, #1f4f8a 0%, #2e6cb5 100%);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(15, 42, 79, 0.35);
}

.cta .button.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.cta .button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cta .container {
  display: grid;
  gap: 20px;
}

.footer {
  background: var(--slate-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.footer h4 {
  color: var(--white);
  margin: 0 0 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.page-hero {
  padding: 80px 0 40px;
  background: var(--slate-100);
}

.page-hero h1 {
  margin: 0 0 12px;
  color: var(--slate-900);
}

.form-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  font-weight: 600;
  color: var(--slate-900);
}

input, select, textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-family: inherit;
  font-size: 1rem;
}

textarea { min-height: 120px; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroGlow {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-2,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .chat-shell {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    right: 16px;
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}
