/* ============================================================
   NemakiWare — hero + nav + switcher styles
   ============================================================ */

/* ---- nav ------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: oklch(0.99 0.003 230 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 70px; }
.nav-logo { display: inline-flex; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  transition: color .15s ease; white-space: nowrap;
}
.nav-links a:hover { color: var(--accent-strong); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--surface);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--body); font-size: 13px; font-weight: 600;
  padding: 7px 13px; color: var(--ink-500); transition: all .15s ease; line-height: 1;
}
.lang-toggle button.on { background: var(--accent-strong); color: #fff; }
.lang-toggle button:not(.on):hover { color: var(--ink-800); }

.nav-gh { color: var(--ink-600); display: inline-flex; transition: color .15s ease; }
.nav-gh:hover { color: var(--ink-900); }
.nav-cta { padding: 10px 18px; font-size: 14.5px; }

/* nav over dark hero (variant B, top) */
.nav--over-dark .nav-links a { color: rgba(255,255,255,0.82); }
.nav--over-dark .nav-links a:hover { color: #fff; }
.nav--over-dark .nav-gh { color: rgba(255,255,255,0.75); }
.nav--over-dark .nav-gh:hover { color: #fff; }
.nav--over-dark .lang-toggle { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.nav--over-dark .lang-toggle button { color: rgba(255,255,255,0.7); }
.nav--over-dark .lang-toggle button.on { background: var(--accent-bright); color: var(--night-900); }
.nav--over-dark .nav-burger span { background: #fff; }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { width: 20px; height: 2px; background: var(--ink-800); border-radius: 2px; }

/* ---- hero shared ---------------------------------------------- */
.hero { position: relative; padding-top: 132px; padding-bottom: 80px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-grid--c { grid-template-columns: 1fr 1.02fr; }
.hero-tags { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-h1 {
  font-size: clamp(36px, 4.9vw, 60px);
  line-height: 1.04; letter-spacing: -0.028em; font-weight: 600;
  white-space: pre-line;
}
.hero-h1--tight { font-size: clamp(32px, 4.3vw, 53px); }
[data-lang="ja"] .hero-h1 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.16; }
.hero-h1--center { text-align: center; font-size: clamp(38px, 5.2vw, 64px); }
.hero-h1 .hl { color: var(--accent-strong); }
.hero-h1 .hl--bright { color: var(--accent-bright); }
.hero-sub {
  margin-top: 24px; font-size: clamp(17px, 1.65vw, 20px);
  color: var(--ink-600); max-width: 56ch; line-height: 1.62;
}
.hero-sub--center { margin-inline: auto; text-align: center; }
.hero-stats .hero-stats { margin-top: 40px; }

/* hero A art */
.hero-art { position: relative; }

/* ---- hero B (dark immersive) ---------------------------------- */
.hero--b { padding-top: 150px; padding-bottom: 120px; background: var(--night-900); }
.hero-b-inner { max-width: 880px; margin: 0 auto; }
.hero-b-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(oklch(0.55 0.05 220 / 0.10) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.55 0.05 220 / 0.10) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 78%);
}
.hero-b-glow {
  position: absolute; z-index: 0; left: 50%; top: 12%; transform: translateX(-50%);
  width: 760px; height: 520px;
  background: radial-gradient(ellipse at center, var(--accent-bright) 0%, transparent 62%);
  opacity: 0.22; filter: blur(20px); pointer-events: none;
}
.hero-b-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }

/* ---- hero C (console) ----------------------------------------- */
.console-card {
  background: var(--night-900); border: 1px solid var(--night-700);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 44px 90px -50px rgba(0,0,0,0.5);
}
.console-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  background: var(--night-850); border-bottom: 1px solid var(--night-700);
}
.cdot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.console-title { margin-left: 10px; font-size: 12px; color: oklch(0.7 0.01 230); }
.console-body {
  margin: 0; padding: 22px 20px; font-size: 13px; line-height: 1.7;
  color: oklch(0.82 0.012 230); white-space: pre-wrap; word-break: break-word;
}
.c-prompt { color: var(--accent-bright); }
.c-cmd { color: #fff; font-weight: 600; }
.c-key { color: oklch(0.74 0.10 200); }
.c-str { color: oklch(0.78 0.10 140); }
.c-num { color: oklch(0.80 0.11 60); }
.c-dim { color: oklch(0.58 0.01 230); }
.c-ok { color: oklch(0.78 0.11 150); }

/* ---- hero switcher (floating) --------------------------------- */
.hero-switch {
  position: fixed; right: 22px; bottom: 22px;
  z-index: 60; display: flex; align-items: center; gap: 4px;
  background: oklch(0.21 0.018 235 / 0.92); backdrop-filter: blur(12px);
  border: 1px solid oklch(0.4 0.02 235 / 0.6); border-radius: 999px;
  padding: 5px 7px 5px 14px; box-shadow: 0 18px 44px -20px rgba(0,0,0,0.55);
}
.hero-switch-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.65 0.01 235); margin-right: 5px; }
.hero-switch button {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  border: 0; background: transparent; color: oklch(0.78 0.01 235);
  border-radius: 999px; padding: 7px 13px; font-family: var(--body);
  font-size: 13px; font-weight: 600; transition: all .16s ease;
}
.hero-switch button .hs-letter {
  font-family: var(--mono); font-size: 11px; opacity: 0.7;
}
.hero-switch button.on { background: var(--accent-strong); color: #fff; }
.hero-switch button.on .hs-letter { opacity: 1; }
.hero-switch button:not(.on):hover { background: oklch(1 0 0 / 0.08); color: #fff; }

@media (max-width: 620px) {
  .hero-switch .hs-name { display: none; }
  .hero-switch { padding: 5px 8px; gap: 2px; }
}

/* ---- responsive ----------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid, .hero-grid--c { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 540px; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px var(--pad); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 14px !important; }
  .nav-gh { display: none; }
}
