:root {
  --bg: #f5f7fa;
  --bg-soft: #e8f2fb;
  --ink: #04213b;
  --text: #043259;
  --muted: #34618f;
  --brand: #0583f2;
  --brand-2: #055ba6;
  --brand-glow: #3fa9ff;
  --accent: #ffb020;
  --accent-2: #ff8a3d;
  --surface: rgba(255, 255, 255, 0.92);
  --border: rgba(4, 50, 89, 0.14);
  --shadow: 0 12px 28px rgba(4, 50, 89, 0.12);
  --shadow-lg: 0 24px 48px rgba(4, 50, 89, 0.16);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 5rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(5, 131, 242, 0.1) 0%, transparent 44%),
    radial-gradient(circle at 88% 18%, rgba(5, 91, 166, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 48%, var(--bg) 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  filter: blur(90px);
  opacity: 0.24;
  pointer-events: none;
}

.bg-shape-1 {
  width: 320px;
  height: 320px;
  background: var(--brand);
  top: -90px;
  right: -70px;
  animation: drift 12s ease-in-out infinite;
}

.bg-shape-2 {
  width: 280px;
  height: 280px;
  background: var(--brand-2);
  bottom: -70px;
  left: -60px;
  animation: drift 15s ease-in-out infinite reverse;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -18px, 0) scale(1.12);
  }
}

.node-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}

.node-field-dense {
  opacity: 0.85;
}

.node-field .node-dots circle {
  animation: pulseNode 3.4s ease-in-out infinite;
}

.node-field .node-dots circle:nth-child(2n) {
  animation-delay: 0.6s;
}

.node-field .node-dots circle:nth-child(3n) {
  animation-delay: 1.2s;
}

@keyframes pulseNode {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

.circuit-divider {
  width: min(1120px, 92vw);
  margin: 0 auto;
  height: 28px;
  position: relative;
}

.circuit-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
  transform: translateY(-50%);
}

.circuit-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 176, 32, 0.15);
  transform: translate(-50%, -50%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 5vw;
  backdrop-filter: blur(8px);
  background: rgba(245, 247, 250, 0.9);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-text {
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 1.1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-weight: 700;
}

.section {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: var(--space-7) 0;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-content: center;
  gap: var(--space-2);
}

.kicker {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  max-width: 13.6ch;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 22ch;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

.btn {
  text-decoration: none;
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(255, 138, 61, 0.32);
}

.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  padding: 0;
  margin: var(--space-4) 0 0;
  max-width: 760px;
}

.stats li {
  display: grid;
  gap: 0.18rem;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: var(--space-2);
  box-shadow: var(--shadow);
}

.stats strong {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-2);
}

.stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.loop-strip {
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding: 1.5rem 0;
}

.marquee {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
  animation: scrollLeft 20s linear infinite;
  margin-bottom: 0.8rem;
}

.marquee-2 {
  animation-direction: reverse;
  animation-duration: 24s;
}

.marquee span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #ffffff;
  color: var(--brand-2);
  font-weight: 600;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.grid {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-3);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  color: var(--text);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.value-card {
  border-top: 5px solid var(--accent);
}

.contact-grid {
  align-items: start;
  margin-top: var(--space-4);
}

.contact-info {
  max-width: 560px;
  display: grid;
  gap: var(--space-1);
}

.contact-info .btn-primary {
  justify-self: start;
  margin-top: 0.2rem;
}

.contact-form {
  display: grid;
  gap: 0.45rem;
}

.contact-form label {
  font-weight: 700;
  margin-top: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  padding: 0.7rem;
  background: rgba(245, 247, 250, 0.92);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(5, 131, 242, 0.28);
  border-color: var(--brand);
}

.form-status {
  min-height: 1.2rem;
  margin-top: 0.3rem;
  color: var(--muted);
}

.hint {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.85;
}

.hp {
  position: absolute;
  left: -9999px;
}

.section-dark {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  background: var(--ink);
  color: #eaf3ff;
  margin: var(--space-6) 0;
}

.section-dark .kicker {
  color: var(--accent);
}

.section-dark h2 {
  color: #f4f9ff;
}

.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #eaf3ff;
  padding: var(--space-6) 5vw var(--space-3);
}

.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(234, 243, 255, 0.14);
}

.footer-brand {
  display: grid;
  gap: var(--space-1);
  max-width: 34ch;
}

.footer-brand .brand {
  color: #f4f9ff;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  gap: var(--space-2);
  justify-items: end;
}

.footer-nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: #eaf3ff;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: var(--space-2);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .grid.two,
  .grid.three,
  .stats {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    top: 62px;
    right: 5vw;
    display: none;
    flex-direction: column;
    border: 1px solid var(--border);
    background: rgba(245, 247, 250, 0.95);
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 180px;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    min-height: 76vh;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: var(--space-5) 0;
  }

  .section-dark {
    margin: var(--space-4) 0;
  }

  .hero {
    min-height: 68vh;
    gap: var(--space-1);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .stats {
    max-width: none;
  }

  .topbar {
    padding: 0.75rem 5vw;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-items: start;
  }
}
