/* ==========================================================================
   MASIVIQ — site styles
   ========================================================================== */

:root {
  --bg-dark: #050816;
  --bg-dark-2: #0a1030;
  --surface-dark: rgba(255, 255, 255, .045);
  --line-dark: rgba(255, 255, 255, .1);
  --text-dark: #e8ecf8;
  --muted-dark: #9aa6c4;

  --paper: #f5f7fc;
  --white: #ffffff;
  --ink: #0b1430;
  --muted: #56627f;
  --line: #e2e7f2;

  --red: #ff2d4b;
  --red-deep: #e3092b;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --navy: #062b78;

  --grad: linear-gradient(100deg, #ff2d4b 0%, #d946ef 40%, #6366f1 70%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 45, 75, .14), rgba(99, 102, 241, .14) 55%, rgba(34, 211, 238, .14));

  --font-body: "Inter", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(11, 20, 48, .25);
  --shadow-lg: 0 40px 80px -30px rgba(11, 20, 48, .35);
  --header-h: 76px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:lang(ja) body { line-height: 1.85; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0 !important; word-break: auto-phrase; line-break: strict; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
ul { margin: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.grad-text { color: #000; }
.section-dark .grad-text,
.hero .grad-text {
  color: #fff;
}

/* Brand: always "MASIVIQ" — MASIV in blue, IQ in red. */
.brand-name {
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .01em;
  color: #021c60;
}
.brand-name span { color: #e3092b; }
/* Lighter blue on dark backgrounds so MASIV stays readable */
.hero .brand-name,
.section-dark .brand-name,
.faq-cta .brand-name { color: #8ab4ff; }
.hero .brand-name span,
.section-dark .brand-name span,
.faq-cta .brand-name span { color: #ff5c74; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--red) 0%, #e0247a 55%, var(--violet) 100%);
  box-shadow: 0 10px 30px -10px rgba(255, 45, 75, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255, 45, 75, .8); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 24px -16px rgba(11, 20, 48, .35);
}
.nav { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.brand .brand-logo { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: #33405f; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(11, 20, 48, .06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { min-height: 42px; padding: 8px 18px; font-size: 14px; }

.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang-toggle svg { width: 16px; height: 16px; opacity: .85; }
.lang-toggle .chev { width: 12px; height: 12px; transition: transform .2s; }
.lang.open .lang-toggle .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--ink);
  font-size: 14px; cursor: pointer; text-align: left;
}
.lang-menu button:hover { background: rgba(11, 20, 48, .06); }
.lang-menu button[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.lang-menu button[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.lang-menu small { color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg-dark); color: var(--text-dark);
  padding: calc(var(--header-h) + 72px) 0 0;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-a { width: 560px; height: 560px; background: #ff2d4b; top: -220px; left: -160px; opacity: .28; animation: drift 18s ease-in-out infinite alternate; }
.glow-b { width: 620px; height: 620px; background: #6366f1; top: 10%; right: -200px; opacity: .35; animation: drift 22s ease-in-out infinite alternate-reverse; }
.glow-c { width: 480px; height: 480px; background: #22d3ee; bottom: -260px; left: 35%; opacity: .2; animation: drift 26s ease-in-out infinite alternate; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.1); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .05);
  font-size: 13px; font-weight: 500; color: var(--text-dark);
  backdrop-filter: blur(10px);
}
.pill b {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--grad); white-space: nowrap;
}
.hero h1 {
  font-size: clamp(44px, 6.2vw, 86px);
  letter-spacing: -.045em; font-weight: 700; line-height: 1.02;
  margin: 26px 0 24px; color: #fff;
}
:lang(ja) .hero h1 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.25; }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted-dark); max-width: 600px; margin-bottom: 36px; }
.hero .lead .brand-name { font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tracks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; color: var(--muted-dark); font-size: 13px; }
.hero-tracks span:first-child { margin-right: 4px; }
.hero-tracks a {
  text-decoration: none; color: #fff; font-weight: 600; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04);
  transition: border-color .2s, background .2s;
}
.hero-tracks a:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }

/* Hero visual — AI core */
.core { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-inline: auto; }
.core svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.core .ring-spin { transform-origin: 250px 250px; animation: spin 40s linear infinite; }
.core .ring-spin.rev { animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.core-center {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1b2456, #0a1030 70%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 10px rgba(99, 102, 241, .07), 0 0 80px 10px rgba(255, 45, 75, .35), inset 0 0 40px rgba(99, 102, 241, .35);
}
.core-center::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12); animation: pulse 3.2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.core-center img { width: 62%; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }
.core-label {
  position: absolute; left: 50%; top: calc(50% + 19%); transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); white-space: nowrap;
}
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px;
  background: rgba(14, 20, 48, .72); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  animation: float 6s ease-in-out infinite;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--cyan)); box-shadow: 0 0 12px var(--c, var(--cyan)); }
.chip:nth-child(odd) { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.chip-1 { top: 6%; left: 18%; --c: #ff2d4b; }
.chip-2 { top: 16%; right: 0; --c: #a78bfa; }
.chip-3 { top: 47%; right: -4%; --c: #22d3ee; }
.chip-4 { bottom: 12%; right: 10%; --c: #34d399; }
.chip-5 { bottom: 6%; left: 8%; --c: #fbbf24; }
.chip-6 { top: 40%; left: -6%; --c: #60a5fa; }

/* Stats */
.stats {
  margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 28px 24px 34px; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.stat > span { font-size: 14px; color: var(--muted-dark); }

/* Marquee */
.marquee {
  position: relative; overflow: hidden; background: var(--bg-dark);
  border-block: 1px solid var(--line-dark); padding: 18px 0; color: var(--text-dark);
}
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-dark), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-dark), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee-group span { display: inline-flex; align-items: center; gap: 40px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.marquee-group span::after { content: "✦"; font-size: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-white { background: var(--white); }
.section-dark { background: var(--bg-dark); color: var(--text-dark); overflow: hidden; isolation: isolate; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red-deep);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-dark .eyebrow { color: #ff7a8e; }

.section-head { display: grid; grid-template-columns: 1fr .8fr; gap: 48px; align-items: end; margin-bottom: 60px; }
.section-head.center { display: block; text-align: center; max-width: 780px; margin-inline: auto; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -.035em; margin: 0; }
:lang(ja) .section-head h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.35; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head.center p { margin-top: 20px; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: var(--muted-dark); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3daea; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--indigo); border: 1px solid rgba(99, 102, 241, .18);
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Solutions ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.solution { padding: 34px 30px 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.solution::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); opacity: 0; transition: opacity .3s;
}
.solution:hover::before, .solution.featured::before { opacity: 1; }
.solution.featured { background: linear-gradient(180deg, #ffffff, #f7f6ff); }
.solution .kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 24px 0 8px; }
.solution h3 { font-size: 34px; letter-spacing: -.03em; margin-bottom: 12px; }
.solution .promise { font-weight: 600; font-size: 17px; color: var(--ink); margin-bottom: 12px; }
.solution > p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 24px; }
.tags span { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: #33405f; }

.solution .journey-box { margin-top: auto; }
.journey-box { padding: 20px; margin: 0 0 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.journey { list-style: none; padding: 0; margin: 0; counter-reset: j; }
.journey-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.journey li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; position: relative; padding-bottom: 14px; counter-increment: j; }
.journey li:last-child { padding-bottom: 0; }
.journey li::before {
  content: counter(j); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--grad);
}
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 2px; width: 1px; background: #cfd6e6; }
.journey strong { display: block; font-size: 14px; line-height: 1.3; }
.journey span { display: block; font-size: 13px; color: var(--muted); }

details.more { border-top: 1px solid var(--line); }
.person details.more { margin-top: auto; }
details.more summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 0; font-weight: 600; font-size: 14px;
}
details.more summary::-webkit-details-marker { display: none; }
.plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; position: relative; transition: transform .25s, background .25s; }
.plus::before, .plus::after { content: ""; position: absolute; width: 10px; height: 1.5px; background: currentColor; border-radius: 2px; }
.plus::after { transform: rotate(90deg); transition: transform .25s; }
details[open] > summary .plus { background: var(--ink); color: #fff; border-color: var(--ink); }
details[open] > summary .plus::after { transform: rotate(0); }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { position: relative; padding-left: 28px; margin: 10px 0; font-size: 14.5px; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-soft) ; border: 1px solid rgba(99, 102, 241, .35);
}
.checklist li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 3.5px; border-left: 1.5px solid var(--indigo); border-bottom: 1.5px solid var(--indigo); transform: rotate(-45deg); }

/* ---------- BOTTS ---------- */
.botts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.botts::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 58px; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--violet), var(--cyan)); opacity: .35; z-index: 0;
}
.botts-step { position: relative; z-index: 1; padding: 26px 22px 26px; }
.botts-letter {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--font-display); font-size: 30px; font-weight: 700; color: #fff;
  background: var(--grad); background-size: 500% 100%;
  box-shadow: 0 14px 30px -12px rgba(139, 92, 246, .7);
}
.botts-step:nth-child(1) .botts-letter { background-position: 0% 0; }
.botts-step:nth-child(2) .botts-letter { background-position: 25% 0; }
.botts-step:nth-child(3) .botts-letter { background-position: 50% 0; }
.botts-step:nth-child(4) .botts-letter { background-position: 75% 0; }
.botts-step:nth-child(5) .botts-letter { background-position: 100% 0; }
.botts-step small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.botts-step h3 { font-size: 22px; margin: 4px 0 10px; }
.botts-step p { font-size: 14px; color: var(--muted); margin: 0; }
.botts-caption { margin-top: 28px; text-align: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--muted); }

/* ---------- Domains ---------- */
.domains { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; margin-top: 110px; }
.domains h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; margin-bottom: 16px; }
.domains > div > p { color: var(--muted); font-size: 17px; }
.domains blockquote {
  margin: 28px 0 0; padding: 20px 24px; border-left: 3px solid; border-image: var(--grad) 1;
  background: var(--white); font-size: 16px; font-weight: 500; color: var(--ink); border-radius: 0 12px 12px 0;
}
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.domain {
  padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; min-height: 140px;
  font-weight: 600; font-size: 15px; line-height: 1.35;
}
.domain svg { width: 40px; height: 40px; padding: 8px; border-radius: 11px; background: var(--d-bg); color: var(--d-fg); }

/* ---------- Foundry ---------- */
.section-dark .bg-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.section-dark .bg-art .glow-a { top: 10%; left: auto; right: -200px; }
.section-dark .bg-art .glow-b { top: auto; bottom: -260px; left: -200px; right: auto; opacity: .25; }

.foundry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; position: relative; padding-right: 64px; }
.stack-layer {
  position: relative; padding: 18px 22px; border-radius: 16px;
  background: var(--surface-dark); border: 1px solid var(--line-dark);
  transition: transform .3s, border-color .3s, background .3s;
}
.stack-layer:hover { transform: translateX(6px); border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); }
.stack-layer small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.stack-layer strong { display: block; font-family: var(--font-display); font-size: 19px; color: #fff; margin: 2px 0; }
.stack-layer p { font-size: 14px; color: var(--muted-dark); margin: 0; }
.stack-layer.accent {
  background: linear-gradient(120deg, rgba(255, 45, 75, .22), rgba(99, 102, 241, .22));
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 20px 50px -20px rgba(255, 45, 75, .5);
}
.stack-layer.accent small { color: #ffb3bf; }
.stack-rail {
  position: absolute; right: 0; top: 0; bottom: 0; width: 48px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .18));
  border: 1px solid rgba(255, 255, 255, .14);
  display: grid; place-items: center;
}
.stack-rail span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #cfe9ff; white-space: nowrap;
}
:lang(ja) .stack-rail span { transform: none; letter-spacing: .2em; }
.stack-note { font-size: 14px; color: var(--muted-dark); margin: 16px 0 0; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { padding: 24px; border-radius: 18px; background: var(--surface-dark); border: 1px solid var(--line-dark); transition: border-color .3s, background .3s; }
.feature:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); }
.feature .icon-tile { width: 44px; height: 44px; border-radius: 12px; color: #c4b5fd; border-color: rgba(255, 255, 255, .12); margin-bottom: 18px; }
.feature .icon-tile svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted-dark); margin: 0; }
.foundry-intro > h3 { font-size: clamp(26px, 2.6vw, 34px); color: #fff; letter-spacing: -.02em; margin-bottom: 28px; }

.arch {
  margin: 72px 0 0; padding: 14px; border-radius: 24px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 100px -40px rgba(99, 102, 241, .6);
}
.arch a { display: block; border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; }
.arch img { width: 100%; height: auto; transition: transform .6s ease; }
.arch a:hover img { transform: scale(1.015); }
.arch figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 8px 2px; font-size: 13px; color: var(--muted-dark); }

.ownership {
  margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 28px 32px; border-radius: 20px; background: var(--surface-dark); border: 1px solid var(--line-dark);
}
.ownership h3 { font-size: 20px; color: #fff; margin: 0 0 4px; }
.ownership p { margin: 0; color: var(--muted-dark); font-size: 15px; }

/* Security */
.security { margin-top: 120px; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.standards {
  margin-top: 28px; padding: 28px 32px; border-radius: 20px;
  background: var(--grad-soft); border: 1px solid rgba(255, 255, 255, .12);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center;
}
.standards h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.standards p { color: var(--muted-dark); font-size: 14.5px; margin: 0; }
.standard-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.standard-tags a, .standard-tags span {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  background: rgba(5, 8, 22, .55); border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: border-color .2s;
}
.standard-tags a:hover { border-color: rgba(255, 255, 255, .5); }
.standards .fine { grid-column: 1 / -1; font-size: 13px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Ways to engage ---------- */
.engage-list { display: flex; flex-direction: column; gap: 14px; }
.engage { border-radius: 20px; background: var(--white); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.engage:hover, .engage[open] { box-shadow: var(--shadow); border-color: #d3daea; }
.engage > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 72px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 30px;
}
.engage > summary::-webkit-details-marker { display: none; }
.engage-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.engage-num span { color: #021c60; }
.engage h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; margin: 0 0 4px; }
.engage .promise { margin: 0; color: var(--muted); font-size: 15px; }
.engage .plus { width: 40px; height: 40px; }
.engage-body { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 24px; padding: 0 30px 30px; }
.engage-body > p { grid-column: 2; color: var(--muted); font-size: 15.5px; margin: 0; }
.engage-body > div { grid-column: 3; }
.engage-body h4 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-family: var(--font-body); }

/* ---------- Team ---------- */
/* 3 per row, centred at the previous 4-per-row card width so photo size is unchanged */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 894px; margin-inline: auto;
}
.person { overflow: hidden; display: flex; flex-direction: column; }
.person-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #dde3ef; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.person:hover .person-photo img { transform: scale(1.04); }
.person-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, rgba(5, 8, 22, .45), transparent); }
.country {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(5, 8, 22, .55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .2);
}
.person-body { padding: 20px 20px 4px; display: flex; flex-direction: column; flex: 1; }
.person h3 { font-size: 19px; margin: 0 0 2px; letter-spacing: -.01em; }
.role { font-size: 14px; color: var(--red-deep); font-weight: 600; margin: 0 0 6px; }
.person details.more p { font-size: 14px; color: var(--muted); }
.person .quote { font-style: italic; color: var(--ink); border-left: 2px solid var(--violet); padding-left: 12px; }

/* Advisory board — same card / photo sizing as team leaders */
.advisory { margin-top: 110px; }
.advisory .person-body { padding-bottom: 22px; }
.advisory .role {
  color: #44506a;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.035em; margin-bottom: 16px; }
.faq-aside > p { color: var(--muted); font-size: 17px; }
.faq-cta { margin-top: 28px; padding: 26px; border-radius: 20px; background: var(--bg-dark); color: var(--text-dark); position: relative; overflow: hidden; }
.faq-cta::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--violet); filter: blur(70px); opacity: .45; right: -80px; top: -100px; }
.faq-cta strong { display: block; font-family: var(--font-display); font-size: 20px; color: #fff; margin-bottom: 6px; position: relative; }
.faq-cta p { font-size: 14px; color: var(--muted-dark); position: relative; }
.faq-cta .btn { position: relative; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--indigo); }
.faq-list details p { color: var(--muted); padding: 0 56px 24px 0; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.contact-intro h2 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.04em; color: #fff; margin-bottom: 20px; }
:lang(ja) .contact-intro h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; }
.contact-intro > p { color: var(--muted-dark); font-size: 17px; max-width: 520px; }
.contact-items { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-items li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; }
.contact-items .icon-tile { width: 46px; height: 46px; border-radius: 12px; color: #c4b5fd; border-color: rgba(255, 255, 255, .12); }
.contact-items .icon-tile svg { width: 20px; height: 20px; }
.contact-items small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.contact-items a, .contact-items address { color: #fff; font-style: normal; text-decoration: none; font-size: 15.5px; }
.contact-items a:hover { text-decoration: underline; text-underline-offset: 4px; }
.map {
  margin-top: 28px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-dark); position: relative; height: 240px;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.map-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--muted-dark); }

.form-card {
  padding: 36px; border-radius: 26px; position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 100px -40px rgba(99, 102, 241, .55);
  backdrop-filter: blur(16px);
}
.form-card h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--muted-dark); font-size: 14.5px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: #d6dcf0; }
.field label em { color: #ff7a8e; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(5, 8, 22, .6); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239aa6c4' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field select option { background: #0c1128; color: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6c7799; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(139, 92, 246, .22); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff5c74; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 70px; margin: 4px 0 18px; }
.form-note { font-size: 12.5px; color: var(--muted-dark); margin: 14px 0 0; text-align: center; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); color: #a7f3d0; }
.form-status.err { background: rgba(255, 45, 75, .12); border: 1px solid rgba(255, 45, 75, .4); color: #fecdd3; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.loading .spinner { display: inline-block; }

/* ---------- Footer ---------- */
.footer { background: #03050f; color: var(--muted-dark); padding: 64px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.footer .brand .brand-logo { height: 48px; }
.footer .brand-on-light {
  padding: 10px 14px; border-radius: 12px; background: #fff;
}
.footer-top p { max-width: 420px; margin: 18px 0 0; font-size: 15px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; justify-self: end; }
.footer-links a { color: var(--text-dark); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom a { color: var(--text-dark); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 9px; font-size: 13.5px; }
}

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 16px 24px 28px; background: rgba(255, 255, 255, .98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { font-size: 16px; padding: 12px 14px; }
  .nav-actions { margin-left: auto; }
  .menu-open .header { background: #fff; }
  .hero-grid { grid-template-columns: 1fr; }
  .core { width: min(460px, 90%); margin-top: 24px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .solutions-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .botts { grid-template-columns: repeat(2, 1fr); }
  .botts::before { display: none; }
  .botts-step:last-child { grid-column: 1 / -1; }
  .domains, .foundry-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-aside { position: static; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .standards { grid-template-columns: 1fr; }
  .engage-body { grid-template-columns: 1fr; }
  .engage-body > p, .engage-body > div { grid-column: auto; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .wrap { width: calc(100% - 36px); }
  .brand .brand-logo { height: 34px; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: calc(var(--header-h) + 44px); }
  .chip { font-size: 11.5px; padding: 7px 11px; }
  .chip-3 { right: -2%; } .chip-6 { left: -2%; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stat { padding: 22px 16px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .botts { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list, .security-grid { grid-template-columns: 1fr; }
  .stack { padding-right: 56px; }
  .ownership { grid-template-columns: 1fr; padding: 24px; }
  .engage > summary { grid-template-columns: 1fr auto; padding: 22px; gap: 14px; }
  .engage-num { grid-column: 1 / -1; font-size: 28px; }
  .engage-body { padding: 0 22px 24px; }
  .team-grid, .advisor-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .person-body { padding: 16px 14px 2px; }
  .person h3 { font-size: 16px; }
  .role { font-size: 13px; }
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .faq-list details p { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
  .domains, .security, .advisory { margin-top: 80px; }
}

@media (max-width: 440px) {
  .chip-3, .chip-6 { display: none; }
  .team-grid, .advisor-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
