/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --petrol: #0e2a36;
  --petrol-deep: #0a1f29;
  --surface: #142f3c;
  --surface-raised: #183545;
  --blue-deep: #1d4ed8;
  --blue-vivid: #3b82f6;
  --grey-cool: #94a3b8;
  --white: #f8fafc;
  --line: rgba(148, 163, 184, 0.18);

  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --wrap: 1180px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--petrol);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

/* ==========================================================================
   Utility
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap--narrow {
  max-width: 760px;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--blue-vivid);
  color: var(--petrol-deep);
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Consistent, visible focus ring across all interactive elements */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue-vivid);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-cool);
  margin-bottom: 16px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-vivid);
  flex-shrink: 0;
}

h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: 40px;
  color: var(--blue-vivid);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 8px 24px -8px rgba(29, 78, 216, 0.6);
}

.btn--primary:hover {
  background: #1a44c2;
  box-shadow: 0 0 0 1px var(--blue-vivid), 0 10px 28px -6px rgba(59, 130, 246, 0.55);
  transform: translateY(-1px);
}

.btn--large {
  padding: 16px 32px;
  font-size: 17px;
}

.btn--nav {
  padding: 10px 20px;
  font-size: 15px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 42, 54, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.logo__mark {
  color: var(--blue-vivid);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  cursor: pointer;
}

.nav-toggle__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle__bar {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav__list a {
  text-decoration: none;
  font-size: 15px;
  color: var(--grey-cool);
  transition: color 0.15s ease;
}

.site-nav__list a:hover {
  color: var(--white);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background: var(--petrol);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav[data-open='true'] {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 18px;
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: 88px 96px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    linear-gradient(var(--petrol), var(--petrol));
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 18px;
  color: var(--grey-cool);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero__microcopy {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey-cool);
}

/* Decorative dashboard mockup */
.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.dash-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-cool);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dash-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-vivid);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-vivid);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.dash-card__rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-row {
  display: grid;
  grid-template-columns: 108px 1fr 72px;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.dash-row__kw {
  color: var(--grey-cool);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-row__bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.dash-row__fill {
  display: block;
  height: 100%;
  width: var(--fill, 50%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-vivid));
  animation: fillIn 1.2s ease-out both;
}

@keyframes fillIn {
  from {
    width: 0%;
  }
}

.dash-row__val {
  color: var(--white);
  text-align: right;
}

.dash-card__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--grey-cool);
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding-block: 88px;
  background: var(--petrol);
}

.section--alt {
  background: var(--petrol-deep);
}

/* ==========================================================================
   Problem
   ========================================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.problem-card__icon {
  color: var(--blue-vivid);
  margin-bottom: 18px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 10px;
}

.problem-card p {
  color: var(--grey-cool);
  font-size: 15px;
}

@media (max-width: 860px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  padding-top: 20px;
  border-top: 2px solid var(--blue-deep);
}

.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-vivid);
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}

.step p {
  color: var(--grey-cool);
  font-size: 14.5px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Features
   ========================================================================== */
.feature-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.feature-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-group h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-vivid);
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--white);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--blue-vivid);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .feature-groups {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Positioning comparison
   ========================================================================== */
.compare-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row > * {
  padding: 18px 22px;
  font-size: 14.5px;
}

.compare-row--head {
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-cool);
}

.compare-row [role='rowheader'] {
  font-weight: 600;
  color: var(--white);
  background: var(--surface);
}

.compare-row [role='cell'] {
  color: var(--grey-cool);
}

.compare-row__highlight {
  color: var(--white) !important;
  background: rgba(59, 130, 246, 0.1);
  border-left: 2px solid var(--blue-vivid);
}

@media (max-width: 700px) {
  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-row > * {
    padding: 10px 18px;
  }

  .compare-row--head span:first-child {
    display: none;
  }

  .compare-row [role='rowheader'] {
    padding-bottom: 4px;
  }
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-card {
  max-width: 440px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.pricing-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 1.1rem + 3vw, 3rem);
  color: var(--white);
  word-break: break-word;
}

.pricing-card__period {
  font-family: var(--font-mono);
  color: var(--grey-cool);
  font-size: 15px;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-card__features li {
  position: relative;
  padding-left: 22px;
  color: var(--grey-cool);
  font-size: 15px;
}

.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue-vivid);
}

.pricing-card .btn {
  width: 100%;
}

.pricing-card__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--grey-cool);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--blue-vivid);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--grey-cool);
  font-size: 15px;
  padding-bottom: 20px;
  max-width: 65ch;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-final {
  background: linear-gradient(180deg, var(--petrol-deep), var(--petrol));
  border-top: 1px solid var(--line);
}

.cta-final__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-final h2 {
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 18px;
}

.cta-final p {
  color: var(--grey-cool);
  max-width: 52ch;
  margin-bottom: 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--petrol-deep);
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer__tagline {
  margin-top: 12px;
  color: var(--grey-cool);
  font-size: 14.5px;
  max-width: 32ch;
}

.site-footer__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav a,
.site-footer__contact a {
  text-decoration: none;
  color: var(--grey-cool);
  font-size: 14.5px;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: var(--white);
}

.site-footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 20px;
}

.site-footer__legal p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey-cool);
}

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}
