:root {
  --bg-a: #d3f1ff;
  --bg-b: #eef8ff;
  --ink-900: #062b47;
  --ink-700: #27567b;
  --brand-600: #006dff;
  --brand-500: #0097b2;
  --brand-400: #00d4ff;
  --brand-300: #70e8ff;
  --white: #ffffff;
  --line: rgba(0, 109, 255, 0.2);
  --card: rgba(255, 255, 255, 0.75);
  --shadow: 0 12px 32px rgba(0, 109, 255, 0.16);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 10% 12%, rgba(0, 109, 255, 0.16), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(0, 212, 255, 0.26), transparent 32%),
    radial-gradient(circle at 65% 88%, rgba(0, 109, 255, 0.2), transparent 28%),
    linear-gradient(145deg, var(--bg-a), var(--bg-b));
  line-height: 1.6;
}

#pointer-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 2;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

.eyebrow {
  color: var(--brand-600);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(0, 151, 178, 0.18);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.header.scrolled {
  box-shadow: 0 10px 30px rgba(8, 80, 130, 0.1);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo img {
  width: auto;
  height: 38px;
  filter: hue-rotate(-14deg) saturate(1.45) brightness(1.08) drop-shadow(0 4px 10px rgba(0, 109, 255, 0.32));
}

.nav__logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.nav__menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1rem;
}

.nav__link {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-700);
  font-weight: 600;
}

.nav__link:hover,
.nav__link.active {
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.16), rgba(0, 109, 255, 0.12));
  color: var(--ink-900);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  padding: 0.74rem 1.15rem;
  transition: 0.25s ease;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500), var(--brand-400));
  box-shadow: var(--shadow);
}

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

.btn--ghost {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-900);
}

.btn--full {
  width: 100%;
}

.btn__loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  margin-left: 0.5rem;
  animation: spin 0.8s linear infinite;
}

.btn.loading .btn__text {
  display: none;
}

.btn.loading .btn__loader {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero {
  padding-top: 8rem;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
  align-items: center;
}

.hero h1 {
  margin-top: 0.55rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__text {
  margin-top: 0.8rem;
  max-width: 52ch;
  color: var(--ink-700);
}

.hero__actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  color: #0058d6;
}

.hero h1 {
  background: linear-gradient(120deg, #0058d6, #0097b2 46%, #00b8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__head {
  margin-bottom: 1rem;
}

.section h2 {
  margin-top: 0.3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.page-hero {
  padding-top: 8rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.clean-list {
  list-style: none;
  margin-top: 0.4rem;
  display: grid;
  gap: 0.4rem;
}

.clean-list li {
  color: var(--ink-700);
}

.clean-list li::before {
  content: '• ';
  color: var(--brand-600);
  font-weight: 700;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.bento-card,
.flow-card,
.contact__form,
.contact-copy {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.bento-card h3,
.flow-card h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.bento-card p,
.flow-card p,
.contact-copy p {
  color: var(--ink-700);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.flow-card span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 151, 178, 0.14);
  color: var(--brand-600);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0.8rem;
}

.form__group {
  margin-bottom: 0.65rem;
}

.form__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  color: var(--ink-700);
}

.form__input {
  width: 100%;
  border: 1px solid rgba(10, 127, 195, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-900);
  padding: 0.72rem 0.76rem;
}

.form__input::placeholder {
  color: #6f8197;
}

.form__textarea {
  resize: vertical;
}

.form__error {
  display: block;
  min-height: 1rem;
  color: #d43a3a;
  font-size: 0.8rem;
}

.form__success {
  display: none;
  margin-top: 0.7rem;
  border-radius: 10px;
  padding: 0.65rem;
  color: #fff;
  background: #18b56b;
}

.form__success.show {
  display: block;
}

.footer {
  padding: 1.2rem 0 2.2rem;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-700);
}

.footer-brand p:first-child {
  color: var(--ink-900);
  font-weight: 700;
}

.footer-brand p:last-child {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--ink-700);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-600);
}

.footer-copy {
  font-size: 0.88rem;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: 0.5s ease;
}

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

@media (max-width: 960px) {
  .hero__layout,
  .flow-grid,
  .contact-wrap,
  .bento-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 255, 255, 0.98);
  }

  .nav__menu.active {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    white-space: normal;
  }
}
