:root {
  --bg: #0d1110;
  --bg-2: #121917;
  --surface: #17241c;
  --surface-2: #1c3023;
  --green: #1b5e20;
  --green-2: #4caf50;
  --gold: #b8c4ba;
  --cream: #f5f1e7;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, .66);
  --line: rgba(255, 255, 255, .14);
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 70% 10%, rgba(76, 175, 80, .16), transparent 34rem),
    linear-gradient(135deg, #0a0d0c, var(--bg));
  color: var(--ink);
}
a { color: inherit; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(10, 14, 13, .88);
  backdrop-filter: blur(18px);
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; margin-bottom: 28px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  font-weight: 900; letter-spacing: .08em;
}
.brand strong { display: block; font-size: 17px; }
.brand small { color: var(--muted); }
nav { display: grid; gap: 5px; }
nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}
nav a:hover, nav a.active {
  color: white;
  background: rgba(255, 255, 255, .07);
  border-color: var(--line);
}
.sidebar-note {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .04);
}
.sidebar-note span { color: white; font-weight: 800; }
main { padding: 22px clamp(18px, 4vw, 56px) 64px; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 18px;
  background: linear-gradient(180deg, rgba(13, 17, 16, .96), rgba(13, 17, 16, .78), transparent);
}
.menu-button { display: none; }
.global-search, .screen-tools label, .note-box { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.global-search input, .screen-tools input, textarea {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: white;
  padding: 11px 14px;
  outline: none;
}
textarea { border-radius: 16px; resize: vertical; font: inherit; }
.hero-panel, .section-card, .doc-card, .decision-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  box-shadow: var(--shadow);
  border-radius: 28px;
}
.hero-panel {
  padding: clamp(28px, 5vw, 64px);
  margin-bottom: 24px;
  overflow: hidden;
}
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: center; gap: 34px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 800;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: 0; }
h1 { font-size: clamp(44px, 8vw, 104px); max-width: 10ch; }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: 26px; margin-top: 34px; }
h4 { font-size: 20px; margin-top: 24px; }
p { color: var(--muted); line-height: 1.65; }
.hero-panel p { max-width: 760px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  font-weight: 800;
}
.button.primary { background: linear-gradient(135deg, var(--green-2), var(--green)); color: white; }
.button.secondary { background: rgba(255, 255, 255, .06); color: white; }
.hero-phone-stack { position: relative; min-height: 520px; }
.hero-phone-stack img {
  position: absolute;
  width: min(54%, 220px);
  left: calc(18% + var(--i) * 18%);
  top: calc(8% + var(--i) * 12%);
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  transform: rotate(calc(-8deg + var(--i) * 7deg));
  border: 1px solid rgba(255, 255, 255, .24);
}
.overview-grid, .decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.overview-grid article {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, .055);
}
.overview-grid span { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.overview-grid strong { display: block; margin-top: 8px; font-size: 25px; }
.section-card, .doc-card { padding: clamp(22px, 4vw, 38px); margin-bottom: 24px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.flow span {
  min-height: 78px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  font-weight: 800;
}
.flow span:not(:last-child)::after { content: ""; }
.screen-tools { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.phone-card {
  text-align: left;
  color: white;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  border-radius: 22px;
  padding: 14px;
  cursor: pointer;
}
.phone-card[hidden] { display: none; }
.phone-card:hover { transform: translateY(-2px); border-color: rgba(184, 196, 186, .45); }
.phone-shell {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: #050605;
  border: 1px solid rgba(255, 255, 255, .18);
  margin-bottom: 12px;
}
.phone-shell img { width: 100%; display: block; }
.phone-card strong { display: block; font-size: 14px; }
.doc-card { max-width: 1040px; }
.doc-card h1 { font-size: 52px; max-width: none; }
.doc-card h2 { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-card p, .doc-card li { font-size: 16px; color: rgba(255, 255, 255, .74); }
.doc-card li { margin: 8px 0; line-height: 1.55; }
.doc-card code { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 7px; padding: 2px 6px; }
pre {
  overflow: auto;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(0, 0, 0, .34);
}
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); }
th { color: white; background: rgba(255, 255, 255, .06); }
.swatch-grid, .asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.swatch-card, .asset-card {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, .05);
}
.swatch { width: 58px; height: 58px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .28); }
.swatch-card strong, .asset-card strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.swatch-card span, .token-list span { color: var(--muted); font-size: 13px; }
.token-list { display: grid; gap: 10px; }
.token-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.asset-card { flex-direction: column; align-items: flex-start; }
.asset-card img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 14px; background: rgba(0, 0, 0, .2); }
.file-icon { border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: var(--gold); font-weight: 900; }
.empty { border: 1px dashed var(--line); border-radius: 18px; padding: 18px; }
.decision-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.decision-card { padding: 24px; display: grid; gap: 16px; }
.decision-card h2 { font-size: 28px; }
.recommendation {
  display: grid;
  gap: 6px;
  border-left: 3px solid var(--green-2);
  padding: 12px 14px;
  background: rgba(76, 175, 80, .09);
  border-radius: 0 14px 14px 0;
}
.recommendation span { color: var(--muted); line-height: 1.55; }
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.status-row button, .menu-button, .image-dialog button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: white;
  min-height: 38px;
  font-weight: 800;
  cursor: pointer;
}
.status-row button.active { background: var(--green-2); color: #061107; }
.page-dimmed main > *:not(.topbar) { opacity: .2; }
.search-hit { outline: 2px solid var(--green-2); outline-offset: 6px; border-radius: 12px; }
.image-dialog {
  width: min(980px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #070908;
  padding: 18px;
}
.image-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.image-dialog img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 24px; }
.image-dialog button { margin-bottom: 14px; padding: 0 16px; }
@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; transform: translateX(-100%); transition: transform .22s ease; width: 280px; }
  body.menu-open .sidebar { transform: translateX(0); }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-split, .two-col { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  main { padding-inline: 14px; }
  .topbar { align-items: stretch; flex-direction: column; }
  .overview-grid { grid-template-columns: 1fr; }
  .hero-phone-stack { min-height: 410px; }
  .hero-phone-stack img { width: 46%; }
  .status-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-phone-stack img { animation: floaty 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); }
  @keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
}
