:root {
  --bg-start: #0d0b2e;
  --bg-end: #2a1257;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #f4f2ff;
  --text-muted: rgba(244, 242, 255, 0.72);
  --accent-blue: #5aa9ff;
  --accent-blue-dark: #2f6fe0;
  --accent-green: #2ecc71;
  --accent-pink: #ef4bb0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  background-attachment: fixed;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

h1, h2, h3, p {
  margin: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(13, 11, 46, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--text);
  background: var(--accent-blue-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), #1fa85c);
  color: #06210f;
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(46, 204, 113, 0.45);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--surface-border);
  color: var(--text);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90, 169, 255, 0.35) 0%, rgba(90, 169, 255, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 32px;
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge .icon {
  width: 16px;
  height: 16px;
  fill: var(--accent-blue);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: min(380px, 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

/* Sections */

.section {
  padding: 88px 0;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.benefit {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.card h3,
.benefit h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p,
.benefit p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How it works */

.steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
  font-weight: 800;
  font-size: 0.95rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.escalation-callout {
  background: linear-gradient(135deg, rgba(239, 75, 176, 0.15), rgba(90, 169, 255, 0.12));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.escalation-callout h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.escalation-callout p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
}

/* CTA section */

.cta-section {
  text-align: center;
}

.cta-inner h2 {
  margin-bottom: 12px;
}

.cta-inner p {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 32px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer-tagline,
.footer-rights {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Reveal animation */

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */

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

  .hero-visual {
    order: -1;
  }

  .hero-image {
    width: min(260px, 100%);
    margin: 0 auto;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 11, 46, 0.97);
    border-bottom: 1px solid var(--surface-border);
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

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

  .header-actions .btn-small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .lang-btn {
    padding: 6px 7px;
    font-size: 0.72rem;
  }

  .lang-switch {
    gap: 2px;
  }
}
