:root {
  --bg: #0b1020;
  --panel: #121a33;
  --muted: #a8b0c3;
  --text: #e7ecf8;
  --primary: #5b8cff;
  --primary-600: #3d6ffe;
  --accent: #17d1a6;
  --danger: #ff6b6b;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, #0b1020 0%, #0d1429 100%);
  color: var(--text);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 20px;
}
.site-nav .menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.site-nav .menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav .menu a:hover {
  color: #fff;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.lang-toggle[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(18, 26, 51, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 120px;
  list-style: none;
  margin: 4px 0 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu li {
  margin: 0;
}

.lang-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lang-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Login Button */
.btn-login {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-600) 100%
  );
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 140, 255, 0.3);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    position: absolute;
    inset: 60px 12px auto 12px;
    background: rgba(18, 26, 51, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px;
    display: none;
    z-index: 99;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav .menu {
    flex-direction: column;
    gap: 6px;
  }

  .header-actions {
    gap: 12px;
  }

  .btn-login {
    padding: 8px 16px;
    font-size: 13px;
  }

  .lang-toggle {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-toggle {
    display: inline-block;
  }
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}
.section-title {
  font-size: 34px;
  margin: 0 0 24px;
  letter-spacing: 0.2px;
}
.lead {
  color: var(--muted);
  font-size: 18px;
}
.note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-content {
  text-align: center;
}
.hero .lead {
  margin: 10px auto 20px;
  width: min(760px, 95%);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(
    900px 400px at 50% 10%,
    rgba(91, 140, 255, 0.25),
    rgba(23, 209, 166, 0.05) 60%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: -1;
}
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--muted);
  font-size: 24px;
}

/* Grids */
.grid {
  display: grid;
  gap: 16px;
}
.features-grid {
  grid-template-columns: repeat(4, 1fr);
}
.dashboard-grid {
  grid-template-columns: repeat(3, 1fr);
}
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1020px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .features-grid,
  .dashboard-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* Pricing */
.price {
  position: relative;
  padding: 22px;
}
.price .badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--accent);
  color: #08251f;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}
.price .price-tag {
  font-size: 36px;
  font-weight: 800;
  margin: 6px 0 12px;
}
.price .price-tag span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.price ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.price li {
  margin: 6px 0;
}
.price.featured {
  border-color: rgba(91, 140, 255, 0.6);
  box-shadow: 0 20px 40px rgba(91, 140, 255, 0.15);
}

/* FAQ */
.faq details {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin: 10px 0;
  padding: 12px 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p {
  color: var(--muted);
}

/* Contact */
.contact .contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact .or {
  color: var(--muted);
}
.contact .wave {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: radial-gradient(
    600px 120px at 50% 0,
    rgba(23, 209, 166, 0.15),
    rgba(0, 0, 0, 0)
  );
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.simple-form input,
.simple-form textarea {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.simple-form input::placeholder,
.simple-form textarea::placeholder {
  color: var(--muted);
}

.simple-form input:focus,
.simple-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.1);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-600);
}
.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}
.btn-outline {
  color: #cfe3ff;
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
