:root {
  --background: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --primary: #2563eb;
  --secondary: #0f172a;
  --accent: #14b8a6;
  --purple: #7c3aed;
  --orange: #f97316;
  --soft-blue: #dbeafe;
  --soft-cyan: #ecfeff;
  --soft-purple: #f3e8ff;
  --border: #d5dde8;
  --text: #111827;
  --muted: #64748b;
  --grid-line: rgba(37, 99, 235, 0.06);
  --automation-line: rgba(20, 184, 166, 0.18);
  --radius: 10px;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 20% 5%, rgba(37, 99, 235, 0.09), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(20, 184, 166, 0.08), transparent 26%),
    var(--background);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 34%, var(--automation-line) 34.1% 34.3%, transparent 34.4% 100%),
    linear-gradient(60deg, transparent 0 58%, rgba(124, 58, 237, 0.08) 58.1% 58.25%, transparent 58.35% 100%);
}

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

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

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

p {
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
  background: rgba(246, 248, 252, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

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

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--soft-blue);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 22px;
  padding: 34px 0 28px;
}

.control-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.control-panel::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--orange));
}

.hero-copy {
  padding: clamp(26px, 4vw, 44px);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: clamp(2.35rem, 5.2vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.08;
}

h3 {
  color: var(--secondary);
  line-height: 1.25;
}

.tagline {
  margin-bottom: 20px;
  color: var(--purple);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 900;
}

.intro {
  max-width: 820px;
  color: #44546a;
  font-size: 1.03rem;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.identity-grid div {
  padding: 16px;
  background: #fff;
}

.identity-grid div:last-child {
  grid-column: 1 / -1;
}

.identity-grid dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-grid dd {
  margin: 0;
  color: var(--secondary);
  font-weight: 850;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stats span {
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--surface-soft);
}

.stats strong {
  color: var(--primary);
  font-size: 1.45rem;
  line-height: 1;
}

.workflow-board {
  padding: 24px;
}

.board-heading {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.board-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
}

.board-heading img {
  width: 118px;
  max-width: 100%;
}

.pipeline-list {
  display: grid;
  gap: 12px;
  padding: 18px 0 0;
  margin: 0;
  list-style: none;
}

.pipeline-list li {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff, #f8fbff);
}

.pipeline-list li:not(:last-child)::after {
  position: absolute;
  left: 31px;
  bottom: -14px;
  width: 2px;
  height: 14px;
  content: "";
  background: var(--accent);
}

.step-dot {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  background: var(--primary);
}

.pipeline-list strong,
.pipeline-list small {
  display: block;
}

.pipeline-list strong {
  margin-bottom: 5px;
  color: var(--secondary);
}

.pipeline-list small {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 780px;
  margin: 44px 0 22px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.profile-card,
.module-card,
.outcome-card,
.note-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.profile-card {
  padding: 20px;
}

.profile-card span,
.outcome-card span,
.note-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card h3,
.outcome-card h3 {
  margin-bottom: 10px;
}

.profile-card p,
.outcome-card p,
.note-card p {
  margin-bottom: 0;
  color: #46566b;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 20px;
}

.module-card.featured {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.12);
}

.module-card[data-group="research"] {
  background: linear-gradient(180deg, #fff, var(--soft-purple));
}

.module-card[data-group="privacy"] {
  background: linear-gradient(180deg, #fff, var(--soft-blue));
}

.module-card[data-group="automation"] {
  background: linear-gradient(180deg, #fff, #fff7ed);
}

.module-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.module-topline span,
.module-topline b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 900;
}

.module-topline span {
  color: #fff;
  background: var(--secondary);
}

.module-topline b {
  color: var(--primary);
  background: #eef4ff;
}

.module-card[data-group="prompt"] .module-topline b,
.module-card[data-group="file"] .module-topline b {
  color: #0f766e;
  background: var(--soft-cyan);
}

.module-card[data-group="collab"] .module-topline b {
  color: #334155;
  background: #f1f5f9;
}

.module-card[data-group="responsible"] .module-topline b {
  color: #b45309;
  background: #fffbeb;
}

.module-card[data-group="automation"] .module-topline b {
  color: #c2410c;
  background: #ffedd5;
}

.module-card h3 {
  min-height: 68px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.module-card p {
  color: #46566b;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
}

.tag-row span {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  background: #fff;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions button,
.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.card-actions button {
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
}

.card-actions a {
  border: 1px solid var(--border);
  color: var(--secondary);
  background: #fff;
}

.card-actions button:hover,
.card-actions a:hover {
  transform: translateY(-1px);
}

.outcomes {
  padding-bottom: 54px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.outcome-card {
  padding: 22px;
}

.site-footer {
  padding: 26px 22px 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.site-footer p {
  margin: 4px 0;
  line-height: 1.5;
}

.case-modal {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.case-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.modal-panel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.32);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  background: #fff;
}

.modal-header {
  padding: 28px 68px 20px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, #fff, var(--surface-soft));
}

.modal-kicker {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-header h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.modal-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 18px;
  padding: 22px 28px 28px;
}

.note-grid {
  display: grid;
  gap: 10px;
  align-content: start;
}

.note-card {
  padding: 16px;
  border-left: 4px solid var(--accent);
}

.pdf-shell {
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
}

.pdf-shell iframe {
  width: 100%;
  height: 680px;
  border: 0;
}

@media (max-width: 1040px) {
  .hero,
  .modal-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .section-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy,
  .workflow-board {
    padding: 20px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .identity-grid,
  .stats,
  .profile-grid,
  .module-grid,
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .board-heading {
    grid-template-columns: 1fr;
  }

  .board-heading img {
    width: 94px;
  }

  .module-card {
    min-height: auto;
  }

  .module-card h3 {
    min-height: auto;
  }

  .modal-header,
  .modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pdf-shell,
  .pdf-shell iframe {
    height: 560px;
    min-height: 560px;
  }
}
