:root {
  color-scheme: dark;
  --bg: #0d0e12;
  --surface: #181920;
  --surface-high: #24252e;
  --text: #f2f1f7;
  --muted: #c2c5dd;
  --subtle: #aaaab5;
  --primary: #bdc5ee;
  --primary-dark: #363e61;
  --mint: #a5e6c4;
  --sand: #e7c9a3;
  --rose: #f97386;
  --line: #464750;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--primary);
  color: #11131a;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
}

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

.site-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
}

.nav {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-dark);
  font-weight: 900;
}

.nav-links {
  gap: 22px;
}

.nav-links a,
.footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  padding-block: 12px;
}

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

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 112px 0 72px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 63% center;
  opacity: 0.52;
}

.app-shot {
  overflow: hidden;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.dashboard-shot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 22px;
  padding: 108px clamp(28px, 8vw, 132px) 72px;
  background:
    linear-gradient(135deg, rgba(189, 197, 238, 0.16), transparent 38%),
    linear-gradient(180deg, #121318, #0d0e12);
}

.shot-topbar,
.dashboard-layout,
.analytics-grid,
.shot-card,
.status-panel,
.shot-actions {
  position: relative;
  z-index: 1;
}

.dashboard-shot .shot-topbar,
.dashboard-layout {
  width: min(56vw, 760px);
  min-width: 520px;
}

.shot-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.dashboard-layout,
.analytics-shot {
  border: 1px solid rgba(194, 197, 221, 0.22);
  border-radius: 8px;
  background: rgba(18, 19, 24, 0.96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(200px, 0.74fr);
  gap: 18px;
  padding: 24px;
}

.status-panel,
.shot-card {
  border: 1px solid rgba(70, 71, 80, 0.9);
  border-radius: 8px;
  background: var(--surface);
}

.status-panel {
  grid-row: span 2;
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(165, 230, 196, 0.13), transparent 72%),
    var(--surface);
}

.status-panel strong {
  font-size: 56px;
  line-height: 1;
}

.shot-time {
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
}

.shot-note,
.shot-label,
.rhythm-row span,
.metric-card span,
.insights-card span {
  color: var(--muted);
}

.shot-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shot-actions {
  display: grid;
  gap: 12px;
}

.shot-actions span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-dark);
  font-weight: 900;
}

.shot-actions span:last-child {
  border: 1px solid var(--line);
  background: var(--surface-high);
  color: var(--text);
}

.rhythm-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.rhythm-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 14, 18, 0.95), rgba(13, 14, 18, 0.78) 46%, rgba(13, 14, 18, 0.54)),
    linear-gradient(0deg, var(--bg), rgba(13, 14, 18, 0.2) 34%, rgba(13, 14, 18, 0.48));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-size: 64px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 22px;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-dark);
}

.button-secondary {
  border: 1px solid rgba(194, 197, 221, 0.34);
  background: rgba(24, 25, 32, 0.68);
  color: var(--text);
}

.intro,
.features,
.analytics-band,
.trust-band,
.download,
.footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.intro,
.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 44px;
  align-items: end;
  padding: 74px 0;
}

.intro p:last-child,
.trust-band p:last-child,
.analytics-copy p,
.download p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.features {
  padding: 34px 0 92px;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 34px;
}

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

.feature-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card:nth-child(2),
.feature-card:nth-child(4) {
  background: var(--surface-high);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(189, 197, 238, 0.45);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 900;
}

.feature-card p {
  margin: 0;
  color: var(--subtle);
}

.analytics-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.analytics-copy {
  display: grid;
  gap: 20px;
}

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

.analytics-shot {
  min-height: 520px;
  padding: 22px;
}

.analytics-shot .shot-topbar {
  margin-bottom: 18px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.chart-card,
.insights-card {
  padding: 18px;
}

.metric-card {
  display: grid;
  gap: 4px;
}

.metric-card strong {
  font-size: 34px;
  line-height: 1.05;
}

.chart-card,
.insights-card {
  grid-column: 1 / -1;
}

.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 900;
}

.trend-chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(70, 71, 80, 0.7);
}

.trend-chart span {
  flex: 1;
  height: var(--bar);
  min-height: 34px;
  border-radius: 8px 8px 3px 3px;
  background: var(--mint);
}

.insights-card {
  display: grid;
  gap: 8px;
  background: var(--surface-high);
}

.insights-card strong {
  font-size: 20px;
}

.trust-band {
  align-items: start;
}

.download {
  padding: 22px 0 92px;
}

.download-inner {
  max-width: 740px;
  padding: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: #151821;
}

.download-inner .eyebrow,
.download-inner p {
  color: var(--primary-dark);
}

.download-inner p {
  margin: 18px 0 26px;
}

.download-inner .button-primary {
  background: #151821;
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--subtle);
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .analytics-band,
  .intro,
  .trust-band {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 24px, var(--max));
    padding: 16px 0;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 84svh;
    padding: 92px 0 54px;
  }

  .hero-image {
    object-position: 72% center;
    opacity: 0.38;
  }

  .dashboard-shot {
    align-items: center;
    padding: 96px 22px 40px;
  }

  .dashboard-shot .shot-topbar,
  .dashboard-layout {
    width: min(100%, 520px);
    min-width: 0;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .status-panel {
    min-height: 230px;
  }

  .status-panel strong {
    font-size: 36px;
  }

  .shot-time {
    font-size: 52px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(13, 14, 18, 0.96), rgba(13, 14, 18, 0.82)),
      linear-gradient(0deg, var(--bg), rgba(13, 14, 18, 0.28) 42%);
  }

  .hero-content,
  .intro,
  .features,
  .analytics-band,
  .trust-band,
  .download,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy,
  .intro p:last-child,
  .trust-band p:last-child,
  .analytics-copy p,
  .download p {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .feature-card,
  .feature-card:last-child {
    min-height: 0;
  }

  .intro,
  .features,
  .trust-band {
    padding: 54px 0;
  }

  .analytics-band,
  .download-inner {
    padding: 20px;
  }

  .analytics-shot {
    min-height: 0;
    padding: 16px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .trend-chart {
    height: 150px;
    gap: 8px;
    padding: 12px;
  }

  .download {
    padding-bottom: 62px;
  }

  .footer {
    flex-direction: column;
  }
}
