:root {
  --bg: #050b16;
  --bg-2: #071427;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7fbff;
  --muted: #aebbd0;
  --quiet: #74849d;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(103, 232, 249, 0.32);
  --teal: #21e7d6;
  --cyan: #38bdf8;
  --mint: #a7f3d0;
  --notice: #a7f3d0;
  --warning: #fde68a;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 32rem),
    radial-gradient(circle at 8% 18%, rgba(33, 231, 214, 0.11), transparent 25rem),
    radial-gradient(circle at 88% 12%, rgba(167, 243, 208, 0.09), transparent 24rem),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-2) 48%, #030712 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 11, 22, 0.95), transparent 22%, transparent 78%, rgba(5, 11, 22, 0.95)),
    linear-gradient(180deg, transparent 0%, rgba(5, 11, 22, 0.55) 72%, #050b16 100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--mint));
  box-shadow: 0 0 22px rgba(33, 231, 214, 0.4);
}

.page-glow {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(62px);
  opacity: 0.3;
}

.page-glow-one {
  top: 14%;
  left: -18rem;
  background: var(--teal);
}

.page-glow-two {
  bottom: 8%;
  right: -18rem;
  background: var(--cyan);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(5, 11, 22, 0.55);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 11, 22, 0.82);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon,
.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 34px rgba(33, 231, 214, 0.2);
}

.brand strong,
.brand small,
.footer-brand strong,
.footer-brand small {
  display: block;
}

.brand strong,
.footer-brand strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand small,
.footer-brand small {
  margin-top: 2px;
  color: var(--quiet);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.nav-cta:hover {
  border-color: var(--line-strong);
  background: rgba(56, 189, 248, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 84px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.92fr);
  gap: 44px;
  align-items: center;
}

.eyebrow,
.mini-label {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.2vw, 6.25rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

h2 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 0.97;
  letter-spacing: -0.07em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}

.hero-text,
.section-heading p,
.workbench-copy p,
.audience-shell p,
.cta-copy p,
.cta-card > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-text {
  font-size: 1.19rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #03111f;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 50px rgba(56, 189, 248, 0.17);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: rgba(56, 189, 248, 0.1);
}

.legal-note {
  max-width: 700px;
  color: rgba(167, 243, 208, 0.92);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-product-card,
.workbench-panel,
.packet-card,
.glass-card,
.workflow-step,
.output-card,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.048)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
}

.hero-product-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-product-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  pointer-events: none;
  border: 1px solid rgba(103, 232, 249, 0.18);
}

.product-window {
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.18), transparent 24rem),
    rgba(5, 11, 22, 0.3);
}

.window-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.window-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.matter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.matter-summary h2 {
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.matter-summary p:not(.mini-label) {
  margin: 0;
  color: var(--muted);
}

.matter-summary img {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  object-fit: cover;
}

.status-grid,
.packet-output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.status-grid div,
.packet-output-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.status-grid strong,
.packet-output-grid strong {
  display: block;
  font-size: 1.55rem;
}

.status-grid span,
.packet-output-grid span {
  display: block;
  margin-top: 5px;
  color: var(--quiet);
  font-size: 0.78rem;
  line-height: 1.35;
}

.signal-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5, 11, 22, 0.42);
}

.signal-list article {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
}

.signal-dot,
.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(33, 231, 214, 0.08);
}

.signal-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.signal-list p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.88rem;
  line-height: 1.48;
}

.metric-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-strip div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.metric-strip strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.metric-strip span {
  color: var(--muted);
  font-weight: 750;
}

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

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.glass-card,
.output-card {
  min-height: 250px;
  padding: 28px;
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  border-radius: 17px;
  color: #03111f;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 950;
}

.output-card span,
.workflow-step span,
.tab-panel span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.glass-card p,
.output-card p,
.workflow-step p,
.packet-card p,
.tab-panel p {
  color: var(--muted);
  line-height: 1.68;
}

.workbench-section,
.audience-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - var(--max)) / 2));
  padding-right: max(16px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 40%, rgba(33, 231, 214, 0.11), transparent 24rem),
    rgba(255, 255, 255, 0.025);
}

.workbench-layout,
.audience-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.boundary-callout,
.privacy-callout {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(33, 231, 214, 0.28);
  border-radius: 20px;
  color: rgba(167, 243, 208, 0.95);
  background:
    linear-gradient(135deg, rgba(33, 231, 214, 0.10), rgba(56, 189, 248, 0.065)),
    rgba(5, 11, 22, 0.32);
  line-height: 1.55;
}

.boundary-callout strong,
.privacy-callout strong {
  color: #e6fffb;
}

.boundary-callout span,
.privacy-callout span {
  color: rgba(199, 250, 242, 0.9);
}

.workbench-panel {
  overflow: hidden;
  padding: 18px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 11, 22, 0.42);
}

.tab {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.tab:hover,
.tab.active {
  color: var(--text);
  border-color: rgba(103, 232, 249, 0.2);
  background: rgba(56, 189, 248, 0.12);
}

.tab-panels {
  min-height: 300px;
  margin-top: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.14), transparent 20rem),
    rgba(5, 11, 22, 0.36);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: panelIn 260ms ease both;
}

.tab-panel h3 {
  max-width: 520px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.03;
}

.outputs-section {
  position: relative;
}

.workflow-section {
  position: relative;
}

.workflow-line {
  width: min(720px, 80%);
  height: 1px;
  margin: 0 auto -1px;
  background: linear-gradient(90deg, transparent, rgba(33, 231, 214, 0.8), transparent);
}

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

.workflow-step {
  padding: 26px;
}

.workflow-step span {
  margin-bottom: 38px;
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.audience-tags span {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 750;
}

.cta-section {
  padding-bottom: 118px;
}

.cta-card {
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 20% 10%, rgba(33, 231, 214, 0.13), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.048)),
    rgba(255, 255, 255, 0.035);
}

.cta-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
  font-size: 0.86rem;
}

.cta-badge img {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  object-fit: cover;
}

.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 30px;
  align-items: start;
}

.cta-copy h2 {
  margin-bottom: 18px;
}

.tally-panel {
  overflow: hidden;
  min-height: 720px;
  padding: 14px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08)),
    rgba(5, 11, 22, 0.42);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.tally-panel iframe {
  width: 100%;
  min-height: 700px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  color-scheme: light;
  box-shadow: inset 0 0 0 1px rgba(5, 11, 22, 0.08);
}

.tally-panel noscript p,
.external-form-link {
  color: rgba(174, 187, 208, 0.94);
  line-height: 1.6;
}

.tally-panel a,
.external-form-link a {
  color: var(--mint);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.external-form-link {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}

.footer-copy p {
  margin: 0 0 6px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 750ms ease, transform 750ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 100ms;
}

.delay-2 {
  transition-delay: 200ms;
}

.delay-3 {
  transition-delay: 300ms;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 86px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 11, 22, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

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

  .hero-shell,
  .workbench-layout,
  .audience-shell,
  .cta-layout {
    grid-template-columns: 1fr;
  }

  .hero-product-card {
    max-width: 680px;
  }

  .problem-grid,
  .workflow-grid,
  .metric-strip,
  .output-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .tally-panel {
    min-height: 620px;
  }
}

@media (max-width: 660px) {
  .hero {
    padding-top: 62px;
  }

  .section,
  .hero {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 74px 0;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .problem-grid,
  .workflow-grid,
  .metric-strip,
  .status-grid,
  .packet-output-grid,
  .output-grid,
  .tabs {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    min-height: auto;
  }

  .workbench-section,
  .audience-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tab-panels {
    min-height: 330px;
    padding: 22px;
  }

  .tally-panel {
    min-height: 760px;
    padding: 8px;
    border-radius: 22px;
  }

  .tally-panel iframe {
    min-height: 740px;
  }
}

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

  .reveal,
  .button,
  .tab-panel.active {
    animation: none;
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
