/* ====== GenStudio AI · Premium Tech Design System v2 ====== */

:root {
  --font-sans: "Inter", "Noto Sans JP", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --bg: #ffffff;
  --surface: #fafafa;
  --text: #0a0a0c;
  --muted: #6b7280;
  --border: #ededf0;
  --accent: #6d28d9;
  --grad: linear-gradient(125deg, #6366f1 0%, #8b5cf6 45%, #d946ef 100%);
  --grad-soft: linear-gradient(125deg, rgba(99,102,241,.10), rgba(217,70,239,.10));
}
.dark {
  --bg: #060608;
  --surface: #0c0c10;
  --text: #f4f4f7;
  --muted: #9aa0ad;
  --border: rgba(255,255,255,.08);
  --accent: #a78bfa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

/* ===== Gradient mesh glow (Runway-style) ===== */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(40% 35% at 18% 12%, rgba(99,102,241,.18), transparent 70%),
    radial-gradient(38% 32% at 85% 22%, rgba(217,70,239,.14), transparent 70%),
    radial-gradient(45% 40% at 60% 95%, rgba(139,92,246,.12), transparent 70%);
  opacity: 1;
}
.dark body::before, body.dark::before { opacity: 1; }
@media (prefers-color-scheme: dark) { /* placeholder */ }

/* ===== Typography scale ===== */
.display {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* Mono eyebrow (OpenRouter / dev vibe) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.eyebrow::before { content: "// "; opacity: .55; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Nav ===== */
#nav { transition: all .35s ease; }
#navInner {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding: 0 18px; border-radius: 16px;
  transition: all .35s ease;
}
#nav.scrolled #navInner {
  margin-top: 8px; height: 54px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.dark #nav.scrolled #navInner {
  background: rgba(10,10,14,.6);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.nav-link {
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
#burger { display: none; }
@media (max-width: 1023px) {
  #burger { display: grid; }
}

/* Lang toggle */
.lang-btn { color: var(--muted); font-weight: 600; }
.lang-btn.active { background: var(--text); color: var(--bg); }

/* Brand logo (inline, theme-adaptive) */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { display: block; filter: drop-shadow(0 2px 8px rgba(124,58,237,.35)); }
.brand-word { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: .92rem;
  box-shadow: 0 6px 24px rgba(124,58,237,.35);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(124,58,237,.5); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid var(--border); font-weight: 600; font-size: .92rem;
  transition: all .25s;
}
.btn-ghost:hover { background: rgba(127,127,127,.08); border-color: var(--accent); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Cards ===== */
.card {
  border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  padding: 28px; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,.4); box-shadow: 0 20px 50px rgba(0,0,0,.10); }
.dark .card:hover { box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.card-2 {
  border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; overflow: hidden;
}
.card-2:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.dark .card-2:hover { box-shadow: 0 16px 40px rgba(0,0,0,.45); }

/* Gradient header chip on cards */
.chip {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 500;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(109,40,217,.08); color: var(--accent);
  border: 1px solid rgba(124,58,237,.18);
}
.dark .chip { background: rgba(167,139,250,.12); color: #c4b5fd; border-color: rgba(167,139,250,.2); }

/* ===== Model pills (OpenRouter style) ===== */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all .25s;
}
.pill:hover { border-color: rgba(124,58,237,.45); color: var(--accent); transform: translateY(-2px); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* ===== Stat blocks (Global Brain / OpenRouter) ===== */
.stat {
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  padding: 26px 24px; transition: border-color .3s, transform .3s;
}
.stat:hover { border-color: rgba(124,58,237,.4); transform: translateY(-3px); }
.stat-num {
  font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ===== Architecture ===== */
.arch-layer { text-align: center; padding: 18px 0; }
.arch-layer.hl { background: var(--grad-soft); border-radius: 14px; margin: 4px 0; }
.arch-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.arch-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.arch-node { min-width: 124px; padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.14); transition: transform .3s; }
.arch-node:hover { transform: translateY(-3px) scale(1.03); }
.arch-node-sm { padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); }
.grad-indigo { background: linear-gradient(135deg,#6366f1,#4f46e5); }
.grad-violet { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }
.grad-fuchsia { background: linear-gradient(135deg,#d946ef,#c026d3); }
.arch-conn { width: 2px; height: 22px; margin: 0 auto; background: linear-gradient(180deg, var(--muted), transparent); opacity: .4; }

/* ===== Features / Industries / Caps ===== */
.feat, .ind {
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  padding: 24px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feat:hover, .ind:hover { transform: translateY(-3px); border-color: rgba(124,58,237,.4); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.dark .feat:hover, .dark .ind:hover { box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.feat h4, .ind h4 { font-size: 1.05rem; font-weight: 600; margin: 10px 0 6px; }
.feat p, .ind p { font-size: 13px; color: var(--muted); line-height: 1.65; }

.cap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .3s;
}
.cap span { font-size: 13px; }
.cap:hover { transform: translateY(-2px); border-color: rgba(124,58,237,.4); }
.cap.active { border-color: var(--accent); background: rgba(124,58,237,.07); box-shadow: 0 8px 20px rgba(124,58,237,.18); }

/* ===== Partners ===== */
.partner {
  display: grid; place-items: center; height: 64px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--muted); transition: all .3s;
}
.partner:hover { color: var(--text); border-color: rgba(124,58,237,.4); transform: translateY(-2px); }

/* ===== Timeline ===== */
.tl-item { position: relative; padding-left: 28px; padding-bottom: 26px; border-left: 2px solid var(--border); }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-dot { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--bg); }
.tl-year { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.tl-text { font-size: 14px; color: var(--text); opacity: .85; line-height: 1.6; }

/* ===== Contact ===== */
.ctab { padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: all .25s; }
.ctab:hover { color: var(--text); }
.ctab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.inp { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit; transition: all .2s; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }

/* ===== Footer ===== */
.foot-h { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.foot-a { display: block; font-size: 13px; color: var(--muted); padding: 4px 0; transition: color .2s; }
.foot-a:hover { color: var(--text); }

/* ===== Icon system (replaces emoji) ===== */
.ic {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(217,70,239,.06));
  color: var(--accent);
  border: 1px solid rgba(124,58,237,.18);
  flex-shrink: 0;
  transition: transform .3s;
}
.ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.lg { width: 52px; height: 52px; border-radius: 14px; }
.ic.lg svg { width: 26px; height: 26px; }
.ic.sm { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px; }
.ic.sm svg { width: 18px; height: 18px; stroke-width: 1.7; }
.card:hover .ic, .feat:hover .ic, .ind:hover .ic { transform: rotate(-4deg) scale(1.05); }

/* ===== Typography balance for cards ===== */
.feat h4, .ind h4 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 12px 0 6px;
  line-height: 1.3;
}
.feat p, .ind p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--muted);
}
.feat, .ind { padding: 26px 24px; }

/* Card-2 (Why Japan) icon */
.ic-card {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(217,70,239,.05));
  color: var(--accent);
  border: 1px solid rgba(124,58,237,.18);
  margin-bottom: 14px;
  transition: transform .3s;
}
.ic-card svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-2:hover .ic-card { transform: rotate(-4deg) scale(1.05); }
.card-2 h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.015em; }

/* ===== Capability section icons ===== */
.cap { gap: 10px; }
.cap-ico {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--text);
  transition: color .3s, transform .3s;
}
.cap-ico svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cap:hover .cap-ico { transform: translateY(-2px); }
.cap.active .cap-ico { color: var(--accent); transform: scale(1.08); }
.cap span { font-size: 13px; }

/* Panel big icon — gradient tile with white icon */
#capEmoji {
  width: 168px; height: 168px;
  border-radius: 28px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 50%, #d946ef);
  box-shadow: 0 18px 40px rgba(124,58,237,.35), inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
#capEmoji::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 50%);
}
#capEmoji::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 32px;
  background: conic-gradient(from 0deg, rgba(99,102,241,0), rgba(217,70,239,.45), rgba(99,102,241,0));
  z-index: -1;
  animation: spinSlow 9s linear infinite;
}
#capEmoji svg {
  width: 72px; height: 72px;
  stroke: #fff; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  position: relative; z-index: 1;
}

/* ===== Decorative tiles (anri-style) ===== */
.tile {
  aspect-ratio: 1;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.tile::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 38%, rgba(255,255,255,.28) 50%, transparent 62%);
  animation: tileSweep 5s ease-in-out infinite;
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.13) 1px, transparent 0);
  background-size: 14px 14px;
  opacity: .55;
}
.tile svg {
  width: 64px; height: 64px;
  position: relative; z-index: 2;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.tile .tile-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  top: 12px; right: 12px;
  z-index: 3;
  animation: pulseDot 2s ease-in-out infinite;
}
.card-2:hover .tile { transform: scale(1.05) rotate(-1deg); }
.card-2:hover .tile svg { transform: scale(1.08) rotate(2deg); }

@keyframes tileSweep {
  0% { transform: translateX(-30%) translateY(-30%); }
  100% { transform: translateX(30%) translateY(30%); }
}
@keyframes pulseDot {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 8px rgba(255,255,255,.7); }
}

/* ===== Animated tech elements (anri.vc vibe) ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(139,92,246,.5); }
  100% { box-shadow: 0 0 0 14px rgba(139,92,246,0); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes glowPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes borderShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes archSweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

.anim-float { animation: float 6s ease-in-out infinite; }
.anim-float-slow { animation: float 9s ease-in-out infinite; }
.anim-pulse-ring { animation: pulseRing 2.6s ease-out infinite; }
.anim-spin-slow { animation: spinSlow 22s linear infinite; }
.anim-glow { animation: glowPulse 3.5s ease-in-out infinite; }

/* Architecture highlight layer: animated sweep */
.arch-layer.hl { position: relative; overflow: hidden; }
.arch-layer.hl::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.18), transparent);
  animation: archSweep 5s ease-in-out infinite;
  pointer-events: none;
}

/* Animated gradient border (hero dashboard) */
.border-anim {
  position: relative;
}
.border-anim::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,.5), rgba(217,70,239,.35), rgba(99,102,241,0));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShift 6s linear infinite;
  pointer-events: none;
}

/* Pulsing accent ring for badges */
.pulse-ring { position: relative; }
.pulse-ring::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: inherit;
  border: 1.5px solid rgba(124,58,237,.5);
  animation: pulseRing 2.6s ease-out infinite;
}

/* Floating decorative orbs */
.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: .45;
}

/* ===== Text wrapping & balance ===== */
h1, h2, h3, .display, .h2, .h3 { text-wrap: balance; }
html[lang="ja"] {
  word-break: keep-all;
  overflow-wrap: break-word;
}
html[lang="ja"] body { line-height: 1.75; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 {
  line-height: 1.4;
  letter-spacing: 0;
}
.marquee { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { animation: marquee 34s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Divider ===== */
.rule { border: none; border-top: 1px solid var(--border); }

/* ===== Network canvas ===== */
#network { opacity: .5; }
.dark #network { opacity: .42; }

/* ===== Sections spacing ===== */
section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ===== CTA bar ===== */
.cta-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 20px; border: 1px solid var(--border); background: var(--surface);
  padding: 28px 32px; transition: border-color .3s;
}
.cta-bar:hover { border-color: rgba(124,58,237,.3); }

/* ===== Workflow chain (horizontal) ===== */
.workflow-chain {
  display: flex; align-items: stretch; gap: 4px; flex-wrap: wrap; justify-content: center;
}
.wf-step {
  flex: 1; min-width: 120px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 16px 12px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--bg);
  transition: transform .3s, border-color .3s;
}
.wf-step:hover { transform: translateY(-3px); border-color: rgba(124,58,237,.35); }
.wf-step.grad {
  background: var(--grad); color: #fff; border: none;
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
.wf-step.grad p { color: rgba(255,255,255,.8); }
.wf-ic {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(217,70,239,.08));
  color: var(--accent); border: 1px solid rgba(124,58,237,.18);
}
.wf-step.grad .wf-ic { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.2); }
.wf-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wf-step span { font-size: 13px; font-weight: 700; }
.wf-step p { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.wf-arrow {
  display: flex; align-items: center;
  color: var(--muted); opacity: .4;
  font-size: 20px; font-weight: 300;
  padding: 0 2px;
}

/* ===== Workflow vertical ===== */
.workflow-v { display: flex; flex-direction: column; gap: 0; }
.wf-v-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0;
  border-left: 2px solid var(--border);
  margin-left: 15px;
  padding-left: 24px;
  position: relative;
  transition: border-color .3s;
}
.wf-v-step:hover { border-left-color: var(--accent); }
.wf-v-step:last-child { border-left-color: transparent; }
.wf-v-step.grad { border-left-color: transparent; }
.wf-v-num {
  position: absolute; left: -15px; top: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; font-family: var(--font-mono);
  background: var(--surface); border: 2px solid var(--border);
  color: var(--muted);
  transition: all .3s;
}
.wf-v-step:hover .wf-v-num { border-color: var(--accent); color: var(--accent); }
.wf-v-step.grad .wf-v-num {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.4);
}

/* ===== Story cards (Customer Stories) ===== */
.story-card {
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  padding: 24px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.story-card:hover { transform: translateY(-3px); border-color: rgba(124,58,237,.4); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.dark .story-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.story-ind {
  display: inline-block; font-size: 11px; font-weight: 600; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(124,58,237,.08); color: var(--accent);
  margin-bottom: 12px;
}
.story-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.story-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== Target customer logos ===== */
.tlogo {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all .25s;
}
.tlogo:hover { color: var(--text); border-color: rgba(124,58,237,.4); transform: translateY(-2px); }

/* ===== Industry workflow chain ===== */
.ind-wf {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px; font-family: var(--font-mono); line-height: 1.6;
  color: var(--muted);
}
.ind-wf span { color: var(--accent); font-weight: 600; }

/* ===== Global AI Network Globe ===== */
#globe-section {
  display: flex;
  flex-direction: column;
}
#globe-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Background glows behind globe */
.globe-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -40%);
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}
.globe-glow-2 {
  position: absolute;
  top: 55%; left: 52%;
  transform: translate(-50%, -50%);
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,70,239,0.12) 0%, transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 1;
}

/* Floating labels on the globe */
.globe-label {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 3px 8px 3px 6px;
  border-radius: 20px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  backdrop-filter: blur(6px);
  color: var(--text);
  pointer-events: none;
  transition: opacity 0.3s ease;
  will-change: transform, opacity;
}
.globe-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
}
.globe-label-hq {
  background: rgba(217,70,239,0.15);
  border-color: rgba(217,70,239,0.4);
  font-weight: 700;
}
.globe-label-hq .globe-label-dot {
  background: #d946ef;
}

/* Model chips below globe */
.globe-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.25s ease;
}
.globe-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.globe-chip-hq {
  background: rgba(217,70,239,0.1);
  border-color: rgba(217,70,239,0.35);
  color: #d946ef;
  font-weight: 700;
}

/* ===== Production mobile polish ===== */
.hero-dashboard { width: 100%; }

@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  #nav .mx-auto { padding-left: 10px; padding-right: 10px; }
  #navInner {
    width: 100%;
    height: 58px;
    margin-top: 10px;
    padding: 0 10px;
    border-radius: 14px;
    position: relative;
  }
  #nav.scrolled #navInner {
    height: 58px;
    margin-top: 10px;
  }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-word { font-size: 1.05rem; }
  .nav-actions { display: none !important; }
  #themeToggle { display: none; }
  #burger {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: auto;
    position: static;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    transform: none;
    z-index: 2;
    background: #ffffff !important;
    color: #060608 !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .display {
    font-size: clamp(1.85rem, 8.5vw, 2.15rem);
    letter-spacing: 0;
    line-height: 1.1;
  }
  .h2 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
    letter-spacing: 0;
  }
  .hero-badge {
    max-width: calc(100vw - 40px);
    white-space: normal;
    justify-content: center;
    line-height: 1.35;
  }
  .hero-badge span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .hero-props {
    font-size: 1rem;
    line-height: 1.5;
  }
  .hero-stats {
    gap: 10px 14px;
    font-size: 12px;
    line-height: 1.5;
  }
  .hero-stats .opacity-30 { display: none; }
  .hero-dashboard {
    margin-top: 40px;
    max-width: 100%;
  }
  .hero-dashboard .grid.grid-cols-3 {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 20px 16px;
    min-height: 126px;
  }
  .stat-num { font-size: clamp(1.55rem, 9vw, 2.15rem); }
  .cta-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .ctab {
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  #contactTabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .workflow-chain {
    flex-direction: column;
  }
  .wf-arrow {
    display: none;
  }
  .arch-node {
    min-width: 0;
    width: 100%;
  }
  .arch-node-sm {
    max-width: 100%;
    text-align: center;
  }
  html[lang="ja"] {
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
  }
  html[lang="ja"] .display {
    font-size: clamp(1.72rem, 7.6vw, 2rem);
    line-height: 1.28;
  }
  html[lang="ja"] .h2 {
    font-size: clamp(1.65rem, 7.4vw, 2.18rem);
    line-height: 1.34;
  }
  html[lang="ja"] .hero-props {
    max-width: 100%;
    font-size: .95rem;
    gap: 6px;
  }
  html[lang="ja"] .hero-badge,
  html[lang="ja"] .hero-stats,
  html[lang="ja"] .cta-bar,
  html[lang="ja"] .card,
  html[lang="ja"] .card-2,
  html[lang="ja"] .feat,
  html[lang="ja"] .ind,
  html[lang="ja"] .story-card {
    overflow-wrap: anywhere;
  }
}
