:root {
  --bg: #07111f;
  --bg-soft: #0c1b2d;
  --card: #10233a;
  --text: #eef6ff;
  --muted: #a9bad1;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #39b9ff;
  --accent-2: #7c5cff;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(57, 185, 255, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(57, 185, 255, 0.22), transparent 30%),
    radial-gradient(circle at 80% 35%, rgba(124, 92, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #0a1728 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 300px;
  background: linear-gradient(90deg, rgba(57, 185, 255, 0.12), rgba(124, 92, 255, 0.12));
  filter: blur(80px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 90px 0;
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 78px);
  max-width: 780px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #04101e;
  background: linear-gradient(135deg, var(--accent), #8de0ff);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-card {
  padding: 1px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(57, 185, 255, 0.5), rgba(124, 92, 255, 0.45));
  box-shadow: var(--shadow);
}

.code-window {
  border-radius: 27px;
  background: rgba(9, 20, 35, 0.94);
  border: 1px solid var(--line);
  padding: 24px;
  overflow: hidden;
}

.code-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.code-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

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

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

pre {
  margin: 0;
  white-space: pre-wrap;
  color: #d8ebff;
  font-size: 15px;
}

.section {
  padding: 96px 0;
}

.section-muted {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}

.split p,
.section-heading p,
.card p,
.capability p,
.contact-card p,
.policy-content p {
  color: var(--muted);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 44px;
}

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

.card,
.capability,
.contact-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 28px;
  padding: 28px;
}

.card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 15%, rgba(57, 185, 255, 0.35), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(124, 92, 255, 0.26), transparent 36%),
    rgba(255, 255, 255, 0.04);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -80%;
  width: 80%;
  height: 260%;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 38%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 62%,
    transparent 100%
  );
  transform: rotate(12deg);
  transition: left 0.7s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(57, 185, 255, 0.45);
  background: rgba(255, 255, 255, 0.065);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.32),
    0 0 38px rgba(57, 185, 255, 0.12);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  left: 120%;
}

.card h3 {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.card p {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--white);
}

.card:hover p {
  color: #cfe2f7;
}

.card-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #04101e;
  background: linear-gradient(135deg, var(--accent), #8de0ff);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(57, 185, 255, 0.22);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.card-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 24px;
  border: 1px solid rgba(57, 185, 255, 0.24);
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.card:hover .card-icon {
  transform: translateY(-4px) scale(1.06);
  background: linear-gradient(135deg, #8de0ff, var(--accent-2));
  box-shadow:
    0 18px 44px rgba(57, 185, 255, 0.34),
    0 0 24px rgba(124, 92, 255, 0.22);
}

.card:hover .card-icon::after {
  opacity: 1;
  transform: scale(1);
font-weight: 900;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.capability {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 190px;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.capability::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 20%, rgba(57, 185, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(124, 92, 255, 0.22), transparent 38%),
    rgba(255, 255, 255, 0.04);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.capability::after {
  content: "";
  position: absolute;
  top: -130%;
  left: -85%;
  width: 72%;
  height: 280%;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.04) 62%,
    transparent 100%
  );
  transform: rotate(12deg);
  transition: left 0.75s ease;
}

.capability:hover {
  transform: translateY(-8px);
  border-color: rgba(57, 185, 255, 0.4);
  background: rgba(255, 255, 255, 0.065);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(57, 185, 255, 0.1);
}

.capability:hover::before {
  opacity: 1;
}

.capability:hover::after {
  left: 125%;
}

.capability h3,
.capability p {
  position: relative;
  z-index: 1;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.capability:hover h3 {
  color: var(--white);
  transform: translateY(-2px);
}

.capability:hover p {
  color: #cfe2f7;
}

.capability h3::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px rgba(57, 185, 255, 0.18);
  transition:
    width 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.capability:hover h3::before {
  width: 72px;
  background: linear-gradient(135deg, #8de0ff, var(--accent-2));
  box-shadow:
    0 12px 34px rgba(57, 185, 255, 0.32),
    0 0 24px rgba(124, 92, 255, 0.2);
}

.contact-section {
  padding-top: 40px;
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(57, 185, 255, 0.16), transparent 58%),
    radial-gradient(circle at 75% 35%, rgba(124, 92, 255, 0.14), transparent 42%);
  filter: blur(20px);
  pointer-events: none;
}

.contact-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.contact-heading p:not(.section-label) {
  color: var(--muted);
  font-size: 18px;
}

.contact-form {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 12%, rgba(57, 185, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 86%, rgba(124, 92, 255, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    0 0 38px rgba(57, 185, 255, 0.08);
  overflow: hidden;
}

.contact-form::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -85%;
  width: 70%;
  height: 280%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 62%,
    transparent 100%
  );
  transform: rotate(12deg);
  animation: contactShine 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes contactShine {
  0%, 38% {
    left: -85%;
  }

  58%, 100% {
    left: 125%;
  }
}

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

.form-field {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.72);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(169, 186, 209, 0.65);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(57, 185, 255, 0.6);
  background: rgba(7, 17, 31, 0.9);
  box-shadow:
    0 0 0 4px rgba(57, 185, 255, 0.08),
    0 0 22px rgba(57, 185, 255, 0.08);
}

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

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-submit {
  position: relative;
  z-index: 1;
  border: 0;
  cursor: pointer;
  min-width: 170px;
  display: flex;
  margin: 8px auto 0;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal.open {
  display: flex;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 15, 0.72);
  backdrop-filter: blur(12px);
}

.contact-modal-box {
  position: relative;
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid rgba(57, 185, 255, 0.32);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 15%, rgba(57, 185, 255, 0.28), transparent 36%),
    radial-gradient(circle at 84% 82%, rgba(124, 92, 255, 0.22), transparent 38%),
    rgba(12, 27, 45, 0.96);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    0 0 48px rgba(57, 185, 255, 0.14);
  overflow: hidden;
  text-align: center;
  animation: modalIn 0.25s ease forwards;
}

.contact-modal-box::after {
  content: "";
  position: absolute;
  top: -130%;
  left: -90%;
  width: 78%;
  height: 290%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 38%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 62%,
    transparent 100%
  );
  transform: rotate(12deg);
  animation: modalShine 2.2s ease forwards;
  pointer-events: none;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

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

@keyframes modalShine {
  from {
    left: -90%;
  }

  to {
    left: 130%;
  }
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.contact-modal-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #8de0ff);
  color: #04101e;
  font-size: 30px;
  font-weight: 900;
  box-shadow:
    0 18px 44px rgba(57, 185, 255, 0.34),
    0 0 24px rgba(124, 92, 255, 0.18);
}

.contact-modal-icon.error {
  background: linear-gradient(135deg, #ff6b6b, #ffd166);
}

.contact-modal-box h3 {
  margin-bottom: 10px;
}

.contact-modal-box p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 700px) {
  .contact-form {
    padding: 24px;
    border-radius: 24px;
  }

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

  .contact-submit {
    width: 100%;
  }

  .contact-modal-box {
    padding: 30px 22px;
    border-radius: 24px;
  }
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid-three {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.footer-left,
.footer-center,
.footer-right {
  min-width: 0;
}

.footer-left {
  text-align: left;
}

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

.footer-right {
  text-align: right;
}

.footer-left p,
.footer-center p {
  margin: 0;
}

.footer-left p + p,
.footer-center p + p {
  margin-top: 4px;
}

.footer-right a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

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

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(7, 17, 31, 0.96);
  }

  .nav-menu.static {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .cards,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 70px 0;
  }

  .section {
    padding: 70px 0;
  }

  .footer-grid,
  .footer-grid-three {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
    gap: 16px;
  }
  
  .footer-left,
  .footer-center,
  .footer-right {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .logo span:last-child {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .card,
  .capability,
  .contact-card {
    padding: 22px;
    border-radius: 22px;
  }

  pre {
    font-size: 13px;
  }
}

.logo-image-link {
  display: inline-flex;
  align-items: center;
  height: 64px;
  max-width: 260px;
}

.nav-logo-img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 260px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .logo-image-link {
    height: 56px;
    max-width: 210px;
  }

  .nav-logo-img {
    height: 46px;
    max-width: 210px;
  }
}

@media (max-width: 420px) {
  .logo-image-link {
    max-width: 180px;
  }

  .nav-logo-img {
    height: 40px;
    max-width: 180px;
  }
}
