:root {
  --ai-navy: #0b1f3a;
  --ai-ink: #10233f;
  --ai-cyan: #00a3c4;
  --ai-ice: #e9f7fb;
  --ai-soft: #f6f8fc;
  --ai-white: #ffffff;
  --ai-border: #d8e1ef;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* ========================================
   Scroll reveal animations
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-child.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.landing-page {
  font-family: "Manrope", sans-serif;
  color: var(--ai-ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(0, 163, 196, 0.14), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(16, 35, 63, 0.1), transparent 42%),
    var(--ai-soft);
}

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page h4 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.landing-page .site-nav {
  top: 0.7rem;
  margin-left: auto !important;
  margin-right: auto !important;
  width: min(1240px, calc(100% - 1.2rem));
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(9px);
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(9, 26, 51, 0.1) !important;
}

.landing-page .site-nav .container-lg {
  min-height: 60px;
}

.landing-page .site-nav .navbar-nav {
  align-items: center;
  gap: 0.2rem;
}

.landing-page .site-nav .nav-item,
.landing-page .site-nav .nav-item:hover {
  border-bottom: none !important;
}

.landing-page .site-nav #logo img {
  width: 168px;
}

.landing-page .menu-link {
  position: relative;
  padding: 0.5rem 0.86rem !important;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ai-navy) !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.landing-page .menu-link:hover {
  background: rgba(0, 163, 196, 0.14);
  color: #0b3d57 !important;
  transform: translateY(-1px);
}

.landing-page .menu-link.is-active {
  background: rgba(0, 163, 196, 0.18);
  color: #0b3d57 !important;
}

.landing-page .header-cta-btn {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  padding: 0.55rem 1.05rem;
  border-radius: 999px !important;
  border-width: 1.5px !important;
}

.landing-page .header-mobile-cta {
  width: 100%;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px !important;
}

.landing-page .site-nav .navbar-toggler {
  border: 1px solid rgba(16, 35, 63, 0.2);
  border-radius: 10px;
  padding: 0.32rem 0.5rem;
}

.landing-page .site-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(0, 163, 196, 0.2);
}

.landing-page main {
  padding-top: 6.5rem;
}

.ai-hero {
  padding: 4.5rem 0 3rem;
}

.ai-pill {
  display: inline-block;
  background: rgba(0, 163, 196, 0.12);
  color: #0d4f6f;
  border: 1px solid rgba(0, 163, 196, 0.3);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.77rem;
  letter-spacing: 0.09em;
}

.ai-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  color: var(--ai-navy);
}

.ai-hero-copy {
  margin-top: 1.1rem;
  color: #2f4666;
  font-size: 1.05rem;
  max-width: 44rem;
}

.ai-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.ai-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.ai-proof-card {
  background: var(--ai-white);
  border: 1px solid var(--ai-border);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-proof-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 35, 63, 0.08);
}

.ai-proof-card h3 {
  margin: 0;
  color: var(--ai-navy);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.ai-proof-card p {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: #4b627f;
}

.ai-hero-panel {
  background: linear-gradient(155deg, #0e2747, #0d375f 60%, #0f4d72);
  color: var(--ai-white);
  border-radius: 22px;
  padding: 1.7rem;
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.22);
}

.ai-panel-label {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.85;
}

.ai-hero-panel h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

.ai-hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-hero-panel li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.94rem;
  opacity: 0.95;
  margin-bottom: 0.72rem;
}

.ai-hero-panel li i {
  color: #9ff4ff;
}

.ai-mini-stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.ai-mini-stats div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  padding: 0.75rem;
}

.ai-mini-stats strong {
  display: block;
  font-size: 1.15rem;
}

.ai-mini-stats span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.ai-section {
  padding: 4rem 0;
}

.ai-section-head p {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  color: var(--ai-cyan);
  font-weight: 700;
  margin: 0;
}

.ai-section-head h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  margin-top: 0.55rem;
  color: var(--ai-navy);
}

.ai-card {
  height: 100%;
  background: var(--ai-white);
  border: 1px solid var(--ai-border);
  border-radius: 16px;
  padding: 1.15rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(16, 35, 63, 0.12);
}

.ai-card i {
  font-size: 1.2rem;
  color: var(--ai-cyan);
}

.ai-card h3 {
  font-size: 1.12rem;
  margin: 0.8rem 0 0.35rem;
  color: var(--ai-navy);
}

.ai-card p {
  margin: 0;
  color: #4c6380;
  font-size: 0.94rem;
}

.ai-dark {
  background: linear-gradient(130deg, #0a1d36 0%, #0b2f54 52%, #0f4568 100%);
  color: var(--ai-white);
}

.ai-dark h2,
.ai-dark h3 {
  color: var(--ai-white);
}

.ai-dark p {
  color: rgba(255, 255, 255, 0.84);
}

.ai-dark-kicker {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  color: #8aefff !important;
  font-weight: 700;
}

.ai-steps {
  display: grid;
  gap: 0.8rem;
}

.ai-step {
  display: flex;
  gap: 0.95rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.9rem;
}

.ai-step span {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(138, 239, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a8f4ff;
  flex-shrink: 0;
}

.ai-step h3 {
  margin: 0;
  font-size: 1rem;
}

.ai-step p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.ai-solution-card {
  margin-top: 1.4rem;
  background: var(--ai-white);
  border: 1px solid var(--ai-border);
  border-radius: 20px;
  padding: 1.5rem;
}

.ai-solution-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--ai-cyan);
  font-weight: 700;
}

.ai-solution-card h3 {
  color: var(--ai-navy);
  margin-bottom: 0.75rem;
}

.ai-solution-card p,
.ai-solution-card li {
  color: #425a7a;
}

.ai-solution-card ul {
  margin: 0.9rem 0 1.2rem;
}

.ai-stats {
  padding-top: 0;
}

.ai-stat-box {
  background: var(--ai-white);
  border: 1px solid var(--ai-border);
  border-radius: 14px;
  padding: 1rem;
  height: 100%;
}

.ai-stat-box h3 {
  color: var(--ai-navy);
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.ai-stat-box p {
  margin: 0.35rem 0 0;
  color: #4b627f;
  font-size: 0.87rem;
}

.ai-cta {
  padding-top: 1.2rem;
}

.ai-cta-box {
  background: linear-gradient(140deg, #112c4e, #0d4668);
  border-radius: 22px;
  padding: 2.2rem 1rem;
  color: var(--ai-white);
}

.ai-cta-box p {
  margin: 0;
  color: #9befff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.ai-cta-box h2 {
  margin: 0.75rem auto 0;
  max-width: 44rem;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.landing-page .site-footer {
  margin-top: 2.4rem;
  padding: 3.1rem 0 1.25rem;
  background:
    radial-gradient(circle at 11% -5%, rgba(88, 149, 206, 0.24), transparent 42%),
    radial-gradient(circle at 88% -2%, rgba(122, 92, 77, 0.24), transparent 36%),
    linear-gradient(160deg, #0c1c34 0%, #102742 62%, #152d49 100%);
  color: #e7eef7;
  border: 0 !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}

.landing-page .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 180, 154, 0.64), transparent);
}

.landing-page #footer a {
  color: #e7eef7 !important;
}

.landing-page .site-footer .container-lg {
  position: relative;
  z-index: 1;
}

.landing-page .site-footer .footer-brand {
  margin-bottom: 0.95rem;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(122, 92, 77, 0.34);
  border-radius: 13px;
  padding: 0.45rem 0.75rem 0.4rem;
}

.landing-page .site-footer .footer-brand #logo img {
  width: 172px;
}

.landing-page .site-footer .footer-copy {
  margin: 0;
  color: rgba(229, 239, 250, 0.88);
  max-width: 340px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.landing-page .site-footer .footer-title {
  margin: 0 0 0.85rem;
  color: #d4b49a;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}

.landing-page .site-footer .footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-page .site-footer .footer-list li {
  margin-bottom: 0.54rem;
  color: rgba(231, 238, 247, 0.94);
  font-size: 0.9rem;
  line-height: 1.45;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.landing-page .site-footer .footer-list li i {
  margin-top: 0.12rem;
  color: #83bfe6;
}

.landing-page .site-footer .footer-list li a {
  color: rgba(231, 238, 247, 0.94) !important;
  display: inline-flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.landing-page .site-footer .footer-list li a:hover {
  color: #ffffff !important;
}

.landing-page .site-footer .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.landing-page .site-footer .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eaf2fb;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(131, 191, 230, 0.32);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.landing-page .site-footer .social-links a:hover {
  transform: translateY(-2px);
  background: #d4b49a;
  color: #16283e !important;
}

.landing-page .site-footer .social-links a i {
  font-size: 1rem;
}

.landing-page .site-footer .footer-bottom {
  margin-top: 1.45rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(131, 191, 230, 0.28);
}

.landing-page .site-footer .footer-bottom p {
  margin: 0;
  text-align: center;
  color: rgba(226, 236, 247, 0.84);
  font-size: 0.84rem;
}

@media (max-width: 991px) {
  html {
    scroll-padding-top: 90px;
  }

  .landing-page main {
    padding-top: 6rem;
  }

  .landing-page .site-nav {
    top: 0.55rem;
    width: calc(100% - 1rem);
  }

  .landing-page .site-nav .container-lg {
    min-height: 56px;
  }

  .landing-page .site-nav #main-nav {
    margin-top: 0.7rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--ai-border);
    border-radius: 14px;
    padding: 0.75rem 0.6rem;
    box-shadow: 0 16px 30px rgba(12, 31, 56, 0.08);
  }

  .landing-page .site-nav .navbar-nav {
    align-items: stretch;
    gap: 0.35rem;
  }

  .landing-page .menu-link {
    display: block;
    padding: 0.66rem 0.82rem !important;
    font-size: 0.76rem;
  }

  .landing-page .site-footer {
    padding: 2.5rem 0 1.1rem;
  }

  .ai-hero {
    padding-top: 3.2rem;
  }

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

  .ai-hero-panel {
    padding: 1.3rem;
  }

  .ai-section {
    padding: 3.2rem 0;
  }

  .ai-solution-card img {
    max-height: 320px;
    width: auto;
  }
}

@media (max-width: 767px) {
  .ai-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-proof-card:last-child {
    grid-column: 1 / -1;
  }

  .ai-solution-card img {
    max-height: 260px;
    width: auto;
  }
}

@media (max-width: 575px) {
  html {
    scroll-padding-top: 80px;
  }

  .landing-page #logo img {
    width: 150px;
  }

  .ai-hero {
    padding-top: 2.7rem;
  }

  .ai-hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .ai-hero-cta {
    flex-direction: column;
  }

  .ai-hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .ai-proof-grid {
    grid-template-columns: 1fr;
  }

  .ai-proof-card:last-child {
    grid-column: auto;
  }

  .ai-mini-stats {
    grid-template-columns: 1fr;
  }

  .ai-section {
    padding: 2.5rem 0;
  }

  .ai-step {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    align-items: center;
  }

  .ai-solution-card {
    padding: 1rem;
  }

  .ai-solution-card img {
    max-height: 220px;
  }

  .ai-cta-box {
    padding: 1.6rem 1rem;
  }

  .ai-cta .ai-hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .ai-cta .ai-hero-cta .btn {
    width: 100%;
  }

  .landing-page .site-footer .footer-brand {
    padding: 0.35rem 0.65rem;
  }

  .landing-page .site-footer .footer-brand #logo img {
    width: 156px;
  }

  .landing-page .site-footer .social-links {
    justify-content: flex-start;
  }

  .landing-page .site-footer .social-links a {
    width: 36px;
    height: 36px;
  }

  .landing-page .site-footer .footer-bottom p {
    font-size: 0.78rem;
  }
}

/* ========================================
   Button overrides (unify with landing design)
   ======================================== */
.landing-page .btn-primary {
  background-color: var(--ai-cyan) !important;
  border-color: var(--ai-cyan) !important;
  color: #fff !important;
  border-radius: 0.3rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.landing-page .btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 163, 196, 0.3);
}

.landing-page .btn-primary:focus-visible {
  outline: 2px solid var(--ai-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.25rem rgba(0, 163, 196, 0.25);
}

.landing-page .btn-outline-primary {
  border-color: var(--ai-cyan) !important;
  color: var(--ai-cyan) !important;
  border-radius: 0.3rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.landing-page .btn-outline-primary:hover {
  background-color: var(--ai-cyan) !important;
  border-color: var(--ai-cyan) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 163, 196, 0.25);
}

.landing-page .btn-outline-primary:focus-visible {
  outline: 2px solid var(--ai-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.25rem rgba(0, 163, 196, 0.25);
}

/* Focus visible for interactive elements */
.landing-page a:focus-visible {
  outline: 2px solid var(--ai-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========================================
   Additional responsive (320px ultra-small)
   ======================================== */
@media (max-width: 374px) {
  .ai-hero h1 {
    font-size: 1.55rem;
  }

  .ai-hero-copy {
    font-size: 0.92rem;
  }

  .ai-hero-cta .btn {
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
  }

  .ai-stat-box h3 {
    font-size: 1.35rem;
  }

  .ai-card {
    padding: 1rem;
  }

  .ai-cta-box h2 {
    font-size: 1.25rem;
  }

  .quote-modal .modal-body {
    padding: 1rem;
  }
}

/* Quote Modal */
.quote-modal {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(11, 31, 58, 0.22);
}

.quote-modal-header {
  background: linear-gradient(135deg, #0e2747, #0d4668);
  padding: 1.5rem 1.5rem 1.2rem;
}

.quote-modal-header .modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.quote-modal-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.quote-modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.quote-modal-header .btn-close:hover {
  opacity: 1;
}

.quote-modal .modal-body {
  padding: 1.5rem;
  padding-top: 1.5rem;
}

.quote-modal .form-control,
.quote-modal .form-select {
  border-radius: 12px;
  border: 1.5px solid var(--ai-border);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-modal .form-control:focus,
.quote-modal .form-select:focus {
  border-color: var(--ai-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 163, 196, 0.15);
}

.quote-submit-btn {
  border-radius: 12px !important;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quote-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 163, 196, 0.3);
}

.quote-modal .h-captcha {
  display: flex;
  justify-content: center;
}

@media (min-width: 576px) {
  #exampleModal .modal-dialog {
    max-width: 540px;
  }
}
