:root {
  --bg: #060c1a;
  --bg-soft: #0c1529;
  --text: #eff4ff;
  --muted: #9eaac0;
  --accent: #33d3ff;
  --accent-2: #7f95ff;
  --surface: #0f1a30;
  --line: #223251;
  --radius: 18px;
  --shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
  --header-offset: 84px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(51, 211, 255, 0.2), transparent 32%),
    radial-gradient(circle at 88% 4%, rgba(127, 149, 255, 0.17), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 24px 24px, 24px 24px, auto;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(6, 12, 26, 0.82);
  border-bottom: 1px solid rgba(34, 50, 81, 0.75);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(6, 12, 26, 0.95);
  border-bottom-color: rgba(51, 211, 255, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  height: clamp(36px, 4.2vw, 52px);
  width: auto;
}

nav {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(34, 50, 81, 0.8);
  background: rgba(8, 16, 34, 0.65);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(51, 211, 255, 0.14);
  transform: translateY(-1px);
}

nav a.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(51, 211, 255, 0.25), rgba(127, 149, 255, 0.25));
}

.menu-toggle {
  display: none;
  border: 1px solid #37517f;
  background: rgba(10, 20, 39, 0.88);
  border-radius: 10px;
  padding: 10px 9px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span + span {
  margin-top: 4px;
}

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

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

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

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #7fe7ff);
  color: #05101c;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(51, 211, 255, 0.45);
  box-shadow: 0 10px 24px rgba(10, 27, 48, 0.45);
  transition: transform 0.25s ease, filter 0.25s ease, color 0.25s ease;
}

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

.btn-ghost {
  background: rgba(9, 18, 37, 0.7);
  color: var(--text);
  border: 1px solid #355282;
}

.btn-ghost:hover {
  background: #14213a;
  color: var(--text);
}

.btn-nav {
  white-space: nowrap;
}

.hero {
  padding: 84px 0 58px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 18px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 211, 255, 0.24), transparent 70%);
  pointer-events: none;
  filter: blur(4px);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.7vw, 3.8rem);
  line-height: 1.08;
  margin: 10px 0 16px;
  max-width: 15ch;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 48ch;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(145deg, #131f39, #0a1223);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 10px;
}

.code-card {
  padding: 14px;
}

.code-window {
  border: 1px solid #2f466f;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1222;
}

.code-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #223251;
  background: linear-gradient(180deg, #14213a, #101a2e);
}

.code-dots {
  display: inline-flex;
  gap: 6px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) {
  background: #ff5f57;
}

.code-dots span:nth-child(2) {
  background: #febc2e;
}

.code-dots span:nth-child(3) {
  background: #28c840;
}

.code-file {
  margin: 0;
  color: #cfe0ff;
  font-size: 0.86rem;
  font-weight: 700;
}

.code-run {
  margin-left: auto;
  background: rgba(40, 200, 64, 0.2);
  color: #86ffa0;
  border: 1px solid rgba(40, 200, 64, 0.45);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
}

.code-body {
  margin: 0;
  padding: 16px 0;
  min-height: 260px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: var(--code-font-size);
  line-height: var(--code-line-height);
  color: #dbe8ff;
  white-space: pre;
}

.code-editor {
  --code-font-size: 14px;
  --code-line-height: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.hero-code {
  display: block;
  min-height: 230px;
}

.hero-code-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  height: var(--code-line-height);
  line-height: var(--code-line-height);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hero-code-line.visible {
  opacity: 1;
}

.hero-line-number {
  text-align: center;
  color: #5f7398;
  border-right: 1px solid #223251;
  user-select: none;
}

.hero-code-line.active .hero-line-number {
  color: #8fdfff;
  font-weight: 700;
}

.hero-line-content {
  display: block;
  padding: 0 14px;
  white-space: pre;
}

.code-muted {
  color: #94a6c7;
}

.code-key {
  color: #6fd6ff;
}

.code-prop {
  color: #84a4ff;
}

.code-string {
  color: #ffc788;
}

.code-number {
  color: #88ffb0;
}

.code-fn {
  color: #b48dff;
}

.code-cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: #57ddff;
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1s steps(1, end) infinite;
}

.code-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #223251;
  padding: 10px 12px;
  background: #0b1528;
}

.code-footer span {
  font-size: 0.76rem;
  color: #9ab0d6;
  border: 1px solid #2f466f;
  border-radius: 999px;
  padding: 4px 8px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 28, 51, 0.9), rgba(10, 18, 35, 0.95));
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c1529;
  padding: 22px;
}

.metric-number {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
}

.metric-text {
  margin: 8px 0 0;
  color: var(--muted);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.testimonial {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101d35;
  padding: 22px;
}

.testimonial p {
  margin: 0 0 10px;
}

.testimonial span {
  color: var(--muted);
  font-size: 0.94rem;
}

.logo-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.logo-row span {
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 70px 0;
}

.page-hero {
  padding-bottom: 30px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 25, 47, 0.92), rgba(9, 16, 30, 0.95));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-cta {
  margin-top: 20px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin-top: 8px;
  max-width: 24ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.card h3 {
  margin-bottom: 8px;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.step {
  background: #0a1325;
  color: #f5f6f7;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}

.step span {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent-2);
  font-size: 0.9rem;
  letter-spacing: 0.09em;
}

.step h3 {
  margin: 8px 0;
}

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

.contact {
  padding-bottom: 90px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.contact-box {
  text-align: center;
  background: linear-gradient(150deg, rgba(14, 26, 49, 0.92), rgba(8, 16, 33, 0.96));
  color: var(--text);
  border: 1px solid rgba(51, 211, 255, 0.2);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

.contact-box h2 {
  font-size: clamp(1.5rem, 3.3vw, 2.4rem);
  margin-bottom: 10px;
}

.contact-box p {
  margin: 0 auto 20px;
  max-width: 60ch;
  color: var(--muted);
}

.contact-box .btn {
  background: linear-gradient(135deg, var(--accent), #7fe7ff);
  color: #04101e;
  border-color: rgba(51, 211, 255, 0.48);
}

.contact-form {
  text-align: left;
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #d9e8ff;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #37527d;
  border-radius: 12px;
  padding: 12px 13px;
  margin-bottom: 0;
  font: inherit;
  color: #eff4ff;
  background: rgba(10, 20, 39, 0.86);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8fa2bf;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(51, 211, 255, 0.18);
  background: rgba(9, 19, 38, 0.95);
}

.form-note {
  margin: 12px 0 14px;
  color: #a6b7cf;
  font-size: 0.92rem;
}

.contact-form .btn {
  width: auto;
  min-width: 220px;
  box-shadow: 0 10px 24px rgba(14, 15, 18, 0.22);
}

.contact-form .btn-submit {
  position: relative;
  border: 1px solid rgba(51, 211, 255, 0.5);
  background: linear-gradient(135deg, var(--accent), #8deeff);
  color: #04101e;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.contact-form .btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.35s ease;
}

.contact-form .btn-submit:hover {
  background: linear-gradient(135deg, #4cddff, #aaf3ff);
  transform: translateY(-2px);
}

.contact-form .btn-submit:hover::before {
  left: 110%;
}

.contact-form .btn-submit:focus-visible {
  outline: 2px solid #9befff;
  outline-offset: 2px;
}

.contact-info h2 {
  margin-bottom: 14px;
}

.contact-info ul {
  margin: 0;
  padding-left: 20px;
}

.contact-info li + li {
  margin-top: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-legal p {
  margin: 0;
  font-weight: 700;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text);
}

.legal-page {
  padding-top: 16px;
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
  max-width: 900px;
}

.legal-content h2 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 10px;
  color: var(--muted);
}

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

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

.delay-1 {
  transition-delay: 0.14s;
}

.delay-2 {
  transition-delay: 0.28s;
}

@media (max-width: 940px) {
  .code-card {
    display: none;
  }

  .nav-wrap {
    position: relative;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 4vw 14px;
    background: rgba(6, 12, 26, 0.98);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    max-height: calc(100dvh - var(--header-offset));
    overflow-y: auto;
  }

  .primary-nav a {
    padding: 12px 0;
    border-top: 1px solid rgba(42, 47, 55, 0.6);
    border-radius: 0;
    background: transparent;
    transform: none;
  }

  .primary-nav a:first-child {
    border-top: 0;
  }

  body.nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero-grid,
  .trust-grid,
  .testimonials,
  .logo-row,
  .cards,
  .steps,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .btn-nav {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .section {
    padding: 58px 0;
  }

  .footer-wrap {
    flex-direction: column;
  }

  .footer-legal {
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(1120px, 94vw);
  }

  .nav-wrap {
    padding: 12px 0;
  }

  .logo img {
    height: 34px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-card,
  .card,
  .step,
  .metric-card,
  .testimonial {
    padding: 20px;
  }

  .contact-box {
    border-radius: 18px;
    padding: 24px 18px;
  }

  .hero-actions .btn,
  .contact-box > .btn,
  .contact-form .btn {
    width: 100%;
    text-align: center;
  }

  .hero-actions,
  .contact-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    max-width: 100%;
  }

  .legal-content {
    padding: 18px;
  }

  .legal-content h2 {
    font-size: 1.08rem;
  }

  .legal-content p {
    line-height: 1.6;
  }
}


