:root {
  --bg: #0a0f16;
  --bg-deep: #121b28;
  --panel: rgba(15, 24, 37, 0.8);
  --panel-strong: rgba(17, 28, 43, 0.94);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f6fb;
  --muted: #aeb8c8;
  --accent: #5fa8ff;
  --accent-strong: #7ad2ff;
  --teal: #7be0d1;
  --glow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(95, 168, 255, 0.12), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(123, 224, 209, 0.1), transparent 20%),
    linear-gradient(160deg, #060a10 0%, #0a0f16 45%, #121b28 100%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.page-shell { position: relative; min-height: 100vh; overflow: hidden; }

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
}

.ambient-a {
  top: 7rem;
  left: -4rem;
  width: 16rem;
  height: 16rem;
  background: rgba(95, 168, 255, 0.12);
}

.ambient-b {
  right: -5rem;
  top: 20rem;
  width: 18rem;
  height: 18rem;
  background: rgba(123, 224, 209, 0.1);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
  pointer-events: none;
}

.topbar, main, .footer, .inner-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 24px rgba(95, 168, 255, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  display: inline-flex;
  gap: 1.4rem;
  color: var(--muted);
}

.nav a:hover,
.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta,
.button-primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--accent-strong), var(--teal));
  box-shadow: 0 14px 30px rgba(95, 168, 255, 0.18);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  padding: 5rem 0 3rem;
  align-items: center;
}

.hero-copy h1,
.section-head h2,
.workflow-panel h2,
.inner-hero h1,
.statement-panel h2 {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--teal);
}

.hero-text,
.policy-card p,
.statement-panel p,
.step-card p,
.portal-card p,
.feature-card p,
.mini-card span {
  color: var(--muted);
}

.hero-text {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li,
.dashboard,
.feature-card,
.workflow-panel,
.step-card,
.mini-card,
.portal-card,
.policy-card,
.statement-panel {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}

.hero-points li {
  padding: 1rem;
  border-radius: 22px;
  font-size: 0.95rem;
}

.hero-panel {
  min-height: 34rem;
}

.dashboard {
  min-height: 34rem;
  border-radius: 30px;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(123, 224, 209, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(95, 168, 255, 0.12), transparent 26%),
    var(--panel-strong);
}

.dashboard-head {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(123, 224, 209, 0.6);
}

.dashboard-row {
  height: 1rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-row-accent {
  width: 38%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.dashboard-row-long { width: 90%; }
.dashboard-row-mid { width: 66%; }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 11rem;
}

.dashboard-metrics article {
  display: grid;
  gap: 0.35rem;
}

.dashboard-metrics strong {
  font-size: 1.25rem;
}

.dashboard-metrics span {
  color: var(--muted);
  font-size: 0.94rem;
}

.signal-badge {
  display: inline-flex;
  margin-top: 1.4rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(7, 13, 21, 0.7);
  color: var(--teal);
}

.feature-strip {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.feature-strip span {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.features,
.workflow {
  padding: 2.5rem 0 3rem;
}

.section-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.section-head h2,
.workflow-panel h2,
.inner-hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.3rem);
}

.feature-grid,
.policy-grid,
.steps,
.portal-grid {
  display: grid;
  gap: 1.2rem;
}

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

.feature-card,
.workflow-panel,
.portal-card,
.policy-card,
.statement-panel,
.step-card,
.mini-card {
  padding: 1.5rem;
  border-radius: 28px;
}

.feature-index,
.step-index {
  display: inline-block;
  margin-bottom: 1.7rem;
  color: var(--teal);
  font-weight: 800;
}

.feature-card h3,
.step-card h3,
.portal-card h3,
.policy-card h2,
.mini-card strong {
  margin-top: 0;
}

.workflow {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
  align-items: start;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.side-panel {
  display: grid;
  gap: 1rem;
}

.mini-card {
  display: grid;
  gap: 0.6rem;
}

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

.portal-card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 224, 209, 0.3);
}

.page-inner .topbar,
.page-inner .footer {
  width: min(1100px, calc(100% - 2rem));
}

.inner-main {
  padding: 2rem 0 4rem;
}

.inner-hero {
  max-width: 52rem;
  padding: 3rem 0 2rem;
}

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

.policy-card h2 {
  font-size: 1.28rem;
}

.statement-panel {
  margin-top: 1.2rem;
}

.footer {
  padding: 0 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 1rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 20, 0.96);
  box-shadow: var(--glow);
  z-index: 10;
}

.consent-banner p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.banner-actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}

.reset-button {
  margin-top: 0.2rem;
}

@media (max-width: 960px) {
  .hero,
  .workflow,
  .feature-grid,
  .portal-grid,
  .policy-grid,
  .steps,
  .hero-points,
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .consent-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .banner-actions {
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
