* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f3ee;
  color: #111111;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #ddd9d0;
}

.nav-container {
  max-width: 1400px;
  margin: auto;
  padding: 18px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 2px solid #111;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a:hover {
  opacity: 0.55;
}

.nav-ceo {
  border: 1px solid #111;
  padding: 10px 16px;
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: none;
}

.mobile-nav {
  display: none;
}

.hero {
  min-height: 760px;
  padding: 120px 5vw;
  background:
    radial-gradient(
      circle at 80% 30%,
      rgba(190, 184, 166, 0.3),
      transparent 35%
    );
}

.hero-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.91;
  letter-spacing: -6px;
  margin: 0;
  font-weight: 900;
}

.hero h1 span {
  font-style: italic;
}

.hero-description {
  max-width: 650px;
  margin: 34px 0;
  font-size: 20px;
  line-height: 1.65;
  color: #55524b;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 24px;
  font-weight: 800;
  border: 1px solid #111;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #111;
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: #111;
}

.hero-system {
  min-height: 500px;
  display: grid;
  place-items: center;
}

.system-orbit {
  width: 420px;
  height: 420px;
  border: 1px solid #c7c2b8;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}

.system-orbit::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px dashed #b6b0a5;
  border-radius: 50%;
}

.system-center {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.system-center strong {
  font-size: 32px;
}

.system-center span {
  font-size: 8px;
  letter-spacing: 2px;
}

.orbit-card {
  position: absolute;
  padding: 13px 18px;
  background: #fff;
  border: 1px solid #ccc7bc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.orbit-top {
  top: 0;
}

.orbit-bottom {
  bottom: 0;
}

.orbit-left {
  left: -45px;
  top: 46%;
}

.orbit-right {
  right: -45px;
  top: 46%;
}

.section {
  max-width: 1400px;
  margin: auto;
  padding: 120px 5vw;
}

.section-alt {
  max-width: none;
  padding-left: max(5vw, calc((100vw - 1400px) / 2));
  padding-right: max(5vw, calc((100vw - 1400px) / 2));
  background: #ebe8e1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 60px;
}

.section-heading h2 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -4px;
  margin: 0 0 25px;
}

.section-heading p {
  font-size: 18px;
  color: #66625a;
  line-height: 1.7;
}

.architecture {
  max-width: 760px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.architecture-node {
  width: min(100%, 600px);
  padding: 20px;
  text-align: center;
  border: 1px solid #bdb8ae;
  background: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 12px;
}

.architecture-node.human {
  background: #111;
  color: #fff;
}

.architecture-node.johnny {
  border-width: 2px;
}

.architecture-arrow {
  padding: 10px;
  font-size: 20px;
}

.blueprint-grid,
.mine-grid,
.feature-grid,
.product-grid,
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blueprint-card {
  padding: 32px;
  min-height: 290px;
  background: #fff;
  border: 1px solid #d6d1c7;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 900;
  margin-bottom: auto;
}

.blueprint-card h3 {
  font-size: 30px;
  letter-spacing: -1.5px;
  margin: 35px 0 12px;
}

.blueprint-card p,
.mine-card p,
.product-card p,
.library-card p {
  color: #66625a;
  line-height: 1.6;
}

.card-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 900;
}

.mine-card {
  padding: 28px;
  min-height: 240px;
  border: 1px solid #d2cdc3;
  background: #f9f8f4;
}

.mine-icon {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 45px;
}

.mine-card h3 {
  margin: 0;
  font-size: 24px;
}

.mine-status {
  margin-top: 20px;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 900;
}

.center-action {
  margin-top: 45px;
  text-align: center;
}

.johnny-section {
  background: #111;
  color: #fff;
  padding: 120px 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.johnny-content {
  max-width: 650px;
  margin-left: auto;
}

.johnny-content h2 {
  font-size: clamp(45px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -4px;
  margin: 0 0 30px;
}

.johnny-content p {
  color: #bdbdbd;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 35px;
}

.johnny-console {
  max-width: 650px;
  border: 1px solid #444;
  margin-right: auto;
}

.console-header {
  padding: 18px;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 2px;
}

.console-header span {
  color: #aaa;
}

.console-line {
  padding: 20px;
  border-bottom: 1px solid #333;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 1px;
}

.console-line span {
  color: #777;
}

.console-line b {
  font-size: 8px;
}

.library-preview {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: center;
}

.book {
  aspect-ratio: 0.68;
  background: #111;
  color: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 20px 20px 0 #c7c1b5;
}

.book-title {
  font-weight: 900;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: -1px;
}

.book-footer {
  font-size: 8px;
  letter-spacing: 3px;
}

.library-copy {
  max-width: 650px;
}

.library-copy h3 {
  font-size: 42px;
  letter-spacing: -2px;
}

.library-copy p {
  color: #66625a;
  line-height: 1.7;
  font-size: 18px;
}

.cta-section {
  background: #dcd7cd;
  padding: 90px 5vw;
}

.cta-inner {
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.cta-inner h2 {
  font-size: clamp(45px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -4px;
  margin: 0;
}

.cta-inner p {
  color: #5f5a51;
}

.page-hero {
  padding: 140px 5vw 100px;
  max-width: 1400px;
  margin: auto;
}

.page-hero p {
  max-width: 700px;
  font-size: 21px;
  line-height: 1.6;
  color: #66625a;
  margin-top: 40px;
}

.page-hero.dark {
  max-width: none;
  background: #111;
  color: #fff;
  padding-left: max(5vw, calc((100vw - 1400px) / 2));
  padding-right: max(5vw, calc((100vw - 1400px) / 2));
}

.page-hero.dark p {
  color: #aaa;
}

.johnny-detail,
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.johnny-detail h2,
.about-grid h2 {
  font-size: clamp(45px, 6vw, 75px);
  line-height: 0.95;
  letter-spacing: -4px;
}

.architecture-list > div {
  padding: 20px;
  border-bottom: 1px solid #ccc6bb;
  font-weight: 800;
  display: grid;
  grid-template-columns: 50px 1fr;
}

.architecture-list span {
  color: #999;
}

.readiness-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid #bbb5aa;
  border-bottom: 1px solid #bbb5aa;
}

.readiness-flow > div {
  padding: 30px 18px;
  border-right: 1px solid #bbb5aa;
  font-size: 11px;
  font-weight: 900;
}

.readiness-flow span {
  display: block;
  color: #999;
  margin-bottom: 30px;
}

.notice {
  margin-top: 50px;
  padding: 30px;
  background: #ebe8e1;
  border-left: 4px solid #111;
}

.notice p {
  color: #66625a;
  line-height: 1.6;
}

.feature-grid article,
.product-card,
.library-card {
  background: #fff;
  border: 1px solid #d3cec4;
  padding: 30px;
  min-height: 260px;
}

.feature-grid span,
.product-number,
.library-card > span {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 900;
}

.feature-grid h3,
.product-card h3,
.library-card h3 {
  font-size: 28px;
  margin-top: 55px;
}

.feature-grid p {
  color: #66625a;
  line-height: 1.6;
}

.product-card button,
.library-card button {
  border: 0;
  background: none;
  padding: 0;
  font-weight: 900;
  cursor: pointer;
}

.security-panel {
  max-width: 700px;
  margin: auto;
  background: #fff;
  border: 1px solid #ccc7bd;
  padding: 30px;
}

.security-header {
  padding-bottom: 25px;
  border-bottom: 1px solid #ddd8ce;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.security-row {
  padding: 22px 0;
  border-bottom: 1px solid #e2ded6;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.security-row b {
  font-size: 9px;
  letter-spacing: 1px;
}

.security-panel .button {
  margin-top: 30px;
}

.site-footer {
  background: #111;
  color: #fff;
  padding: 80px 5vw 30px;
}

.footer-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px;
}

.footer-brand {
  font-weight: 900;
  font-size: 20px;
}

.footer-small {
  color: #888;
  max-width: 300px;
  line-height: 1.6;
}

.footer-grid h4 {
  font-size: 11px;
  letter-spacing: 2px;
}

.footer-grid a {
  display: block;
  color: #aaa;
  margin: 12px 0;
  font-size: 13px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1400px;
  margin: 70px auto 0;
  padding-top: 25px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 11px;
}

@media (max-width: 1100px) {

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 15px 5vw 25px;
    gap: 18px;
    border-top: 1px solid #ddd;
  }

  .hero-grid,
  .johnny-section,
  .johnny-detail,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-system {
    min-height: 400px;
  }

  .blueprint-grid,
  .mine-grid,
  .feature-grid,
  .product-grid,
  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .readiness-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .library-preview {
    grid-template-columns: 220px 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .hero h1,
  .page-hero h1 {
    letter-spacing: -3px;
  }

  .system-orbit {
    width: 290px;
    height: 290px;
  }

  .system-orbit::before {
    width: 200px;
    height: 200px;
  }

  .system-center {
    width: 100px;
    height: 100px;
  }

  .orbit-left {
    left: -20px;
  }

  .orbit-right {
    right: -20px;
  }

  .blueprint-grid,
  .mine-grid,
  .feature-grid,
  .product-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-preview {
    grid-template-columns: 1fr;
  }

  .book {
    max-width: 230px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .console-line {
    grid-template-columns: 35px 1fr;
  }

  .console-line b {
    display: none;
  }
}

.mobile-nav[hidden] { display: none; }

/* Accessible controls and readable detail sections. */
:focus-visible { outline: 3px solid #2463a8; outline-offset: 5px; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 200; padding: 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.mobile-menu-button { min-width: 44px; min-height: 44px; cursor: pointer; font-size: 24px; }
.availability summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
.availability[open] { border-top: 1px solid #d3cec4; }
.detail-section { padding-top: 0; max-width: 1000px; line-height: 1.7; }
.detail-section li { margin-bottom: 18px; }
.page-hero { padding-top: 80px; padding-bottom: 50px; }
.section { padding-top: 70px; padding-bottom: 70px; }
.detail-section { padding-top: 0; }
.hero h1, .page-hero h1 { overflow-wrap: anywhere; }
.johnny-section .button-primary { border-color: #aaa; }
@media (max-width: 600px) {
  .hero h1, .page-hero h1 { font-size: clamp(40px, 11vw, 64px); letter-spacing: -2px; }
  .brand-name { font-size: 14px; }
  .brand-subtitle { letter-spacing: 2px; }
  .nav-container { gap: 10px; }
  .hero-grid, .johnny-section, .johnny-detail, .about-grid, .library-preview { gap: 40px; }
  .system-orbit { width: min(260px, 75vw); height: min(260px, 75vw); }
  .orbit-card { padding: 10px; letter-spacing: 0; }
  .security-header, .security-row { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
