:root {
  color-scheme: light;
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --ink: #0a0f16;
  --ink-secondary: #2a3b42;
  --border: #e6e8eb;
  --brand: #2563ff;
  --brand-text: #1e4fd8;
  --cyan: #00d4ff;
  --cyan-text: #007a91;
  --purple: #7c3aed;
  --purple-light: #c4a3ff;
  --dark-surface: #1a1f28;
  --dark-border: #2a3b42;
  --success: #20c997;
  --danger: #ff6b6b;
  --shadow-soft: 0 8px 24px rgba(10, 15, 22, 0.08);
  --shadow-card: 0 8px 12px rgba(10, 15, 22, 0.08);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link,
.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:focus {
  z-index: 100;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  clip: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.mobile-only {
  display: none !important;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  min-height: 110px;
  margin: 24px auto 16px;
  padding: 19px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
}

.brand-lockup--dark {
  padding: 6px;
}

.brand-symbol {
  position: relative;
  display: block;
  width: 67px;
  height: 69px;
  flex: 0 0 auto;
}

.brand-symbol img,
.portal-symbol img,
.cta-symbol img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand-wordmark {
  width: 92px;
  height: 23px;
}

.header-action {
  display: grid;
  width: 100px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-action img {
  width: 20px;
  height: 20px;
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 255, 0.2);
}

.header-action:focus-visible,
.button:focus-visible,
.menu-button:focus-visible,
.insight-card a:focus-visible,
.mobile-insight-card a:focus-visible {
  outline: 3px solid rgba(37, 99, 255, 0.35);
  outline-offset: 3px;
}

.section-shell {
  width: min(1296px, 100%);
  margin: 0 auto;
}

.anchor-target {
  display: block;
  height: 0;
  scroll-margin-top: 24px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  height: 600px;
  padding: 56px 48px 64px;
}

.hero-copy {
  display: flex;
  flex: 0 0 560px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.tag {
  width: max-content;
  height: 32px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.4px;
}

.tag--brand {
  border-color: var(--brand);
  color: var(--brand-text);
}

.tag--insight {
  border-color: var(--purple-light);
  color: var(--purple-light);
}

.hero h1,
.section-heading h2,
.signal-band h2,
.cta-copy h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -1px;
}

.hero h1 {
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -1.5px;
}

.hero-description {
  width: 520px;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 18px;
  line-height: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.2px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button img {
  width: 20px;
  height: 20px;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

.button--secondary {
  border-color: var(--brand);
  background: var(--surface);
  color: var(--brand);
}

.portal-card {
  position: relative;
  flex: 0 0 576px;
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 28px rgba(37, 99, 255, 0.28);
}

.portal-plane {
  position: absolute;
  border: 2px solid var(--brand);
  border-radius: 20px;
}

.portal-plane--one {
  top: 69px;
  left: 71px;
  width: 280px;
  height: 360px;
}

.portal-plane--two {
  top: 93px;
  left: 123px;
  width: 236px;
  height: 312px;
}

.portal-plane--three {
  top: 117px;
  left: 175px;
  width: 192px;
  height: 264px;
}

.portal-symbol {
  position: absolute;
  top: 57px;
  left: 101px;
  width: 372px;
  height: 384px;
}

.insights {
  width: 1296px;
  margin: 0 auto;
  padding: 72px 48px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.section-heading h2,
.signal-band h2,
.cta-copy h2 {
  font-size: 48px;
  line-height: 56px;
}

.section-heading p,
.signal-description,
.cta-copy > p {
  width: 760px;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 18px;
  line-height: 28px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 360px);
  gap: 32px;
}

.insight-card {
  display: flex;
  min-height: 204px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.accent-bar {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand);
}

.insight-card--purple .accent-bar {
  background: var(--purple);
}

.insight-card--cyan .accent-bar {
  background: var(--cyan);
}

.insight-card h3,
.mobile-insight-card h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.25px;
}

.insight-card p,
.mobile-insight-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 24px;
}

.insight-card a,
.mobile-insight-card a {
  margin-top: auto;
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.2px;
}

.insight-card--purple a {
  color: var(--purple);
}

.insight-card--cyan a {
  color: var(--cyan-text);
}

.signal-band {
  width: 100%;
  background: var(--ink);
  color: #fff;
}

.signal-inner {
  width: 1440px;
  margin: 0 auto;
  padding: 72px 120px 80px;
}

.signal-band h2 {
  width: 760px;
  margin-top: 40px;
}

.signal-description {
  margin-top: 40px;
  color: var(--border);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 32px;
  margin-top: 40px;
}

.metric-card {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  gap: 12px;
  padding: 19px;
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  background: var(--dark-surface);
}

.metric-label,
.metric-value {
  margin: 0;
}

.metric-label {
  color: var(--border);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.2px;
}

.metric-value {
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.5px;
}

.metric-trend {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.4px;
}

.metric-trend img {
  width: 88px;
  height: 32px;
}

.metric-trend--positive {
  color: var(--success);
}

.metric-trend--neutral {
  color: #80a7ff;
}

.metric-trend--negative {
  color: var(--danger);
}

.cta-section {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 64px 72px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.cta-copy {
  display: flex;
  width: 700px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cta-copy > p {
  width: 620px;
}

.cta-symbol {
  position: relative;
  width: 228px;
  height: 236px;
}

.site-footer {
  display: flex;
  width: 100%;
  min-height: 170px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 48px max(120px, calc((100vw - 1200px) / 2));
  background: var(--ink);
  color: #fff;
}

.brand-lockup--dark .brand-symbol {
  width: 60px;
  height: 62px;
}

.brand-lockup--dark .brand-wordmark {
  width: 82px;
  height: 21px;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.footer-copy p {
  margin: 0;
}

.footer-copy p:first-child {
  font-weight: 500;
  letter-spacing: 0.2px;
}

.footer-copy p:nth-child(2) {
  color: var(--border);
}

.site-records {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: #aeb6c2;
  font-size: 12px;
}

.site-records a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.site-records a:hover,
.site-records a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-security-record {
  gap: 5px;
}

.public-security-record img {
  width: 18px;
  height: 20px;
  object-fit: contain;
}

.site-records[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: initial !important;
  }

  .site-header {
    width: calc(100% - 32px);
    min-height: 78px;
    margin: 16px 16px 8px;
    padding: 14px 18px;
    border-radius: 15px;
  }

  .site-header .brand-lockup {
    display: inline-flex !important;
    gap: 6px;
    padding: 4px;
  }

  .site-header .brand-symbol {
    width: 44px;
    height: 46px;
  }

  .site-header .brand-wordmark {
    width: 60px;
    height: 15px;
  }

  .menu-button {
    display: grid !important;
    width: 41px;
    height: 41px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  .menu-button img {
    width: 19px;
    height: 19px;
  }

  .mobile-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
  }

  .mobile-navigation[hidden] {
    display: none !important;
  }

  .mobile-navigation a {
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--ink-secondary);
    font-size: 14px;
    font-weight: 500;
  }

  .mobile-navigation a:active {
    background: var(--canvas);
  }

  .section-shell {
    width: 100%;
  }

  .hero {
    display: flex;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 16px 48px;
  }

  .hero-copy {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    gap: 24px;
  }

  .hero h1 {
    width: 100%;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.5px;
  }

  .hero-description.mobile-only {
    display: block !important;
    width: min(342px, 100%);
    font-size: 16px;
    line-height: 24px;
  }

  .hero-actions {
    display: flex;
  }

  .portal-card {
    width: 100%;
    height: 320px;
    flex: none;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
  }

  .portal-plane {
    border-width: 1.5px;
    border-radius: 16px;
  }

  .portal-plane--one {
    top: 41px;
    left: 15.36%;
    width: 52.5%;
    height: 236px;
  }

  .portal-plane--two {
    top: 57px;
    left: 25.98%;
    width: 44.69%;
    height: 206px;
  }

  .portal-plane--three {
    top: 73px;
    left: 36.6%;
    width: 36.87%;
    height: 176px;
  }

  .portal-symbol {
    top: 45px;
    left: 18.88%;
    width: 61.68%;
    height: 228px;
  }

  .mobile-signals {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    padding: 40px 16px 48px;
  }

  .mobile-signals > h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -0.25px;
  }

  .mobile-signals > p {
    width: min(342px, 100%);
    margin: 0;
    color: var(--ink-secondary);
    font-size: 16px;
    line-height: 24px;
  }

  .mobile-metric-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .metric-card--light {
    min-height: 164px;
    border-color: var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-card);
  }

  .metric-card--light .metric-label {
    color: var(--ink-secondary);
  }

  .metric-card--light .metric-value {
    color: var(--ink);
  }

  .mobile-insight-card {
    display: flex;
    min-height: 203px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 23px;
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    background: var(--dark-surface);
    color: #fff;
  }

  .mobile-insight-card .accent-bar {
    background: var(--purple);
  }

  .mobile-insight-card p {
    color: var(--border);
  }

  .mobile-insight-card a {
    color: var(--purple-light);
  }

  .cta-section {
    display: flex;
    min-height: 300px;
    align-items: flex-start;
    margin: 0;
    padding: 48px 16px 56px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .cta-copy {
    width: 100%;
    gap: 20px;
  }

  .cta-copy h2 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.5px;
  }

  .cta-copy > p.mobile-only {
    display: block !important;
    width: min(342px, 100%);
    font-size: 16px;
    line-height: 24px;
  }

  .site-footer {
    display: flex;
    min-height: 235px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
  }

  .site-footer .brand-lockup {
    display: inline-flex !important;
    gap: 8px;
    padding: 5.76px;
  }

  .site-footer .brand-symbol {
    width: 57.6px;
    height: 59.52px;
  }

  .site-footer .brand-wordmark {
    width: 78.72px;
    height: 19.79px;
  }

  .footer-copy {
    align-items: center;
    gap: 16px;
  }

  .footer-copy p:first-child {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.4px;
  }

  .footer-copy p:nth-child(2) {
    font-size: 14px;
    line-height: 20px;
  }

  .site-records {
    justify-content: center;
    row-gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
