:root {
  --bg: #0c111d;
  --panel: #0f172a;
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.08), transparent 30%), radial-gradient(circle at 80% 0%, rgba(94, 234, 212, 0.08), transparent 30%), var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(12, 17, 29, 0.85);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
}

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

.site-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.lang-toggle {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.lang-toggle .inactive {
  color: var(--muted);
}

.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;
}

.hero {
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent-2);
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.2;
}

h1 {
  font-size: clamp(30px, 3.6vw, 42px);
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
}

h3 {
  font-size: 20px;
}

.lead {
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 22px;
}

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

.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  border-color: transparent;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: var(--accent-2);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(56, 189, 248, 0.35);
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
}

.stat-number {
  display: block;
  font-size: 26px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
}

.features {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  text-align: center;
  margin: 0 0 36px;
}

.section-subtext {
  color: var(--muted);
  margin: 0 auto;
  max-width: 520px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-2);
  margin-bottom: 12px;
  font-size: 16px;
}

.feature-card p {
  color: var(--muted);
  margin: 8px 0 0;
}

.cta {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.cta-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(94, 234, 212, 0.16));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 42px;
  background: rgba(12, 17, 29, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-note {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.cta-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 20px);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 17, 29, 0.92);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  width: min(720px, 96vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.modal-subtext {
  color: var(--muted);
  margin: 0;
}

.modal-close {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.form-field span {
  color: var(--text);
}

.form-field input {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.form-status {
  margin: 12px 0 0;
  min-height: 20px;
  color: var(--accent-2);
  font-size: 14px;
}

.form-status.error {
  color: #f87171;
}

@media (max-width: 720px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .cta-content {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .modal-card {
    padding: 18px;
  }
}
