:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111217;
  --surface-raised: #15171d;
  --border: #24262e;
  --border-soft: #1b1d23;
  --text: #f7f7f8;
  --muted: #9497a1;
  --muted-dark: #676a74;
  --blue: #5a97f3;
  --blue-bright: #72a7f5;
  --green: #65c99a;
  --radius: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  top: -260px;
  left: 48%;
  width: 700px;
  height: 500px;
  border-radius: 50%;
  background: rgba(90, 151, 243, 0.055);
  filter: blur(120px);
  content: "";
  pointer-events: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-name {
  color: #f3f4f6;
  font-family: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 34px;
  transform: translateX(-50%);
}

.nav-links a,
.text-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 180ms ease;
}

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

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  background: var(--blue);
  box-shadow: 0 8px 30px rgba(63, 124, 216, 0.16);
  color: #07111f;
  font-size: 14px;
  font-weight: 650;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
  transform: translateY(-1px);
}

.button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.button-small {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 13px;
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
  color: #d8d9dd;
}

.button-secondary:hover {
  border-color: #393c46;
  background: rgba(255, 255, 255, 0.055);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  min-height: 720px;
  grid-template-columns: 0.88fr 1.42fr;
  gap: clamp(56px, 7vw, 104px);
  align-items: center;
  padding-top: 84px;
  padding-bottom: 98px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  color: #aeb0b8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.eyebrow span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(90, 151, 243, 0.1);
}

.hero h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(52px, 5.3vw, 76px);
  font-weight: 530;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

.hero-copy > p {
  max-width: 480px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 11px;
  margin-top: 34px;
}

.hero-copy .hero-note {
  margin-top: 17px;
  color: var(--muted-dark);
  font-size: 12px;
}

.product-stage {
  position: relative;
  min-width: 0;
}

.product-stage::before {
  position: absolute;
  z-index: -1;
  inset: 10% 2% -8%;
  border-radius: 40px;
  background: rgba(90, 151, 243, 0.09);
  filter: blur(75px);
  content: "";
}

.dashboard {
  display: grid;
  min-width: 720px;
  overflow: hidden;
  grid-template-columns: 52px 1fr;
  border: 1px solid #292c35;
  border-radius: 16px;
  background: #0e0f13;
  box-shadow: 0 45px 90px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: perspective(1800px) rotateY(-3deg) rotateX(1deg);
  transform-origin: left center;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border-soft);
  background: #0b0c0f;
  padding: 18px 0 14px;
}

.mini-brand span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(90, 151, 243, 0.4);
  border-radius: 6px;
  background: rgba(90, 151, 243, 0.1);
  color: var(--blue);
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding-top: 38px;
}

.sidebar-item {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
}

.sidebar-item i {
  width: 10px;
  height: 10px;
  border: 1px solid #555965;
  border-radius: 3px;
}

.sidebar-item.active {
  background: rgba(90, 151, 243, 0.1);
}

.sidebar-item.active i {
  border-color: var(--blue);
  background: rgba(90, 151, 243, 0.2);
}

.avatar {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #363944;
  border-radius: 50%;
  color: #aaaeba;
  font-size: 7px;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-topbar {
  display: flex;
  height: 70px;
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border-soft);
}

.company-id {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 11px;
}

.company-id div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.company-id strong,
.quote strong {
  font-size: 12px;
  font-weight: 600;
}

.company-id small,
.card-heading small,
.insight-card small {
  color: #6e727e;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.company-logo {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #30333c;
  border-radius: 8px;
  background: #17191f;
  font-family: Georgia, serif;
  font-size: 16px;
}

.quote {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.quote span,
.positive {
  color: var(--green) !important;
  font-size: 8px;
}

.mock-button {
  padding: 7px 10px;
  border: 1px solid #30333c;
  border-radius: 6px;
  background: #16181e;
  color: #afb2bc;
  font-size: 8px;
}

.dashboard-tabs {
  display: flex;
  height: 38px;
  align-items: flex-end;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border-soft);
}

.dashboard-tabs span {
  height: 100%;
  padding-top: 13px;
  color: #666a75;
  font-size: 8px;
}

.dashboard-tabs span.active {
  border-bottom: 1px solid var(--blue);
  color: #dce4f0;
}

.dashboard-content {
  padding: 16px;
}

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

.metric-card,
.dashboard-card {
  border: 1px solid #202229;
  border-radius: 9px;
  background: #121318;
}

.metric-card {
  display: flex;
  flex-direction: column;
  padding: 12px 13px;
}

.metric-card small {
  color: #747781;
  font-size: 8px;
}

.metric-card strong {
  margin: 5px 0 2px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.metric-card span {
  color: #656872;
  font-size: 7px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 9px;
  margin-top: 9px;
}

.dashboard-card {
  padding: 13px;
}

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

.card-heading div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-heading strong {
  font-size: 10px;
  font-weight: 520;
}

.range {
  padding: 3px 6px;
  border: 1px solid #292c34;
  border-radius: 4px;
  color: #8e929d;
  font-size: 7px;
}

.chart {
  position: relative;
  height: 142px;
  margin-top: 5px;
}

.chart-grid {
  position: absolute;
  inset: 10px 0 19px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 32px, rgba(255, 255, 255, 0.035) 33px);
}

.chart svg {
  position: absolute;
  inset: 11px 0 19px;
  width: 100%;
  height: calc(100% - 30px);
  overflow: visible;
}

.chart .area {
  fill: url("#chart-fill");
}

.chart .line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.chart circle {
  fill: var(--blue);
  stroke: #121318;
  stroke-width: 2;
}

.chart-labels {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: #565a65;
  font-size: 6px;
}

.score-ring {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: 12px auto 11px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 82%, #252831 82% 100%);
}

.score-ring::after {
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #121318;
  content: "";
}

.score-ring span {
  z-index: 1;
}

.score-ring strong {
  font-size: 19px;
  font-weight: 570;
}

.score-ring small {
  color: #6f737e;
  font-size: 7px;
}

.score-row {
  display: grid;
  grid-template-columns: 58px 1fr 15px;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  color: #747883;
  font-size: 7px;
}

.score-row i {
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: #292c34;
}

.score-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.score-row strong {
  color: #aeb1ba;
  font-size: 7px;
  font-weight: 500;
  text-align: right;
}

.insight-card {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 9px;
  padding: 11px 13px;
}

.insight-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: rgba(90, 151, 243, 0.09);
}

.insight-icon svg {
  width: 14px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.insight-card p {
  margin: 2px 0 0;
  color: #a4a7b0;
  font-size: 8px;
}

.confidence {
  padding: 4px 7px;
  border: 1px solid rgba(101, 201, 154, 0.2);
  border-radius: 10px;
  color: var(--green);
  font-size: 7px;
}

.features {
  padding-top: 120px;
  padding-bottom: 142px;
  border-top: 1px solid var(--border-soft);
}

.section-heading {
  max-width: 570px;
}

.section-heading h2,
.final-cta h2 {
  margin: 16px 0 0;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading p {
  max-width: 490px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.feature-card:hover {
  border-color: #30333c;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012));
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(90, 151, 243, 0.18);
  border-radius: 10px;
  background: rgba(90, 151, 243, 0.07);
}

.feature-icon svg {
  width: 19px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.feature-card h3 {
  margin: 45px 0 10px;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.feature-card p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.final-cta {
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--border-soft);
}

.site-footer {
  display: grid;
  min-height: 112px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-dark);
  font-size: 12px;
}

.footer-brand {
  opacity: 0.72;
}

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

.site-footer p {
  margin: 0;
}

.site-footer > span {
  text-align: right;
}

.reveal {
  animation: reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-delay {
  animation-delay: 100ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

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

  .product-stage {
    width: 100%;
  }

  .dashboard {
    width: 100%;
    min-width: 0;
    transform: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-content: center;
    gap: 6px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 16px;
    height: 1px;
    background: #c8cad0;
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-last-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: 59px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(17, 18, 23, 0.98);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  }

  .nav-menu.open {
    display: block;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: none;
  }

  .nav-links a {
    padding: 12px 6px;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .text-link {
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .hero {
    min-height: auto;
    gap: 60px;
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

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

  .dashboard {
    grid-template-columns: 40px 1fr;
  }

  .dashboard-topbar {
    height: 62px;
    padding-inline: 13px;
  }

  .mock-button {
    display: none;
  }

  .dashboard-tabs {
    gap: 17px;
    padding-inline: 13px;
  }

  .dashboard-content {
    padding: 10px;
  }

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

  .score-card {
    display: none;
  }

  .insight-card {
    grid-template-columns: 28px 1fr;
  }

  .confidence {
    display: none;
  }

  .features {
    padding-top: 92px;
    padding-bottom: 100px;
  }

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

  .feature-card {
    min-height: 190px;
  }

  .feature-card h3 {
    margin-top: 34px;
  }

  .final-cta {
    min-height: 300px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .site-footer {
    display: flex;
    min-height: 160px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 30px;
  }

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

@media (max-width: 480px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .metric-card {
    padding: 10px 8px;
  }

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

  .dashboard-tabs span:last-child {
    display: none;
  }

  .chart {
    height: 122px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
