:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #f7f8ff;
  background: #080d24;
  font-synthesis: none;
  --muted: #c0c9e2;
  --line: rgb(177 192 246 / 29%);
  --coral: #ff765f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid #ff987e; outline-offset: 4px; }

.wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #101a4c;
  background: white;
  transform: translateY(-120%);
}

.skip-link:focus { transform: translateY(0); }

.hero {
  padding-top: 20px;
  background:
    linear-gradient(90deg, #080d24 0%, rgb(8 13 36 / 74%) 29%, transparent 68%),
    linear-gradient(0deg, #080d24 0%, transparent 16%),
    url("periscope-lens.webp") 62% 42% / cover no-repeat,
    #080d24;
  background-size: auto, auto, auto min(92vw, 805px);
  background-position: top, top, center top;
  background-repeat: no-repeat;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  padding: 10px 14px 10px 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgb(8 13 36 / 62%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.topbar nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 45px); }
.topbar nav :is(a, button) { font-size: 0.88rem; font-weight: 600; }
.platform-link:hover { color: #b9c8ff; }

.nav-sign-in {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: rgb(80 111 236 / 20%);
  cursor: pointer;
}

.nav-sign-in:hover:not(:disabled) { background: rgb(80 111 236 / 43%); }
.nav-sign-in:disabled { opacity: 0.55; cursor: default; }
.nav-sign-in span { color: #b6c6ff; }

.hero-content {
  display: flex;
  align-items: center;
  min-height: 590px;
  padding-block: 72px 82px;
}

.hero-copy { padding-bottom: 8px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}

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

h1 {
  margin: 21px 0 22px;
  font-size: clamp(3.35rem, 6.45vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.063em;
  line-height: 0.99;
  text-wrap: balance;
}

.hero-description {
  max-width: 34ch;
  margin-bottom: 28px;
  color: #e0e7fb;
  font-size: clamp(1rem, 1.6vw, 1.19rem);
  line-height: 1.62;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.explore-link:hover { border-color: #b8c6ff; }
.explore-link span { color: #b6c6ff; }

.sign-in {
  width: min(385px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  padding: 30px;
  border: 1px solid rgb(180 197 255 / 45%);
  border-radius: 22px;
  color: inherit;
  background: linear-gradient(150deg, rgb(28 42 100 / 86%), rgb(8 14 39 / 94%));
  box-shadow: 0 24px 70px rgb(0 0 0 / 34%);
  backdrop-filter: blur(20px);
}

.sign-in::backdrop { background: rgb(4 7 20 / 72%); }

.close-sign-in {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c9d6ff;
  background: transparent;
  cursor: pointer;
}

.close-sign-in:hover {
  border-color: var(--line);
  background: rgb(131 154 255 / 14%);
}

.lock-icon {
  display: grid;
  width: 41px;
  height: 41px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #c9d6ff;
  background: rgb(131 154 255 / 14%);
}

.sign-in h2 {
  margin-bottom: 8px;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.sign-in-description {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.sign-in label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.84rem;
  font-weight: 600;
}

.sign-in input {
  width: 100%;
  height: 44px;
  margin-bottom: 15px;
  padding: 0 12px;
  color: white;
  background: rgb(6 13 40 / 56%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sign-in input::placeholder { color: #a6b1d0; }

.sign-in form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  margin-top: 3px;
  padding: 0 14px;
  border: 1px solid #7792ff;
  border-radius: 8px;
  color: white;
  background: #365ad5;
  font-weight: 650;
  cursor: pointer;
}

.sign-in form button:hover { background: #2a49ba; }
.sign-in form button:disabled { opacity: 0.55; cursor: default; }

.form-error {
  margin: 0;
  color: #ffc5bb;
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-error:not(:empty) { margin-top: 12px; }

.platform {
  padding: clamp(48px, 6vw, 83px) 0 clamp(54px, 7vw, 91px);
  background: #f1f4fa;
  color: #111933;
}

.platform .eyebrow { color: #364878; }

.platform h2 {
  max-width: 19ch;
  margin: 15px 0 35px;
  font-size: clamp(2.15rem, 4.3vw, 3.75rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

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

.capabilities article { padding-top: 17px; border-top: 1px solid #c5cee4; }

.step {
  color: #2e4dae;
  font: 600 0.78rem/1.5 ui-monospace, monospace;
  letter-spacing: 0.06em;
}

.capabilities h3 {
  margin: 9px 0 8px;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.capabilities p {
  max-width: 36ch;
  margin-bottom: 0;
  color: #44516e;
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 25px;
}

.footer .brand { font-size: 1.05rem; }
.footer span { color: var(--muted); font-size: 0.83rem; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 56px); }
  .sign-in { padding: 24px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .hero {
    padding-top: 12px;
    background:
      linear-gradient(90deg, rgb(8 13 36 / 91%), rgb(8 13 36 / 27%)),
      linear-gradient(180deg, transparent 230px, #080d24 600px),
      url("periscope-lens.webp") 65% 0 / auto 500px no-repeat,
      #080d24;
  }
  .topbar { min-height: 58px; padding: 8px 9px 8px 12px; }
  .topbar .brand { font-size: 1.15rem; }
  .topbar .brand img { width: 28px; height: 28px; }
  .platform-link { display: none; }
  .topbar nav :is(a, button) { font-size: 0.78rem; }
  .nav-sign-in { padding: 8px; gap: 6px; }
  .hero-content { min-height: 380px; padding-block: 55px 40px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(2.95rem, 10.7vw, 4.2rem); }
  .hero-description { margin-bottom: 16px; }
  .capabilities { grid-template-columns: 1fr; gap: 23px; }
  .capabilities p { max-width: 50ch; }
  .footer .wrap { align-items: flex-start; flex-direction: column; }
}

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