:root {
  --navy: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --teal: #4caf9a;
  --teal-dark: #117c77;
  --sage: #a7c5b5;
  --fog: #e6edf2;
  --white: #f5f7f9;
  --pure-white: #ffffff;
  --danger: #dc2626;
  --warning: #f59e0b;
  --success: #16a34a;
  --info: #2563eb;
  --border: rgba(15, 23, 42, 0.12);
  --metal: #8a99a8;
  --metal-dark: #4b5b68;
  --metal-line: rgba(138, 153, 168, 0.38);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius-small: 12px;
  --max: 1180px;
  --font-heading: Sora, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at top right, rgba(76, 175, 154, 0.16), transparent 36rem),
    linear-gradient(180deg, var(--pure-white), var(--white));
  font-family: var(--font-body);
  line-height: 1.6;
}

body.app-mode {
  background: #f1f5f9;
}

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

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--pure-white);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.section,
.section-shell {
  padding: 6rem 0;
}

.section-tinted {
  background: rgba(230, 237, 242, 0.6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 146px;
}

.brand-media {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-media img {
  width: 168px;
  height: auto;
}

.brand-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.75rem 0.3rem 3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:
    radial-gradient(circle at 1.4rem 50%, rgba(76, 175, 154, 0.36) 0 0.48rem, transparent 0.5rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 124, 119, 0.9));
  color: var(--pure-white);
  font-family: var(--font-heading);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--slate);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-menu a {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--pure-white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--teal-dark);
  color: var(--pure-white);
  box-shadow: 0 14px 28px rgba(17, 124, 119, 0.22);
}

.button-secondary {
  border-color: var(--border);
  background: var(--pure-white);
  color: var(--navy);
}

.button-small {
  min-height: 40px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 5.5rem 0 4.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 60%, rgba(167, 197, 181, 0.45), transparent 20rem),
    linear-gradient(120deg, rgba(230, 237, 242, 0), rgba(230, 237, 242, 0.9));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--slate);
}

.hero-subheadline {
  max-width: 720px;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.mascot-stage {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(76, 175, 154, 0.24);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(76, 175, 154, 0.2), transparent 14rem),
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(230, 237, 242, 0.55));
  box-shadow: var(--shadow);
}

.mascot-image {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 4;
  width: min(50%, 300px);
  max-height: 80%;
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 34px rgba(15, 23, 42, 0.2));
  -webkit-mask-image: radial-gradient(ellipse at 50% 54%, #000 48%, rgba(0, 0, 0, 0.9) 58%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 54%, #000 48%, rgba(0, 0, 0, 0.9) 58%, transparent 78%);
}

.mascot-placeholder {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 4;
  width: min(58%, 320px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.mascot-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(76, 175, 154, 0.38), transparent 4.5rem),
    radial-gradient(circle at 42% 40%, var(--slate) 0 0.38rem, transparent 0.42rem),
    radial-gradient(circle at 58% 40%, var(--slate) 0 0.38rem, transparent 0.42rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(167, 197, 181, 0.5));
  color: var(--slate);
  text-align: center;
  font-weight: 800;
}

.brand-icon-visual {
  width: min(42%, 260px);
  max-height: 68%;
  filter: drop-shadow(0 28px 38px rgba(15, 23, 42, 0.24));
  -webkit-mask-image: none;
  mask-image: none;
}

.mascot-orbit,
.signal-ring,
.fog-layer {
  position: absolute;
  pointer-events: none;
}

.mascot-orbit {
  left: 13%;
  right: 13%;
  bottom: 8%;
  height: 42%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50% 50% 12% 12%;
}

.signal-ring {
  inset: 20% 18%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 50%;
}

.ring-two {
  inset: 12% 11%;
}

.fog-layer {
  left: -8%;
  right: -8%;
  bottom: -12%;
  height: 44%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(18px);
}

.fog-two {
  bottom: -20%;
  background: rgba(167, 197, 181, 0.42);
}

.alert-card {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  box-shadow: var(--soft-shadow);
  font-weight: 800;
}

.alert-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(76, 175, 154, 0.18);
}

.alert-one { left: 7%; top: 23%; }
.alert-two { right: 7%; top: 35%; }
.alert-three { right: 9%; bottom: 14%; }
.alert-four { left: 8%; bottom: 18%; }

.trust-strip {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
}

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

.trust-grid span {
  padding: 1.1rem;
  color: var(--slate);
  text-align: center;
  font-weight: 850;
}

.split-grid,
.solution-grid,
.security-grid,
.intake-grid,
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.section-copy p {
  max-width: 640px;
  font-size: 1.04rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.card-grid,
.steps-grid,
.pricing-grid,
.use-case-grid,
.metric-grid,
.panel-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.steps-grid,
.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.use-case-grid {
  grid-template-columns: repeat(5, 1fr);
}

.feature-card,
.step-card,
.use-card,
.pricing-card,
.demo-card,
.form-card,
.dash-panel,
.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.feature-card,
.step-card,
.use-card,
.pricing-card,
.demo-card,
.app-card {
  padding: 1.25rem;
}

.feature-card p,
.step-card p,
.use-card p,
.pricing-card p,
.demo-card p,
.app-card p {
  margin-bottom: 0;
}

.icon-token,
.step-card span,
.pricing-card span,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.icon-token {
  min-width: 42px;
  min-height: 42px;
  margin-bottom: 1rem;
  background: rgba(76, 175, 154, 0.16);
  color: var(--teal-dark);
}

.step-card span,
.pricing-card span,
.status-badge {
  padding: 0.32rem 0.62rem;
  background: rgba(76, 175, 154, 0.14);
  color: var(--teal-dark);
}

.workflow-visual {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--pure-white);
  box-shadow: var(--shadow);
}

.workflow-visual img {
  width: 100%;
  border-radius: 18px;
}

.dashboard-section {
  padding-top: 0;
}

.dashboard-preview {
  padding: 1rem;
  border: 1px solid var(--metal-line);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #101a2a;
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
  color: var(--pure-white);
}

.dashboard-preview h2,
.dashboard-preview h3,
.dashboard-preview p {
  color: var(--pure-white);
}

.dashboard-topbar,
.panel-heading,
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-label {
  margin: 0 0 0.25rem;
  color: rgba(167, 197, 181, 0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
}

.dashboard-pills,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-pills span {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--metal-line);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.78rem;
  font-weight: 850;
}

.dashboard-statusbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--metal-line);
  border-radius: 8px;
  background: rgba(138, 153, 168, 0.22);
}

.dashboard-statusbar span {
  padding: 0.65rem 0.75rem;
  background: rgba(15, 23, 42, 0.64);
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.dashboard-statusbar b {
  display: block;
  color: #c7d4dc;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.dashboard-kpis article {
  padding: 0.9rem 1rem;
  border: 1px solid var(--metal-line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.68);
}

.dashboard-kpis span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
}

.dashboard-kpis strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--pure-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.45rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  grid-template-areas:
    "alerts score"
    "health library"
    "timeline attribution";
  gap: 1rem;
  margin-top: 1rem;
}

.dash-panel {
  min-height: 172px;
  background: rgba(15, 23, 42, 0.64);
  border-color: var(--metal-line);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: none;
}

.alert-feed { grid-area: alerts; }
.library-panel { grid-area: library; }
.health-panel { grid-area: health; }
.score-panel { grid-area: score; }
.timeline-panel { grid-area: timeline; }
.attribution-panel { grid-area: attribution; }

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.panel-title-row h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.panel-title-row span {
  color: rgba(255, 255, 255, 0.56);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.console-table,
.mini-table {
  display: grid;
  gap: 0;
}

.console-row {
  display: grid;
  grid-template-columns: 84px minmax(180px, 1fr) 54px 150px;
  gap: 0.75rem;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(138, 153, 168, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.console-row b {
  color: var(--pure-white);
}

.console-head {
  min-height: 28px;
  color: rgba(199, 212, 220, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.severity {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 0.16rem 0.36rem;
  border-radius: 4px;
  color: var(--pure-white);
  font-size: 0.72rem;
  font-weight: 900;
}

.severity.high { background: var(--danger); }
.severity.medium { background: var(--warning); }
.severity.low { background: var(--info); }

.mini-table {
  grid-template-columns: 1fr auto;
}

.mini-table span,
.mini-table b {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(138, 153, 168, 0.22);
}

.health-bars {
  display: grid;
  gap: 0.5rem;
}

.health-bars span {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.health-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--sage));
}

.health-bars small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.risk-score {
  display: none;
}

.evidence-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-block: 1px solid rgba(138, 153, 168, 0.28);
}

.evidence-score span,
.evidence-source span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.evidence-score strong {
  color: var(--pure-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2.4rem;
  line-height: 1;
}

.evidence-source {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0;
}

.evidence-source b {
  color: #d7e0e6;
}

.risk-score span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
}

.dash-kicker,
.dash-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dash-note {
  margin-top: 0.8rem;
  text-transform: none;
}

.risk-breakdown {
  display: grid;
  gap: 0.45rem;
}

.risk-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(138, 153, 168, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.risk-breakdown b {
  color: var(--pure-white);
}

.timeline-panel ol {
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
}

.timeline-panel li {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
}

.timeline-panel li b {
  margin-right: 0.45rem;
  color: #c7d4dc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.source-meter {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.source-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
}

.notice {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(76, 175, 154, 0.28);
  border-radius: var(--radius-small);
  background: rgba(230, 237, 242, 0.7);
  color: var(--slate);
}

.ethics-list {
  display: grid;
  gap: 0.8rem;
}

.ethics-list span {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--pure-white);
  box-shadow: var(--soft-shadow);
  font-weight: 850;
}

.pricing-card.highlighted {
  border-color: rgba(76, 175, 154, 0.44);
  background: linear-gradient(180deg, rgba(76, 175, 154, 0.14), var(--pure-white));
}

.demo-grid {
  grid-template-columns: 1.05fr 0.85fr 0.85fr;
}

.demo-card span {
  display: block;
  color: var(--teal-dark);
  font-weight: 900;
}

.demo-card small {
  display: block;
  margin-top: 0.9rem;
  color: var(--muted);
}

.form-card {
  padding: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-row.two {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

label {
  color: var(--slate);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--pure-white);
  color: var(--navy);
  padding: 0.78rem 0.9rem;
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.8rem 0 1rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.25rem;
}

.form-error {
  min-height: 1.5rem;
  margin: 0 0 0.8rem;
  color: var(--danger);
  font-weight: 800;
}

.mailto-line a {
  color: var(--teal-dark);
  font-weight: 850;
}

.final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
  color: var(--pure-white);
  text-align: center;
}

.final-cta p,
.final-cta h2 {
  color: var(--pure-white);
}

.site-footer {
  padding: 2.8rem 0;
  background: var(--pure-white);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.footer-links a {
  color: var(--slate);
  font-weight: 850;
  text-decoration: none;
}

.copyright {
  margin: 0;
  color: var(--muted);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  background: #f1f5f9;
}

.app-shell[hidden],
[hidden] {
  display: none !important;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.2rem;
  background: var(--navy);
  color: var(--pure-white);
}

.operator-sidebar {
  background: #172033;
}

.app-logo {
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
}

.app-logo span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.app-sidebar nav {
  display: grid;
  gap: 0.4rem;
}

.app-sidebar button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.75rem 0.85rem;
  text-align: left;
  font-weight: 800;
}

.app-sidebar button.is-active,
.app-sidebar button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--pure-white);
}

.app-main {
  min-width: 0;
  padding: 1.2rem;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -1.2rem -1.2rem 1.2rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.app-topbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.app-topbar h1 {
  font-size: 1.45rem;
}

.status-badge.warning {
  background: rgba(245, 158, 11, 0.16);
  color: #9a5b00;
}

.icon-button,
.avatar {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pure-white);
  border: 1px solid var(--border);
  font-weight: 900;
}

.avatar {
  background: var(--teal-dark);
  color: var(--pure-white);
}

.app-panel {
  display: none;
}

.app-panel.is-active {
  display: block;
}

.panel-heading {
  margin-bottom: 1rem;
}

.panel-heading h2 {
  font-size: 2rem;
}

.metric-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 1rem;
}

.metric-grid article {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--pure-white);
  box-shadow: var(--soft-shadow);
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.metric-grid strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
}

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

.span-two {
  grid-column: span 2;
}

.health-stack {
  display: grid;
  gap: 0.5rem;
}

.health-stack span,
.preview-row,
.audit-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--pure-white);
  box-shadow: var(--soft-shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td button,
.link-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
}

.alert-list,
.review-list,
.audit-list {
  display: grid;
  gap: 0.85rem;
}

.alert-row,
.review-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--pure-white);
  box-shadow: var(--soft-shadow);
}

.alert-row p,
.review-row p {
  margin: 0.2rem 0 0;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.review-actions button {
  min-height: 34px;
  padding: 0.35rem 0.55rem;
}

.report-preview {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--pure-white);
  box-shadow: var(--soft-shadow);
}

.report-preview h3 {
  margin-top: 1.3rem;
}

.timeline {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(76, 175, 154, 0.34);
}

.timeline li {
  margin: 0.55rem 0;
}

.app-form {
  max-width: 860px;
}

.generator-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
}

.generated-output {
  min-height: 180px;
}

.generated-output ul {
  margin: 0;
  padding-left: 1.2rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.62);
}

.modal {
  position: relative;
  width: min(100%, 440px);
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--pure-white);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--pure-white);
  font-size: 1.4rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 300;
  width: min(92vw, 520px);
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--pure-white);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

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

@media (max-width: 1100px) {
  .hero-grid,
  .split-grid,
  .solution-grid,
  .security-grid,
  .intake-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .card-grid.four,
  .steps-grid,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-statusbar {
    grid-template-columns: repeat(2, 1fr);
  }

  .console-row {
    grid-template-columns: 72px minmax(180px, 1fr) 48px;
  }

  .console-row span:last-child {
    display: none;
  }

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

}

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

  .nav-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--pure-white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .mascot-stage {
    min-height: 430px;
  }

  .dashboard-grid,
  .pricing-grid,
  .panel-grid,
  .generator-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .alert-feed,
  .library-panel,
  .health-panel,
  .score-panel,
  .timeline-panel,
  .attribution-panel {
    grid-area: auto;
  }

  .span-two {
    grid-column: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
  }

  .app-sidebar nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .app-sidebar button {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .section,
  .section-shell {
    padding: 4rem 0;
  }

  h1 {
    font-size: 3rem;
  }

  .trust-grid,
  .card-grid.three,
  .card-grid.four,
  .steps-grid,
  .use-case-grid,
  .dashboard-kpis,
  .dashboard-statusbar,
  .metric-grid,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .dashboard-topbar,
  .panel-heading,
  .app-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .alert-card {
    font-size: 0.78rem;
  }

  .alert-one { left: 4%; top: 18%; }
  .alert-two { right: 4%; top: 32%; }
  .alert-three { right: 4%; bottom: 12%; }
  .alert-four { left: 4%; bottom: 20%; }

  .alert-row,
  .review-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
