:root {
  --navy: #0c072c;
  --ink: #05040f;
  --blue: #1e5bd1;
  --cyan: #61a9be;
  --mid: #1d9bc3;
  --deep: #1e3562;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(8, 10, 22, 0.72);
  --radius: 16px;
  --header-h: 84px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--white);
  background: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.wrap {
  width: min(var(--max), calc(100% - 4rem));
  margin-inline: auto;
}

#discover,
#features,
#subcsonic,
#contact {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(236, 236, 236, 0.32);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 0 4rem;
}

.logo img {
  height: 64px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-weight: 600;
  font-size: 1rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: #8eb8ff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

body.nav-open .menu-toggle span {
  background: transparent;
}

body.nav-open .menu-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 2.2rem;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-solid {
  background: var(--white);
  color: #111;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--blue);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--white);
  color: #111;
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 2rem;
}

.btn-blue:hover,
.btn-blue:focus-visible {
  background: var(--deep);
}

.btn-on-light {
  background: var(--white);
  color: var(--navy);
}

.btn-on-light:hover,
.btn-on-light:focus-visible {
  background: #dce8ff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background-color: #1e5bd1;
  background-image: url("https://img.youtube.com/vi/C6cX0wQP5NA/maxresdefault.jpg");
  background-position: center;
  background-size: cover;
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-video-inner,
.hero-video iframe,
#hero-player {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(1.7);
  border: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 7rem;
}

.hero h1 {
  margin: 0 0 1.2rem;
  max-width: 15ch;
  width: 64%;
  font-size: clamp(2.2rem, 5.4vw, 4.375rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 2rem;
  max-width: 36rem;
  width: 50%;
  font-size: 1.125rem;
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 110px;
  color: #61a9be;
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Discover */
.discover {
  background: linear-gradient(180deg, #61a9be 0%, #0c072c 100%);
  padding: 7rem 0 8rem;
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  background: rgba(0, 0, 0, 0.72);
  border-radius: 10px;
  padding: 2rem 1.6rem;
  min-height: 210px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.card .num {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.42);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
}

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

.visual {
  min-height: 440px;
  border-radius: 10px;
  background:
    center / cover no-repeat url("../img/sonar.png"),
    #0b0d14;
}

.more-link {
  display: block;
  text-align: center;
  margin-top: 2.4rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.more-link:hover {
  color: #d7e8ff;
}

/* Features */
.features {
  background: #000;
  padding: 6rem 0 0;
}

.video-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.features-title {
  text-align: center;
  padding: 5rem 0 0;
}

.features-title h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Product */
.product {
  background: linear-gradient(180deg, #61a9be 0%, #0c072c 100%);
  padding: 5rem 0 8rem;
}

.product-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.product-visual img {
  width: min(640px, 100%);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.4));
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}

.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
}

.spec svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
  margin-top: 0.2rem;
}

.spec h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
}

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

/* Contact */
.contact {
  position: relative;
  padding: 7rem 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(12, 7, 44, 0.88)),
    center bottom / cover no-repeat url("../img/grid.jpg");
}

.contact-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 400;
}

.contact-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 4rem;
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  display: block;
  margin-bottom: 1.2rem;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font: 400 1rem Outfit, system-ui, sans-serif;
  padding: 0.85rem 0;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--white);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-note {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
}

.form-note.ok {
  color: #9be7a6;
}

.form-note.err {
  color: #ffb4b4;
}

.contact-aside {
  color: var(--white);
  font-size: 1.05rem;
}

.contact-aside a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.footer {
  background: #000;
  padding: 2rem 0;
}

.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a:hover {
  color: #8eb8ff;
}

.footer-bottom {
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-bottom a {
  font-weight: 700;
}

@media (max-width: 960px) {
  .wrap {
    width: min(var(--max), calc(100% - 2.5rem));
  }

  .header-inner {
    padding: 0 5%;
  }

  .discover-grid,
  .specs,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .visual {
    min-height: 320px;
  }

  .hero h1,
  .hero p {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.4rem;
    background: rgba(8, 6, 28, 0.96);
    border-bottom: 1px solid var(--line);
  }

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

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .btn {
    margin-top: 0.8rem;
    width: 100%;
  }

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

  .hero-video {
    display: none;
  }

  .hero-content {
    padding: 5.5rem 0 5.5rem;
  }

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

  .header {
    height: 68px;
  }

  :root {
    --header-h: 68px;
  }

  .logo img {
    height: 28px;
  }
}
