/* ========================================================================== 
   Kichijōtech — authored dark company site
   ========================================================================== */

:root {
  --bg: #090b10;
  --bg-elevated: #10141d;
  --bg-soft: #131826;
  --bg-legal: #0d1119;
  --text: #f4f5f7;
  --text-soft: #b2b8c7;
  --text-dim: #8a91a3;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.03);
  --accent: #8b7cff;
  --accent-2: #59d6c2;
  --accent-3: #ffcc7b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 74rem;
  --section-space: clamp(4.5rem, 10vw, 8rem);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(139, 124, 255, 0.2), transparent 55%),
    radial-gradient(48rem 30rem at 100% 0%, rgba(89, 214, 194, 0.14), transparent 60%),
    linear-gradient(180deg, #090b10 0%, #0b0e15 34%, #090b10 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(139, 124, 255, 0.32);
}

main {
  position: relative;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 82%);
  opacity: 0.24;
}

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

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

strong {
  color: var(--text);
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 1.35rem;
}

.container-narrow {
  max-width: 50rem;
}

.section {
  padding-block: var(--section-space);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-tag,
.kicker,
.panel-label,
.product-kind,
.service-index {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: 2.75rem;
}

.section-copy {
  max-width: 40rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.section-copy-compact {
  max-width: 28rem;
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.15rem);
  font-weight: 750;
}

h1 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-3);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 720;
}

h3 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 680;
}

p {
  color: var(--text-soft);
}

.muted {
  color: var(--text-dim);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.7);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--text);
}

.brand-mark {
  color: var(--accent);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.nav-menu a {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-menu .nav-cta {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-menu .nav-cta:hover {
  background: rgba(139, 124, 255, 0.14);
  border-color: rgba(139, 124, 255, 0.5);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 9px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- Hero ----- */
.hero {
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3.75rem, 8vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  padding-right: 1rem;
}

.kicker {
  margin-bottom: 1rem;
}

.lede {
  max-width: 44rem;
  margin-top: 1.65rem;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 1.35rem;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.hero-footnote span {
  position: relative;
  padding-left: 1rem;
}

.hero-footnote span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(139, 124, 255, 0.18), rgba(89, 214, 194, 0.08));
  box-shadow: var(--shadow);
  padding: 1.45rem;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: rgba(139, 124, 255, 0.18);
  filter: blur(40px);
}

.hero-panel-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.panel-value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 620;
}

.signal-list {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-name {
  color: var(--text);
  font-weight: 620;
}

.signal-state {
  color: var(--text-soft);
  text-align: right;
  font-size: 0.95rem;
}

.hero-quote {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  padding: 1rem 1rem 0 0;
}

.hero-quote p {
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 620;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d8cff);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(109, 140, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(109, 140, 255, 0.32);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.26);
}

.text-link {
  color: var(--accent-2);
  font-weight: 620;
}

.text-link:hover {
  color: #86efe0;
}

/* ----- Statement ----- */
.section-statement {
  padding-top: 1rem;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem 3rem;
  align-items: start;
  padding: 1.75rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

/* ----- Products ----- */
.product-grid {
  display: grid;
  gap: 1.35rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  padding: 1.45rem;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 40%);
}

.product-card-centful {
  background:
    radial-gradient(24rem 18rem at 100% 0%, rgba(89, 214, 194, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.product-card-prepster {
  background:
    radial-gradient(22rem 18rem at 100% 0%, rgba(139, 124, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.product-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 123, 0.3);
  background: rgba(255, 204, 123, 0.12);
  color: var(--accent-3);
  font-size: 0.8rem;
  font-weight: 630;
}

.status-pill-live {
  border-color: rgba(89, 214, 194, 0.28);
  background: rgba(89, 214, 194, 0.12);
  color: #7ce7d8;
}

.product-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(19rem, 0.9fr);
  gap: 1.25rem 1.6rem;
  margin-top: 1.15rem;
  align-items: start;
}

.product-blurb {
  max-width: 33rem;
  margin-top: 0.9rem;
  font-size: 1.06rem;
}

.product-surface {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 16, 0.74);
  padding: 1rem;
}

.surface-topbar {
  display: flex;
  gap: 0.4rem;
}

.surface-topbar span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.surface-topbar-dark span:nth-child(1) {
  background: rgba(255, 255, 255, 0.26);
}

.surface-topbar-dark span:nth-child(2) {
  background: rgba(139, 124, 255, 0.36);
}

.surface-topbar-dark span:nth-child(3) {
  background: rgba(89, 214, 194, 0.36);
}

.surface-ledger::after,
.surface-prep::after {
  content: "";
  position: absolute;
  inset: auto -2rem -4rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  filter: blur(42px);
}

.surface-ledger::after {
  background: rgba(89, 214, 194, 0.18);
}

.surface-prep::after {
  background: rgba(139, 124, 255, 0.18);
}

.surface-balance-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.surface-balance-row p {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.surface-balance-row strong,
.prep-detail strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.2;
}

.surface-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(89, 214, 194, 0.12);
  color: #7ce7d8;
  font-size: 0.78rem;
}

.surface-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.surface-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.surface-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.surface-pill-warm {
  background: rgba(255, 204, 123, 0.16);
  color: var(--accent-3);
}

.muted-row {
  color: var(--text-dim);
}

.prep-pane-grid {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.9rem;
  margin-top: 1rem;
}

.prep-rail {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.prep-rail-pill {
  display: inline-flex;
  justify-content: center;
  padding: 0.42rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.78rem;
}

.prep-rail-pill.active {
  background: rgba(139, 124, 255, 0.18);
  color: #c4bbff;
}

.prep-detail {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.prep-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.prep-lines {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.prep-lines span {
  display: block;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.prep-lines .short {
  width: 62%;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.product-actions {
  margin-top: 0.25rem;
}

/* ----- Approach ----- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.principle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.35rem;
}

.principle-card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.85rem;
}

/* ----- Services ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  position: relative;
  min-height: 17rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 1.35rem;
}

.service-index {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.9rem;
}

/* ----- About ----- */
.section-about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem 3.2rem;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

/* ----- Contact ----- */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.7fr);
  gap: 1.5rem 2rem;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(22rem 16rem at 100% 0%, rgba(89, 214, 194, 0.08), transparent 55%),
    radial-gradient(20rem 14rem at 0% 100%, rgba(139, 124, 255, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.03);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.contact-note {
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ----- Legal ----- */
.legal {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-legal);
  padding: clamp(1.35rem, 2vw, 2rem);
  box-shadow: var(--shadow);
}

.legal h1 {
  margin-bottom: 0.4rem;
}

.legal h2 {
  max-width: none;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  font-size: 1.28rem;
  line-height: 1.2;
}

.legal p,
.legal li {
  color: var(--text-soft);
}

.legal ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.notice {
  margin: 1.6rem 0;
  border: 1px solid rgba(255, 204, 123, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 204, 123, 0.08);
  padding: 1rem 1.05rem;
}

.notice p {
  color: #ffe2b3;
}

/* ----- Footer ----- */
.site-footer {
  padding-block: 1.8rem 2.4rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  flex-wrap: wrap;
}

.footer-inner p,
.footer-inner a {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-inner a:hover {
  color: var(--text-soft);
}

/* ----- Responsive ----- */
@media (max-width: 70rem) {
  .hero-grid,
  .statement-grid,
  .about-grid,
  .contact-card,
  .product-content {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  h2 {
    max-width: 14ch;
  }

  .hero-copy {
    padding-right: 0;
  }
}

@media (max-width: 56rem) {
  .principles-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu:not(.nav-menu-static) {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.45rem 1.35rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 15, 0.96);
  }

  .nav-menu:not(.nav-menu-static).is-open {
    display: flex;
  }

  .nav-menu:not(.nav-menu-static) li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-menu:not(.nav-menu-static) a {
    display: block;
    padding: 0.95rem 0;
  }

  .nav-menu:not(.nav-menu-static) .nav-cta {
    margin-top: 0.6rem;
    text-align: center;
  }

  .nav-menu.nav-menu-static {
    gap: 1rem;
  }
}

@media (max-width: 42rem) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .product-card,
  .hero-panel,
  .contact-card,
  .legal,
  .service-card,
  .principle-card {
    padding: 1.1rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .prep-pane-grid {
    grid-template-columns: 1fr;
  }

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

  .surface-balance-row,
  .signal-row,
  .prep-meta,
  .product-header {
    align-items: start;
    flex-direction: column;
  }

  .signal-state {
    text-align: left;
  }

  .hero-footnote {
    display: grid;
    gap: 0.65rem;
  }

  .hero-footnote span {
    padding-left: 0.95rem;
  }
}
