:root {
  --canvas: #c8d4e0;
  --paper: #f4f6f5;
  --ink: #12161c;
  --muted: #3a4958;
  --accent: #143a61;
  --accent-2: #1c527f;
  --line: rgba(18, 22, 28, 0.12);
  --glow: rgba(20, 58, 97, 0.38);
  --nav-h: 72px;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --display: "Syne", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

.site {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(18, 28, 40, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 28, 40, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
.btn {
  font-family: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.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;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(200, 212, 224, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(18, 22, 28, 0.08);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--canvas);
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.ticker,
.chip {
  font-family: var(--mono);
  color: var(--accent);
  background: var(--paper);
  border: 1px solid rgba(20, 58, 97, 0.3);
}

.ticker {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 999px;
  flex: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
}

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

.nav-links a.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

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

.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}

.menu-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 39;
  display: grid;
  background: rgba(244, 246, 245, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 6px 20px 12px;
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.menu-panel a:last-child {
  border-bottom: 0;
}

.menu-panel a.is-active {
  color: var(--accent);
}

.hero {
  padding-top: var(--nav-h);
}

.hero-media {
  position: relative;
  height: clamp(132px, 18vw, 220px);
  overflow: hidden;
  background: #9aafbf;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(200, 212, 224, 0), var(--canvas));
  pointer-events: none;
}

.hero-body {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 0 0 48px;
}

.hero-logo {
  width: min(156px, 42vw);
  height: auto;
  margin-top: -16px;
  background: var(--canvas);
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.hero .display {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.65rem, 6vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 4px rgba(20, 58, 97, 0.06);
}

.chip-sep {
  opacity: 0.45;
}

.tagline {
  margin: 0;
  max-width: 16em;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
}

.ca-box {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 40, 60, 0.05);
}

.ca-kicker {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.ca-box code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--ink);
}

.hero-actions,
.action-row {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px var(--glow);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 0 10px 32px rgba(20, 58, 97, 0.5);
}

.btn-sm {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-icon {
  width: 48px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 58, 97, 0.08);
}

.btn.is-copied {
  background: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 0 0 0 6px rgba(20, 58, 97, 0.16), 0 10px 28px var(--glow);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(20, 58, 97, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(20, 58, 97, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 58, 97, 0);
  }
}

.section {
  padding: 28px 0 72px;
  scroll-margin-top: 88px;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.chart-empty h3,
.card h3,
.social-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: inherit;
}

.section h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.15rem);
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.bits {
  display: grid;
  gap: 2px;
  width: max-content;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 58, 97, 0.35);
  border-radius: 10px;
  background: rgba(244, 246, 245, 0.72);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.45;
}

.feature-grid,
.step-grid {
  display: grid;
  gap: 16px;
}

.card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 28px rgba(20, 40, 60, 0.04);
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  border-color: rgba(20, 58, 97, 0.45);
  transform: translateY(-2px);
}

.card p,
.social-copy p,
.highlight p,
.chart-empty p {
  margin: 0;
}

.card p,
.social-copy p,
.chart-empty p {
  color: var(--muted);
}

.card h3,
.social-card h3,
.chart-empty h3 {
  font-size: 1.28rem;
}

.icon-bubble {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(20, 58, 97, 0.08);
  color: var(--accent);
}

.highlight {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(20, 58, 97, 0.22);
  border-left: 3px solid var(--accent);
  background: linear-gradient(180deg, rgba(20, 58, 97, 0.08), rgba(244, 246, 245, 0.92));
}

.highlight p {
  color: var(--ink);
}

.step-no {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.action-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.social-grid {
  display: grid;
  gap: 16px;
}

.social-card {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
  padding: 22px;
  border-radius: 18px;
  background: #12161c;
  color: var(--paper);
  box-shadow: 0 16px 40px rgba(16, 20, 24, 0.14);
}

.social-row {
  display: flex;
  gap: 8px;
}

.social-card .icon-bubble {
  background: rgba(200, 212, 224, 0.12);
  color: var(--canvas);
}

.social-copy {
  display: grid;
  gap: 6px;
}

.social-copy p {
  color: rgba(244, 246, 245, 0.76);
}

.chart-frame {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(20, 58, 97, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 58, 97, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--accent);
}

.chart-frame:has(iframe) {
  display: block;
  min-height: 0;
  background: #fff;
}

.chart-empty {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 48px 20px 80px;
}

.chart-empty h3 {
  color: var(--ink);
}

.mono-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent) !important;
}

.spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 110px;
  opacity: 0.55;
}

.chart-iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

.chart-link-row {
  display: flex;
  justify-content: center;
  margin: 16px 0 0;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--accent-2);
}

.footer {
  padding: 48px 0 28px;
  border-top: 2px solid var(--accent);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.footer-brand p {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
}

.foot-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  font-weight: 600;
}

.foot-links a:hover {
  color: var(--accent);
}

.ca-box-foot {
  width: 100%;
}

.legal {
  display: grid;
  gap: 8px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.legal p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 80;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

@media (min-width: 640px) {
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .social-card {
    padding: 28px;
  }
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 1.3fr;
    gap: 40px;
    align-items: start;
  }
}

@media (min-width: 1000px) and (min-height: 860px) {
  .hero-media {
    height: 250px;
  }

  .hero-logo {
    width: 196px;
  }
}

@media (min-width: 900px) {
  .wrap {
    width: min(1080px, calc(100% - 48px));
  }

  .nav-links {
    display: flex;
  }

  .menu-btn,
  .menu-panel {
    display: none !important;
  }

  .section {
    padding: 36px 0 104px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .step-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }
}

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

  .live-dot {
    animation: none;
  }

  .card:hover,
  .btn {
    transition: none;
    transform: none;
  }
}
