:root {
  --bg: #060913;
  --surface: rgba(18, 24, 44, 0.72);
  --surface-strong: rgba(26, 35, 64, 0.88);
  --line: rgba(184, 198, 255, 0.24);
  --text: #ecf1ff;
  --muted: #adc0eb;
  --accent: #6f8cff;
  --accent-2: #57e8bc;
  --accent-3: #ff7198;
  --shadow: 0 24px 80px rgba(4, 8, 18, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", "Helvetica Neue", "Arial Rounded MT Bold", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(42vw 42vw at 14% 18%, rgba(98, 132, 255, 0.22), transparent 62%),
    radial-gradient(36vw 36vw at 88% 12%, rgba(84, 240, 191, 0.16), transparent 58%),
    radial-gradient(38vw 38vw at 76% 80%, rgba(255, 111, 160, 0.14), transparent 60%),
    linear-gradient(180deg, #070b17 0%, #040712 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(187, 204, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 204, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
}

.frames {
  position: relative;
}

.frame {
  min-height: 100svh;
  padding: 56px 0;
  display: flex;
  align-items: center;
}

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

.tag {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.55rem);
  line-height: 1.06;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.16;
  margin-bottom: 24px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  line-height: 1.45;
  margin-bottom: 18px;
  max-width: 66ch;
}

.body-copy {
  color: var(--muted);
  line-height: 1.6;
  max-width: 66ch;
  margin-bottom: 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero-frame .container {
  width: min(1380px, calc(100% - 36px));
}

.hero-canvas {
  position: relative;
  min-height: calc(100svh - 112px);
  border-radius: 30px;
  border: 1px solid rgba(186, 203, 255, 0.26);
  overflow: hidden;
  background-image:
    linear-gradient(120deg, rgba(3, 8, 18, 0.18), rgba(3, 8, 18, 0.52)),
    url("./pics/hero.webp");
  background-size: cover;
  background-position: center center;
  box-shadow: var(--shadow);
}

.hero-top-right,
.hero-bottom-right {
  position: absolute;
  right: clamp(16px, 3vw, 38px);
  width: min(40%, 560px);
  max-width: calc(100% - 32px);
  border-radius: 16px;
  padding: clamp(14px, 1.8vw, 24px);
  background: rgba(7, 11, 23, 0.38);
  backdrop-filter: blur(6px);
}

.hero-top-right {
  top: clamp(16px, 3vw, 36px);
}

.hero-top-right h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 6.2vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

.hero-top-right p {
  margin: 0;
  color: rgba(226, 236, 255, 0.76);
  font-size: clamp(0.88rem, 1.45vw, 1.08rem);
  line-height: 1.45;
}

.hero-bottom-right {
  bottom: clamp(16px, 3vw, 36px);
}

.hero-bottom-right {
  margin: 0;
  color: rgba(228, 238, 255, 0.86);
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  line-height: 1.55;
}

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

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #6e8fff, #58efc1);
  color: #0a1222;
}

.btn-ghost {
  background: rgba(17, 26, 49, 0.66);
  color: var(--text);
  border-color: var(--line);
}

.triple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.products-frame {
  min-height: 100svh;
}

.product-card,
.feature,
.audience-item,
.status-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.product-card {
  padding: 20px;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.product-icon {
  display: inline-flex;
  font-size: 2rem;
  color: #9db6ff;
  margin-bottom: 12px;
}

.product-role {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-2);
  font-weight: 600;
}

.product-card p {
  color: var(--muted);
  line-height: 1.55;
}

.key-thought {
  margin-top: 0;
  padding: 16px;
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(77, 110, 255, 0.12);
  color: #dae6ff;
  line-height: 1.55;
}

.frame-art {
  margin: 22px 0 0;
}

.frame-art img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.capabilities-frame {
  min-height: 100svh;
}

.feature {
  padding: 18px;
}

.feature-icon {
  display: inline-flex;
  font-size: 1.4rem;
  color: #c8d7ff;
  opacity: 0.96;
}

.feature h3 {
  margin: 12px 0 10px;
  font-size: 1.1rem;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.audience-frame {
  min-height: 100svh;
}

.audience-layout {
  min-height: calc(100svh - 140px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.audience-stage {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: clamp(500px, calc(100svh - 300px), 720px);
}

.audience-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  display: block;
}

.audience-overlays {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 10px;
  align-items: start;
}

.audience-overlay {
  padding: 12px 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(215, 227, 255, 0.35);
  background: rgba(9, 16, 33, 0.52);
  backdrop-filter: blur(5px);
  align-self: start;
}

.audience-overlay h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
}

.audience-overlay p {
  margin: 0;
  color: rgba(231, 240, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.36;
}

.audience-bottom-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(218, 229, 255, 0.34);
  background: rgba(7, 13, 28, 0.66);
  color: #e7efff;
  font-size: 0.84rem;
  line-height: 1.3;
  white-space: nowrap;
}

.status-layout {
  display: grid;
  gap: 22px;
}

.status-frame {
  min-height: 100svh;
}

.status-minimal {
  min-height: calc(100svh - 112px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
}

.status-minimal h2 {
  margin: 0;
  text-align: center;
  max-width: 24ch;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

.contact-card {
  width: min(680px, 100%);
  padding: clamp(20px, 2.5vw, 34px);
  border-radius: 22px;
  border: 1px solid rgba(194, 210, 255, 0.32);
  background:
    radial-gradient(120% 160% at 5% 0%, rgba(110, 143, 255, 0.28), transparent 52%),
    radial-gradient(110% 140% at 95% 100%, rgba(86, 236, 193, 0.22), transparent 58%),
    rgba(8, 13, 28, 0.78);
  box-shadow: 0 30px 90px rgba(3, 8, 18, 0.58);
  backdrop-filter: blur(9px);
  text-align: center;
}

.contact-name {
  margin: 0 0 8px;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  color: #eaf2ff;
}

.contact-mail {
  display: inline-block;
  text-decoration: none;
  font-size: clamp(1.02rem, 1.55vw, 1.26rem);
  color: #82e7c4;
  border-bottom: 1px solid rgba(130, 231, 196, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-mail:hover {
  color: #abf5da;
  border-color: rgba(171, 245, 218, 0.7);
}

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

.status-card {
  padding: 18px;
}

.status-card h3 {
  margin-bottom: 10px;
}

.status-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.45;
}

.cta-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dock-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  z-index: 45;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(184, 198, 255, 0.4);
  background: rgba(212, 224, 255, 0.24);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background: #d6e4ff;
  border-color: #d6e4ff;
}

.architecture-modal {
  width: min(950px, calc(100% - 42px));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 20px;
  background: rgba(7, 11, 24, 0.95);
  color: var(--text);
}

.architecture-modal::backdrop {
  background: rgba(3, 8, 16, 0.76);
  backdrop-filter: blur(6px);
}

.modal-close {
  margin-left: auto;
  display: block;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 45, 0.9);
  color: var(--text);
  cursor: pointer;
}

.architecture-modal h3 {
  margin: 8px 0 14px;
}

.modal-art {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: rgba(17, 25, 48, 0.56);
  border: 1px solid rgba(178, 196, 255, 0.2);
}

@media (max-width: 1040px) {
  .hero-grid,
  .triple-grid,
  .capabilities-grid,
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audience-overlays {
    inset: 14px 14px auto 14px;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .audience-bottom-overlay {
    white-space: normal;
  }
}

@media (max-width: 780px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero-grid,
  .triple-grid,
  .capabilities-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .audience-layout {
    min-height: calc(100svh - 92px);
  }

  .status-minimal {
    min-height: calc(100svh - 92px);
  }

  .audience-stage {
    min-height: clamp(470px, calc(100svh - 260px), 650px);
    border-radius: 16px;
  }

  .audience-overlays {
    inset: 10px 10px auto 10px;
    gap: 8px;
  }

  .audience-overlay {
    padding: 10px 10px 12px;
  }

  .audience-overlay h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .audience-overlay p {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .audience-bottom-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.32;
    white-space: normal;
  }

  .hero-canvas {
    min-height: calc(100svh - 176px);
    border-radius: 22px;
    background-position: 40% center;
  }

  .hero-top-right,
  .hero-bottom-right {
    width: min(56%, 460px);
  }

  .dock-nav {
    right: 10px;
  }

  .frame {
    min-height: auto;
    padding: 44px 0;
  }

  .dot {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 620px) {
  .hero-canvas {
    min-height: calc(100svh - 180px);
    background-position: 34% center;
  }

  .hero-top-right,
  .hero-bottom-right {
    width: calc(100% - 20px);
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 12px 14px;
  }

  .hero-top-right {
    top: 10px;
  }

  .hero-bottom-right {
    bottom: 10px;
  }

  .audience-overlays {
    inset: 8px 8px auto 8px;
  }

  .audience-bottom-overlay {
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .contact-card {
    border-radius: 16px;
  }

  .contact-mail {
    font-size: 0.96rem;
    word-break: break-word;
  }
}
