:root {
  --bg: #040b1d;
  --bg-alt: #08142c;
  --card: #0e1b36;
  --card-2: #112244;
  --text: #e7eefc;
  --muted: #aab8d4;
  --primary: #4f8ff7;
  --primary-2: #2f6df6;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(79, 143, 247, 0.28);
  --nav-height: 118px;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

[id] {
  scroll-margin-top: -5px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: rgba(4, 11, 29, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 0;
  min-height: var(--nav-height);
}

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

.navbar-brand img {
  height: 105px;
  width: auto;
  display: block;
  max-width: 100%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  margin-left: 12px;
}

.nav-link:hover {
  color: #ffffff !important;
  opacity: 0.9;
}

.nav-cta {
  padding: 12px 20px;
}

/* Hero */
.hero-section {
  position: relative;
  background: linear-gradient(90deg, #182a50 0%, #08142c 60%, #040b1d 100%);
  padding: 150px 0 110px;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 35%, rgba(79, 143, 247, 0.15), transparent 26%),
    radial-gradient(circle at 75% 30%, rgba(47, 109, 246, 0.12), transparent 24%),
    radial-gradient(circle at 55% 70%, rgba(24, 54, 110, 0.18), transparent 30%);
  animation: auroraMove 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auroraMove {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -1%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.02);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 10px;
}

.hero-kicker {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--text);
}

.hero-text {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-note {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-symbol {
  max-width: 330px;
  width: 100%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 0 40px rgba(79, 143, 247, 0.18));
}

/* Trusted strip */
.trusted-strip {
  background: #071226;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 22px 0 26px;
}

.trusted-title {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 16px;
}

.trusted-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trusted-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 34, 68, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Sections */
.page-section {
  padding: 95px 0;
}

.section-dark-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 44px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-text {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-text.narrow {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.info-card,
.material-card,
.feature-panel,
.contact-card,
.video-card,
.example-query-card,
.example-results-card {
  background: linear-gradient(180deg, rgba(17, 34, 68, 0.9), rgba(14, 27, 54, 0.95));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.info-card {
  padding: 28px;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 143, 247, 0.4);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 25px var(--glow);
}

.info-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(79, 143, 247, 0.16);
  color: #8cb6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.material-card {
  padding: 26px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.material-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 143, 247, 0.4);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 25px var(--glow);
}

.feature-panel {
  padding: 30px;
  text-align: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-panel:hover {
  border-color: rgba(79, 143, 247, 0.35);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(79, 143, 247, 0.18);
}

.feature-panel h4 {
  margin-bottom: 12px;
}

.feature-panel p {
  margin: 0;
  color: var(--muted);
}

/* Example output */
.example-query-card,
.example-results-card {
  padding: 28px;
  height: 100%;
}

.example-label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #8cb6ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.query-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.query-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.query-list li:last-child {
  border-bottom: none;
}

.result-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.result-item:first-child {
  padding-top: 0;
}

.result-item h5 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--text);
}

.result-item p {
  margin: 0;
  color: var(--muted);
}

.score-pill {
  min-width: 64px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 143, 247, 0.16);
  color: #9fc0ff;
  font-weight: 700;
}

/* Video */
.video-card {
  padding: 24px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
  border-color: rgba(79, 143, 247, 0.35);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(79, 143, 247, 0.18);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #18366e 0%, #0a1731 100%);
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-text {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Contact */
.contact-card {
  padding: 32px;
  max-width: 1100px;
  margin: 0 auto;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  border-color: rgba(79, 143, 247, 0.35);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(79, 143, 247, 0.16);
}

.site-input {
  background: #071226 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 1rem;
}

.site-input::placeholder {
  color: #7f91b7;
}

.site-input:focus {
  background: #071226 !important;
  color: #ffffff !important;
  border-color: rgba(79, 143, 247, 0.5) !important;
  box-shadow: 0 0 0 0.2rem rgba(79, 143, 247, 0.12) !important;
}

/* Buttons */
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 12px 22px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  border: none;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #2b62dd, #4b86ea);
  color: #fff;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: #08142c;
}

/* Footer */
.footer {
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 34px 0;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

/* Scroll reveal fallback-safe */
.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* Responsive */
@media (max-width: 991.98px) {
  :root {
    --nav-height: 92px;
  }

  .navbar-collapse {
    background: rgba(4, 11, 29, 0.98);
    margin-top: 12px;
    padding: 18px;
    border-radius: 14px;
  }

  .nav-link {
    margin-left: 0;
    margin-bottom: 8px;
  }

  .hero-section {
    padding: 135px 0 90px;
    text-align: center;
  }

  .hero-text,
  .hero-note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-symbol {
    margin-top: 24px;
    max-width: 260px;
  }

  .navbar-brand img {
    height: 72px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --nav-height: 84px;
  }

  .page-section {
    padding: 72px 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.7rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .contact-card,
  .example-query-card,
  .example-results-card {
    padding: 22px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .trusted-grid {
    gap: 10px;
  }

  .trusted-pill {
    font-size: 0.9rem;
  }

  .navbar-brand img {
    height: 60px;
  }
}