:root {
  --bg: #07141d;
  --bg-soft: #0d1e2a;
  --surface: rgba(9, 24, 34, 0.82);
  --surface-strong: #112435;
  --surface-highlight: rgba(20, 42, 59, 0.92);
  --ink: #f3f7fb;
  --muted: #9eb0bf;
  --line: rgba(158, 176, 191, 0.18);
  --brand: #f0a04b;
  --brand-deep: #cf7b2a;
  --accent: #4cd3a6;
  --accent-soft: rgba(76, 211, 166, 0.12);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 160, 75, 0.2), transparent 26%),
    radial-gradient(circle at top right, rgba(76, 211, 166, 0.16), transparent 22%),
    linear-gradient(180deg, #061019 0%, var(--bg) 45%, #091722 100%);
}

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 16%, rgba(240, 160, 75, 0.08), transparent 22%),
    radial-gradient(circle at 78% 12%, rgba(76, 211, 166, 0.1), transparent 20%);
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.site-header {
  padding-bottom: 26px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 20, 29, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

h1,
h2,
h3,
.footer-brand {
  font-family: "Space Grotesk", sans-serif;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 198px;
  max-width: 100%;
  height: auto;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #07141d;
  background: linear-gradient(135deg, var(--brand), #ffc785);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 32px;
  align-items: center;
  padding: 54px 0 20px;
}

.hero-copy,
.hero-visual,
.section,
.footer {
  animation: rise 620ms ease both;
}

.hero-copy {
  animation-delay: 70ms;
}

.hero-visual {
  animation-delay: 140ms;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.4rem, 7.2vw, 6rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.23rem;
  line-height: 1.58;
}

.hero-trust {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-trust li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(76, 211, 166, 0.12);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-status,
.visual-grid,
.card-grid {
  display: grid;
  gap: 18px;
}

.hero-status {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.status-card,
.card,
.visual-panel,
.visual-card,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.status-card {
  padding: 20px;
}

.status-label,
.panel-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-card strong,
.visual-card strong {
  display: block;
  font-size: 1.08rem;
}

.status-card p,
.visual-card p,
.section-copy,
.card p,
.cta-panel p,
.footer p,
.founder-role {
  color: var(--muted);
}

.status-card p,
.visual-card p,
.card p,
.cta-panel p {
  margin: 10px 0 0;
  line-height: 1.6;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.visual-panel {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(76, 211, 166, 0.08), rgba(9, 24, 34, 0.82)),
    var(--surface);
}

.flow-track {
  display: grid;
  gap: 12px;
}

.flow-track span,
.diagram span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.flow-track span::after,
.diagram span:not(:last-child)::after {
  content: "\2192";
  color: var(--brand);
}

.flow-track span:last-child::after {
  content: "\2713";
}

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

.visual-card,
.card {
  padding: 24px;
}

.visual-card.emphasis,
.card-emphasis {
  background:
    linear-gradient(180deg, rgba(240, 160, 75, 0.12), rgba(9, 24, 34, 0.88)),
    var(--surface-highlight);
}

.section {
  padding-top: 88px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 26px;
  align-items: end;
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-copy {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

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

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

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

ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.process-list {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(76, 211, 166, 0.08), rgba(9, 24, 34, 0.86)),
    var(--surface);
  box-shadow: var(--shadow);
}

.process-list li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #08131b;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), #ffd08f);
}

.process-list strong {
  font-size: 1.08rem;
}

.process-list span {
  color: var(--muted);
  line-height: 1.65;
}

.workflow-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

.workflow-badge {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4cd36d;
  box-shadow: 0 0 0 6px rgba(76, 211, 109, 0.12);
}

.workflow-stack {
  display: grid;
  gap: 12px;
}

.workflow-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 0;
}

.workflow-node {
  flex: 1 1 0;
  display: grid;
  gap: 14px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(76, 211, 166, 0.07), rgba(9, 24, 34, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.workflow-node strong {
  font-size: 1rem;
  line-height: 1.35;
}

.workflow-node .mini-icon {
  width: 38px;
  height: 38px;
}

.workflow-arrow {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
}

.workflow-drop {
  display: flex;
  justify-content: flex-end;
  padding-right: 110px;
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.workflow-strip-tail {
  justify-content: flex-end;
}

.workflow-strip-tail .workflow-node {
  flex: 0 1 220px;
}

.icon-list {
  display: grid;
  gap: 12px;
}

.icon-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.03);
}

.mini-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-item span:last-child {
  line-height: 1.55;
}

.architecture-grid {
  align-items: start;
}

.diagram {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.diagram span {
  justify-content: flex-start;
}

.diagram span:not(:last-child)::after {
  content: "\2193";
  margin-left: auto;
}

.cta-section {
  padding-bottom: 18px;
}

.cta-panel {
  padding: 34px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(240, 160, 75, 0.14), rgba(76, 211, 166, 0.1)),
    var(--surface-highlight);
}

.cta-panel h2 {
  max-width: 11ch;
}

.cta-note {
  margin-top: 16px;
  font-size: 0.95rem;
}

.section-actions {
  margin-top: 24px;
}

.inline-note {
  display: inline-flex;
  align-items: center;
  max-width: 34rem;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(240, 160, 75, 0.45);
  background: rgba(240, 160, 75, 0.12);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 18px;
  align-items: end;
  padding: 34px 0 12px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-brand {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.footer p {
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.copyright {
  text-align: right;
}

.architecture-page .page-shell,
.policy-page .page-shell {
  padding-top: 26px;
}

.architecture-hero h1 {
  max-width: 11ch;
}

.architecture-page-grid {
  align-items: stretch;
}

.architecture-context-card {
  display: grid;
  gap: 18px;
}

.architecture-context-full {
  margin-bottom: 20px;
}

.architecture-context-head {
  display: grid;
  gap: 10px;
}

.architecture-context-head h3 {
  margin-bottom: 0;
}

.architecture-summary-grid {
  align-items: stretch;
}

.architecture-mini-card {
  min-height: 0;
}

.diagram-placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 22px;
  border: 1px solid rgba(158, 176, 191, 0.18);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(76, 211, 166, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.diagram-embed {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #ffffff;
}

.diagram-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.policy-header {
  padding-bottom: 24px;
}

.policy-header .brand-logo {
  width: 182px;
}

.policy-shell {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.policy-hero {
  padding: 12px 0 8px;
}

.policy-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6.2vw, 5rem);
}

.policy-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.policy-section {
  padding: 28px;
}

.policy-section h2 {
  max-width: none;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.policy-section p {
  margin: 0;
  line-height: 1.7;
}

.policy-section p + p {
  margin-top: 14px;
}

.policy-section ul {
  margin: 0;
}

.notice-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(240, 160, 75, 0.14), rgba(76, 211, 166, 0.1)),
    var(--surface-highlight);
  box-shadow: var(--shadow);
}

 .notice-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .topbar {
    border-radius: 28px;
  }

  .hero,
  .section-intro,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-status,
  .visual-grid,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .copyright {
    text-align: left;
  }
}

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

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 32px;
  }

  h1 {
    max-width: none;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-copy span {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .nav-links,
  .inline-note {
    width: 100%;
  }

  .hero-status,
  .visual-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .process-list {
    grid-template-columns: 1fr;
  }

  .workflow-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .workflow-node {
    flex-basis: auto;
    min-height: 0;
  }

  .workflow-arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .workflow-drop {
    justify-content: center;
    padding-right: 0;
  }

  .workflow-strip-tail {
    justify-content: stretch;
  }

  .visual-panel,
  .visual-card,
  .card,
  .cta-panel,
  .process-list li,
  .policy-section,
  .notice-panel {
    padding: 20px;
  }

  .section {
    padding-top: 64px;
  }

  .footer {
    padding-bottom: 24px;
  }

  .brand-logo,
  .policy-header .brand-logo {
    width: 168px;
  }
}
