:root {
  color-scheme: dark;
  --bg: #06111a;
  --bg-elevated: rgba(10, 24, 37, 0.86);
  --surface: rgba(11, 25, 39, 0.74);
  --surface-strong: rgba(12, 29, 45, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(137, 167, 191, 0.16);
  --border-strong: rgba(84, 130, 183, 0.25);
  --text: #e8f2fb;
  --text-soft: #a8bdd0;
  --heading: #ffffff;
  --primary: #2779ff;
  --primary-strong: #0f59d4;
  --accent: #22b86b;
  --accent-strong: #179657;
  --grey: #8da0b4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 16px 50px rgba(4, 11, 18, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1220px, calc(100% - 40px));
  --header-height: 96px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf4fa;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-soft: rgba(39, 121, 255, 0.04);
  --border: rgba(28, 54, 80, 0.1);
  --border-strong: rgba(39, 121, 255, 0.18);
  --text: #1a3147;
  --text-soft: #5e748b;
  --heading: #0c2237;
  --primary: #1867f2;
  --primary-strong: #0d53cd;
  --accent: #16a95d;
  --accent-strong: #0f894a;
  --grey: #7f8fa1;
  --shadow: 0 24px 70px rgba(43, 70, 100, 0.14);
  --shadow-soft: 0 14px 38px rgba(62, 100, 135, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(39, 121, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 184, 107, 0.1), transparent 26%),
    linear-gradient(180deg, #07131d 0%, #081119 100%);
  transition: background 0.3s ease, color 0.3s ease;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(39, 121, 255, 0.09), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 184, 107, 0.07), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #edf3f8 100%);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

ul {
  margin: 0;
  padding-left: 18px;
}

.site-shell {
  position: relative;
  overflow: clip;
  min-height: 100vh;
}

.backdrop-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
  animation: drift 15s ease-in-out infinite;
}

.glow-a {
  width: 320px;
  height: 320px;
  top: 100px;
  left: -90px;
  background: rgba(39, 121, 255, 0.28);
}

.glow-b {
  width: 380px;
  height: 380px;
  top: 340px;
  right: -140px;
  background: rgba(34, 184, 107, 0.18);
  animation-delay: -5s;
}

.glow-c {
  width: 240px;
  height: 240px;
  bottom: 90px;
  left: 18%;
  background: rgba(141, 160, 180, 0.18);
  animation-delay: -9s;
}

.container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 13, 21, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(18, 36, 54, 0.06);
}

.header-row {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-large {
  gap: 18px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-logo-xl {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  padding: 8px;
}

.brand-logo-lg {
  width: 64px;
  height: 64px;
}

.brand-mark,
.hero-mark,
.service-icon-mark {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-soft);
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 1.1rem;
}

.hero-mark {
  width: 120px;
  height: 120px;
  border-radius: 32px;
  font-size: 2rem;
}

.service-icon-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1rem;
}

.brand-name {
  display: block;
  color: var(--heading);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-tag {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.desktop-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.desktop-nav a,
.footer-links a,
.mobile-nav a {
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-nav a:hover {
  color: var(--heading);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.theme-toggle-inner {
  position: relative;
  width: 78px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(39, 121, 255, 0.18), rgba(34, 184, 107, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-icon {
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
  color: var(--heading);
}

.theme-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #d9e4ef);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s ease;
}

html[data-theme="light"] .theme-knob {
  transform: translateX(40px);
}

.theme-toggle-text {
  min-width: 42px;
  text-align: left;
  color: var(--text-soft);
  font-weight: 700;
}

.menu-toggle {
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  color: var(--heading);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-nav.is-open {
  display: grid;
}

.hero-grid,
.page-hero-grid,
.cards-grid,
.detail-grid,
.footer-bar,
.highlight-banner,
.section-head,
.hero-metrics,
.metric-grid {
  display: grid;
  gap: 22px;
}

.hero-grid,
.page-hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 48px);
}

.hero-content h1,
.page-hero h1,
.section-head h2,
.highlight-banner h2,
.hero-card h2 {
  margin: 18px 0 16px;
  color: var(--heading);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content h1,
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 13ch;
}

.hero-card h2,
.section-head h2,
.highlight-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.eyebrow,
.section-kicker,
.builder-credit {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.builder-credit {
  margin-top: 18px;
}

.lead-text,
.hero-card p,
.feature-card p,
.service-card p,
.info-panel p,
.detail-card li,
.detail-card p,
.section-head p,
.quick-link-card span,
.metric span,
.stat-stack span,
.footer-bar p {
  color: var(--text-soft);
  line-height: 1.78;
  font-size: 1rem;
}

.hero-actions,
.card-links,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 36px rgba(39, 121, 255, 0.24);
}

.btn-secondary {
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-small {
  min-height: 46px;
  padding: 0 16px;
}

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

.metric,
.hero-card,
.feature-card,
.service-card,
.info-panel,
.detail-card,
.quick-link-card,
.hero-visual-card,
.highlight-banner,
.footer-bar {
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.metric,
.info-panel,
.detail-card,
.hero-card,
.feature-card,
.service-card,
.hero-visual-card,
.highlight-banner {
  border-radius: var(--radius-lg);
}

.metric {
  padding: 20px;
}

.metric strong,
.stat-stack strong {
  display: block;
  color: var(--heading);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.hero-card,
.feature-card,
.service-card,
.info-panel,
.detail-card,
.hero-visual-card,
.highlight-banner {
  padding: 26px;
}

.hero-showcase {
  display: grid;
  gap: 18px;
}

.showcase-stack,
.stat-stack {
  display: grid;
  gap: 14px;
}

.compact-link {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
}

.quick-link-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 20px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.quick-link-card:hover,
.feature-card:hover,
.service-card:hover,
.info-panel:hover,
.detail-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.quick-link-card strong {
  color: var(--heading);
  font-size: 1rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.cards-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.feature-grid {
  align-items: stretch;
}

.feature-card.featured {
  background:
    linear-gradient(180deg, rgba(14, 32, 49, 0.94), rgba(10, 25, 39, 0.82));
}

html[data-theme="light"] .feature-card.featured {
  background: var(--surface-strong);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.feature-card h3,
.service-card h3,
.info-panel h3,
.detail-card h3 {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 1.34rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
}

.service-icon-lg {
  width: 66px;
  height: 66px;
}

.hero-visual-card {
  display: grid;
  gap: 22px;
  align-content: start;
}

.hero-logo {
  width: min(260px, 100%);
  margin: 0 auto;
  object-fit: contain;
}

.hero-logo-rounded {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.tag-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(34, 184, 107, 0.1);
  color: var(--heading);
  font-weight: 600;
  border: 1px solid rgba(34, 184, 107, 0.18);
}

.tag-list-center {
  justify-content: center;
}

.center-stack {
  justify-items: center;
  text-align: center;
}

.detail-card ul,
.feature-card ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.highlight-banner {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer-bar {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 24px 28px;
  border-radius: 22px;
  margin-bottom: 34px;
}

.site-footer {
  padding: 24px 0 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

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

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

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

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -18px, 0) scale(1.04);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .page-hero-grid,
  .highlight-banner,
  .footer-bar,
  .cards-grid-2,
  .cards-grid-3,
  .detail-grid,
  .detail-grid-wide,
  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-row {
    min-height: 88px;
  }

  .hero-grid,
  .page-hero-grid {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 26px, 1220px);
  }

  .section {
    padding: 70px 0;
  }

  .section-tight {
    padding: 42px 0 60px;
  }

  .brand-logo-xl {
    width: 64px;
    height: 64px;
  }

  .brand-tag {
    font-size: 0.84rem;
  }

  .theme-toggle {
    padding-right: 12px;
  }

  .theme-toggle-text {
    display: none;
  }

  .hero-content h1,
  .page-hero h1 {
    max-width: none;
    font-size: clamp(2.4rem, 10vw, 4.2rem);
  }

  .hero-actions,
  .card-links {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .card-top,
  .header-row,
  .brand {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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