/* Ontologic – static site styles (pixel-match to deployed version) */

:root {
  --background: 220 10% 5%;
  --foreground: 220 10% 98%;
  --primary: 285 68% 68%;
  --primary-foreground: 220 10% 5%;
  --border: 220 10% 20%;
  --radius: 0.5rem;

  /* Core Substrate - Hedera Purple (infrastructure, structure) */
  --hedera-purple: oklch(0.68 0.19 285);

  /* Logic Layers (CMY) - Triune Reasoning */
  --cyan: oklch(0.75 0.15 200);      /* Peirce - Inputs/Outputs, CTAs */
  --magenta: oklch(0.70 0.18 330);   /* Tarski - Rules, Labels */
  --yellow: oklch(0.85 0.16 85);     /* Floridi - Meaning, Results */

  /* Entity Triad (Pastel RGB) */
  --pastel-green: oklch(0.80 0.12 145);  /* Assets */
  --pastel-red: oklch(0.75 0.12 25);     /* Actions */
  --pastel-blue: oklch(0.78 0.10 240);   /* Identities */

  /* Neutrals (Key/Black) - True neutral, no blue tint */
  --key-bg: oklch(0.10 0.005 0);
  --key-card: oklch(0.14 0.005 0);
  --key-border: oklch(0.20 0.01 0);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  background: oklch(0.10 0.005 270);
  color: oklch(0.95 0.005 270);
  font-feature-settings: "rlig" 1, "calt" 1;
  min-height: 100vh;
}

/* Focus states (WCAG AA) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-to-main {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  transform: translateY(-100%);
  background: var(--cyan);
  color: oklch(0.10 0.005 0);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.15s;
}
.skip-to-main:focus {
  transform: translateY(0);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Background layer */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg-layer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: oklch(0.10 0.005 270);
}

.kanji-watermark {
  font-family: serif;
  color: oklch(0.95 0.005 270);
  user-select: none;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid oklch(0.20 0.015 270);
  background: oklch(0.10 0.005 270 / 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
}
.nav-logo:hover {
  color: var(--cyan);
}
.nav-logo img {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  opacity: 0.9;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.1);
  mix-blend-mode: screen;
}

.nav-links {
  display: none;
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--cyan);
}
.nav-links a[aria-current="page"] {
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0.375rem;
}
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 60px;
  z-index: 40;
  background: rgba(10, 10, 12, 0.98);
  animation: mobile-fade 0.15s ease-out;
}
.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}
.mobile-menu a {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--cyan);
}
.mobile-menu a[aria-current="page"] {
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

@keyframes mobile-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Main content */
main {
  position: relative;
  z-index: 10;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 8rem;
}
@media (min-width: 768px) {
  .hero {
    padding: 8rem 0 8rem;
  }
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero-logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-logo-card {
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(24px);
  background: oklch(0.14 0.008 270);
  position: relative;
  overflow: visible;
}

/*
 * Animated gradient glow behind logo
 * Color sequence: transparent → black → white → red → green → blue →
 *                 cyan → magenta → yellow → white → yellow → magenta →
 *                 cyan → blue → green → red → white → black → transparent
 */
.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  border-radius: 1.2rem;
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: oklch(0.25 0.02 0); /* Black default */
  animation: logo-glow-color 60s ease-in-out infinite;
}

@keyframes logo-glow-color {
  /* Fade in: transparent → black */
  0%       { opacity: 0;   background: oklch(0.25 0.02 0); }
  2.5%     { opacity: 0.4; background: oklch(0.25 0.02 0); }
  /* Color sequence at full opacity */
  5.28%    { opacity: 0.4; background: oklch(0.95 0.02 0); }   /* White */
  10.56%   { opacity: 0.4; background: oklch(0.65 0.25 29); }  /* Red */
  15.83%   { opacity: 0.4; background: oklch(0.72 0.20 142); } /* Green */
  21.11%   { opacity: 0.4; background: oklch(0.55 0.25 264); } /* Blue */
  26.39%   { opacity: 0.4; background: oklch(0.75 0.15 200); } /* Cyan */
  31.67%   { opacity: 0.4; background: oklch(0.70 0.18 330); } /* Magenta */
  36.94%   { opacity: 0.4; background: oklch(0.85 0.16 85); }  /* Yellow */
  42.22%   { opacity: 0.4; background: oklch(0.95 0.02 0); }   /* White (midpoint) */
  47.50%   { opacity: 0.4; background: oklch(0.85 0.16 85); }  /* Yellow */
  52.78%   { opacity: 0.4; background: oklch(0.70 0.18 330); } /* Magenta */
  58.06%   { opacity: 0.4; background: oklch(0.75 0.15 200); } /* Cyan */
  63.33%   { opacity: 0.4; background: oklch(0.55 0.25 264); } /* Blue */
  68.61%   { opacity: 0.4; background: oklch(0.72 0.20 142); } /* Green */
  73.89%   { opacity: 0.4; background: oklch(0.65 0.25 29); }  /* Red */
  79.17%   { opacity: 0.4; background: oklch(0.95 0.02 0); }   /* White */
  84.44%   { opacity: 0.4; background: oklch(0.25 0.02 0); }   /* Black */
  /* Fade out: black → transparent */
  97.5%    { opacity: 0.4; background: oklch(0.25 0.02 0); }
  100%     { opacity: 0;   background: oklch(0.25 0.02 0); }
}

.hero-wordmark {
  font-weight: 900;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  color: white;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .hero-wordmark {
    font-size: 1rem;
  }
}

.hero-logo-img-wrap {
  width: 12rem;
  height: 12rem;
  max-width: 220px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero-logo-img-wrap {
    width: 14rem;
    height: 14rem;
  }
}
.hero-logo-img-wrap img {
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-built {
  font-weight: 900;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}
@media (min-width: 768px) {
  .hero-built {
    font-size: 0.875rem;
  }
}

.hero-tagline-box {
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(24px);
  background: oklch(0.14 0.008 270);
  animation: fade-in 0.15s ease-out 0.1s both;
}

.hero h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero-sub {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(24px);
  background: oklch(0.14 0.008 270);
  animation: fade-in 0.15s ease-out 0.2s both;
}

.hero-sub p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}
@media (min-width: 768px) {
  .hero-sub p {
    font-size: 1.875rem;
  }
}

.hero-cta {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  animation: fade-in 0.15s ease-out 0.3s both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary {
  background: var(--cyan);
  color: oklch(0.10 0.005 0);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
  background: oklch(0.70 0.15 200);
  transform: scale(1.02);
}
.btn-lg {
  height: 2.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-weight: 700;
}

/* Nav CTA Button */
.btn-nav {
  display: none;
  height: 2rem;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  .btn-nav {
    display: inline-flex;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.section-inner-wide {
  max-width: 72rem;
  margin: 0 auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: white;
  text-align: center;
  margin: 0 0 3rem;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid;
  backdrop-filter: blur(24px);
  transition: all 0.15s;
}
.card:hover {
  transform: scale(1.02);
}
.card-bg {
  background: oklch(0.14 0.008 270);
  border-color: oklch(0.20 0.015 270);
}
.card-rule {
  border-color: var(--magenta);
}
.card-inference {
  border-color: var(--cyan);
}
.card-meaning {
  border-color: var(--yellow);
}

.card-header {
  padding: 0 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.card-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
}

.card-content {
  padding: 0 1.5rem;
}

.card-content p {
  margin: 0;
  font-size: 0.875rem;
  color: white;
  line-height: 1.6;
}
.card-content .card-content-lg p {
  font-size: 1.125rem;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding-top: 0.5rem;
}

/* Grid */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.space-y-12 > * + * {
  margin-top: 3rem;
}

.text-center-cta {
  text-align: center;
  padding-top: 2rem;
}

/* Footer */
.footer {
  padding: 3rem 0;
  backdrop-filter: blur(16px);
  background: oklch(0.10 0.005 270 / 0.95);
  position: relative;
}

.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
}

.footer-sep {
  height: 1px;
  background: oklch(0.20 0.015 270);
  border: none;
  margin: 0 0 1.5rem;
}

.footer-logo-box {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.footer-logo-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(16px);
  background: oklch(0.14 0.008 270);
  text-align: center;
}

.footer-wordmark {
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-logo-card img {
  height: 6rem;
  width: 6rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .footer-logo-card img {
    height: 8rem;
    width: 8rem;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.footer-links a:hover {
  color: var(--cyan);
}

.footer-contact {
  text-align: center;
}
.footer-contact p {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
}
.footer-contact a {
  color: white;
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--cyan);
}
.footer-contact .copy {
  font-size: 0.75rem;
  font-weight: 600;
  font-style: italic;
  padding-top: 0.5rem;
}
.footer-contact .copy a {
  color: var(--cyan);
  font-weight: 700;
}
.footer-contact .copy a:hover {
  text-decoration: underline;
}

/* Icon colors - CMY Layer Mapping */
.icon-rule { color: var(--magenta); }       /* Tarski - Rules */
.icon-inference { color: var(--cyan); }     /* Peirce - Inputs/Outputs */
.icon-meaning { color: var(--yellow); }     /* Floridi - Meaning */
.icon-carbon { color: var(--pastel-green); }/* Assets */
.icon-defi { color: var(--cyan); }          /* Data/Inputs */

/* Utility */
.text-primary { color: var(--cyan); }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* Page layout (Protocol, Verify, Whitepaper) */
.page-content { position: relative; }
.page-inner { margin: 0 auto; }
.page-title { font-size: 2.25rem; font-weight: 800; color: white; margin: 0; }
@media (min-width: 768px) {
  .page-title { font-size: 3rem; }
}

/* Protocol: Tabs - CMY Layer Colors */
.tabs-wrap { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.tab-btn { font-family: inherit; font-weight: 700; font-size: 0.875rem; padding: 0.5rem 1rem; border-radius: 0.375rem; cursor: pointer; transition: all 0.15s; border: 2px solid; background: transparent; color: oklch(0.99 0 0); }
.tab-btn.tab-rule { border-color: var(--magenta); }
.tab-btn.tab-rule.is-active { background: oklch(0.70 0.18 330 / 0.3); }
.tab-btn.tab-inference { border-color: var(--cyan); }
.tab-btn.tab-inference.is-active { background: oklch(0.75 0.15 200 / 0.3); }
.tab-btn.tab-meaning { border-color: var(--yellow); }
.tab-btn.tab-meaning.is-active { background: oklch(0.85 0.16 85 / 0.3); }
.tab-btn:hover:not(.is-active) { background: var(--key-card); }

.layer-panel { margin: 0; }

/* Badges - CMY Layer Colors */
.badge { display: inline-block; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 700; border-radius: 0.25rem; border: 1px solid; }
.badge-rule { background: oklch(0.70 0.18 330 / 0.2); border-color: var(--magenta); color: var(--magenta); }
.badge-inference { background: oklch(0.75 0.15 200 / 0.2); border-color: var(--cyan); color: var(--cyan); }
.badge-meaning { background: oklch(0.85 0.16 85 / 0.2); border-color: var(--yellow); color: var(--yellow); }

.card-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.5rem; }

.card-header.flex-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.card-header .card-title { margin: 0; }

/* Chain diagram - CMY Layer Colors */
.chain-diagram { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 2rem 0; }
@media (min-width: 768px) {
  .chain-diagram { flex-direction: row; justify-content: center; gap: 1.5rem; }
}
.chain-node { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.chain-box { width: 8rem; height: 8rem; border-radius: 0.5rem; border: 1px solid; display: flex; align-items: center; justify-content: center; }
.chain-box.rule { background: oklch(0.70 0.18 330 / 0.1); border-color: var(--magenta); }
.chain-box.inference { background: oklch(0.75 0.15 200 / 0.1); border-color: var(--cyan); }
.chain-box.meaning { background: oklch(0.85 0.16 85 / 0.1); border-color: var(--yellow); }
.chain-box span { font-size: 0.875rem; font-weight: 800; color: white; text-align: center; line-height: 1.3; }
.chain-arrow { color: var(--cyan); font-size: 1.5rem; }
@media (min-width: 768px) {
  .chain-diagram .chain-arrow { transform: none; }
}

/* Code block */
.code-block { padding: 1rem 1.5rem; border-radius: 0.5rem; border: 1px solid oklch(0.20 0.015 270); background: oklch(0.08 0.005 270); }
.code-block.pre-wrap { overflow-x: auto; }
.code-block pre { margin: 0; white-space: pre; }
.morpheme-formula { margin: 0; font-size: 1.125rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: 0.25rem; flex-wrap: wrap; color: white; }
.morpheme-formula .m-r { color: var(--magenta); cursor: help; text-decoration: underline; text-decoration-style: dotted; }  /* Rule */
.morpheme-formula .m-i { color: var(--cyan); cursor: help; text-decoration: underline; text-decoration-style: dotted; }      /* Input */
.morpheme-formula .m-o { color: var(--cyan); cursor: help; text-decoration: underline; text-decoration-style: dotted; }      /* Output */
.morpheme-formula .m-m { color: var(--yellow); cursor: help; text-decoration: underline; text-decoration-style: dotted; }    /* Meaning */

.btn-outline { background: transparent; border: 1px solid oklch(0.20 0.015 270); color: white; }
.btn-outline:hover { background: oklch(0.14 0.008 270); }
.btn-sm { height: 2rem; padding: 0 0.75rem; font-size: 0.75rem; }

/* Verify page: demo cards */
.demo-section { padding: 4rem 0; }
@media (min-width: 768px) { .demo-section { padding: 6rem 0; } }
.demo-heading { text-align: center; margin-bottom: 2rem; }
.demo-heading h2 { font-size: 1.875rem; font-weight: 800; color: white; margin: 0 0 0.75rem; }
@media (min-width: 768px) { .demo-heading h2 { font-size: 2.25rem; } }
.demo-heading p { font-size: 1.125rem; font-weight: 700; color: white; max-width: 42rem; margin: 0 auto; }
.demo-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
.demo-card { background: linear-gradient(135deg, #16171f, #13141a); border: 1px solid #2f3442; border-radius: 0.75rem; padding: 1.5rem 0; backdrop-filter: blur(24px); transition: all 0.15s; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.demo-card:hover { transform: scale(1.02); }
.demo-card .card-header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.demo-badge { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 0.25rem; border: 1px solid; font-weight: 700; font-size: 0.875rem; }
.demo-meta { font-size: 0.75rem; font-weight: 700; color: white; font-family: inherit; padding: 0.25rem 0.5rem; border-radius: 0.25rem; background: rgba(0,0,0,0.5); }
.demo-card .card-content p { font-size: 0.875rem; font-weight: 600; }
.demo-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.demo-actions a, .demo-actions button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem; font-size: 0.75rem; font-weight: 700; border-radius: 0.375rem; border: 1px solid #2f3442; background: rgba(0,0,0,0.3); color: white; text-decoration: none; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.demo-actions a:hover, .demo-actions button:hover { background: oklch(0.75 0.15 200 / 0.2); }
.demo-note { padding: 1rem; border-radius: 0.5rem; border: 1px solid #2f3442; background: rgba(0,0,0,0.3); margin-top: 2rem; }
.demo-note p { font-size: 0.75rem; font-weight: 600; color: white; text-align: center; margin: 0; }
.demo-note .green { color: #4ade80; font-weight: 700; }

/* Verify with Hash */
.verify-card { background: linear-gradient(135deg, #16171f, #13141a); border: 1px solid #2f3442; border-radius: 0.75rem; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.verify-card .card-header { display: flex; align-items: center; gap: 0.75rem; }
.verify-icon { padding: 0.625rem; border-radius: 0.5rem; background: rgba(168, 85, 247, 0.2); border: 1px solid rgba(168, 85, 247, 0.4); }
.verify-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.verify-quick span { font-size: 0.75rem; font-weight: 600; color: white; margin-right: 0.5rem; }
.verify-quick button { font-size: 0.75rem; font-weight: 700; padding: 0.375rem 0.75rem; border-radius: 0.375rem; border: 1px solid #2f3442; background: rgba(0,0,0,0.3); color: white; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.verify-quick button:hover { background: oklch(0.75 0.15 200 / 0.2); }
.verify-input-wrap { margin: 1rem 0; }
.verify-input-wrap label { display: block; font-size: 0.75rem; font-weight: 600; color: white; margin-bottom: 0.5rem; }
.verify-input { width: 100%; min-height: 8rem; padding: 0.75rem; font-family: inherit; font-size: 0.75rem; color: white; background: rgba(0,0,0,0.5); border: 1px solid #2f3442; border-radius: 0.375rem; resize: vertical; }
.verify-input::placeholder { color: #6b7280; }
.verify-submit { width: 100%; padding: 0.75rem; font-weight: 700; font-size: 0.875rem; border-radius: 0.375rem; border: 1px solid #2f3442; background: rgba(168, 85, 247, 0.3); color: white; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.verify-submit:hover:not(:disabled) { background: oklch(0.75 0.15 200 / 0.4); }
.verify-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.verify-result { margin-top: 1rem; padding: 1.25rem; border-radius: 0.5rem; border: 1px solid; }
.verify-result.pass { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.1); }
.verify-result.fail { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.1); }
.verify-result h4 { font-size: 1.125rem; font-weight: 700; color: white; margin: 0 0 0.5rem; }
.verify-result p { font-size: 0.875rem; font-weight: 600; color: white; margin: 0.25rem 0; }
.verify-result .layers { margin-top: 0.75rem; font-size: 0.75rem; }
.verify-result .layers div { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0; }
.break-all { word-break: break-all; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); animation: modal-fade 0.15s ease-out; }
.modal-overlay.is-open { display: flex; }
.modal-content { width: 100%; max-width: 48rem; max-height: 90vh; overflow-y: auto; border-radius: 0.5rem; border: 1px solid #2f3442; background: linear-gradient(135deg, #16171f, #13141a); box-shadow: 0 8px 24px rgba(0,0,0,0.6); animation: modal-scale 0.2s ease-out; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem; border-bottom: 1px solid #2f3442; background: rgba(22, 23, 31, 0.95); position: sticky; top: 0; z-index: 1; }
.modal-header h3 { font-size: 1.25rem; font-weight: 800; color: white; margin: 0; flex: 1; }
@media (min-width: 768px) { .modal-header h3 { font-size: 1.5rem; } }
.modal-close { padding: 0.5rem; border: none; background: transparent; color: white; cursor: pointer; border-radius: 0.5rem; }
.modal-close:hover { background: rgba(255,255,255,0.1); }
.modal-body { padding: 1.5rem; }
.modal-body h4 { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: white; margin: 0 0 0.75rem; }
.modal-body .code-block { margin-bottom: 1rem; }
.modal-footer { padding: 1.5rem; border-top: 1px solid #2f3442; background: rgba(22, 23, 31, 0.95); position: sticky; bottom: 0; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-scale { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* Whitepaper */
.whitepaper-hero { padding: 3rem 0 4rem; }
@media (min-width: 768px) { .whitepaper-hero { padding: 4rem 0; } }
.whitepaper-hero h1 { font-size: 2.25rem; font-weight: 800; color: white; display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0; }
@media (min-width: 768px) { .whitepaper-hero h1 { font-size: 3rem; } }
.whitepaper-hero .symbolic-tag { opacity: 0.2; font-size: 1.5rem; }
@media (min-width: 768px) { .whitepaper-hero .symbolic-tag { font-size: 1.875rem; } }
.whitepaper-placeholder { padding: 3rem; text-align: center; }
.whitepaper-placeholder h2 { font-size: 1.5rem; font-weight: 700; color: white; margin: 0 0 1rem; }
@media (min-width: 768px) { .whitepaper-placeholder h2 { font-size: 1.875rem; } }
.whitepaper-placeholder p { font-size: 1rem; color: rgba(255,255,255,0.8); max-width: 42rem; margin: 0 auto 1.5rem; line-height: 1.6; }
.doc-placeholder { margin-top: 2rem; border: 1px dashed rgba(255,255,255,0.2); border-radius: 0.5rem; padding: 2rem; min-height: 200px; background: oklch(0.12 0.006 270 / 0.5); }
.doc-placeholder p { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin: 0; }

/* Trust Badge Section */
.trust-section {
  padding: 2rem 0;
}

.trust-badge-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(24px);
  background: var(--key-card);
  border: 1px solid oklch(0.68 0.19 285 / 0.3);
  max-width: 32rem;
  margin: 0 auto;
}

.trust-icon {
  color: var(--hedera-purple);
  margin-bottom: 1rem;
}

.trust-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
  .trust-title {
    font-size: 1.5rem;
  }
}

.trust-subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hedera-purple);
  margin: 0;
}

/* Roadmap */
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 32rem;
  margin: 0 auto;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(24px);
  background: oklch(0.14 0.008 270);
  border: 1px solid oklch(0.20 0.015 270);
}

.roadmap-arrow {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  line-height: 1.4;
}

.roadmap-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
}

.roadmap-content p {
  font-size: 0.875rem;
  color: oklch(0.75 0.01 270);
  margin: 0;
  line-height: 1.5;
}

/* Conversion / Form */
.conversion-section {
  padding-bottom: 4rem;
}

.conversion-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(24px);
  background: oklch(0.14 0.008 270);
  border: 1px solid oklch(0.20 0.015 270);
  max-width: 32rem;
  margin: 0 auto;
}

.conversion-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
  .conversion-title {
    font-size: 1.875rem;
  }
}

.conversion-subtitle {
  font-size: 1rem;
  color: oklch(0.75 0.01 270);
  margin: 0 0 1.5rem;
}

.conversion-form {
  margin: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .form-row {
    flex-direction: row;
  }
}

.form-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: oklch(0.08 0.005 270);
  border: 1px solid oklch(0.25 0.015 270);
  border-radius: 0.375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input::placeholder {
  color: oklch(0.50 0.01 270);
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px oklch(0.75 0.15 200 / 0.2);
}

/* Footer links with icons */
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links svg {
  opacity: 0.8;
}

.footer-links a:hover svg {
  opacity: 1;
}

/* Honeypot hidden - multiple techniques for robustness */
.hidden,
[aria-hidden="true"].hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Visually hidden - accessible to screen readers and AI crawlers */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Step 2 form fields */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Textarea styling */
.form-textarea {
  min-height: 4rem;
  resize: vertical;
}

/* Full-width button */
.btn-full {
  width: 100%;
}

/* Readonly email display */
.form-input[readonly] {
  background: oklch(0.12 0.005 270);
  opacity: 0.8;
  cursor: not-allowed;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 3rem;
  color: #4ade80;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
}

.form-success p {
  color: oklch(0.75 0.01 270);
  margin: 0;
}

/* Hero Status Badge (Pre-Alpha) - Magenta (Tarski/Rules) */
.hero-status {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  padding: 0.25rem 0.75rem;
  border: 1px solid oklch(0.70 0.18 330 / 0.5);
  border-radius: 0.25rem;
  margin-top: 0.5rem;
}

/* Hero Pitch (prose paragraph) */
.hero-pitch p {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  color: oklch(0.85 0.01 270);
}
@media (min-width: 768px) {
  .hero-pitch p {
    font-size: 1.25rem;
  }
}

/* CTA Group (dual buttons) */
.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1.5rem;
  animation: fade-in 0.15s ease-out 0.3s both;
}

/* Hero Wordmark Banner (below CTAs) */
.hero-wordmark-banner {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(0.20 0.01 0 / 0.5);
  animation: fade-in 0.15s ease-out 0.4s both;
}
.hero-wordmark-banner img {
  max-width: 280px;
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.hero-wordmark-banner img:hover {
  opacity: 0.9;
}
@media (min-width: 768px) {
  .hero-wordmark-banner img {
    max-width: 360px;
  }
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid var(--key-border);
}
.btn-secondary:hover {
  background: var(--key-card);
  border-color: oklch(0.75 0.15 200 / 0.5);
}

/* Credibility Strip */
.credibility-section {
  padding: 2rem 0 3rem;
}

.credibility-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .credibility-strip {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}

.credibility-item {
  text-align: center;
  max-width: 18rem;
}

.credibility-icon {
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.credibility-title {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.25rem;
}

.credibility-detail {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 0 0 0.5rem;
}

.credibility-context {
  font-size: 0.8125rem;
  font-weight: 500;
  color: oklch(0.65 0.01 270);
  margin: 0;
  line-height: 1.5;
}

.credibility-divider {
  display: none;
}
@media (min-width: 768px) {
  .credibility-divider {
    display: block;
    width: 1px;
    height: 5rem;
    background: oklch(0.25 0.015 270);
  }
}

/* Why This Matters Section */
.why-section {
  padding: 3rem 0 4rem;
}
@media (min-width: 768px) {
  .why-section {
    padding: 4rem 0 5rem;
  }
}

.why-content {
  max-width: 42rem;
  margin: 0 auto;
}

.why-content p {
  font-size: 1rem;
  font-weight: 500;
  color: oklch(0.85 0.01 270);
  margin: 0 0 1.25rem;
  line-height: 1.75;
}
@media (min-width: 768px) {
  .why-content p {
    font-size: 1.0625rem;
  }
}

.why-lead {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: oklch(0.90 0.01 270) !important;
}
@media (min-width: 768px) {
  .why-lead {
    font-size: 1.1875rem !important;
  }
}

/* Thesis Section */
.thesis-section {
  padding: 4rem 0 5rem;
}
@media (min-width: 768px) {
  .thesis-section {
    padding: 6rem 0;
  }
}

.thesis-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--magenta);
  text-align: center;
  margin-bottom: 0.5rem;
}

.thesis-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  text-align: center;
  margin: 0 0 3rem;
}
@media (min-width: 768px) {
  .thesis-title {
    font-size: 2.5rem;
  }
}

.thesis-content {
  line-height: 1.75;
}

.thesis-content h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: white;
  margin: 2.5rem 0 1rem;
}
.thesis-content h3:first-child {
  margin-top: 0;
}
@media (min-width: 768px) {
  .thesis-content h3 {
    font-size: 1.5rem;
  }
}

.thesis-content p {
  font-size: 1rem;
  font-weight: 500;
  color: oklch(0.85 0.01 270);
  margin: 0 0 1.25rem;
}
@media (min-width: 768px) {
  .thesis-content p {
    font-size: 1.0625rem;
  }
}

.thesis-content code {
  font-family: inherit;
  font-size: 0.9em;
  color: var(--magenta);
  background: var(--key-card);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

/* Triune Layers */
.triune-layers {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.triune-layer {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: oklch(0.12 0.006 270);
  border: 1px solid oklch(0.20 0.015 270);
}

.layer-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: oklch(0.10 0.005 0);
  background: var(--hedera-purple);
  border-radius: 50%;
}
/* CMY Layer-specific number colors */
.layer-number.layer-1 { background: var(--magenta); }  /* Tarski - Rules */
.layer-number.layer-2 { background: var(--cyan); }     /* Peirce - Inference */
.layer-number.layer-3 { background: var(--yellow); }   /* Floridi - Meaning */

.layer-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
}

.layer-content p {
  font-size: 0.9375rem;
  margin: 0;
}

/* Prototype Tag - Yellow (Floridi/Meaning) */
.prototype-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  background: oklch(0.85 0.16 85 / 0.15);
  border: 1px solid oklch(0.85 0.16 85 / 0.4);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

/* Formula Block */
.formula-block {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: oklch(0.08 0.005 270);
  border: 1px solid oklch(0.20 0.015 270);
  text-align: center;
}

.formula-block code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  color: oklch(0.90 0.01 270);
  background: none;
  padding: 0;
}
@media (min-width: 768px) {
  .formula-block code {
    font-size: 1.125rem;
  }
}

/* Footer Compliance */
.footer-compliance {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 0.5rem;
  background: oklch(0.08 0.005 270);
  border: 1px solid oklch(0.18 0.01 270);
}

.footer-compliance p {
  font-size: 0.75rem;
  font-weight: 500;
  color: oklch(0.60 0.01 270);
  margin: 0;
  line-height: 1.6;
}

/* Footer Star Note */
.footer-star-note {
  font-size: 0.75rem;
  font-weight: 500;
  color: oklch(0.55 0.01 270);
  font-style: italic;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover {
    transform: none;
  }
  .btn-primary:hover {
    transform: none;
  }
  .hero-tagline-box,
  .hero-sub,
  .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-logo-glow {
    animation: none;
    opacity: 0.25;
  }
  .kanji-watermark {
    opacity: 0.08 !important;
    transform: none !important;
  }
}
