/* ═══════════════════════════════════════════════
   SumiX — styles.css
   ═══════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --ink:          #071b3a;
  --ink-soft:     #26405f;
  --ink-mute:     #5a7394;
  --blue:         #1269f3;
  --blue-dark:    #0b57d0;
  --coral:        #ff6b5f;
  --mint:         #64d8b5;
  --yellow:       #ffe36e;
  --cream:        #fff9e8;
  --paper:        #fffdf7;
  --surface:      #ffffff;
  --line:         rgba(7, 27, 58, 0.12);
  --shadow-sm:    0 4px 16px rgba(7, 27, 58, 0.08);
  --shadow:       0 24px 80px rgba(7, 27, 58, 0.14);
  --shadow-lg:    0 40px 100px rgba(7, 27, 58, 0.18);
  --radius:       8px;
  --radius-lg:    16px;
  --container:    1160px;
  --header-h:     78px;
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode tokens */
@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #e8f0fe;
    --ink-soft:  #a8bcd6;
    --ink-mute:  #7a96b4;
    --paper:     #0d1421;
    --surface:   #162030;
    --line:      rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow:    0 24px 80px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.5);
  }
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; }

button, input, select, textarea {
  font: inherit;
  letter-spacing: 0;
}

abbr[title] {
  text-decoration: none;
  cursor: default;
}

/* ── Accessibility ── */
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 200;
  top: 12px; left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
}

/* ── Page progress bar ── */
.page-progress {
  position: fixed;
  z-index: 300;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--coral));
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Header ── */
.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  width: min(var(--container), calc(100% - 32px));
  min-height: 70px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(7, 27, 58, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(7, 27, 58, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: top 0.3s var(--ease-out), min-height 0.3s var(--ease-out), box-shadow 0.3s;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(13, 20, 33, 0.88);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.site-header.is-scrolled {
  top: 10px;
  min-height: 62px;
  box-shadow: 0 18px 60px rgba(7, 27, 58, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(136px, 13vw, 178px);
  height: auto;
  object-fit: contain;
  transition: width 0.2s ease;
}

.site-header.is-scrolled .brand-logo { width: clamp(132px, 12vw, 164px); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(18, 105, 243, 0.08);
  color: var(--ink);
  outline: none;
}

.site-nav a.is-active {
  color: var(--blue);
  background: rgba(18, 105, 243, 0.08);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--blue);
  color: #fff;
}

.menu-button {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s;
}

.menu-button:hover { background: var(--blue); }

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 99px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s, background 0.18s;
  will-change: transform;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.button:hover::after { transform: translateX(120%); }
.button:active { transform: scale(0.97) !important; }

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(18, 105, 243, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 14px 34px rgba(18, 105, 243, 0.36);
  outline: none;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}

/* ── Layout helpers ── */
.hero-inner,
.section,
.shinobi-section,
.topics-section,
.contact-inner,
.site-footer .footer-main,
.site-footer .footer-bottom {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 780px;
  padding: 150px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 12% 20%, rgba(255, 227, 110, 0.52) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 78%, rgba(100, 216, 181, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 0%, rgba(18, 105, 243, 0.1) 0%, transparent 60%),
    var(--paper);
  animation: hero-gradient-shift 14s ease-in-out infinite alternate;
}

@keyframes hero-gradient-shift {
  from {
    background:
      radial-gradient(ellipse 80% 60% at 12% 20%, rgba(255, 227, 110, 0.52) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 88% 78%, rgba(100, 216, 181, 0.28) 0%, transparent 60%),
      radial-gradient(ellipse 40% 40% at 50% 0%, rgba(18, 105, 243, 0.1) 0%, transparent 60%),
      var(--paper);
  }
  to {
    background:
      radial-gradient(ellipse 70% 60% at 20% 30%, rgba(255, 227, 110, 0.44) 0%, transparent 60%),
      radial-gradient(ellipse 70% 55% at 80% 65%, rgba(100, 216, 181, 0.34) 0%, transparent 60%),
      radial-gradient(ellipse 50% 45% at 40% 10%, rgba(18, 105, 243, 0.14) 0%, transparent 60%),
      var(--paper);
  }
}

.route-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.hero h1 span { display: block; white-space: nowrap; }

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.75;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
}

.hero-stats strong { color: var(--coral); }

/* ── Hero stage / playground board ── */
.hero-stage {
  position: relative;
  min-height: 540px;
}

.playground-board {
  position: absolute;
  inset: 14px 0 0;
  overflow: hidden;
  border: 2px solid rgba(7, 27, 58, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 227, 110, 0.42), rgba(255, 253, 247, 0) 34%),
    linear-gradient(225deg, rgba(18, 105, 243, 0.14), rgba(255, 253, 247, 0) 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .playground-board {
    border-color: rgba(255, 255, 255, 0.14);
    background:
      linear-gradient(135deg, rgba(255, 227, 110, 0.18), transparent 34%),
      linear-gradient(225deg, rgba(18, 105, 243, 0.18), transparent 42%),
      var(--surface);
  }
}

.playground-board::before {
  content: "";
  position: absolute;
  inset: 62px 0 0;
  background-image:
    linear-gradient(rgba(7, 27, 58, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 58, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.playground-board::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -1px; left: -1px;
  height: 28%;
  background: linear-gradient(0deg, rgba(255, 253, 247, 0.96), transparent);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .playground-board::after {
    background: linear-gradient(0deg, rgba(22, 32, 48, 0.96), transparent);
  }
}

.playground-toolbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.playground-toolbar img { width: 118px; }
.playground-toolbar span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.launch-map {
  position: relative;
  z-index: 2;
  min-height: 476px;
}

.map-line {
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  width: 230px; height: 3px;
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, rgba(7, 27, 58, 0.46) 0 14px, transparent 14px 22px);
  transform-origin: left center;
}

.line-commerce { width: 235px; transform: rotate(-150deg); }
.line-support   { width: 220px; transform: rotate(-34deg); }
.line-education { width: 220px; transform: rotate(147deg); }
.line-lab       { width: 226px; transform: rotate(36deg); }

.launch-core, .project-node, .next-ticket {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(7, 27, 58, 0.15);
}

.launch-core {
  position: absolute;
  z-index: 5;
  left: 50%; top: 51%;
  width: 218px; min-height: 142px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translate(-50%, -50%);
  background: var(--yellow);
  animation: core-breathe 5.8s ease-in-out infinite;
}

.launch-core span, .project-node span, .next-ticket span {
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-core strong, .project-node strong, .next-ticket strong {
  display: block;
  margin-top: 4px;
  line-height: 1.22;
}

.launch-core strong { font-size: 1.52rem; }

.launch-core small, .project-node small {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.5;
}

.project-node {
  position: absolute;
  z-index: 4;
  width: 174px; min-height: 118px;
  padding: 14px;
  background: var(--surface);
  animation: node-float 7s ease-in-out infinite;
}

.project-node strong { font-size: 1.1rem; }

.project-node img {
  width: 100%; height: 70px;
  margin-top: 10px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(7, 27, 58, 0.14);
  border-radius: 6px;
}

.node-commerce { top: 28px; left: 22px; width: 198px; }
.node-support  { top: 46px; right: 20px; color: #fff; background: var(--coral); animation-delay: -1.4s; }
.node-support small { color: rgba(255,255,255,0.9); }
.node-education { left: 18px; bottom: 48px; background: var(--mint); animation-delay: -2.2s; }
.node-lab { right: 20px; bottom: 42px; background: var(--surface); animation-delay: -3.1s; }

.node-lab::before {
  content: "";
  display: block;
  width: 54px; height: 8px;
  margin-bottom: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--yellow), var(--coral));
}

.next-ticket {
  position: absolute;
  z-index: 6;
  top: 24px; left: 50%;
  width: 176px;
  padding: 12px 14px;
  color: #fff;
  background: var(--blue);
  transform: translateX(-50%) rotate(-2deg);
  animation: ticket-pop 6.8s ease-in-out infinite;
}

.spark {
  position: absolute;
  z-index: 3;
  width: 14px; height: 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  animation: spark-drift 6s ease-in-out infinite;
}

.spark-a { left: 38%; top: 24%; background: var(--mint); }
.spark-b { right: 34%; top: 34%; background: var(--yellow); animation-delay: -1.2s; }
.spark-c { left: 42%; bottom: 20%; background: var(--coral); animation-delay: -2s; }
.spark-d { right: 43%; bottom: 28%; background: var(--blue); animation-delay: -3s; }

/* ── Marquee ── */
.marquee-band {
  overflow: hidden;
  padding: 14px 0;
  color: #fff;
  background: var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: marquee 36s linear infinite;
}

.marquee-band:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
}

/* ── Stats section ── */
.stats-section {
  padding: 56px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.stat-word {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 900;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.stat-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ── Sections ── */
.section,
.shinobi-section,
.topics-section {
  padding: 100px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 62px;
}

.align-center { align-items: center; }

.section-heading h2,
.section-head h2,
.shinobi-copy h2,
.lab-copy h2,
.contact-copy h2,
.company-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head h2 { margin-bottom: 12px; }

.intro-copy p,
.section-head p,
.shinobi-copy p,
.lab-copy p,
.contact-copy p,
.support-panel p,
.business-card p,
.topic-item p,
.company-table dd,
.founder-profile p {
  color: var(--ink-soft);
}

/* ── Business cards ── */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.business-card,
.support-panel,
.topic-item,
.founder-profile {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.business-card {
  min-height: 470px;
  padding: 20px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  transform-style: preserve-3d;
}

.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-media {
  display: grid;
  place-items: center;
  height: 180px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f3f7fb;
}

.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-media-blue {
  background: linear-gradient(135deg, rgba(18, 105, 243, 0.16), rgba(255, 107, 95, 0.16));
}

.card-media-blue img { width: 98px; height: 108px; object-fit: contain; }

.card-media-system,
.card-media-code {
  position: relative;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(7, 27, 58, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(7, 27, 58, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
}

.doc-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 110px; height: 74px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(7, 27, 58, 0.12);
  transition: transform 0.3s var(--ease-spring);
}

.business-card:hover .doc-card-one  { transform: rotate(-8deg) translateY(-4px); }
.business-card:hover .doc-card-two  { transform: rotate(6deg) translateY(-2px); }
.business-card:hover .doc-card-three { transform: rotate(-5deg) translateY(-6px); }

.doc-card-one   { top: 26px; left: 26px; background: var(--yellow); transform: rotate(-5deg); }
.doc-card-two   { top: 64px; left: 94px; background: var(--surface); transform: rotate(4deg); }
.doc-card-three { right: 24px; bottom: 22px; background: var(--mint); transform: rotate(-3deg); }

.card-media-code {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 105, 243, 0.92), rgba(7, 27, 58, 0.98)),
    var(--ink);
}

.card-media-code span {
  color: var(--mint);
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-weight: 800;
}

.card-media-code strong { font-size: 1.8rem; line-height: 1.15; }

.card-kicker,
.topic-label {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.business-card h3,
.support-panel h3,
.topic-item h3,
.founder-profile h3 {
  margin: 0 0 10px;
  line-height: 1.35;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.business-card p { margin: 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
  transition: gap 0.2s;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  gap: 8px;
  outline: none;
}

/* ── Mid-page CTA band ── */
.cta-band {
  background: linear-gradient(110deg, var(--coral), #e85547 60%, #d94236);
  color: #fff;
  padding: 52px 0;
}

.cta-band-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.cta-band-text {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
}

.cta-band-btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--coral);
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  font-size: 1rem;
}

.cta-band-btn:hover,
.cta-band-btn:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  outline: none;
}

/* ── Shinobi section ── */
.shinobi-section {
  width: 100%;
  max-width: none;
  background: #071b3a;
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .shinobi-section { background: #040d1e; }
}

.shinobi-section .section-grid {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.shinobi-copy p { color: rgba(255,255,255,0.76); }
.shinobi-copy .eyebrow { color: var(--yellow); }

.device-frame {
  position: relative;
  height: 560px;
  overflow: hidden;
  border: 12px solid #fff;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.device-frame:hover {
  transform: perspective(1000px) rotateY(-4deg) translateY(-4px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.36);
}

.device-frame img {
  width: 100%;
  animation: screen-pan 18s ease-in-out infinite alternate;
}

.process-list {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.process-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

.process-list div:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.process-list span {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  font-weight: 900;
}

.process-list p { margin: 0; }

/* ── Support ── */
.support-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.support-panel {
  padding: 26px;
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s;
}

.support-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.support-panel ul {
  padding-left: 1.2em;
  margin: 18px 0 0;
}

.support-panel li { margin-bottom: 8px; }

.support-photo {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.support-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.support-photo:hover img { transform: scale(1.04); }

/* ── Topics ── */
.topics-section { position: relative; }

.topic-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.topic-controls button {
  min-height: 40px;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.topic-controls button.is-active,
.topic-controls button:hover,
.topic-controls button:focus-visible {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  outline: none;
}

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

.topic-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s;
}

.topic-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.topic-item.is-hidden { display: none; }
.topic-item time { color: var(--blue); font-weight: 900; padding-top: 4px; }
.topic-item p { margin: 0; }
.topic-item h3 { margin-bottom: 6px; }

.topic-item h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

.topic-item h3 a:hover,
.topic-item h3 a:focus-visible {
  color: var(--blue);
  outline: none;
}

/* ── Lab ── */
.lab-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.lab-visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lab-visual img {
  width: 100%; height: 540px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.lab-visual:hover img { transform: scale(1.04); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.price-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.price-grid div:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(18, 105, 243, 0.1);
}

.price-grid dt { font-weight: 900; margin-bottom: 4px; }
.price-grid dd { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.note, .form-note { font-size: 0.86rem; color: var(--ink-mute); }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}

/* ── FAQ ── */
.faq-list { display: grid; gap: 10px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.24s;
}

.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.5;
  list-style: none;
  user-select: none;
  transition: background 0.18s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover { background: rgba(18, 105, 243, 0.04); }
.faq-question:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s var(--ease-spring), background 0.2s;
}

.faq-icon::before { content: "+"; }
.faq-item[open] .faq-icon { background: var(--blue); }

.faq-answer {
  padding: 0 22px 20px;
  animation: faq-open 0.28s var(--ease-out);
}

.faq-answer p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Company ── */
.company-content { display: grid; gap: 22px; }

.company-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-table div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
}

.company-table div:hover { background: rgba(18, 105, 243, 0.03); }
.company-table dt { color: var(--ink); font-weight: 900; }
.company-table dd { margin: 0; color: var(--ink-soft); }

.founder-profile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 28px;
}

.founder-profile img {
  width: 100%; height: 330px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
}

.founder-profile h3 { margin: 4px 0 12px; font-size: 2rem; }
.founder-profile p  { margin: 0; }
.founder-profile p + p { margin-top: 12px; }

/* ── Contact ── */
.contact-section {
  padding: 100px 0;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(18, 105, 243, 0.3), transparent),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(255, 107, 95, 0.22), transparent),
    var(--ink);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 52px;
  align-items: start;
}

.contact-copy .eyebrow { color: var(--yellow); }
.contact-copy p { color: rgba(255,255,255,0.76); }

/* Trust bar */
.trust-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--mint);
  color: var(--ink);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.email-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
}

.email-copy:hover { background: #ffd93d; transform: translateY(-2px); }
.email-copy.copied { background: var(--mint); }

/* Contact form */
.contact-form {
  padding: 28px;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field-name {
  font-weight: 800;
  font-size: 0.88rem;
}

.required-mark {
  color: var(--coral);
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--ink);
  background: #f6f8fc;
  border: 1.5px solid rgba(7, 27, 58, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

@media (prefers-color-scheme: dark) {
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    background: #1a2436;
    border-color: rgba(255,255,255,0.12);
    color: var(--ink);
  }
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 105, 243, 0.14);
  outline: none;
  background: #fff;
}

.contact-form input.is-valid   { border-color: var(--mint); }
.contact-form input.is-invalid { border-color: var(--coral); }

.char-counter {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 4px;
}

.char-counter.is-long { color: var(--coral); }

.privacy-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 0.9rem;
}

.privacy-check input { width: 18px; min-height: 18px; accent-color: var(--blue); }
.privacy-check a { color: var(--blue); }

.honeypot {
  position: absolute;
  left: -9999px;
}

.submit-button {
  width: 100%;
  font-size: 1rem;
  position: relative;
}

.submit-loading { display: none; }

.submit-button.is-loading .submit-text   { display: none; }
.submit-button.is-loading .submit-loading { display: inline; }
.submit-button.is-loading { opacity: 0.7; cursor: not-allowed; pointer-events: none; }

.form-note { margin: 12px 0 0; }

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  padding: 56px 0 40px;
  align-items: start;
}

.footer-brand { max-width: 360px; }

.footer-brand .brand-logo { width: 176px; margin-bottom: 16px; }

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-nav-group { display: flex; flex-direction: column; gap: 8px; }

.footer-nav-title {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.footer-nav-group a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.18s;
}

.footer-nav-group a:hover { color: var(--blue); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.footer-bottom small { color: var(--ink-mute); font-size: 0.82rem; }

.footer-address {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  z-index: 80;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(7, 27, 58, 0.24);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, opacity 0.3s, background 0.2s;
  opacity: 0;
  pointer-events: none;
}

.back-to-top:not([hidden]) { pointer-events: auto; }
.back-to-top.is-visible { opacity: 1; }
.back-to-top:hover { background: var(--blue); transform: translateY(-4px) scale(1.08); box-shadow: 0 14px 32px rgba(18, 105, 243, 0.32); }

/* ── Floating CTA ── */
.floating-cta {
  position: fixed;
  z-index: 90;
  bottom: 28px; left: 28px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}

.floating-cta:not([hidden]) { pointer-events: auto; }
.floating-cta.is-visible { transform: translateY(0); opacity: 1; }

.floating-cta-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 400px;
  position: relative;
}

.floating-cta-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.floating-cta-text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.floating-cta-btn {
  flex-shrink: 0;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.floating-cta-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border: 0;
  background: none;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.18s, color 0.18s;
}

.floating-cta-close:hover { background: rgba(7,27,58,0.08); color: var(--ink); }

/* ── Toast ── */
.toast-container {
  position: fixed;
  z-index: 400;
  bottom: 28px; right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 340px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toast-in 0.4s var(--ease-out);
  color: var(--ink);
}

.toast.is-out { animation: toast-out 0.3s var(--ease-out) forwards; }

.toast-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 1px;
}

.toast.success .toast-icon { background: var(--mint); color: var(--ink); }
.toast.error   .toast-icon { background: var(--coral); color: #fff; }

.toast-body { flex: 1; }
.toast-title { font-weight: 800; font-size: 0.92rem; margin: 0 0 2px; }
.toast-msg   { font-size: 0.84rem; color: var(--ink-soft); margin: 0; }

@keyframes toast-in  {
  from { opacity: 0; transform: translateX(20px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px) scale(0.96); }
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger via data-delay */
.reveal[data-delay="80"]  { transition-delay: 80ms; }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="120"] { transition-delay: 120ms; }
.reveal[data-delay="160"] { transition-delay: 160ms; }
.reveal[data-delay="240"] { transition-delay: 240ms; }
.reveal[data-delay="320"] { transition-delay: 320ms; }

/* ── Keyframe animations ── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes screen-pan {
  from { transform: translateY(0); }
  to   { transform: translateY(-44%); }
}

@keyframes core-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.035); }
}

@keyframes node-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes ticket-pop {
  0%, 100% { transform: translateX(-50%) rotate(-2deg) translateY(0); }
  50%       { transform: translateX(-50%) rotate(1deg) translateY(-8px); }
}

@keyframes spark-drift {
  0%, 100% { transform: rotate(12deg) translate(0, 0); }
  50%       { transform: rotate(28deg) translate(8px, -10px); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .hero { animation: none !important; }
}

/* ── Subpage / Legal / Result styles ── */
.page-simple { background: var(--paper); }

.simple-main {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
  padding: 130px 0 80px;
}

.simple-main h1 { margin: 0 0 20px; font-size: 2.8rem; line-height: 1.2; }
.simple-main section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.simple-main h2 { margin: 0 0 12px; font-size: 1.4rem; }
.simple-main p, .simple-main li { color: var(--ink-soft); }

.subpage-main {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 130px 0 80px;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
  min-height: 520px;
}

.subpage-hero h1 { margin: 0; font-size: 4rem; line-height: 1.08; }
.subpage-hero p  { color: var(--ink-soft); font-size: 1.08rem; }

.subpage-hero img,
.split-section img,
.location-section img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.subpage-hero img { height: 430px; object-fit: cover; }

.yuru-hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 227, 110, 0.72), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(100, 216, 181, 0.52), transparent 26%),
    radial-gradient(circle at 56% 82%, rgba(18, 105, 243, 0.22), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow);
}

.yuru-hero-visual::before, .yuru-hero-visual::after {
  content: "";
  position: absolute;
  inset: 52px;
  border: 2px solid rgba(7, 27, 58, 0.14);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.yuru-hero-visual::after { inset: 92px 84px; transform: rotate(22deg); }

.yuru-planet {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 188px; height: 188px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 26px 60px rgba(7, 27, 58, 0.2);
}

.yuru-planet span  { align-self: end; color: var(--yellow); font-weight: 900; text-transform: uppercase; }
.yuru-planet strong { align-self: start; font-size: 2.8rem; line-height: 1; }

.orbit-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 112px; height: 82px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(7, 27, 58, 0.15);
}

.orbit-card-one   { left: 48px; top: 76px; color: #fff; background: var(--coral); transform: rotate(-8deg); }
.orbit-card-two   { right: 54px; top: 58px; background: var(--mint); transform: rotate(6deg); }
.orbit-card-three { right: 68px; bottom: 70px; color: #fff; background: var(--blue); transform: rotate(-4deg); }
.orbit-card-four  { left: 64px; bottom: 58px; background: var(--yellow); transform: rotate(7deg); }

.content-section { padding: 74px 0; border-top: 1px solid var(--line); }

.price-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.price-card-grid article {
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.price-card-grid h3    { margin: 0 0 12px; font-size: 1.1rem; }
.price-card-grid strong { display: block; color: var(--ink); font-size: 1.65rem; line-height: 1.15; }
.price-card-grid span   { display: block; margin-top: 10px; color: var(--ink-soft); }

.split-section,
.location-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 32px;
  align-items: start;
}

.split-section img, .location-section img { height: 440px; object-fit: cover; }

.yuru-space-section { align-items: stretch; }

.lab-moodboard {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(7, 27, 58, 0.06) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgba(7, 27, 58, 0.06) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(135deg, rgba(255, 227, 110, 0.42), rgba(100, 216, 181, 0.2) 48%, rgba(18, 105, 243, 0.12)),
    var(--surface);
  box-shadow: var(--shadow);
}

.lab-card, .lab-note {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 18px 34px rgba(7, 27, 58, 0.14);
}

.lab-card-main {
  top: 42px; left: 34px; right: 34px;
  min-height: 168px;
  padding: 24px;
  color: #fff;
  background: var(--ink);
}

.lab-card-main span  { color: var(--yellow); font-weight: 900; text-transform: uppercase; }
.lab-card-main strong { display: block; max-width: 360px; margin-top: 18px; font-size: 3rem; line-height: 1.05; }

.lab-note {
  display: grid;
  place-items: center;
  width: 116px; height: 86px;
  font-weight: 900;
}

.note-blue   { right: 38px; top: 194px; color: #fff; background: var(--blue); transform: rotate(4deg); }
.note-mint   { left: 42px; bottom: 54px; background: var(--mint); transform: rotate(-5deg); }
.note-coral  { left: 178px; bottom: 96px; color: #fff; background: var(--coral); transform: rotate(3deg); }
.note-yellow { right: 76px; bottom: 46px; background: var(--yellow); transform: rotate(-4deg); }

.info-list { display: grid; gap: 14px; }

.info-list article,
.important-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.info-list h3 { margin: 0 0 8px; }
.info-list p, .important-section p, .legal-lead { color: var(--ink-soft); }

.legal-page .site-header {
  position: sticky;
  transform: none;
  left: auto;
  top: 10px;
  margin: 10px auto 0;
}

.legal-main { width: min(920px, calc(100% - 40px)); }
.legal-main h1 { font-size: 3rem; }

.legal-nav-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.legal-nav-inline a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: border-color 0.18s, color 0.18s;
}

.legal-nav-inline a:hover, .legal-nav-inline a:focus-visible { border-color: var(--blue); color: var(--blue); outline: none; }

.legal-document {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-document h2 {
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  line-height: 1.5;
}

.legal-document h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-document h3 { margin: 24px 0 8px; color: var(--coral); font-size: 1rem; }
.legal-document p  { margin: 8px 0; color: var(--ink-soft); line-height: 1.9; }

.legal-footer { border-top: 1px solid var(--line); }

.result-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.result-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result-box h1  { margin: 0 0 12px; font-size: 2rem; }
.result-box p   { color: var(--ink-soft); }

/* ═══════════════════════════════════════
   Responsive
═══════════════════════════════════════ */
@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr); gap: 34px; }
  .launch-core { top: 52%; width: 184px; min-height: 132px; padding: 15px; }
  .launch-core strong { font-size: 1.3rem; }
  .project-node { width: calc(50% - 26px); min-height: 116px; padding: 13px; }
  .project-node strong { font-size: 1rem; }
  .project-node small  { font-size: 0.78rem; }
  .project-node img    { height: 58px; }
  .node-commerce { top: 20px; left: 16px; }
  .node-support  { top: 20px; right: 16px; }
  .node-education { left: 16px; bottom: 20px; }
  .node-lab { right: 16px; bottom: 20px; }
  .next-ticket { display: none; }
  .map-line { width: 162px; }
  .line-commerce  { transform: rotate(-132deg); }
  .line-support   { transform: rotate(-48deg); }
  .line-education { transform: rotate(132deg); }
  .line-lab       { transform: rotate(48deg); }
  .footer-nav { gap: 28px; }
}

@media (max-width: 980px) {
  .menu-button { display: flex; }

  .site-nav {
    position: fixed;
    inset: 78px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { justify-content: center; font-size: 1rem; }

  .hero { min-height: auto; padding-top: 126px; }

  .section-grid,
  .contact-inner,
  .lab-section,
  .subpage-hero,
  .split-section,
  .location-section { grid-template-columns: 1fr; }

  .hero-inner { grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr); gap: 28px; }

  .hero-stage { min-height: 500px; }
  .playground-board { inset: 0; }
  .launch-map { min-height: 438px; }
  .launch-core { top: 52%; width: 176px; min-height: 128px; padding: 14px; }
  .launch-core strong { font-size: 1.24rem; }
  .project-node { width: calc(50% - 24px); min-height: 112px; padding: 12px; }
  .project-node strong { font-size: 0.98rem; }
  .project-node small  { font-size: 0.76rem; }
  .project-node img    { height: 52px; }
  .node-commerce { top: 18px; left: 14px; }
  .node-support  { top: 18px; right: 14px; }
  .node-education { left: 14px; bottom: 18px; }
  .node-lab { right: 14px; bottom: 18px; }
  .map-line { width: 150px; }

  .business-grid, .support-layout, .price-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-photo { grid-column: 1 / -1; min-height: 320px; }
  .device-frame { height: 460px; }

  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:last-child, .stat-item:nth-last-child(2) { border-bottom: none; }

  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { flex-wrap: wrap; gap: 24px; }

  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .floating-cta { max-width: calc(100vw - 56px); }
}

@media (max-width: 680px) {
  .site-header,
  .hero-inner,
  .section,
  .shinobi-section .section-grid,
  .topics-section,
  .contact-inner,
  .simple-main,
  .result-page { width: min(100% - 24px, var(--container)); }

  .site-header .brand-logo,
  .site-header.is-scrolled .brand-logo { width: 124px; }

  .footer-brand .brand-logo { width: 142px; }

  .hero { padding: 112px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .lead { font-size: 1rem; }
  .hero-actions .button { width: 100%; }

  .hero-stage { min-height: 560px; overflow: hidden; }
  .playground-toolbar { min-height: 58px; padding: 10px 12px; }
  .playground-toolbar img { width: 104px; }
  .playground-toolbar span { font-size: 0.74rem; }
  .launch-map { min-height: 502px; }
  .launch-core { top: 52%; width: 168px; min-height: 126px; padding: 14px; }
  .launch-core strong { font-size: 1.22rem; }
  .project-node { width: calc(50% - 22px); min-height: 116px; padding: 11px; }
  .project-node strong { font-size: 0.98rem; }
  .project-node small  { font-size: 0.76rem; }
  .project-node img    { height: 50px; }
  .node-commerce { top: 16px; left: 12px; }
  .node-support  { top: 16px; right: 12px; }
  .node-education { left: 12px; bottom: 16px; }
  .node-lab { right: 12px; bottom: 16px; }
  .map-line { width: 138px; }

  .section, .shinobi-section, .topics-section, .contact-section { padding: 72px 0; }

  .section-heading h2,
  .section-head h2,
  .shinobi-copy h2,
  .lab-copy h2,
  .contact-copy h2,
  .company-section h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  .business-grid, .support-layout, .field-grid, .price-grid, .price-card-grid { grid-template-columns: 1fr; }
  .business-card { min-height: auto; }

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

  .topic-item { grid-template-columns: 1fr; gap: 6px; }

  .lab-visual img { height: 320px; }
  .device-frame { height: 380px; }

  .company-table div,
  .founder-profile { grid-template-columns: 1fr; }
  .founder-profile img { width: 100%; height: 240px; }

  .subpage-main, .legal-main { width: min(100% - 24px, var(--container)); padding-top: 110px; }
  .subpage-hero { min-height: auto; gap: 24px; }
  .subpage-hero h1, .legal-main h1 { font-size: 2.35rem; }
  .subpage-hero img, .split-section img, .location-section img, .lab-moodboard, .yuru-hero-visual { height: 280px; }
  .yuru-hero-visual { min-height: 280px; }
  .yuru-planet { width: 132px; height: 132px; }
  .yuru-planet strong { font-size: 2rem; }
  .orbit-card { width: 82px; height: 58px; }
  .orbit-card-one   { left: 20px; top: 36px; }
  .orbit-card-two   { right: 20px; top: 38px; }
  .orbit-card-three { right: 24px; bottom: 34px; }
  .orbit-card-four  { left: 24px; bottom: 32px; }
  .lab-card-main { top: 22px; left: 18px; right: 18px; min-height: 120px; padding: 18px; }
  .lab-card-main strong { max-width: 260px; font-size: 2rem; }
  .lab-note { width: 88px; height: 64px; }
  .note-blue  { right: 18px; top: 138px; }
  .note-mint  { left: 18px; bottom: 24px; }
  .note-coral { left: 116px; bottom: 52px; }
  .note-yellow { right: 28px; bottom: 18px; }
  .content-section { padding: 52px 0; }
  .legal-document { padding: 18px; }
  .legal-document h2 { font-size: 1.1rem; }

  .back-to-top { bottom: 20px; right: 20px; }
  .floating-cta { left: 12px; right: 12px; bottom: 80px; }
  .floating-cta-inner { flex-wrap: wrap; gap: 10px; }
  .floating-cta-copy { flex: 1 1 100%; }
  .floating-cta-btn  { flex: 1; }
  .toast-container   { left: 12px; right: 12px; max-width: none; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ═══════════════════════════════════════
   Bold redesign layer
═══════════════════════════════════════ */

/* ── Scroll-driven body background ── */
body {
  transition: background-color 0.9s ease;
}

body[data-theme="cream"] { background-color: #fff3d2; }
body[data-theme="paper"] { background-color: var(--paper); }
body[data-theme="navy"],
body[data-theme="ink"]   { background-color: #071b3a; }

@media (prefers-color-scheme: dark) {
  body[data-theme="cream"] { background-color: #16202e; }
  body[data-theme="paper"] { background-color: var(--paper); }
}

/* Sections rely on body color, keep them transparent */
.intro-section,
.business-section,
.support-section,
.topics-section,
.lab-section,
.faq-section,
.company-section {
  background: transparent;
}

/* ── Bigger hero typography ── */
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

/* ── Giant outlined words ── */
.giant-word,
.head-giant {
  position: absolute;
  z-index: 0;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(7, 27, 58, 0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.giant-word {
  bottom: -0.12em;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(6rem, 17vw, 15rem);
}

.head-giant {
  top: 28px;
  right: -0.06em;
  font-size: clamp(4.5rem, 12vw, 11rem);
}

.head-giant-light {
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  .giant-word,
  .head-giant { -webkit-text-stroke: 2px rgba(232, 240, 254, 0.07); }
}

.section,
.topics-section,
.shinobi-section,
.contact-section {
  position: relative;
  overflow: hidden;
}

.section > *:not(.head-giant),
.topics-section > *:not(.head-giant),
.shinobi-section > *:not(.head-giant),
.contact-section > *:not(.head-giant) {
  position: relative;
  z-index: 1;
}

/* ── Double marquee ── */
.marquee-reverse {
  margin-top: 12px;
  animation-direction: reverse;
  animation-duration: 44s;
}

.marquee-reverse span {
  border-color: rgba(255, 227, 110, 0.4);
  color: var(--yellow);
}

/* ── Custom cursor ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 107, 95, 0.65);
  transform: translate(-50%, -50%);
  transition: width 0.22s var(--ease-out), height 0.22s var(--ease-out),
              border-color 0.22s, background 0.22s;
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring { opacity: 1; }

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor summary { cursor: none; }

.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  border-color: var(--coral);
  background: rgba(255, 107, 95, 0.1);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 680px) {
  .head-giant { top: 12px; font-size: clamp(3.4rem, 16vw, 5rem); }
  .giant-word { font-size: clamp(4rem, 20vw, 7rem); }
}

/* ── Compact floating CTA on mobile (was covering FAQ items) ── */
@media (max-width: 680px) {
  .floating-cta { bottom: 12px; right: 76px; left: 12px; }
  .floating-cta-inner { padding: 10px 14px; gap: 10px; flex-wrap: nowrap; }
  .floating-cta-label { display: none; }
  .floating-cta-copy { flex: 1 1 auto; }
  .floating-cta-text { font-size: 0.8rem; }
  .floating-cta-btn { flex: 0 0 auto; min-height: 38px; padding: 8px 14px; font-size: 0.84rem; }
}

/* ═══════════════════════════════════════
   Intro overlay (first-load reveal)
═══════════════════════════════════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, rgba(18, 105, 243, 0.32), transparent 70%),
    #071b3a;
  overflow: hidden;
  animation: intro-out 0.8s var(--ease-out) 1.85s forwards;
}

.intro-inner {
  text-align: center;
  padding: 0 24px;
}

.intro-eyebrow {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0;
  animation: intro-fade 0.7s var(--ease-out) 0.15s forwards;
}

.intro-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 6vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.intro-line {
  display: block;
  overflow: hidden;
  padding: 0 0.04em;
}

.intro-line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: intro-rise 0.85s var(--ease-out) forwards;
}

.intro-line:nth-child(1) > span { animation-delay: 0.3s; }
.intro-line:nth-child(2) > span { animation-delay: 0.42s; }

.intro-bar {
  display: block;
  width: 0;
  height: 4px;
  margin: 30px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--yellow), var(--coral));
  animation: intro-bar 0.8s var(--ease-out) 0.85s forwards;
}

body.intro-active {
  overflow: hidden;
}

/* Skip the intro entirely after first view this session, on reduced motion, or print */
html.intro-seen .intro { display: none; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

@media print {
  .intro { display: none; }
}

@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-rise { to { transform: translateY(0); } }
@keyframes intro-bar  { to { width: min(300px, 62vw); } }
@keyframes intro-out  {
  to { transform: translateY(-100%); visibility: hidden; }
}
