:root {
  --bg: #040811;
  --bg-soft: #081221;
  --panel: rgba(7, 16, 29, 0.72);
  --panel-strong: rgba(9, 18, 33, 0.9);
  --text: #f3f7ff;
  --muted: rgba(225, 232, 245, 0.78);
  --line: rgba(120, 156, 214, 0.18);
  --accent: #7f5cff;
  --accent-2: #23c7ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 26px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(44, 103, 255, 0.13), transparent 30%),
    radial-gradient(circle at 20% 30%, rgba(127, 92, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #040811 0%, #050913 100%);
  color: var(--text);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(35, 199, 255, 0.08), transparent 18%),
    radial-gradient(circle at 85% 10%, rgba(127, 92, 255, 0.08), transparent 18%);
  z-index: -1;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 1240px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(150, 180, 255, 0.16);
  border-radius: 22px;
  background: rgba(3, 10, 20, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(24, 53, 99, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(243, 247, 255, 0.84);
}
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(117, 94, 255, 0.95), rgba(35, 199, 255, 0.95));
  color: white;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(29, 92, 185, 0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 22px 48px rgba(29, 92, 185, 0.32); }
.button--ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(177, 198, 235, 0.16);
  box-shadow: none;
}
.button--nav { min-height: 44px; padding-inline: 18px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
}
.hero__media,
.hero__media img,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}
.hero__overlay {
  background:
    linear-gradient(90deg, rgba(4,8,17,0.86) 0%, rgba(4,8,17,0.54) 42%, rgba(4,8,17,0.26) 70%, rgba(4,8,17,0.55) 100%),
    linear-gradient(180deg, rgba(4,8,17,0.18) 0%, rgba(4,8,17,0.68) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 120px;
}
.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(210, 222, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.73rem;
}
.eyebrow::before,
.section-label::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(127,92,255,0.9), rgba(35,199,255,0.9));
}
.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 760px;
}
.hero__lead {
  max-width: 700px;
  font-size: clamp(1.03rem, 2.1vw, 1.35rem);
  line-height: 1.65;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

section { position: relative; }
.statement,
.principles,
.closing {
  padding-top: 110px;
  padding-bottom: 40px;
}
.statement h2,
.infrastructure h2,
.principles h2,
.closing__line {
  margin: 18px 0 16px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.statement h2,
.infrastructure h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.statement p,
.infrastructure p,
.principles p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}
.statement p { max-width: 760px; }

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 50px;
  padding-bottom: 30px;
}
.product-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,18,31,0.95), rgba(7,12,22,0.96));
  box-shadow: var(--shadow);
  transition: transform .28s ease, border-color .28s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 145, 227, 0.3);
}
.product-card__media {
  position: relative;
  aspect-ratio: 1.15 / 1;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(35,199,255,0.14), transparent 40%), #07111f;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__body { padding: 24px 24px 28px; }
.product-card__name {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.product-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.product-card__media--abstract {
  background:
    radial-gradient(circle at 20% 20%, rgba(127,92,255,0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(35,199,255,0.22), transparent 28%),
    linear-gradient(180deg, #07111f, #050c18);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}
.orb--one {
  width: 140px; height: 140px; left: 16%; top: 18%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), rgba(127,92,255,0.7) 35%, rgba(127,92,255,0.14) 70%, transparent 80%);
}
.orb--two {
  width: 160px; height: 160px; right: 12%; top: 14%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.52), rgba(35,199,255,0.72) 35%, rgba(35,199,255,0.15) 70%, transparent 80%);
}
.orb--three {
  width: 220px; height: 220px; left: 50%; bottom: -18%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18), rgba(33,49,89,0.4) 45%, rgba(0,0,0,0) 74%);
}
.play-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(191, 208, 255, 0.22);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.play-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 24px solid white;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.infrastructure {
  margin-top: 70px;
  min-height: 720px;
  display: grid;
  align-items: center;
}
.infrastructure__media,
.infrastructure__media img,
.infrastructure__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.infrastructure__media img { object-fit: cover; }
.infrastructure__overlay {
  background:
    linear-gradient(90deg, rgba(4,8,17,0.85) 0%, rgba(4,8,17,0.6) 42%, rgba(4,8,17,0.55) 100%),
    linear-gradient(180deg, rgba(4,8,17,0.3) 0%, rgba(4,8,17,0.75) 100%);
}
.infrastructure__content {
  position: relative;
  z-index: 1;
  padding-block: 120px;
}
.infrastructure__content p { max-width: 680px; }

.principles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}
.principles__grid article {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12,18,30,0.82), rgba(7,12,21,0.88));
  box-shadow: var(--shadow);
}
.principles__grid h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.principles__grid p { margin: 0; }

.closing { padding-bottom: 120px; }
.closing__line {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 900px;
}

@media (max-width: 1024px) {
  .products,
  .principles__grid { grid-template-columns: 1fr; }
  .nav { gap: 20px; }
  .button--nav { display: none; }
}

@media (max-width: 820px) {
  .topbar {
    top: 12px;
    width: calc(100% - 16px);
    padding-inline: 14px;
  }
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: min(260px, calc(100vw - 16px));
    padding: 20px;
    border-radius: 18px;
    background: rgba(5, 12, 22, 0.94);
    border: 1px solid rgba(150, 180, 255, 0.12);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .topbar.is-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .hero h1 { max-width: 580px; }
}

@media (max-width: 640px) {
  .hero__content { padding-top: 120px; padding-bottom: 80px; }
  .hero__lead { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .button, .button--ghost { width: 100%; max-width: 320px; }
  .statement,
  .principles,
  .closing { padding-top: 80px; }
  .infrastructure { min-height: 620px; }
}


.product-card__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-logo--small {
  max-width: 120px;
  max-height: 120px;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button--small {
  padding: 10px 16px;
  font-size: 0.92rem;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.site-modal.is-open {
  display: block;
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 22, 0.72);
  backdrop-filter: blur(10px);
}

.site-modal__panel {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  margin: 8vh auto 0;
  background: rgba(8, 14, 34, 0.96);
  border: 1px solid rgba(95, 138, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  padding: 28px 28px 26px;
  color: #eef3ff;
}

.site-modal__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 10px;
}

.site-modal__panel h3 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
  line-height: 1.05;
}

.site-modal__panel p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: rgba(238, 243, 255, 0.88);
}

.site-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}