/* =========================================================
   RONIN / AI — design tokens
   ========================================================= */
:root {
  --bg:           #08080a;
  --bg-2:         #101013;
  --bg-3:         #15151a;
  --bg-4:         #1a1a20;
  --line:         #222228;
  --line-2:       #2c2c34;
  --text:         #ececee;
  --text-dim:     #9c9ca6;
  --text-mute:    #5f5f6b;

  --accent:       #ff2e3e;
  --accent-2:     #ff5564;
  --accent-glow:  rgba(255, 46, 62, 0.45);
  --accent-soft:  rgba(255, 46, 62, 0.08);

  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;
  --radius-xl:    28px;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-jp:      'Noto Sans JP', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --max:          1280px;
  --gutter:       clamp(20px, 4vw, 56px);

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Light theme — set [data-theme="light"] on <html>
   ========================================================= */
[data-theme="light"] {
  --bg:        #f6f6f8;
  --bg-2:      #ffffff;
  --bg-3:      #f0f0f3;
  --bg-4:      #e8e8ee;
  --line:      #e5e5ec;
  --line-2:    #d4d4dd;
  --text:      #141419;
  --text-dim:  #54545f;
  --text-mute: #8a8a93;

  --accent:       #e51d2d;
  --accent-2:     #ff3a48;
  --accent-glow:  rgba(229, 29, 45, 0.22);
  --accent-soft:  rgba(229, 29, 45, 0.06);
}

/* Header glass — light */
[data-theme="light"] .header { background: rgba(255, 255, 255, 0.72); }
[data-theme="light"] .header.is-scrolled { background: rgba(255, 255, 255, 0.88); }

/* Hero neon: white-glow → solid dark text; red stays (softer glow) */
[data-theme="light"] .neon--white {
  color: #141419;
  text-shadow: none;
  animation: none;
}
[data-theme="light"] .neon--red {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(229,29,45,0.28), 0 0 20px rgba(229,29,45,0.16);
  animation: none;
}
/* Service-page hero neon title → dark on light */
[data-theme="light"] .srv-hero__t1 {
  color: #141419;
  text-shadow: none;
  animation: none;
}
[data-theme="light"] .srv-hero__t2 {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(229,29,45,0.28), 0 0 20px rgba(229,29,45,0.16);
  animation: none;
}
/* Faint JP subtitle → readable on light */
[data-theme="light"] .hero__jp { color: rgba(20, 20, 26, 0.42); }

/* Red-tinted dark cards/sections → light red-tinted */
[data-theme="light"] .service-card--flag,
[data-theme="light"] .system--ai,
[data-theme="light"] .price-card--feat,
[data-theme="light"] .ba__col--after,
[data-theme="light"] .channel-card--feat {
  background: linear-gradient(160deg, #fff0f1, var(--bg-2) 70%);
}
[data-theme="light"] .flow-card:hover {
  background: linear-gradient(180deg, #fff0f1, var(--bg-2));
}
[data-theme="light"] .price-card:has(input:checked) {
  background: linear-gradient(180deg, #ffe6e9, var(--bg-2));
}
/* Final CTA block → light red-tinted, consistent with light theme */
[data-theme="light"] .final-cta__inner {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(229,29,45,0.12), transparent 60%),
    linear-gradient(180deg, #fff0f2, var(--bg-2));
  border-color: rgba(229,29,45,0.18);
}
[data-theme="light"] .final-cta__kanji { color: rgba(229,29,45,0.06); }
[data-theme="light"] .final-cta__form input { background: var(--bg-2); }
[data-theme="light"] .zig-media {
  background: linear-gradient(135deg, #eef0f3, #e4e6ec);
}
[data-theme="light"] .logo__icon {
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
}

/* Subtle white hovers → dark on light */
[data-theme="light"] .dropdown__item:hover,
[data-theme="light"] .nav__item:hover,
[data-theme="light"] .nav__btn:hover { background: rgba(0, 0, 0, 0.045); }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
input { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* =========================================================
   Background layers
   ========================================================= */
.bg-grid,
.bg-vignette,
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 30%, transparent 80%);
}
.bg-vignette {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,46,62,0.22), transparent 60%),
    radial-gradient(circle at 12% 30%, rgba(255,46,62,0.10), transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(255,46,62,0.08), transparent 45%);
}
.bg-noise {
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; padding: clamp(80px, 11vw, 160px) 0; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 16px; z-index: 50;
  margin: 16px var(--gutter) 0;
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(14, 8, 10, 0.7);
  border: 1px solid rgba(255, 46, 62, 0.18);
  box-shadow: 0 12px 40px -12px rgba(255, 46, 62, 0.25);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 10px 22px;
  max-width: 100%;
}
.header.is-scrolled { background: rgba(10, 6, 8, 0.85); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, #1a1a1f, #0a0a0c);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 16px -8px rgba(0, 0, 0, 0.6);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.logo:hover .logo__icon {
  border-color: rgba(255, 46, 62, 0.45);
  transform: scale(1.04);
}
.logo__icon svg { width: 26px; height: 26px; display: block; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.logo__mark {
  font-weight: 900; font-size: 17px; letter-spacing: 0.01em;
  font-family: var(--font-sans);
}
.logo__slash { color: var(--accent); margin: 0 1px; }
.logo__sub {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.22em; color: var(--text-mute);
  text-transform: uppercase;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item, .nav__btn {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color .25s var(--ease), background .25s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__item:hover, .nav__btn:hover { color: var(--text); }
.nav__item--active {
  color: var(--text);
  position: relative;
}
.nav__item--active::after {
  content: ''; position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  width: 14px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.caret { font-size: 9px; opacity: .6; transition: transform .25s var(--ease); }
.nav__item--has-menu:hover .caret,
.nav__item--has-menu.is-open .caret { transform: rotate(180deg); }
.nav__item--has-menu:hover .nav__btn,
.nav__item--has-menu.is-open .nav__btn { color: var(--text); }

.nav__dropdown {
  position: absolute; top: calc(100% + 14px); left: -8px;
  width: 380px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.nav__item--has-menu:hover .nav__dropdown,
.nav__item--has-menu.is-open .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown__item {
  display: grid; grid-template-columns: 32px 1fr 24px; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  transition: background .2s var(--ease);
}
.dropdown__item:hover { background: rgba(255,255,255,0.04); }
.dropdown__item:hover .dropdown__arrow { color: var(--accent); transform: translateX(2px); }
.dropdown__num { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.06em; }
.dropdown__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dropdown__title { font-weight: 600; font-size: 14px; color: var(--text); }
.dropdown__sub { font-size: 12px; color: var(--text-dim); }
.dropdown__arrow { color: var(--text-mute); transition: color .2s var(--ease), transform .2s var(--ease); font-size: 14px; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lang:hover { color: var(--text); border-color: var(--line-2); }

/* Language switcher dropdown */
.lang-wrap { position: relative; }
.lang-wrap .lang { cursor: pointer; }
.lang-wrap .caret { font-size: 10px; transition: transform .2s var(--ease); }
.lang-dd {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 6px; min-width: 160px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 200; box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.lang-dd.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-wrap.is-open .caret { transform: rotate(180deg); }
.lang-dd button {
  width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  transition: background .15s, color .15s;
}
.lang-dd button:hover,
.lang-dd button.is-active { background: var(--bg-3); color: var(--text); }
.lang-dd button.is-active { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 46, 62, 0.15);
  touch-action: manipulation;
  position: relative;
  z-index: 51;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.burger:hover, .burger:active {
  background: var(--bg-3);
  border-color: rgba(255, 46, 62, 0.45);
}
.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  pointer-events: none;
  transition: .25s var(--ease);
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open .burger { border-color: rgba(255, 46, 62, 0.5); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 17px 28px; font-size: 15px; }
.btn__arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn:hover .btn__arrow--down { transform: translateY(3px); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn--ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(255,46,62,0.5); background: rgba(255,46,62,0.05); }

/* =========================================================
   Section heads
   ========================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500; font-family: var(--font-mono);
}
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.section-head__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); display: inline-flex; align-items: center; gap: 10px; }
.section-head__title {
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-head__lede {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  max-width: 620px;
}
.accent { color: var(--accent); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: clamp(60px, 9vw, 130px);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero__kicker {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 40px;
}
.hero__kicker-jp { font-family: var(--font-jp); color: var(--accent); font-size: 14px; letter-spacing: 0; }
.hero__kicker-dot { color: var(--text-mute); }

/* Title — «Автоматизируй бизнес с AI» — two-line neon layout */
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 95px);
  line-height: 0.95;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0 10px;
}

/* Each line of the title is a centered flex row */
.hero__title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 16px);
  width: 100%;
}

/* Neon text effect — used for RONIN (white) and AI (red) */
.neon {
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 900;
}
.neon--white {
  color: #fff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(255, 255, 255, 0.7),
    0 0 22px rgba(255, 46, 62, 0.45),
    0 0 44px rgba(255, 46, 62, 0.35),
    0 0 88px rgba(255, 46, 62, 0.25);
  animation: neon-flicker 6s infinite;
}
.neon--red {
  color: var(--accent-2);
  text-shadow:
    0 0 5px rgba(255, 85, 100, 0.95),
    0 0 14px rgba(255, 46, 62, 0.85),
    0 0 30px rgba(255, 46, 62, 0.65),
    0 0 60px rgba(255, 46, 62, 0.45),
    0 0 110px rgba(255, 46, 62, 0.35);
  animation: neon-flicker 6s 0.3s infinite;
}
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.85; }
}

.hero__jp {
  text-align: center;
  font-family: var(--font-jp);
  font-weight: 500;
  color: rgba(236, 236, 238, 0.45);
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: 0.18em;
  margin-top: 22px;
}

.hero__sub {
  text-align: center;
  margin: 38px auto 0;
  max-width: 720px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-dim);
  line-height: 1.65;
}
.hero__sub-accent { color: var(--text); font-weight: 500; border-bottom: 1px solid rgba(255,46,62,0.4); }

.hero__cta {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 42px;
  flex-wrap: wrap;
}

/* Stats — separate capsules */
.hero__stats {
  margin-top: 78px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
}
.stat-chip {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  position: relative; overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.stat-chip:hover { border-color: rgba(255,46,62,0.3); transform: translateY(-2px); }
.stat-chip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 0% 0%, rgba(255,46,62,0.10), transparent 60%);
  pointer-events: none;
}
.stat-chip__head {
  display: flex; align-items: baseline; gap: 7px;
}
.stat-chip__num {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
}
.stat-chip__unit {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--accent); letter-spacing: 0.04em;
  position: relative; top: -5px;
}
.stat-chip__label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================================================
   Laws
   ========================================================= */
.laws__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.law-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.law-card::after {
  content: ''; position: absolute; inset: -1px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,46,62,0.22), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none; border-radius: inherit;
}
.law-card:hover { transform: translateY(-4px); border-color: rgba(255,46,62,0.35); }
.law-card:hover::after { opacity: 1; }
.law-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.law-card__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.law-card__jp { font-family: var(--font-jp); font-weight: 900; font-size: 44px; line-height: 1; color: var(--text); opacity: 0.85; }
.law-card__title { font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.law-card__text { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

/* =========================================================
   Services — 3 cards asymmetric
   ========================================================= */
.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: end;
}
.services__title { font-size: clamp(40px, 5.6vw, 76px); }
.services__lede {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  justify-self: end;
  text-align: right;
  line-height: 1.6;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
/* 2nd card (booking) spans both rows — fills the right column to match the stacked left column height */
.services__grid > :nth-child(2) { grid-row: span 2; }

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative; overflow: hidden;
  min-height: 290px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,46,62,0.45);
}

/* Flagship card — red border + glow */
.service-card--flag {
  background: linear-gradient(160deg, #1d1015, var(--bg-2) 70%);
  border-color: rgba(255, 46, 62, 0.45);
  box-shadow: 0 12px 40px -16px rgba(255, 46, 62, 0.35);
}
.service-card--flag::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255,46,62,0.18), transparent 60%);
  pointer-events: none; border-radius: inherit;
}

.service-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.service-card__num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase;
}
.service-card__title {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.01em;
  position: relative; z-index: 2;
}
.service-card__text {
  color: var(--text-dim); font-size: 15px; line-height: 1.55;
  position: relative; z-index: 2;
  max-width: 92%;
}
.service-card__foot {
  margin-top: auto; padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 2;
}
.service-card__price {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.service-card--flag .service-card__price { color: var(--accent); }

.service-card__arrow {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px; color: var(--text);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover .service-card__arrow {
  background: var(--accent); color: #fff; border-color: var(--accent);
  transform: scale(1.05);
}

.service-card__kanji {
  position: absolute;
  right: -10px; bottom: -22px;
  font-family: var(--font-jp); font-weight: 900;
  font-size: 92px;
  color: rgba(255,255,255,0.03);
  pointer-events: none; user-select: none;
  letter-spacing: -0.05em;
  transition: color .4s var(--ease);
}
.service-card--flag .service-card__kanji { color: rgba(255,46,62,0.08); }
.service-card:hover .service-card__kanji { color: rgba(255,46,62,0.10); }

/* =========================================================
   Process — zigzag with media
   ========================================================= */
.process__zig {
  display: flex; flex-direction: column; gap: 26px;
  margin-top: 20px;
}
.zig-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.zig-row--rev .zig-card { order: 2; }
.zig-row--rev .zig-media { order: 1; }

.zig-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
  min-height: 320px;
}
.zig-card:hover { border-color: rgba(255,46,62,0.3); }
.zig-card__num {
  font-family: var(--font-sans); font-weight: 900;
  font-size: 62px; letter-spacing: -0.04em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-shadow: 0 0 22px rgba(255,46,62,0.4);
}
.zig-card__title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.zig-card__text { color: var(--text-dim); font-size: 15px; line-height: 1.65; max-width: 92%; }
.zig-card__foot {
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.zig-card__meta { color: var(--text-dim); }
.zig-card__price { color: var(--accent); font-weight: 600; }

.zig-media {
  background: linear-gradient(135deg, #15151a, #0f0d11);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .4s var(--ease);
}
.zig-media:hover { border-color: rgba(255,46,62,0.35); }

/* SVG animation fills the media background */
.zig-anim {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.zig-media__inner {
  position: relative; z-index: 2;
  text-align: center;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 20px 26px;
  border-radius: var(--radius);
}
.zig-media__jp {
  display: block;
  font-family: var(--font-jp); font-weight: 900;
  font-size: 56px; line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255,46,62,0.5);
}
.zig-media__label {
  display: block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================================================
   Step visualizations — animations
   ========================================================= */

/* --- Step 1: Audit (workflow convergence — chaos → coordinated system) --- */
/* Cycle: 8s
   0–2s: nodes scattered, each pulsing independently, no connections
   2–4s: lines draw sequentially between nodes
   4–7s: data packet flows through the assembled workflow, all nodes glow
   7–8s: brief reset/breath before loop */

.audit-node rect {
  fill: rgba(255,46,62,0.12);
  stroke: rgba(255,46,62,0.55);
  stroke-width: 1.2;
  transform-origin: center;
  transform-box: fill-box;
  animation: auditNodeChaos 8s ease-in-out infinite;
}
.audit-node--1 rect { animation-delay: 0s;    }
.audit-node--2 rect { animation-delay: 0.25s; }
.audit-node--3 rect { animation-delay: 0.5s;  }
.audit-node--4 rect { animation-delay: 0.75s; }
.audit-node--5 rect { animation-delay: 1s;    }

@keyframes auditNodeChaos {
  /* Phase 1 (0–25%): scattered — low opacity, slight wobble */
  0%, 22% { opacity: 0.55; stroke-width: 1; filter: drop-shadow(0 0 0 transparent); }
  /* Phase 2 (25–50%): syncing — fill in */
  35%     { opacity: 0.85; stroke-width: 1.2; }
  /* Phase 3 (50–85%): coordinated system — all glow together */
  50%, 80% { opacity: 1; stroke-width: 1.4; filter: drop-shadow(0 0 5px rgba(255,46,62,0.55)); }
  /* Phase 4 (85–100%): reset */
  100%    { opacity: 0.55; stroke-width: 1;   filter: drop-shadow(0 0 0 transparent); }
}

.audit-line {
  stroke: rgba(255,46,62,0.6);
  stroke-width: 1.3;
  fill: none;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: auditLineDraw 8s ease-in-out infinite;
}
.audit-line--1 { animation-delay: 2.0s; }
.audit-line--2 { animation-delay: 2.2s; }
.audit-line--3 { animation-delay: 2.4s; }
.audit-line--4 { animation-delay: 2.6s; }
.audit-line--5 { animation-delay: 2.8s; }

@keyframes auditLineDraw {
  0%, 22%   { stroke-dashoffset: 80; opacity: 0; }
  25%       { opacity: 1; }
  40%, 85%  { stroke-dashoffset: 0;  opacity: 1; }
  92%, 100% { stroke-dashoffset: 80; opacity: 0; }
}

.audit-pkt {
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.9));
  offset-path: path('M 36 90 L 92 60 L 148 90 L 200 90');
  offset-rotate: 0deg;
  animation: auditPktMove 8s ease-in-out infinite;
}
@keyframes auditPktMove {
  0%, 50%   { opacity: 0; offset-distance: 0%; }
  55%       { opacity: 1; }
  85%       { opacity: 1; offset-distance: 100%; }
  90%, 100% { opacity: 0; offset-distance: 100%; }
}

/* --- Step 2: Prototype (drawing UI) --- */
.zig-anim--proto .zig-anim__frame {
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: zigDraw 5s ease-in-out infinite;
}
.zig-anim--proto .zig-anim__hdr   {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: zigDraw 5s ease-in-out infinite;
  animation-delay: 0.6s;
}
.zig-anim--proto .zig-anim__dot   { opacity: 0; animation: zigFadeIn 5s ease-in-out infinite; }
.zig-anim--proto .zig-anim__dot--1 { animation-delay: 0.9s; }
.zig-anim--proto .zig-anim__dot--2 { animation-delay: 1.0s; }
.zig-anim--proto .zig-anim__dot--3 { animation-delay: 1.1s; }

.zig-anim--proto .zig-anim__bar   { animation: zigBarGrow 5s ease-in-out infinite; }
.zig-anim--proto .zig-anim__bar--1 { animation-delay: 1.2s; --w: 70; }
.zig-anim--proto .zig-anim__bar--2 { animation-delay: 1.6s; --w: 48; }
.zig-anim--proto .zig-anim__bar--3 { animation-delay: 2.0s; --w: 82; }

.zig-anim--proto .zig-anim__btn   {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: zigBtnPop 5s ease-in-out infinite;
  animation-delay: 2.5s;
}

@keyframes zigDraw    { 0% { stroke-dashoffset: 380; } 25%, 100% { stroke-dashoffset: 0; } }
@keyframes zigFadeIn  { 0%, 15% { opacity: 0; } 25%, 100% { opacity: 1; } }
@keyframes zigBarGrow {
  0%, 18% { width: 0; opacity: 0; }
  28%     { opacity: 1; }
  35%, 100% { width: calc(var(--w, 80) * 1px); opacity: 1; }
}
@keyframes zigBtnPop  {
  0%, 45% { opacity: 0; transform: scale(0.5); }
  55%     { opacity: 1; transform: scale(1.15); }
  65%, 100% { opacity: 1; transform: scale(1); }
}

/* --- Step 3: Launch (data packets, ring nodes) --- */
.zig-anim__node-ring circle {
  transform-origin: center;
  transform-box: fill-box;
  animation: zigRingPulse 2.4s ease-in-out infinite;
}
.zig-anim__node-ring circle:nth-of-type(2) { animation-delay: 0.8s; }
.zig-anim__node-ring circle:nth-of-type(3) { animation-delay: 1.6s; }

@keyframes zigRingPulse {
  0%, 100% { stroke-width: 1.5; filter: drop-shadow(0 0 0   rgba(255,46,62,0)); }
  50%      { stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(255,46,62,0.7)); }
}

.zig-anim__pkt { filter: drop-shadow(0 0 6px rgba(255,255,255,0.8)); }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .zig-anim *, .zig-anim__pkt { animation: none !important; }
  .zig-anim--proto .zig-anim__frame,
  .zig-anim--proto .zig-anim__hdr { stroke-dashoffset: 0 !important; }
  .zig-anim--proto .zig-anim__bar { width: calc(var(--w, 80) * 1px) !important; }
  .zig-anim--proto .zig-anim__dot,
  .zig-anim--proto .zig-anim__btn { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Cases — slider
   ========================================================= */
.cases__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; margin-bottom: 50px;
}
.slider-controls { display: flex; gap: 10px; }
.slider-btn {
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 18px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.slider-btn:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
  transform: translateY(-2px);
}
.slider-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.cases__slider { position: relative; }
.slider-track {
  display: flex; gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.case-slide {
  flex: 0 0 calc(50% - 11px);
  scroll-snap-align: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.case-slide:hover { border-color: rgba(255,46,62,0.4); transform: translateY(-3px); }

.case-slide__media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255,46,62,0.18), transparent 70%),
    linear-gradient(135deg, #1a1418, #0f0d11);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.case-slide__media::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.case-slide__jp {
  font-family: var(--font-jp); font-weight: 900;
  font-size: clamp(60px, 7vw, 110px);
  color: rgba(255, 46, 62, 0.55);
  text-shadow: 0 0 30px rgba(255,46,62,0.4);
  position: relative; z-index: 1; line-height: 1;
}
.case-slide__label {
  margin-top: 14px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
  position: relative; z-index: 1;
}

.case-slide__body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.case-slide__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  letter-spacing: 0.06em; text-transform: uppercase;
  font-family: var(--font-mono);
}
.case-slide__title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.case-slide__text { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.case-slide__metrics {
  margin-top: auto; padding-top: 18px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-top: 1px solid var(--line);
}
.case-slide__metrics > div {
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.case-slide__metrics b {
  font-size: 24px; font-weight: 800; color: var(--accent);
  letter-spacing: -0.02em; font-feature-settings: 'tnum';
}
.case-slide__metrics span {
  font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.04em;
}

/* Case slide — photo cover variant */
.case-slide__media--has-photo { background: #0f0d11; }
.case-slide__media--has-photo::before { display: none; }
.case-slide__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.case-slide:hover .case-slide__photo { transform: scale(1.04); }
.case-slide__media--has-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.case-slide__label--on-photo {
  position: absolute; left: 18px; bottom: 14px;
  z-index: 2;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  margin: 0;
}

/* "Подробнее" hint over media */
.case-slide__more {
  position: absolute; top: 14px; right: 14px;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.case-slide:hover .case-slide__more { opacity: 1; transform: translateY(0); }

/* =========================================================
   Case modal — detailed view + photo gallery
   ========================================================= */
body.modal-open { overflow: hidden; }

.case-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.case-modal.is-open { display: flex; }
.case-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8,8,10,0.85);
  backdrop-filter: blur(8px);
  animation: caseModalFade .25s var(--ease);
}
@keyframes caseModalFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes caseModalPop  { from { opacity: 0; transform: translateY(20px) scale(.97) } to { opacity: 1; transform: translateY(0) scale(1) } }

.case-modal__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  animation: caseModalPop .35s var(--ease);
}
.case-modal__close {
  position: absolute; top: 16px; right: 16px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.case-modal__close:hover { background: var(--accent); transform: rotate(90deg); }

/* Gallery */
.case-modal__gallery {
  position: relative;
  min-height: 320px;
  background: #0f0d11;
  display: flex; flex-direction: column;
}
.case-modal__stage {
  flex: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255,46,62,0.18), transparent 70%),
    linear-gradient(135deg, #1a1418, #0f0d11);
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  transition: background-image .35s var(--ease);
}
.case-modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.case-modal__nav:hover { background: var(--accent); }
.case-modal__nav--prev { left: 14px; }
.case-modal__nav--next { right: 14px; }
.case-modal__thumbs {
  display: flex; gap: 6px;
  padding: 10px;
  background: rgba(0,0,0,0.4);
  overflow-x: auto;
  scrollbar-width: none;
}
.case-modal__thumbs::-webkit-scrollbar { display: none; }
.case-modal__thumb {
  flex: 0 0 60px; height: 44px;
  border-radius: 6px;
  background-size: cover; background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .2s, border-color .2s;
}
.case-modal__thumb:hover { opacity: 1; }
.case-modal__thumb.is-active { opacity: 1; border-color: var(--accent); }

/* Body */
.case-modal__body {
  padding: 36px 32px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.case-modal__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-modal__title {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.15;
}
.case-modal__text { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }
.case-modal__text p { margin: 0 0 12px; }
.case-modal__text p:last-child { margin-bottom: 0; }
.case-modal__metrics {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.case-modal__metrics > div { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; }
.case-modal__metrics b {
  font-size: 22px; font-weight: 800; color: var(--accent);
  letter-spacing: -0.02em; font-feature-settings: 'tnum';
}
.case-modal__metrics span { font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.04em; }

@media (max-width: 760px) {
  .case-modal { padding: 0; }
  .case-modal__panel {
    grid-template-columns: 1fr;
    max-height: 100vh; height: 100vh;
    border-radius: 0;
    overflow-y: auto;
  }
  .case-modal__gallery { min-height: 240px; }
  .case-modal__body { padding: 24px 20px 32px; }
  .case-modal__title { font-size: 22px; }
}

/* =========================================================
   AI chat widget — floating assistant
   ========================================================= */
.ai-chat { position: fixed; right: 22px; bottom: 22px; z-index: 950; }

.ai-chat__fab {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c8202c);
  border: none;
  box-shadow: 0 14px 40px rgba(255, 46, 62, 0.45), 0 4px 14px rgba(0,0,0,0.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: #fff;
  font-family: var(--font-jp), 'Noto Sans JP', sans-serif;
  font-size: 30px; font-weight: 900;
  transition: transform .25s var(--ease), opacity .25s var(--ease), box-shadow .25s var(--ease);
}
.ai-chat__fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 50px rgba(255, 46, 62, 0.55); }
.ai-chat__fab.is-hidden { opacity: 0; transform: scale(0.5); pointer-events: none; }

/* Quick contact FABs — Telegram + Email above the chat FAB */
.ai-chat__quick {
  position: absolute;
  right: 9px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s, opacity .25s var(--ease);
}
.ai-chat__quick svg { width: 20px; height: 20px; }
.ai-chat__quick:hover {
  transform: translateY(-3px) scale(1.06);
  background: var(--bg-3);
  border-color: rgba(255,46,62,0.5);
}
.ai-chat__quick--tg   { bottom: 76px; }    /* 64 (fab) + 12 gap */
.ai-chat__quick--mail { bottom: 132px; }   /* 76 + 46 + 10 gap */
.ai-chat__quick--tg:hover   { color: #229ED9; border-color: rgba(34,158,217,0.55); }
.ai-chat__quick--mail:hover { color: var(--accent); }

/* Hide quick buttons when chat panel is open */
.ai-chat.is-chat-open .ai-chat__quick {
  opacity: 0; pointer-events: none;
  transform: translateY(8px) scale(0.85);
}

.ai-chat__fab-jp { position: relative; z-index: 1; line-height: 1; }
.ai-chat__fab-pulse {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.6;
  animation: aiChatPulse 1.8s ease-out infinite;
}
@keyframes aiChatPulse {
  0%   { transform: scale(0.95); opacity: 0.6; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.ai-chat__panel {
  position: absolute; bottom: 0; right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 80px);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 6px 20px rgba(0,0,0,0.3);
}
.ai-chat__panel.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.ai-chat__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #15151a, #0f0d11);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.ai-chat__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c8202c);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-jp), 'Noto Sans JP', sans-serif;
  font-size: 20px; font-weight: 900; color: #fff;
}
.ai-chat__id { flex: 1; min-width: 0; }
.ai-chat__name { font-size: 14px; font-weight: 700; color: var(--text); }
.ai-chat__sub {
  font-size: 11.5px; color: var(--text-dim);
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.ai-chat__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46,204,113,0.7);
}
.ai-chat__close {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.ai-chat__close:hover { background: var(--bg-3); color: var(--text); }

.ai-chat__msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-chat__msg { display: flex; gap: 8px; max-width: 100%; }
.ai-chat__msg--user { justify-content: flex-end; }
.ai-chat__msg--user .ai-chat__bubble {
  background: var(--accent); color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.ai-chat__msg--bot .ai-chat__bubble {
  background: var(--bg-3); color: var(--text);
  border-radius: 4px 16px 16px 16px;
}
.ai-chat__bubble {
  padding: 10px 13px;
  font-size: 13.5px; line-height: 1.5;
  max-width: 80%;
  word-wrap: break-word;
}
.ai-chat__msg-jp {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c8202c);
  color: #fff;
  font-family: var(--font-jp), 'Noto Sans JP', sans-serif;
  font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.ai-chat__typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.ai-chat__typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: aiChatTyp 1.2s infinite ease-in-out;
}
.ai-chat__typing i:nth-child(2) { animation-delay: .15s; }
.ai-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiChatTyp {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.ai-chat__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.ai-chat__chips button {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ai-chat__chips button:hover {
  background: rgba(255,46,62,0.1);
  color: var(--text);
  border-color: rgba(255,46,62,0.4);
}

.ai-chat__form {
  display: flex; gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--bg-2);
}
.ai-chat__form input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13.5px; color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.ai-chat__form input:focus { border-color: var(--accent); }
.ai-chat__form button[type="submit"] {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.ai-chat__form button[type="submit"]:hover { background: #ff4856; transform: scale(1.05); }

@media (max-width: 520px) {
  .ai-chat { right: 14px; bottom: 14px; }
  .ai-chat__fab { width: 56px; height: 56px; font-size: 26px; }
  .ai-chat__quick { width: 42px; height: 42px; right: 7px; }
  .ai-chat__quick svg { width: 18px; height: 18px; }
  .ai-chat__quick--tg   { bottom: 66px; }
  .ai-chat__quick--mail { bottom: 116px; }
  .ai-chat__panel {
    width: calc(100vw - 28px);
    height: calc(100vh - 110px);
    max-height: calc(100vh - 110px);
  }
}

.slider-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 8px;
}
.slider-dots__d {
  width: 28px; height: 4px; border-radius: 2px;
  background: var(--line-2);
  cursor: pointer;
  transition: background .25s var(--ease);
}
.slider-dots__d.is-active { background: var(--accent); }

/* =========================================================
   Systems / Philosophy
   ========================================================= */
.systems__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 36px;
}
.system {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: 38px;
  position: relative; overflow: hidden;
  transition: border-color .4s var(--ease);
}
.system:hover { border-color: rgba(255,46,62,0.35); }
.system--ai {
  background: linear-gradient(160deg, #1a0f12, var(--bg-2) 60%);
  border-color: rgba(255,46,62,0.25);
}
.system__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.system__jp { font-family: var(--font-jp); font-weight: 900; font-size: 56px; line-height: 1; color: var(--text); }
.system--ai .system__jp { color: var(--accent); text-shadow: 0 0 26px rgba(255,46,62,0.4); }
.system__label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.system__text { color: var(--text); font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
.system__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.system__list li { font-size: 14.5px; color: var(--text-dim); padding-left: 18px; position: relative; }
.system__list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}
.systems__cta { display: flex; justify-content: center; margin-top: 28px; }

/* =========================================================
   Pricing — radio selection
   ========================================================= */
.pricing__form { display: flex; flex-direction: column; gap: 28px; }
.pricing__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

.price-card {
  cursor: pointer;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px 32px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  display: flex; flex-direction: column;
}
.price-card input { position: absolute; opacity: 0; pointer-events: none; }
.price-card:hover { transform: translateY(-3px); border-color: rgba(255,46,62,0.35); }
.price-card--feat {
  background: linear-gradient(180deg, #1a0e12, var(--bg-2));
  border-color: rgba(255,46,62,0.3);
  box-shadow: 0 16px 50px -20px rgba(255,46,62,0.4);
}
.price-card:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(180deg, #200b10, var(--bg-2));
  box-shadow: 0 18px 50px -16px rgba(255,46,62,0.5);
}
.price-card__check {
  position: absolute; top: 18px; right: 18px;
  width: 22px; height: 22px; border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.price-card__check::after {
  content: ''; width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent); transform: scale(0);
  transition: transform .2s var(--ease);
}
.price-card:has(input:checked) .price-card__check { border-color: var(--accent); }
.price-card:has(input:checked) .price-card__check::after { transform: scale(1); }

.price-card__badge {
  position: absolute; top: 18px; left: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.price-card__head { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 22px; }
.price-card__tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.14em; text-transform: uppercase; }
.price-card__jp { font-family: var(--font-jp); font-weight: 900; font-size: 32px; color: var(--accent); line-height: 1; }
.price-card__price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 2px; }
.price-card__price .cur { font-size: 24px; color: var(--text-dim); font-weight: 600; margin-right: 2px; }
.price-card__price .dash { color: var(--text-mute); margin: 0 4px; font-weight: 500; }
.price-card__price .from { font-size: 18px; color: var(--text-mute); font-weight: 600; align-self: center; margin-right: 4px; }
.price-card__sub { font-size: 13px; color: var(--text-dim); margin-top: 6px; font-family: var(--font-mono); }
.price-card__list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.price-card__list li {
  font-size: 14.5px; color: var(--text); padding-left: 22px; position: relative; line-height: 1.45;
}
.price-card__list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-size: 13px; font-weight: 700;
}

.pricing__contact {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pricing__contact-info {
  display: flex; flex-direction: column; gap: 4px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}
.pricing__contact-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
}
.pricing__contact-plan {
  font-size: 17px; font-weight: 700; color: var(--text);
}
.pricing__contact-inputs {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px;
}
.pricing__contact-inputs input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.pricing__contact-inputs input::placeholder { color: var(--text-mute); }
.pricing__contact-inputs input:focus { border-color: var(--accent); background: rgba(255,46,62,0.05); }

.pricing__sent {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-radius: inherit;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--accent); font-size: 17px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.pricing__form.sent .pricing__sent { opacity: 1; }

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta { padding-bottom: clamp(60px, 8vw, 120px); }
.final-cta__inner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(255,46,62,0.22), transparent 60%),
    linear-gradient(180deg, #14090c, var(--bg-2));
  border: 1px solid rgba(255,46,62,0.28);
  border-radius: var(--radius-xl);
  padding: clamp(50px, 7vw, 90px) clamp(28px, 6vw, 70px);
  text-align: center;
}
.final-cta__kanji {
  position: absolute; right: -40px; bottom: -80px;
  font-family: var(--font-jp); font-weight: 900;
  font-size: 380px; line-height: 1;
  color: rgba(255,46,62,0.05);
  pointer-events: none; user-select: none;
}
.final-cta__title {
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.05; margin: 18px auto 18px; max-width: 800px;
}
.final-cta__text {
  max-width: 580px; margin: 0 auto;
  color: var(--text-dim); font-size: 16px; line-height: 1.55;
}
.final-cta__form {
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  max-width: 740px;
  position: relative;
}
.final-cta__form input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 16px 22px;
  color: var(--text); font-size: 14.5px; outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.final-cta__form input::placeholder { color: var(--text-mute); }
.final-cta__form input:focus { border-color: var(--accent); background: rgba(255,46,62,0.05); }
.form-sent {
  position: absolute; inset: 0;
  background: var(--bg-2);
  border: 1px solid rgba(255,46,62,0.35);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--accent);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.final-cta__form.sent .form-sent { opacity: 1; }

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(255,46,62,0.05), transparent);
  padding: 22px 0;
  position: relative;
  z-index: 1;
}
.marquee--hero {
  margin-top: clamp(80px, 11vw, 130px);
}
.marquee__track {
  display: flex; gap: 28px; align-items: center; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__item {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 600;
  color: var(--text);
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item--jp { font-family: var(--font-jp); font-weight: 700; color: var(--accent); letter-spacing: 0; text-transform: none; }
.marquee__dot { color: var(--text-mute); font-size: 22px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--line); margin-top: 0; position: relative; z-index: 1; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__tagline { color: var(--text-dim); font-family: var(--font-jp); letter-spacing: 0.15em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__col span { color: var(--text-dim); font-size: 14.5px; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__title { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.footer__bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-mute);
}
.footer__bottom-jp { font-family: var(--font-jp); letter-spacing: 0.2em; color: var(--accent); }

/* =========================================================
   SERVICE PAGES — shared
   ========================================================= */

/* --- Service Hero --- */
.srv-hero {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 7vw, 100px);
  position: relative;
}
.srv-hero__crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 42px;
}
.srv-hero__crumb a { color: var(--text-dim); transition: color .2s var(--ease); }
.srv-hero__crumb a:hover { color: var(--accent); }
.srv-hero__crumb span:not(:last-child) { margin: 0 8px; color: var(--text-mute); }

.srv-hero__title {
  display: flex; flex-direction: column;
  font-weight: 900;
  font-size: clamp(38px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.srv-hero__t1, .srv-hero__t2 {
  display: block;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.srv-hero__t1 {
  color: #ffffff;
  font-weight: 800;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(255, 255, 255, 0.55),
    0 0 24px rgba(255, 46, 62, 0.35),
    0 0 48px rgba(255, 46, 62, 0.25);
  animation: neon-flicker 6s infinite;
}
.srv-hero__t2 {
  color: var(--accent-2);
  text-shadow:
    0 0 5px rgba(255, 85, 100, 0.9),
    0 0 14px rgba(255, 46, 62, 0.75),
    0 0 28px rgba(255, 46, 62, 0.55),
    0 0 56px rgba(255, 46, 62, 0.4);
  animation: neon-flicker 6s 0.3s infinite;
}
.srv-hero__jp {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 30px;
}
.srv-hero__jp span {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.7em;
  margin-left: 6px;
  vertical-align: 4px;
}
.srv-hero__lede {
  max-width: 680px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 50px;
}
.srv-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* --- Before/After --- */
.ba { padding: clamp(70px, 9vw, 140px) 0; }
.ba__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.ba__head { max-width: 460px; margin-bottom: 0; display: flex; flex-direction: column; gap: 18px; }
.ba__lede { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; }
.ba__cols {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  max-width: none;
}
.ba__col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.ba__col--after {
  background: linear-gradient(180deg, #1e0e12, var(--bg-2));
  border-color: rgba(255, 46, 62, 0.35);
}
.ba__col-head {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.ba__col--after .ba__col-head { color: var(--accent); }
.ba__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ba__list li {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.ba__list li::before {
  content: '—';
  position: absolute; left: 0; top: 0;
  color: var(--text-mute);
}
.ba__col--after .ba__list li { color: var(--text); }
.ba__col--after .ba__list li::before { color: var(--accent); }

/* --- 12 Flows --- */
.flows { padding: clamp(70px, 9vw, 140px) 0; }
.flows__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 50px;
}
.flows__lede {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.6;
}
.flows__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.flow-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
  min-height: 175px;
}
.flow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,46,62,0.4);
  background: linear-gradient(180deg, #19101317, var(--bg-2));
}
.flow-card__jp {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255,46,62,0.35);
}
.flow-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}
.flow-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: auto;
}

/* --- Hub diagram --- */
.hub { padding: clamp(70px, 9vw, 140px) 0; }
.hub__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.hub__lede {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.6;
}
.hub__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.hub__diagram {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
}
.hub__svg { width: 100%; height: auto; max-width: 540px; }
.hub__svg .hub__core {
  animation: hubPulse 3.5s ease-in-out infinite;
  transform-origin: 260px 180px;
}
@keyframes hubPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255,46,62,0.5)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 36px rgba(255,46,62,0.7)); }
}
.hub__svg .hub__lines path {
  animation: hubFlow 2.5s linear infinite;
}
@keyframes hubFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -32; }
}
.hub__svg .hub__node {
  animation: hubNode 4s ease-in-out infinite;
  transform-origin: center;
}
.hub__svg .hub__node:nth-child(1) { animation-delay: 0s;    }
.hub__svg .hub__node:nth-child(2) { animation-delay: 0.4s; }
.hub__svg .hub__node:nth-child(3) { animation-delay: 0.8s; }
.hub__svg .hub__node:nth-child(4) { animation-delay: 1.2s; }
.hub__svg .hub__node:nth-child(5) { animation-delay: 1.6s; }
.hub__svg .hub__node:nth-child(6) { animation-delay: 2.0s; }
@keyframes hubNode {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
/* Travelling particle along each line */
.hub__svg .hub__spark {
  fill: var(--accent);
  animation: sparkTravel 2.5s linear infinite;
}
.hub__svg .hub__spark.s1 { animation-delay: 0s; }
.hub__svg .hub__spark.s2 { animation-delay: 0.4s; }
.hub__svg .hub__spark.s3 { animation-delay: 0.8s; }
.hub__svg .hub__spark.s4 { animation-delay: 1.2s; }
.hub__svg .hub__spark.s5 { animation-delay: 1.6s; }
.hub__svg .hub__spark.s6 { animation-delay: 2.0s; }
@keyframes sparkTravel {
  from { offset-distance: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { offset-distance: 100%; opacity: 0; }
}
.hub__list {
  padding: 30px 0;
  display: flex; flex-direction: column; gap: 18px;
}
.hub__list-title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.hub__list-lede { color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.hub__items { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.hub__items li {
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.hub__items li b { color: var(--text); font-weight: 600; margin-right: 4px; }

/* --- Calendar mockup --- */
.calsteps { padding: clamp(70px, 9vw, 140px) 0; }
.calsteps__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.calmock {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
.calmock__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.calmock__title { font-weight: 700; font-size: 18px; }
.calmock__month {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.calmock__week,
.calmock__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.calmock__week {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.calmock__week span { text-align: center; padding: 4px 0; }
.calmock__cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background .2s var(--ease);
}
.calmock__cell:hover { background: rgba(255, 255, 255, 0.05); }
.calmock__cell--mute { color: transparent; pointer-events: none; }
.calmock__cell--sel {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 20px -6px rgba(255,46,62,0.5);
}
.calmock__slots {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.calmock__slot {
  text-align: center;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.calmock__slot:hover { border-color: var(--accent); color: var(--accent); }
.calmock__slot--sel {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.calmock__slot--off { color: var(--text-mute); text-decoration: line-through; pointer-events: none; }

.calsteps__body { display: flex; flex-direction: column; gap: 22px; }
.calsteps__lede { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; }
.calsteps__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.calsteps__list li {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.calsteps__list li::before {
  content: '—';
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 600;
}
.calsteps__list li b { color: var(--text); font-weight: 600; }

/* --- Targets (who it's for) --- */
.targets { padding: clamp(70px, 9vw, 140px) 0; }
.targets__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 50px;
}
.targets__lede {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.6;
}
.targets__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.target-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
  min-height: 240px;
}
.target-card:hover { transform: translateY(-3px); border-color: rgba(255,46,62,0.35); }
.target-card__jp {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255,46,62,0.3);
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,46,62,0.08);
  border-radius: 12px;
}
.target-card__title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.target-card p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.target-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* --- Channels (3 cards) --- */
.channels { padding: clamp(70px, 9vw, 140px) 0; }
.channels__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 50px;
}
.channels__lede {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.6;
}
.channels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.channel-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
  min-height: 360px;
}
.channel-card:hover { transform: translateY(-3px); border-color: rgba(255,46,62,0.4); }
.channel-card--feat {
  background: linear-gradient(180deg, #1a0e12, var(--bg-2));
  border-color: rgba(255,46,62,0.3);
}
.channel-card__top {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.channel-card__title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.channel-card p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.channel-card__list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.channel-card__list li {
  font-size: 13px; color: var(--text);
  padding-left: 18px; position: relative;
}
.channel-card__list li::before {
  content: '—';
  position: absolute; left: 0; top: 0;
  color: var(--accent);
}
.channel-card__kanji {
  position: absolute;
  right: -8px; bottom: -22px;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 96px;
  color: rgba(255,255,255,0.025);
  pointer-events: none; user-select: none;
  line-height: 1;
}

/* --- Phone mockup + steps --- */
.phone-sect { padding: clamp(70px, 9vw, 140px) 0; }
.phone-sect__inner {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 64px;
  align-items: center;
  justify-content: center;
}
.phone {
  width: 264px;
  height: 528px;
  background: #0a0a0c;
  border: 2px solid #2c2c34;
  border-radius: 40px;
  padding: 12px;
  position: relative;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  margin: 0 auto;
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #14080b, #08080a 60%);
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.phone__top {
  padding: 40px 16px 12px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.phone__avatar {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-jp);
  font-weight: 900;
  color: #fff;
  font-size: 18px;
}
.phone__name { font-weight: 600; font-size: 14px; color: #ececee; }
.phone__status { font-size: 11px; color: #8a8a92; display: flex; align-items: center; gap: 5px; }
.phone__dot { width: 6px; height: 6px; border-radius: 999px; background: #2ecc71; }
.phone__chat {
  flex: 1; overflow: hidden;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 7px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.phone__chat::-webkit-scrollbar { display: none; }
/* Animated reveal — bubbles hidden until JS plays the conversation */
.phone__chat.is-anim .bubble {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.phone__chat.is-anim .bubble.is-shown {
  opacity: 1;
  transform: none;
}
/* Typing indicator */
.bubble--typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 14px;
}
.bubble--typing span {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--text-mute);
  animation: bubble-typing 1.2s infinite ease-in-out;
}
.bubble--typing span:nth-child(2) { animation-delay: .18s; }
.bubble--typing span:nth-child(3) { animation-delay: .36s; }
@keyframes bubble-typing {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}
.bubble {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 88%;
}
.bubble--in {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  align-self: flex-start;
  color: #ececee;
  border-bottom-left-radius: 4px;
}
.bubble--out {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  align-self: flex-end;
  color: #fff;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.bubble--ok { border-color: rgba(255,46,62,0.35); background: rgba(255,46,62,0.08); }
.bubble__btns {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.bubble__btns button {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 11px;
  color: var(--text);
}
.bubble__btns--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.phone-sect__body { display: flex; flex-direction: column; gap: 22px; }
.phone-sect__lede { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; max-width: 540px; }
.phone-sect__list { list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 580px; }
.phone-sect__list li {
  font-size: 14.5px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}
.phone-sect__list li::before {
  content: '—';
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 600;
}

/* --- 4 Roles --- */
.roles { padding: clamp(70px, 9vw, 140px) 0; }
.roles__inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.roles__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  max-width: 480px;
}
.roles__lede {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.65;
}
.roles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.role-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
  min-height: 240px;
}
.role-card:hover { transform: translateY(-3px); border-color: rgba(255,46,62,0.4); }
.role-card__jp {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 38px;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 22px rgba(255,46,62,0.4);
}
.role-card__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.role-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }

/* --- Anatomy (4 layers) --- */
.anatomy { padding: clamp(70px, 9vw, 140px) 0; }
.anatomy__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 920px;
  margin: 0 auto;
}
.anatomy__body { display: flex; flex-direction: column; gap: 22px; }
.anatomy__lede { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; max-width: 720px; }
.anatomy__layers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.layer {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  transition: border-color .3s var(--ease);
}
.layer:hover { border-color: rgba(255,46,62,0.35); }
.layer__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(255, 46, 62, 0.10);
  border: 1px solid rgba(255, 46, 62, 0.3);
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  line-height: 1;
  -webkit-text-stroke: 0;
}
.layer h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.layer p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }

/* --- Economy stats --- */
.econ { padding: clamp(70px, 9vw, 140px) 0; }
.econ__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 50px;
}
.econ__lede {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.6;
}
.econ__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.econ-chip {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.econ-chip:hover { border-color: rgba(255,46,62,0.4); transform: translateY(-2px); }
.econ-chip__num {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(255,46,62,0.3);
}
.econ-chip__num span {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  margin-left: 4px;
  font-weight: 500;
}
.econ-chip__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.55;
}

/* --- Accent dim (used in CTA titles) --- */
.accent-dim {
  color: rgba(255, 46, 62, 0.45);
  font-weight: 800;
}

/* --- Final CTA sub button --- */
.final-cta__sub {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav {
    position: fixed;
    inset: 90px var(--gutter) auto var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .35s var(--ease), opacity .25s var(--ease);
    z-index: 49;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav.is-mobile-open { transform: translateY(0); opacity: 1; }
  .nav__item, .nav__btn { padding: 14px 12px; border-radius: 10px; justify-content: space-between; }
  .nav__item--has-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .nav__item--active::after { display: none; }
  .nav__dropdown {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease), margin-top .35s var(--ease);
  }
  .nav__item--has-menu.is-open .nav__dropdown {
    max-height: 600px;
    margin-top: 4px;
  }
  .nav__dropdown .dropdown__item {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav__dropdown .dropdown__num { display: none; }
  .nav__dropdown .dropdown__sub { display: none; }
  .nav__dropdown .dropdown__title { font-size: 14px; }
  .nav__dropdown .dropdown__arrow { font-size: 12px; }
  .nav__cta {
    margin-top: 8px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: #fff !important;
    text-align: center;
    justify-content: center;
    font-weight: 600;
  }
  .nav__cta:hover { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
  .burger { display: flex; }

  .services__head { grid-template-columns: 1fr; gap: 20px; }
  .services__lede { justify-self: start; text-align: left; }
  .services__grid { grid-template-columns: 1fr; }
  .services__grid > :nth-child(2) { grid-row: auto; }
  .laws__grid { grid-template-columns: 1fr 1fr; }

  .zig-row, .zig-row--rev { grid-template-columns: 1fr; }
  .zig-row--rev .zig-card { order: 1; }
  .zig-row--rev .zig-media { order: 2; }
  .zig-card, .zig-media { min-height: 240px; }

  .case-slide { flex-basis: calc(100% - 0px); }

  .pricing__grid { grid-template-columns: 1fr; }
  .pricing__contact { grid-template-columns: 1fr; gap: 18px; }
  .pricing__contact-info { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 18px; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }

  /* Service pages — tablet */
  .srv-hero__stats { grid-template-columns: 1fr 1fr 1fr; }
  .ba__inner { grid-template-columns: 1fr; gap: 36px; align-items: flex-start; }
  .ba__head { max-width: none; }
  .ba__cols { max-width: none; }
  .roles__inner { grid-template-columns: 1fr; gap: 36px; align-items: flex-start; }
  .roles__head { max-width: none; }
  .flows__grid { grid-template-columns: repeat(3, 1fr); }
  .flows__head,
  .hub__head,
  .targets__head,
  .channels__head,
  .roles__head,
  .econ__head {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: flex-start;
  }
  .flows__lede,
  .hub__lede,
  .targets__lede,
  .channels__lede,
  .roles__lede,
  .econ__lede {
    text-align: left;
  }
  .hub__layout { grid-template-columns: 1fr; }
  .calsteps__inner { grid-template-columns: 1fr; }
  .targets__grid { grid-template-columns: 1fr 1fr; }
  .channels__grid { grid-template-columns: 1fr; }
  .phone-sect__inner { grid-template-columns: 1fr; gap: 40px; }
  .roles__grid { grid-template-columns: 1fr 1fr; }
  .econ__grid { grid-template-columns: 1fr 1fr; }
  .anatomy__layers { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .header { margin: 10px 10px 0; }
  .header__inner { padding: 8px 8px 8px 12px; gap: 8px; }
  .nav { top: 70px; max-height: calc(100dvh - 80px); }
  .header__actions { gap: 8px; }
  .header__actions .btn--primary { display: none; }
  .lang { display: none; }
  .logo__sub { display: none; }
  .logo { gap: 8px; }
  .logo__icon { width: 36px; height: 36px; }
  .logo__icon svg { width: 22px; height: 22px; }
  .logo__mark { font-size: 14px; }

  .hero { padding-top: 40px; }
  .hero__title {
    font-size: clamp(24px, 7.5vw, 48px);
    row-gap: 2px;
  }
  .hero__title-line { gap: clamp(3px, 0.8vw, 6px); }
  .hero__jp { font-size: clamp(15px, 4.5vw, 22px); letter-spacing: 0.12em; }
  .hero__sub { font-size: 14.5px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stats { grid-template-columns: 1fr; }
  .stat-chip { padding: 18px 20px; }
  .stat-chip__num { font-size: clamp(24px, 7vw, 34px); }

  /* Section heads on mobile */
  .section-head__title { font-size: clamp(26px, 7vw, 40px); }

  /* Service cards mobile */
  .service-card { padding: 24px; min-height: auto; }
  .service-card__title { font-size: 20px; }
  .service-card__text { font-size: 14px; }

  /* Process cards / Laws / Roles / Channels */
  .law-card,
  .zig-card,
  .role-card,
  .channel-card,
  .target-card { padding: 24px; }
  .zig-card__num { font-size: 48px; }
  .zig-card__title { font-size: 22px; }
  .zig-media { min-height: 200px; }

  /* Cases slider — single slide visible */
  .case-slide__body { padding: 22px; }
  .case-slide__title { font-size: 22px; }
  .case-slide__metrics { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .case-slide__metrics b { font-size: 20px; }

  /* Pricing cards on mobile */
  .price-card { padding: 28px 22px 24px; }
  .price-card__price { font-size: 36px; }
  .price-card__price .cur { font-size: 20px; }

  /* Pricing contact mobile */
  .pricing__contact { padding: 22px; }

  /* Final CTA */
  .final-cta__inner { padding: clamp(40px, 8vw, 70px) clamp(22px, 5vw, 50px); }
  .final-cta__title { font-size: clamp(26px, 7vw, 40px); }

  /* Marquee mobile */
  .marquee__item { font-size: 14px; letter-spacing: 0.08em; }
  .marquee__item--jp { font-size: 18px; }
  .marquee__dot { font-size: 16px; }
  .marquee__track { gap: 18px; }

  /* Forms mobile */
  .final-cta__form input,
  .pricing__contact-inputs input { font-size: 14px; padding: 14px 18px; }

  /* Pricing form on mobile — make stack */
  .pricing__contact-inputs .btn { padding: 14px 18px; }

  .services__grid,
  .laws__grid,
  .systems__grid { grid-template-columns: 1fr; }

  .cases__head { flex-direction: column; align-items: flex-start; }
  .slider-controls { width: 100%; justify-content: flex-end; }

  .pricing__contact-inputs { grid-template-columns: 1fr; }
  .final-cta__form { grid-template-columns: 1fr; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }

  /* Service pages — mobile */
  .srv-hero__title {
    font-size: clamp(30px, 9vw, 56px);
    letter-spacing: -0.02em;
  }
  .srv-hero__jp { font-size: clamp(15px, 4vw, 20px); }
  .srv-hero__lede { font-size: 14.5px; }
  .srv-hero__stats { grid-template-columns: 1fr; }
  .ba__cols { grid-template-columns: 1fr; }
  .flows__grid { grid-template-columns: 1fr 1fr; }
  .targets__grid { grid-template-columns: 1fr; }
  .roles__grid { grid-template-columns: 1fr; }
  .econ__grid { grid-template-columns: 1fr; }
  .phone { width: 248px; height: 496px; }
}

/* Extra-narrow viewports (small phones 320–480px) */
@media (max-width: 480px) {
  .srv-hero__title {
    font-size: clamp(26px, 8.5vw, 40px);
    letter-spacing: -0.015em;
  }

  /* Logo — icon only on tiny screens */
  .logo__txt { display: none; }

  /* Audit button → icon-only circle */
  .header__actions .btn--primary {
    width: 38px; height: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    overflow: hidden;
    font-size: 0;
    gap: 0;
  }
  .header__actions .btn--primary .btn__arrow {
    font-size: 14px;
    display: inline-block;
  }

  /* Burger stays at full 44×44 touch target on tiny screens */
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee__track { animation: none; }
  .neon { animation: none; }
}
