:root {
  --primary: #2997ff;
  --primary-bright: #64b5ff;
  --bg-dark: #05070b;
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: var(--bg-dark);
}

body {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(41, 151, 255, 0.15), transparent 34rem),
    linear-gradient(180deg, #060910 0%, #030509 45%, #070a10 100%);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  pointer-events: none;
}

body::before {
  top: 26%;
  left: -20rem;
  background: #0066cc;
}

body::after {
  right: -21rem;
  bottom: 8%;
  background: #5e5ce6;
}

::selection {
  color: #fff;
  background: rgba(41, 151, 255, 0.65);
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #2997ff, #7dd3fc, #a78bfa);
  box-shadow: 0 0 14px rgba(41, 151, 255, 0.6);
}

.site-nav {
  position: fixed;
  z-index: 900;
  top: 14px;
  left: 50%;
  width: min(94%, 980px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(8, 11, 17, 0.62);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.2);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-nav.is-scrolled {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 11, 17, 0.84);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

.nav-brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(41, 151, 255, 0.16);
}

.hero {
  min-height: 94vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 130px 24px 100px;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 14%;
  left: 50%;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate3d(-50%, calc(var(--hero-shift, 0px) * 0.35), 0);
  background:
    radial-gradient(circle, rgba(41, 151, 255, 0.2) 0%, rgba(94, 92, 230, 0.08) 35%, transparent 68%);
  filter: blur(10px);
  will-change: transform;
}

.hero-content {
  width: min(100%, 940px);
  transform: translate3d(0, var(--hero-shift, 0px), 0);
  opacity: var(--hero-opacity, 1);
  will-change: transform, opacity;
}

.hero-logo {
  width: min(78vw, 430px);
  margin: 0 auto 54px;
  filter: drop-shadow(0 24px 55px rgba(0, 0, 0, 0.4));
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--primary-bright);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(52px, 9vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 15%, #aeb9c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 680px;
  margin: 30px auto 0;
  color: var(--text-muted);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 38px;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-link:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 151, 255, 0.5);
  background: rgba(41, 151, 255, 0.13);
}

.hero-link i {
  font-size: 12px;
}

.error-main {
  width: min(92%, 980px);
  min-height: calc(100vh - 110px);
  min-height: calc(100svh - 110px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 140px 0 90px;
  text-align: center;
}

.error-content {
  width: 100%;
  display: grid;
  justify-items: center;
}

.error-logo {
  width: min(64vw, 290px);
  height: auto;
  margin-bottom: clamp(28px, 5vh, 48px);
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.42));
}

.error-code {
  position: relative;
  font-size: clamp(120px, 27vw, 280px);
  font-weight: 750;
  line-height: 0.78;
  letter-spacing: -0.085em;
  color: transparent;
  background: linear-gradient(180deg, #fff 6%, #8acbff 48%, #1688ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 24px 58px rgba(41, 151, 255, 0.2));
}

.error-code::after {
  content: "404";
  position: absolute;
  z-index: -1;
  inset: 0;
  color: rgba(41, 151, 255, 0.15);
  filter: blur(30px);
}

.error-title {
  margin-top: clamp(30px, 5vh, 50px);
  color: var(--text);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.error-description {
  max-width: 580px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  text-wrap: balance;
}

.error-home {
  margin-top: 30px;
}

.container {
  width: min(92%, 1080px);
  margin: 0 auto;
  padding: 70px 0 120px;
}

.card {
  --pointer-x: 50%;
  --pointer-y: 0%;
  margin-bottom: 72px;
  padding: clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025) 48%),
    rgba(12, 16, 24, 0.74);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
  transition: border-color 0.45s ease, box-shadow 0.45s ease, background-color 0.45s ease;
}

.card::before {
  opacity: 0;
}

.card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.38),
    0 0 60px rgba(41, 151, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.card h2 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.card h2::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #7dd3fc);
  box-shadow: 0 0 18px rgba(41, 151, 255, 0.38);
}

.card p,
.feature-list {
  max-width: 820px;
  color: #c5c9d1;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.75;
  letter-spacing: -0.012em;
}

.card p + p {
  margin-top: 22px;
}

.section-heading {
  margin-top: 0;
  font-size: clamp(26px, 3.6vw, 40px) !important;
  line-height: 1.13 !important;
}

.section-heading::before {
  display: none !important;
}

.section-divider {
  margin: clamp(44px, 7vw, 78px) 0;
  border-color: rgba(255, 255, 255, 0.09);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 17px 18px 17px 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--primary-bright);
  font-weight: 700;
}

.external-link {
  position: relative;
  color: var(--primary-bright);
  font-weight: 600;
  text-decoration: none;
}

.external-link::after {
  content: " ↗";
  font-size: 0.75em;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(41, 151, 255, 0.8);
  background: rgba(5, 12, 22, 0.72);
  box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.13);
}

.contact-btn {
  display: inline-block;
  width: fit-content;
  margin-top: 20px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1688ee, #0071e3);
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.25);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.contact-form .contact-btn {
  margin-top: 0;
}

.contact-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 42px rgba(0, 113, 227, 0.35);
}

.privacy-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  line-height: 1.5;
}

.privacy-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.privacy-field a {
  color: var(--primary);
}

.form-status {
  padding: 12px 14px;
  border-radius: 12px;
}

.form-status.success {
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.22);
}

.form-status.error {
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
  background: rgba(153, 27, 27, 0.22);
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.card-center {
  text-align: center;
}

.social-card {
  padding-block: clamp(46px, 7vw, 76px);
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-size: 26px;
}

.social-icons a {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: rgba(41, 151, 255, 0.35);
  color: #fff;
  background: rgba(41, 151, 255, 0.12);
}

footer {
  margin-top: auto;
  padding: 36px 20px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
  font-size: 14px;
}

footer a {
  margin: 0 10px;
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.cookie-banner {
  position: fixed;
  z-index: 1100;
  right: 22px;
  bottom: 22px;
  width: min(calc(100% - 44px), 520px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  color: var(--text);
  background: rgba(10, 14, 21, 0.9);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  animation: cookie-enter 0.65s var(--ease-out) both;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-hiding {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.cookie-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cookie-title::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 15px rgba(41, 151, 255, 0.65);
}

.cookie-text {
  margin: 0;
  color: #c5c9d1;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cookie-link {
  padding: 10px 4px;
  color: var(--primary-bright);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cookie-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-accept {
  padding: 10px 19px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1688ee, #0071e3);
  box-shadow: 0 9px 24px rgba(0, 113, 227, 0.27);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cookie-accept:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.cookie-accept:focus-visible,
.cookie-link:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
}

@keyframes cookie-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 70px, 0) scale(0.975);
  transition:
    opacity 1s var(--ease-out),
    transform 1.15s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 720px) {
  .site-nav {
    top: 10px;
    min-height: 50px;
    padding-left: 16px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 9px;
    font-size: 12px;
  }

  .nav-brand {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 120px;
  }

  .hero-logo {
    margin-bottom: 42px;
  }

  .error-main {
    width: min(93%, 980px);
    padding-top: 120px;
  }

  .container {
    width: min(93%, 1080px);
    padding-top: 28px;
  }

  .card {
    margin-bottom: 38px;
    border-radius: 25px;
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

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

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 19px;
    border-radius: 19px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(46px, 16vw, 66px);
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .error-logo {
    width: min(70vw, 240px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .hero::before,
  .scroll-progress,
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cookie-banner {
    animation: none;
  }
}
