/* ==========================================================================
   Net Scout
   1. Tokens   2. Base      3. Layout    4. Header & buttons
   5. Hero     6. Map       7. Form card 8. Features & how-it-works
   9. Footer  10. Motion   11. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #10243c;
  --ink-soft: #2e4c68;
  --body: #526a84;
  --muted: #61758d;
  --subtle: #7d8fa2;
  --blue: #087cf0;
  --green: #16c9a0;
  --error: #c0392b;
  --line: #e1ebf4;

  --gradient: linear-gradient(105deg, #087cf0, #04c7a0);
  --shadow-soft: 0 24px 70px rgba(37, 91, 139, .12);
  --shadow-card: 0 17px 50px rgba(37, 91, 139, .10);

  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: Manrope, "DM Sans", Arial, sans-serif;

  --wrap: min(1240px, calc(100% - 56px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 2. Base ------------------------------------------------------------------ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 79% 13%, rgba(180, 231, 255, .34), transparent 27rem),
    linear-gradient(180deg, #fbfdff 0%, #f5faff 60%, #fff 100%);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

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

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -1.8px;
  line-height: 1.12;
}

:focus-visible {
  outline: 3px solid rgba(8, 124, 240, .45);
  outline-offset: 3px;
  border-radius: 8px;
}

[id] {
  scroll-margin-top: 24px;
}

/* 3. Layout ---------------------------------------------------------------- */
.site-header,
.section-wrap,
.site-footer {
  width: var(--wrap);
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: #087dd8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.pulse-dot,
.caption-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 201, 160, .12);
}

/* 4. Header & buttons ------------------------------------------------------ */
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(22, 123, 207, .12);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.brand-name span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #506781;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--blue);
}

.nav-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(4, 150, 204, .18);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nav-cta {
  padding: 12px 20px;
  font-size: 14px;
  white-space: nowrap;
}

.primary-button {
  min-height: 49px;
  padding: 13px 22px;
  font-size: 15px;
}

.nav-cta:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(4, 150, 204, .25);
}

.primary-button:disabled {
  opacity: .7;
  cursor: progress;
  transform: none;
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  padding: 46px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  max-width: 570px;
  padding-top: 10px;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(39px, 4.1vw, 58px);
  font-weight: 800;
}

h1 span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: .78em;
  font-weight: 600;
  letter-spacing: -1.3px;
  line-height: 1.25;
}

.hero-description {
  max-width: 555px;
  margin-bottom: 13px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.75;
}

.hero-emphasis {
  margin-bottom: 23px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 19px;
}

.text-link {
  color: #486680;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s;
}

.microcopy {
  margin: 17px 0 0;
  color: var(--subtle);
  font-size: 13px;
}

.tiny-check {
  margin-right: 5px;
  color: var(--green);
  font-weight: 900;
}

.hero-side {
  min-width: 0;
  display: grid;
  gap: 18px;
}

/* 6. Map ------------------------------------------------------------------- */
.map-scene {
  position: relative;
  min-height: 365px;
  overflow: hidden;
  border: 1px solid rgba(199, 221, 239, .8);
  border-radius: 30px;
  background: #eef8ff;
  box-shadow: var(--shadow-soft);
}

.map-art {
  display: block;
  width: 100%;
  height: 365px;
  object-fit: cover;
}

.logo-float {
  position: absolute;
  top: 49%;
  left: 50%;
  width: clamp(135px, 16vw, 194px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 5px solid rgba(255, 255, 255, .84);
  border-radius: 30%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 55px rgba(23, 115, 194, .23);
}

.logo-float img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-caption {
  position: absolute;
  left: 18px;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .91);
  color: #47627c;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(35, 90, 140, .09);
}

.caption-dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

/* 7. Form card ------------------------------------------------------------- */
.waitlist-card {
  padding: 25px 27px 20px;
  border: 1px solid #e0ebf5;
  border-radius: 25px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-card);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-kicker {
  margin-bottom: 4px;
  color: #0788d9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.card-heading h2 {
  margin-bottom: 0;
  font-size: 25px;
  letter-spacing: -.8px;
}

.card-spark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: #e8f6ff;
  color: #058fe8;
  font-size: 20px;
}

.card-description {
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  margin: 11px 0 6px;
  color: #304a64;
  font-size: 13px;
  font-weight: 700;
}

/* 16px inputs stop iOS Safari from zooming the page on focus. */
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dce7f1;
  border-radius: 11px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: #56b8f3;
  box-shadow: 0 0 0 3px rgba(8, 124, 240, .10);
}

input::placeholder {
  color: #a0afbe;
}

.field-hint {
  margin: 5px 0 9px;
  color: var(--subtle);
  font-size: 12px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 13px 0 15px;
  color: #64788d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.consent-row input {
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.submit-button {
  width: 100%;
  min-height: 46px;
}

.form-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.form-status[data-state="error"] {
  color: var(--error);
}

/* 8. Features & how-it-works ---------------------------------------------- */
.feature-section {
  padding: 76px 0 86px;
  border-top: 1px solid #edf3f8;
  background: #fff;
}

.feature-section h2,
.how-section h2 {
  margin-bottom: 11px;
  font-size: clamp(29px, 3vw, 39px);
}

.section-intro {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.feature-card {
  padding: 24px 21px;
  border: 1px solid #e5eef6;
  border-radius: 19px;
  background: linear-gradient(155deg, #fff, #fbfdff);
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(36, 94, 142, .08);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 17px;
  border-radius: 14px;
  font-size: 23px;
}

.feature-icon.blue {
  background: #e7f4ff;
  color: var(--blue);
}

.feature-icon.mint {
  background: #e2faf4;
  color: #0dbd9a;
}

.feature-card h3 {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -.3px;
  line-height: 1.4;
}

.feature-card p {
  margin-bottom: 0;
  color: #6b7f93;
  font-size: 14px;
  line-height: 1.7;
}

.how-section {
  padding: 62px 0;
  border-top: 1px solid #e9f2f8;
  background: linear-gradient(115deg, #f1f9ff, #f4fffb);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 45px;
}

.how-grid .eyebrow {
  margin-bottom: 12px;
}

.how-grid h2 {
  margin-bottom: 0;
}

.how-grid > p {
  margin: 0;
  color: #5d7187;
  font-size: 16px;
  line-height: 1.75;
}

/* 9. Footer ---------------------------------------------------------------- */
.site-footer {
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7a8b9c;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-brand .brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer-brand .brand-name {
  font-size: 20px;
}

/* 10. Motion --------------------------------------------------------------- */
/* All animation is opt-in, so visitors who prefer reduced motion get a still page. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Fade-in: hidden only while JS is running (see the <head> script). */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity .8s var(--ease) var(--reveal-delay, 0ms),
      transform .8s var(--ease) var(--reveal-delay, 0ms);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .logo-float {
    animation: float-logo 5s ease-in-out infinite;
  }

  .waitlist-card.is-highlighted {
    animation: ring-pulse 1.2s ease-out;
  }
}

@keyframes float-logo {

  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, calc(-50% - 5px));
  }
}

@keyframes ring-pulse {
  from {
    box-shadow: 0 0 0 0 rgba(8, 124, 240, .35), var(--shadow-card);
  }

  to {
    box-shadow: 0 0 0 16px rgba(8, 124, 240, 0), var(--shadow-card);
  }
}

/* 11. Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 35px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-side {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
    align-items: stretch;
  }

  .map-scene,
  .map-art {
    min-height: 100%;
    height: 100%;
  }

  .map-scene {
    min-height: 490px;
  }

  .nav-links {
    gap: 18px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {

  .site-header,
  .section-wrap,
  .site-footer {
    width: min(100% - 34px, 560px);
  }

  .site-header {
    min-height: 75px;
    gap: 10px;
  }

  .brand-logo {
    width: 37px;
    height: 37px;
  }

  .brand-name {
    font-size: 22px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 10px 14px;
    font-size: 13px;
  }

  .hero {
    padding: 31px 0 55px;
    gap: 25px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -1.5px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .hero-side {
    display: flex;
    flex-direction: column;
  }

  .map-scene {
    min-height: 315px;
    height: 315px;
    border-radius: 23px;
  }

  .map-art {
    height: 315px;
  }

  .logo-float {
    width: 142px;
    border-radius: 28%;
  }

  .waitlist-card {
    padding: 21px 18px 17px;
    border-radius: 20px;
  }

  .feature-section {
    padding: 57px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-footer p {
    width: 100%;
    order: 3;
  }
}
