:root {
  --navy: #163252;
  --navy-dark: #0d1b2d;
  --amber: #f0a528;
  --ink: #142033;
  --muted: #667085;
  --line: #d9e1ec;
  --bg: #f6f8fb;
  --white: #ffffff;
  --teal: #2e7d78;
  --shadow: 0 18px 48px rgba(22, 50, 82, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(13, 27, 45, 0.88);
  color: var(--white);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.nav-download,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

.nav-download,
.primary-button {
  background: var(--amber);
  color: #1d2430;
  box-shadow: 0 8px 20px rgba(240, 165, 40, 0.28);
}

.nav-download[aria-disabled="true"],
.primary-button[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 72px) 86px;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(13, 27, 45, 0.94) 0%, rgba(13, 27, 45, 0.82) 48%, rgba(13, 27, 45, 0.46) 100%), url("assets/dashboard-preview.svg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  font-size: 20px;
}

.hero-title {
  max-width: 760px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: -44px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-stats div,
.feature-grid article,
.req-grid div,
.faq-item,
.contact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 18px;
}

.hero-stats strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.hero-stats span {
  color: var(--muted);
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p,
.split-section p,
.contact p,
.feature-grid p,
.steps span,
.req-grid span {
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article {
  padding: 24px;
}

.feature-grid span {
  display: inline-flex;
  color: var(--teal);
  font-weight: 800;
  margin-bottom: 16px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 34px;
}

.screen-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.req-grid div {
  padding: 20px;
}

.req-grid strong,
.req-grid span {
  display: block;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 58px 20px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 20px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
}

.steps strong,
.steps span {
  display: block;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  width: 100%;
  text-align: left;
  padding: 20px;
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
}

.faq-item span {
  display: block;
  font-weight: 800;
  color: var(--ink);
}

.faq-item p {
  display: none;
  margin: 10px 0 0;
  color: var(--muted);
}

.faq-item.is-open p {
  display: block;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  margin-bottom: 60px;
}

.contact .primary-button {
  min-width: 210px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 58px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy-dark);
}

.download-hero {
  min-height: calc(100vh - 72px);
  padding: 124px clamp(20px, 5vw, 72px) 60px;
  background: linear-gradient(135deg, #0d1b2d 0%, #163252 54%, #2e7d78 100%);
}

.download-panel {
  width: min(980px, 100%);
  margin: 0 auto;
  color: var(--white);
}

.download-panel h1 {
  font-size: clamp(42px, 7vw, 74px);
}

.download-panel > p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.7;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 32px 0 14px;
  padding: 22px;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-card strong,
.download-card span {
  display: block;
}

.download-card span {
  margin-top: 6px;
  color: var(--muted);
}

.download-status {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.download-status.is-ready {
  background: rgba(46, 125, 120, 0.28);
}

.download-status.is-pending {
  background: rgba(240, 165, 40, 0.2);
}

.compact-steps {
  margin-top: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shot-button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shot-button:hover,
.shot-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(22, 50, 82, 0.22);
  outline: none;
}

.shot-button img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(8, 16, 28, 0.86);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .hero-stats,
  .feature-grid,
  .req-grid,
  .steps,
  .split-section,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    position: static;
    margin-top: 42px;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .nav-download {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-copy {
    font-size: 16px;
  }
}
