:root {
  --bg: #01030c;
  --bg-gradient: rgba(26, 102, 255, 0.45);
  --glow-1: rgba(100, 247, 194, 0.3);
  --glow-2: rgba(90, 198, 255, 0.35);
  --surface: rgba(2, 8, 26, 0.7);
  --surface-soft: rgba(7, 16, 42, 0.7);
  --surface-accent: rgba(17, 31, 73, 0.8);
  --text: #f7f8ff;
  --muted: #a7b5d4;
  --primary: #5ac6ff;
  --accent: #64f7c2;
  --danger: #ff7a90;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 120 120'%3E%3Cpath fill='%23ffffff08' d='M0 0h40v40H0zm40 40h40v40H40zM80 0h40v40H80zM0 80h40v40H0z'/%3E%3C/svg%3E");
}

:root.theme-light,
html[data-theme="light"] {
  --bg: #f8fbff;
  --bg-gradient: rgba(117, 141, 255, 0.25);
  --glow-1: rgba(55, 115, 255, 0.2);
  --glow-2: rgba(18, 83, 200, 0.18);
  --surface: rgba(255, 255, 255, 0.8);
  --surface-soft: rgba(245, 250, 255, 0.9);
  --surface-accent: rgba(237, 244, 255, 0.9);
  --text: #0f1a32;
  --muted: #4a5675;
  --primary: #1b63ff;
  --accent: #12c8a0;
  --border: rgba(10, 30, 66, 0.08);
  --noise: none;
}

.theme-light .section.accent {
  background: linear-gradient(180deg, #f5f7ff, #e6ecff);
}

.theme-light .hero-panel {
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border-color: rgba(10, 30, 66, 0.1);
  box-shadow: 0 30px 60px rgba(18, 34, 72, 0.15);
}

.theme-light .footer {
  background: rgba(255, 255, 255, 0.9);
}

.theme-light .site-header {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 35px rgba(18, 34, 72, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg-gradient), transparent 40%), var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, var(--glow-1), transparent 50%),
    radial-gradient(circle at 80% 0%, var(--glow-2), transparent 45%),
    var(--noise);
  opacity: 0.8;
  z-index: -2;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -1000px;
  top: 0;
  background: var(--primary);
  color: #01030c;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.skip-link:focus {
  transform: translate(1000px, 10px);
  outline: 2px solid #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.4s ease, background 0.4s ease;
  transform: translateY(0);
}

.site-header.scrolled {
  border-color: var(--border);
}

.site-header[data-hidden="true"] {
  transform: translateY(-110%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  display: grid;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.logo span:nth-child(1) {
  color: var(--accent);
}

.logo span:nth-child(2) {
  color: #fff;
}

.logo span:nth-child(3) {
  color: var(--primary);
}

.logo.small {
  font-size: 0.9rem;
}

.theme-light .logo span:nth-child(1) {
  color: #0fb090;
}

.theme-light .logo span:nth-child(2) {
  color: #0f1a32;
}

.theme-light .logo span:nth-child(3) {
  color: #1b63ff;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--text);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #01030c;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(67, 176, 255, 0.35);
}

.cta.ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
}

.theme-light .cta.ghost {
  border-color: rgba(10, 30, 66, 0.25);
  color: #0f1a32;
  background: rgba(255, 255, 255, 0.6);
}

.cta.full {
  width: 100%;
}

.link {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.link.pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(67, 176, 255, 0.4);
  color: var(--text);
}

.link.arrow::after {
  content: "→";
  margin-left: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.theme-toggle .theme-icon {
  position: absolute;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.theme-toggle .theme-icon.day {
  opacity: 0;
}

.theme-toggle .theme-icon.night {
  opacity: 1;
}

:root.theme-light body .theme-toggle .theme-icon.day,
.theme-light .theme-toggle .theme-icon.day {
  opacity: 1;
}

:root.theme-light body .theme-toggle .theme-icon.night,
.theme-light .theme-toggle .theme-icon.night {
  opacity: 0;
}

.theme-toggle[aria-pressed="true"] .theme-icon.day {
  opacity: 1;
}

.theme-toggle[aria-pressed="true"] .theme-icon.night {
  opacity: 0;
}

:root.theme-light body .theme-toggle,
.theme-light .theme-toggle {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.hero,
.section {
  scroll-margin-top: 90px;
}

.hero {
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.hero-highlights svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.hero-highlights strong {
  display: block;
  font-size: 1rem;
}

.hero-highlights p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
}

.trust-grid div {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-panel {
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 55%), var(--surface-soft);
  border-radius: 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(5, 10, 30, 0.3);
}

.panel-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.panel-head span {
  color: var(--accent);
  font-weight: 600;
}

.signal {
  display: flex;
  gap: 0.25rem;
}

.signal span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(67, 176, 255, 0.3);
  animation: pulse 2s infinite ease-in-out;
}

.signal span:nth-child(2) {
  animation-delay: 0.2s;
}

.signal span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.panel-metrics {
  display: grid;
  gap: 1rem;
}

.panel-metrics article {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.panel-metrics article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(120deg, var(--surface-soft), var(--surface-accent));
}

.panel-metrics article {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.panel-metrics strong {
  display: block;
  font-size: 1.8rem;
}

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

.section {
  padding: 4.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-header p {
  max-width: 420px;
  color: var(--muted);
}

.card-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card-grid article {
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(5, 10, 30, 0.5);
}

.card-grid article:hover::after {
  opacity: 1;
}

.card-grid h3 {
  margin: 0;
  font-size: 1.2rem;
}

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

.card-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(67, 176, 255, 0.15);
  color: var(--primary);
}

.section.accent {
  background: linear-gradient(180deg, var(--surface-soft), var(--surface-accent));
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.checklist li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.ecosystem {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  opacity: 0.9;
}

.ecosystem span {
  display: block;
  padding: 1rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-stack {
  background: radial-gradient(circle at 10% 20%, rgba(100, 247, 194, 0.12), transparent 50%);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.stack-grid article {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.8rem;
}

.stack-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-grid li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.timeline {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.timeline article {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--surface);
}

.timeline header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline h3 {
  margin: 0;
}

.timeline ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.testimonial-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-grid article {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.testimonial-grid footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.article-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.article-grid article {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-grid time {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-section {
  padding-bottom: 6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  background: var(--surface-accent);
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(5, 10, 30, 0.25);
}

.contact-cards {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-cards article {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-cards a {
  text-decoration: none;
  color: var(--text);
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--surface);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .theme-toggle {
    order: 3;
  }

  .primary-nav ul {
    position: absolute;
    inset: 70px 1rem auto;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    background: var(--surface);
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .primary-nav[data-open="true"] ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav ul li {
    padding: 0.35rem 0;
  }

  .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .card-grid,
  .article-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
