:root {
  --bg: #0a1e3a;
  --ink: #e6f1ff;
  --muted: #9eb6cf;
  --line: rgba(101, 162, 223, 0.24);
  --blue: #2f86d1;
  --yellow: #f4c542;
  --card: rgba(10, 24, 43, 0.86);
  --card-soft: rgba(13, 30, 52, 0.74);
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(950px 600px at 8% 2%, rgba(244, 197, 66, 0.12), transparent 64%),
    radial-gradient(900px 580px at 95% 12%, rgba(47, 134, 209, 0.16), transparent 62%),
    var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.4;
  z-index: -2;
}

.orb-one {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -80px;
  background: linear-gradient(120deg, rgba(244, 197, 66, 0.5), rgba(244, 197, 66, 0.12));
}

.orb-two {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -180px;
  background: linear-gradient(120deg, rgba(47, 134, 209, 0.45), rgba(47, 134, 209, 0.14));
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.18;
  z-index: -1;
}

.site-header,
main,
.site-footer {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0.7rem;
  z-index: 20;
  margin-top: 0.7rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(109, 168, 227, 0.26);
  border-radius: 14px;
  background: rgba(8, 21, 38, 0.78);
  backdrop-filter: blur(10px);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  background: rgba(8, 21, 38, 0.9);
  border-color: rgba(151, 203, 255, 0.36);
  box-shadow: 0 18px 40px rgba(3, 10, 20, 0.45);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

.brand-name {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1;
}

.kicker {
  margin: 0.12rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  color: var(--yellow);
}

.kicker-line {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.mapleleaf-icon {
  height: 0.82rem;
  width: auto;
}

.top-nav {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 180ms ease;
}

.top-nav a:hover {
  color: #fff;
}

.top-nav a:focus-visible,
.header-cta:focus-visible,
.btn:focus-visible,
.footer-links a:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid rgba(169, 214, 255, 0.95);
  outline-offset: 2px;
}

.header-cta,
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.header-cta {
  padding: 0.55rem 1rem;
  color: #081426;
  background: var(--yellow);
  box-shadow: 0 10px 20px rgba(244, 197, 66, 0.2);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.hero {
  margin-top: 1rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border-radius: 22px;
  border: 1px solid rgba(107, 166, 225, 0.3);
  background: linear-gradient(150deg, rgba(12, 30, 52, 0.9), rgba(8, 19, 35, 0.9));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.1rem;
}

#vision,
#about,
#focus {
  scroll-margin-top: 6.2rem;
}

.hero-inner {
  display: grid;
  align-content: start;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(47, 134, 209, 0.88), rgba(244, 197, 66, 0.88));
  color: #081426;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.hero-heading {
  margin: 0.8rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-heading em {
  font-style: normal;
  color: rgba(230, 241, 255, 0.82);
  font-weight: 400;
}

.hero-copy {
  max-width: 62ch;
  color: rgba(230, 241, 255, 0.84);
  font-size: 1.08rem;
  margin: 0.9rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.68rem 1.05rem;
  border-radius: 10px;
}

.btn.primary {
  background: var(--yellow);
  color: #081426;
  box-shadow: 0 8px 16px rgba(244, 197, 66, 0.2);
}

.btn.ghost {
  border-color: rgba(126, 186, 245, 0.48);
  color: var(--ink);
  background: rgba(14, 32, 56, 0.82);
}

.btn.large {
  padding-inline: 1.35rem;
  padding-block: 0.8rem;
  font-size: 1.02rem;
}

.hero-panel-wrap {
  display: flex;
  align-items: stretch;
}

.hero-panel {
  width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 180, 240, 0.32);
  border-radius: 16px;
  background: var(--card-soft);
  padding: 1rem;
  display: grid;
  gap: 0.68rem;
  animation: panel-glow 4s ease-in-out infinite;
}

.panel-label {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(230, 241, 255, 0.7);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  background: rgba(19, 42, 70, 0.8);
  border: 1px solid rgba(115, 175, 233, 0.2);
}

.metric-row span {
  color: rgba(230, 241, 255, 0.84);
}

.metric-row strong {
  font-family: "Space Grotesk", sans-serif;
}

.metric-row .warn {
  color: var(--yellow);
}

.panel-foot {
  border: 1px dashed rgba(142, 197, 251, 0.35);
  border-radius: 10px;
  padding: 0.72rem;
  background: rgba(8, 21, 38, 0.84);
}

.panel-foot p {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: rgba(230, 241, 255, 0.68);
}

.panel-foot code {
  color: #a9d6ff;
  font-size: 0.88rem;
  font-family: "IBM Plex Sans Condensed", sans-serif;
}

.panel-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(100, 180, 255, 0.07), transparent);
  pointer-events: none;
  z-index: 1;
  animation: scan-line 3.6s linear infinite;
}

@keyframes scan-line {
  0%   { top: -56px; }
  100% { top: 100%; }
}

@keyframes panel-glow {
  0%, 100% { border-color: rgba(120, 180, 240, 0.32); box-shadow: none; }
  50%       { border-color: rgba(120, 180, 240, 0.54); box-shadow: 0 0 22px rgba(79, 155, 226, 0.14); }
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.68rem;
  color: #4cce96;
  letter-spacing: 0.1em;
}

.live-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #4cce96;
  box-shadow: 0 0 6px rgba(76, 206, 150, 0.85);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

.metric-value {
  transition: opacity 350ms ease;
}

.stats-strip {
  margin-top: 1rem;
  border: 1px solid rgba(112, 173, 233, 0.28);
  background: rgba(10, 23, 41, 0.74);
  border-radius: 14px;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.stat-item strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: #fff;
}

.stat-item span {
  color: rgba(230, 241, 255, 0.72);
  font-size: 0.92rem;
}

.stat-divider {
  width: 1px;
  height: 2.1rem;
  background: rgba(124, 184, 242, 0.28);
}

.section-block,
.final-cta {
  margin-top: 1rem;
  border: 1px solid rgba(103, 165, 227, 0.28);
  border-radius: 16px;
  background: var(--card);
  padding: clamp(1rem, 2.6vw, 1.3rem);
}

.section-label,
.cta-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--yellow);
  font-weight: 600;
}

.section-split {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
  align-items: start;
}

.section-heading {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.section-heading.centered {
  text-align: center;
}

.section-body {
  margin: 0;
  color: rgba(230, 241, 255, 0.9);
  font-size: clamp(1.02rem, 1.2vw, 1.14rem);
  line-height: 1.6;
}

.section-body + .section-body {
  margin-top: 0.8rem;
}

.feature-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-card {
  border: 1px solid rgba(112, 173, 233, 0.28);
  background: rgba(11, 27, 48, 0.88);
  border-radius: 12px;
  padding: 0.95rem;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(79, 155, 226, 0.14);
  border: 1px solid rgba(126, 187, 246, 0.34);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.feature-card h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0.45rem 0 0;
  color: rgba(230, 241, 255, 0.85);
  font-size: 1rem;
}

.section-rule {
  border: 0;
  border-top: 1px solid rgba(120, 180, 240, 0.2);
  margin: 1rem 0;
}

.approach-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.approach-card {
  border: 1px solid rgba(112, 173, 233, 0.28);
  background: rgba(11, 27, 48, 0.88);
  border-radius: 12px;
  padding: 0.95rem;
}

.approach-num {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  color: rgba(169, 214, 255, 0.9);
  font-size: 0.85rem;
  margin-bottom: 0.32rem;
}

.approach-card h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.14rem;
}

.approach-card p {
  margin: 0.45rem 0 0;
  color: rgba(230, 241, 255, 0.85);
}

.final-cta {
  margin-bottom: 1.2rem;
  text-align: center;
}

.cta-heading {
  margin: 0.35rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.cta-body {
  margin: 0 0 1rem;
  color: rgba(230, 241, 255, 0.84);
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 45, 0.74);
  backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-box {
  position: relative;
  background: #0c1d33;
  border: 1px solid rgba(121, 181, 239, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  width: min(860px, 96vw);
  height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-in 280ms cubic-bezier(0.34, 1.26, 0.64, 1) forwards;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  margin: 1rem 1.2rem 0.7rem;
  padding-right: 2rem;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(230, 241, 255, 0.75);
}

.modal-close:hover {
  color: #fff;
}

.zoho-iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
  min-height: 0;
}

.site-footer {
  padding: 1.15rem 0 1.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 1rem;
  align-items: start;
}

.footer-brand p,
.site-footer p {
  margin: 0;
  color: rgba(230, 241, 255, 0.8);
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  color: rgba(230, 241, 255, 0.75);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-meta-block {
  display: grid;
  gap: 0.15rem;
  justify-items: end;
}

.footer-meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.77rem;
  color: rgba(230, 241, 255, 0.62);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-up 0.65s ease forwards;
}

.reveal:nth-of-type(1) {
  animation-delay: 80ms;
}

.reveal:nth-of-type(2) {
  animation-delay: 160ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 240ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 320ms;
}

.reveal:nth-of-type(5) {
  animation-delay: 400ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    align-items: start;
  }

  .top-nav {
    order: 2;
  }

  .header-cta {
    order: 3;
    width: fit-content;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat-divider {
    display: none;
  }

  .section-split,
  .feature-grid,
  .approach-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta-block {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.98rem;
  }

  .hero {
    padding: 1rem;
  }

  .hero-heading {
    font-size: clamp(1.5rem, 7vw, 2.15rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

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

  .modal-box {
    border-radius: 12px;
  }

  .zoho-iframe {
    height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
