/* Palette drawn from the hero photo: blue hour siding, the cyan data line, the amber window. */
:root {
  --navy-950: #070e19;
  --navy-900: #0a1422;
  --navy-800: #101d31;
  --navy-700: #1a2b45;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #3dd6e6;
  --cyan-deep: #0b7285;
  --amber: #f6b556;
  --amber-deep: #a76408;
  --mist: #f3f6fa;
  --paper: #ffffff;
  --ink: #0f1b2d;
  --ink-soft: #46566b;
  --on-dark: #eaf1f8;
  --on-dark-soft: #a9b9cb;
  --error: #ff9a8a;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  padding: 8px 12px;
  background: var(--cyan);
  color: var(--navy-900);
  z-index: 10;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  min-height: min(92vh, 860px);
  background:
    linear-gradient(90deg, rgba(7, 14, 25, 0.9) 0%, rgba(7, 14, 25, 0.62) 38%, rgba(7, 14, 25, 0) 68%),
    linear-gradient(180deg, rgba(7, 14, 25, 0.55) 0%, rgba(7, 14, 25, 0) 22%, rgba(7, 14, 25, 0) 70%, var(--navy-900) 100%),
    var(--navy-900) url("/images/hero.jpg") 72% center / cover no-repeat;
  color: var(--on-dark);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--cyan);
}
.login {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 14, 25, 0.45);
  color: var(--on-dark-soft);
  font-size: 14px;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.login strong {
  color: var(--cyan);
  font-weight: 600;
}
.login:hover, .login:focus-visible { border-color: var(--cyan); }

.hero-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 40px var(--gutter) 96px;
}
.hero .eyebrow { color: var(--cyan); }
.hero h1 {
  max-width: 10.5em;
  font-size: clamp(36px, 5vw, 68px);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  margin-top: 36px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy-950);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button:hover { background: #6fe3ef; transform: translateY(-1px); }

/* Why */
.why {
  background: var(--mist);
  padding: clamp(64px, 9vw, 128px) var(--gutter);
}
.why-intro,
.audiences {
  max-width: var(--max);
  margin: 0 auto;
}
.why-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.why .eyebrow { color: var(--cyan-deep); }
.why-text h2 {
  margin-bottom: 0.45em;
  font-size: clamp(34px, 4.4vw, 58px);
}
.lead {
  max-width: 32em;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
}
.why-intro img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(10, 20, 34, 0.45);
}

.audiences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 6vw, 80px);
}
.panel {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  overflow: hidden;
  border-radius: 24px;
}
.panel-body { padding: clamp(26px, 3vw, 40px) clamp(26px, 3vw, 40px) 8px; }
.panel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 50%;
}
.panel-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.panel h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.4vw, 30px);
}
.panel p {
  max-width: 30em;
  margin: 0;
}
.panel-chart {
  display: block;
  width: 100%;
  height: 120px;
  margin-top: auto;
}
.chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Client: the warm light from the window. */
.panel-client {
  background: linear-gradient(165deg, #fff6e6 0%, #fde2b2 100%);
  color: var(--ink);
}
.panel-client .panel-icon {
  background: var(--navy-900);
  color: var(--amber);
}
.panel-client p { color: #4f4633; }
.panel-client .chart-line { stroke: #d98a17; }
.panel-client .chart-area { fill: rgba(217, 138, 23, 0.16); }

/* Service company: the blue hour and the data line. */
.panel-service {
  background:
    radial-gradient(80% 90% at 100% 100%, rgba(61, 214, 230, 0.2), transparent 70%),
    var(--navy-900);
  color: var(--on-dark);
}
.panel-service .panel-icon {
  background: rgba(61, 214, 230, 0.14);
  color: var(--cyan);
}
.panel-service p { color: var(--on-dark-soft); }
.panel-service .chart-line { stroke: var(--cyan); }
.panel-service .chart-area { fill: rgba(61, 214, 230, 0.12); }

/* Footer */
.site-footer {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(61, 214, 230, 0.12), transparent 70%),
    var(--navy-900);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 120px) var(--gutter) 72px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 56px;
  max-width: var(--max);
  margin: 0 auto;
}
.signup { flex: 1 1 420px; max-width: 40em; }
.signup h2 {
  margin-bottom: 0.4em;
  font-size: clamp(34px, 4.4vw, 58px);
}
.signup p {
  margin: 0 0 1.6em;
  color: var(--on-dark-soft);
}

#signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#signup-form input[type="email"] {
  flex: 1 1 240px;
  max-width: 360px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--navy-700);
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--on-dark);
  font: inherit;
}
#signup-form input[type="email"]::placeholder { color: #7f91a6; }
#signup-form input[type="email"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
#signup-form button {
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy-950);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
#signup-form button:hover { background: #6fe3ef; }
#signup-form button:focus-visible,
.button:focus-visible,
.login:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
#signup-form button[disabled] { opacity: 0.6; cursor: default; }

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

.status {
  min-height: 1.6em;
  margin: 14px 0 0 !important;
  color: var(--cyan) !important;
}
.status.error { color: var(--error) !important; }

.contact {
  flex: 0 1 auto;
  font-style: normal;
}
.contact h2 {
  margin-bottom: 0.8em;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.contact p {
  margin: 0 0 1.2em;
  color: var(--on-dark-soft);
}
.contact p:last-child { margin-bottom: 0; }
.contact a {
  color: var(--cyan);
  text-decoration: none;
}
.contact a:hover, .contact a:focus-visible { text-decoration: underline; }

@media (max-width: 760px) {
  .hero {
    min-height: 640px;
    background:
      linear-gradient(180deg, rgba(7, 14, 25, 0.7) 0%, rgba(7, 14, 25, 0.15) 26%, rgba(7, 14, 25, 0.72) 46%, rgba(7, 14, 25, 0.95) 70%, var(--navy-900) 100%),
      var(--navy-900) url("/images/hero.jpg") 80% center / cover no-repeat;
  }
  .hero-copy {
    justify-content: flex-end;
    padding-bottom: 56px;
  }
  .login { padding: 8px 14px; font-size: 13px; }
  .why-intro,
  .audiences { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  #signup-form input[type="email"] { max-width: none; }
}

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