:root {
  --bg: #0b1020;
  --bg-secondary: #121933;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-solid: #161f3d;
  --text: #edf2ff;
  --text-muted: #a8b3cf;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #7c9cff;
  --accent-2: #63e6be;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  --hero-gradient: radial-gradient(circle at top left, rgba(124, 156, 255, 0.25), transparent 30%),
                   radial-gradient(circle at bottom right, rgba(99, 230, 190, 0.18), transparent 30%);
}

body.light-theme {
  --bg: #f4f7ff;
  --bg-secondary: #e9eefc;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-solid: #ffffff;
  --text: #162033;
  --text-muted: #5a6784;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #4f6ef7;
  --accent-2: #13b98a;
  --shadow: 0 16px 30px rgba(35, 46, 80, 0.12);
  --hero-gradient: radial-gradient(circle at top left, rgba(79, 110, 247, 0.18), transparent 30%),
                   radial-gradient(circle at bottom right, rgba(19, 185, 138, 0.12), transparent 30%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 28, 0.55);
  border-bottom: 1px solid var(--border);
}

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.75);
}

.nav-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.hero {
  background: var(--hero-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  min-height: 78vh;
}

.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 20px;
}

.hero-subtext,
.section-heading p,
.contact-text p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.glass-card,
.contact-card,
.feature-card,
.stat-card,
.testimonial-card,
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.glass-card {
  border-radius: 28px;
  padding: 24px;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2);
}

.mini-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mini-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

body.light-theme .mini-panel {
  background: rgba(255, 255, 255, 0.55);
}

.mini-panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.mini-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2,
.contact-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
}

.feature-grid,
.testimonial-grid,
.stats-grid {
  display: grid;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  border-radius: 22px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 156, 255, 0.45);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 156, 255, 0.2), rgba(99, 230, 190, 0.18));
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 10px;
}

.feature-card p,
.testimonial-card p,
.stat-card p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  border-radius: 22px;
  padding: 28px 20px;
  text-align: center;
}

.stat-card h3 {
  font-size: 2.4rem;
  margin: 0 0 10px;
  color: var(--accent-2);
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  border-radius: 22px;
  padding: 24px;
}

.testimonial-card h4 {
  margin: 18px 0 4px;
}

.testimonial-card span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-radius: 18px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: none;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 220px;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-question span {
  transition: transform 0.25s ease;
}

.contact-card {
  border-radius: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background: rgba(255, 255, 255, 0.85);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.form-message {
  min-height: 24px;
  color: var(--accent-2);
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-card,
  .feature-grid,
  .testimonial-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-grid {
    min-height: auto;
  }

  .mini-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 74px;
    right: 4%;
    width: min(280px, 92vw);
    background: var(--panel-solid);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }

  .nav.show {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 72px 0;
  }
}