@import url("../shared_base.css");

:root {
  --ink: #e9f3ec;
  --muted: #99aea2;
  --bg: #06110d;
  --panel: #0b1914;
  --line: #1d372b;
  --accent: #9fed69;
  --accent-2: #67d3b0;
  --paper: #f3efe5;
  --paper-ink: #102119;
  --paper-muted: #5a6b62;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

main p:not(.eyebrow):not(.panel-label) {
  text-align: justify;
}

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

h1,
h2,
h3,
strong {
  font-family: Georgia, "Times New Roman", serif;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(20px, 4.5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 13, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font:
    700 17px Georgia,
    serif;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 24px;
  color: #b7c8bf;
  font-size: 12px;
}

.site-header nav a:hover,
.header-action:hover {
  color: #ffffff;
}

.header-action {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.header-action span {
  color: var(--accent);
  margin-left: 8px;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: clamp(56px, 8vh, 108px) clamp(24px, 5.5vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent-2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow > span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.eyebrow--paper {
  color: #2f5a48;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font:
    400 clamp(28px, 4vw, 56px) / 1.1 Georgia,
    serif;
  letter-spacing: -0.045em;
}

.hero-subtitle {
  max-width: 760px;
  margin: 22px 0 18px;
  color: #b9cdc3;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.5;
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  color: #93a79b;
  font-size: 15px;
  line-height: 1.8;
}

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

.primary-button,
.text-button {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--accent);
  color: #0f1d16;
  font-weight: 700;
}

.primary-button span {
  font-size: 14px;
}

.text-button {
  align-self: center;
  padding-bottom: 4px;
  border-bottom: 1px solid #5b7265;
  color: #c4d3cb;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  min-width: 0;
}

.hero-stats dt {
  color: #6f8478;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-stats dd {
  margin: 8px 0 0;
  font:
    700 17px Georgia,
    serif;
  color: #f4f8f3;
}

.hero-panel {
  padding: clamp(22px, 4vw, 54px);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(6, 17, 13, 0.16), rgba(6, 17, 13, 0.74)),
    url("assets/images/cannabis_sativa_ai_background.png") center center / cover
      no-repeat,
    radial-gradient(circle at 50% 30%, #183b2f 0, #091a14 45%, #06110d 75%);
  position: relative;
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(103, 211, 176, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 211, 176, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.panel-card,
.mini-card,
.source-card,
.extension-card,
.governance-note,
.note-banner,
.concept-card,
.case-card {
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}

.panel-card {
  background: rgba(4, 15, 11, 0.82);
  border: 1px solid rgba(169, 226, 198, 0.14);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(14px);
}

.panel-card--main h3,
.panel-card--main .panel-card-title,
.source-card h3,
.extension-card h3,
.governance-card h3,
.case-card h3,
.concept-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.panel-card--main p,
.panel-card--secondary p,
.source-card p,
.extension-card p,
.governance-card p,
.case-card p,
.note-banner p,
.concept-card p,
.governance-note li,
.hero-lead {
  line-height: 1.75;
}

.panel-label {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.mini-card {
  border: 1px solid rgba(169, 226, 198, 0.14);
  border-radius: 20px;
  background: rgba(9, 24, 18, 0.82);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.mini-card span {
  display: block;
  color: #86a093;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.mini-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 20px;
  color: #f2f7f1;
}

.mini-card p {
  margin: 0;
  color: #90a69a;
  font-size: 13px;
}

.panel-card--secondary {
  background: rgba(5, 18, 13, 0.72);
}

.section {
  padding: 96px clamp(20px, 5.5vw, 88px);
}

.section + .section {
  border-top: 1px solid rgba(126, 159, 142, 0.22);
}

.section-paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.section-dark {
  background: #08120e;
  color: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font:
    400 clamp(34px, 4.4vw, 64px) / 1 Georgia,
    serif;
  letter-spacing: -0.03em;
}

.section-heading > p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 15px;
  line-height: 1.8;
}

.section-heading--dark > p {
  color: #92a59a;
}

.case-grid,
.extension-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.case-card,
.source-card,
.extension-card,
.governance-card,
.note-banner,
.governance-note,
.concept-card {
  border-radius: 22px;
}

.case-card,
.source-card,
.extension-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #cfd8d1;
  padding: 24px;
}

.case-card p + p,
.extension-card p + p,
.source-card p + p {
  margin-top: 14px;
}

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

.diagnostic-card {
  padding: 24px;
  border: 1px solid #cfd8d1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.diagnostic-card--strong {
  border-color: #8fbfa6;
  background: #eaf5ed;
}

.diagnostic-card__label {
  margin: 0 0 10px;
  color: #2f5a48;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.model-family {
  border: 1px solid #cfd8d1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.model-family[open] {
  border-color: #8fbfa6;
  box-shadow: 0 16px 32px rgba(18, 48, 31, 0.08);
}

.model-family summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.model-family summary::-webkit-details-marker {
  display: none;
}

.model-family summary::after {
  margin-left: auto;
  color: #2f5a48;
  content: "+";
  font-size: 24px;
  font-weight: 400;
}

.model-family[open] summary::after {
  content: "–";
}

.model-family__index {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e3f2e8;
  color: #2f5a48;
  font-size: 12px;
  font-weight: 700;
}

.model-family summary strong,
.model-family summary small {
  display: block;
}

.model-family summary strong {
  color: var(--paper-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.15;
}

.model-family summary small {
  margin-top: 4px;
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.4;
}

.model-family__body {
  padding: 0 22px 22px;
  color: var(--paper-muted);
  line-height: 1.75;
}

.model-family__body p {
  margin: 0;
}

.model-family__body p + p {
  margin-top: 14px;
}

.model-family__example strong {
  color: var(--paper-ink);
}

.model-family-note {
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid #c4d2c1;
  border-radius: 18px;
  background: #e7f1e7;
  color: #12301f;
}

.model-family-note p {
  margin: 0;
  line-height: 1.7;
}

.diagnostic-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

.diagnostic-card p:last-child {
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.75;
}

.diagnostic-candidates {
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid #cfd8d1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.diagnostic-candidates summary {
  cursor: pointer;
  color: var(--paper-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}

.diagnostic-candidates summary::marker {
  color: #2f5a48;
}

.diagnostic-candidates p {
  margin: 16px 0;
  color: var(--paper-muted);
  line-height: 1.75;
}

.diagnostic-candidates ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--paper-muted);
  line-height: 1.65;
}

.diagnostic-candidates strong {
  color: var(--paper-ink);
}

.diagnostic-route {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid #c4d2c1;
  border-radius: 18px;
  background: #e7f1e7;
  color: #12301f;
}

.diagnostic-route strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.diagnostic-route span {
  color: #2f5a48;
  font-size: 13px;
  line-height: 1.6;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.kpi {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8f6ef, #eef2e9);
  border: 1px solid #d7ddd5;
}

.kpi strong {
  display: block;
  color: #102119;
  font-size: 30px;
  line-height: 1;
}

.kpi span {
  display: block;
  margin-top: 8px;
  color: #607067;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.source-card {
  align-self: start;
}

.source-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #d5ddd8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #10412d;
}

.source-card a span {
  color: #0f7b56;
}

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

.concept-card {
  padding: 24px;
  border: 1px solid #1c3329;
  background: linear-gradient(
    145deg,
    rgba(13, 31, 23, 0.96),
    rgba(7, 18, 13, 0.96)
  );
}

.concept-card span {
  color: var(--accent-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.concept-card h3 {
  margin-top: 52px;
  color: #f2f7f1;
}

.concept-card p {
  margin: 0;
  color: #92a59a;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #ced7cf;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #e1e7e1;
  vertical-align: top;
}

.comparison-table th {
  text-align: left;
  background: #f2f6f1;
  color: #5a6b62;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.comparison-table td {
  color: #15231c;
  font-size: 14px;
  line-height: 1.72;
}

.method-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #bec9c2;
  background: #fbfcfa;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.note-banner {
  margin-top: 16px;
  padding: 20px 22px;
  background: #e7f1e7;
  border: 1px solid #c4d2c1;
  color: #12301f;
}

.note-banner p {
  margin: 0;
}

.note-banner strong {
  color: #0f4a2f;
}

.note-banner--quality {
  background: #edf4e3;
  border-color: #bfd39f;
}

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

.support-card {
  padding: 24px;
  border: 1px solid #cfd8d1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.support-card__label {
  margin: 0 0 10px;
  color: #2f5a48;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.support-card h3 {
  margin: 0 0 18px;
  color: var(--paper-ink);
  font-size: 24px;
  line-height: 1.1;
}

.support-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.support-list div {
  padding-top: 16px;
  border-top: 1px solid #dde4de;
}

.support-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.support-list dt {
  color: #12301f;
  font-weight: 700;
}

.support-list dd {
  margin: 5px 0 0;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: justify;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c4d2c1;
  border-radius: 22px;
  background: #e7f1e7;
  list-style: none;
}

.pipeline-steps li {
  min-width: 0;
  padding: 20px;
  border-left: 1px solid #c4d2c1;
}

.pipeline-steps li:first-child {
  border-left: 0;
}

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

.pipeline-steps span {
  color: #4f7662;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pipeline-steps strong {
  margin-top: 12px;
  color: #12301f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.pipeline-steps small {
  margin-top: 7px;
  color: #526b5e;
  font-size: 12px;
  line-height: 1.55;
}

.support-source-note {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1.65fr);
  gap: 18px;
  align-items: baseline;
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid #cfd8d1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.support-source-note strong {
  color: #12301f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.support-source-note p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.7;
}

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

.governance-card {
  padding: 24px;
  background: linear-gradient(145deg, #10231b, #08120e);
  border: 1px solid #1f372d;
}

.governance-card p {
  margin: 0;
  color: #92a59a;
  font-size: 13px;
}

.governance-note {
  margin-top: 16px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #1f372d;
}

.governance-note h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.governance-note ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #9aaea3;
  line-height: 1.8;
}

.extension-card--accent {
  background: linear-gradient(145deg, #d8ece0, #f2f4ec);
}

.extension-card--accent p {
  color: #264237;
}

.conclusion-text {
  max-width: 920px;
  margin: 0;
  color: #c4d3cb;
  font-size: 15px;
  line-height: 1.85;
}

.conclusion-text--small {
  margin-top: 18px;
  font-size: 12px;
  color: #92a59a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  padding: 28px clamp(20px, 5.5vw, 88px);
  border-top: 1px solid var(--line);
  color: #6f8478;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer a {
  text-align: right;
}

@media (max-width: 1024px) {
  .site-header nav {
    display: none;
  }

  .hero,
  .section-heading,
  .case-grid,
  .extension-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 540px;
  }

  .concept-grid,
  .governance-grid,
  .kpi-grid,
  .hero-stats,
  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostic-grid {
    grid-template-columns: 1fr;
  }

  .model-families-grid {
    grid-template-columns: 1fr;
  }

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

  .pipeline-steps li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #c4d2c1;
  }

  .pipeline-steps li:nth-child(4) {
    border-top: 1px solid #c4d2c1;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 14px;
    padding-inline: 16px;
  }

  .header-action {
    padding-left: 16px;
    font-size: 0;
  }

  .header-action span {
    font-size: 16px;
  }

  .hero-copy {
    padding: 50px 16px 42px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

  .primary-button,
  .text-button {
    width: fit-content;
  }

  .hero-stats,
  .panel-grid,
  .concept-grid,
  .governance-grid,
  .support-grid,
  .kpi-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 18px;
    min-height: auto;
  }

  .section {
    padding: 72px 16px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .comparison-table {
    min-width: 680px;
  }

  .pipeline-steps {
    grid-template-columns: 1fr;
  }

  .pipeline-steps li,
  .pipeline-steps li:nth-child(3) {
    border-top: 1px solid #c4d2c1;
    border-left: 0;
  }

  .pipeline-steps li:first-child {
    border-top: 0;
  }

  .support-source-note {
    grid-template-columns: 1fr;
  }

  .site-footer {
    text-align: left;
  }

  .site-footer p,
  .site-footer a {
    text-align: left;
  }
}
