/* Being Digital - design system (light + dark sections)
   Modern CSS: scoped theme tokens, view transitions, scroll-driven animations (progressive),
   :has(), clamp() type scale. Font family is set in app/config.php (FONT_FAMILY). */

@view-transition { navigation: auto; }

/* ---------- Theme tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --border: rgba(15, 23, 42, .09);
  --border-2: rgba(15, 23, 42, .17);
  --text: #0b1020;
  --muted: #4a5368;
  --dim: #7b8399;
  --a1: #5b3ff0;
  --a2: #0a8fb0;
  --ok: #16a34a;
  --grad: linear-gradient(100deg, #5b3ff0, #0891b2);
  --grad-text: linear-gradient(100deg, #5b3ff0, #0891b2);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(15, 23, 42, .18);
  --glow-color: rgba(91, 63, 240, .08);
  --input-bg: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --ff-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-head: var(--ff-body);
  --shadow: 0 30px 80px -30px rgba(15, 23, 42, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.dark, .site-footer {
  --bg: #0a0c14;
  --bg-2: #10131d;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .075);
  --border: rgba(255, 255, 255, .1);
  --border-2: rgba(255, 255, 255, .2);
  --text: #f2f4fa;
  --muted: #aab1c3;
  --dim: #767e93;
  --a2: #22d3ee;
  --ok: #b6f36a;
  --grad-text: linear-gradient(100deg, #9b85ff, #22d3ee);
  --card-shadow: none;
  --glow-color: rgba(124, 92, 255, .16);
  --input-bg: rgba(0, 0, 0, .3);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.125rem/1.65 var(--ff-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .lead a { color: var(--a2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-weight: 700; }
.h4 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--a1); color: #fff; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { --wrap: 860px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.w-full { width: 100%; }
.center { text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1.02rem/1 var(--ff-body); padding: 1rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -10px rgba(91, 63, 240, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(8, 145, 178, .6); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--a2); }
.btn-sm { padding: .72rem 1.15rem; font-size: .95rem; }

/* ---------- Header (light) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  view-transition-name: site-header;
}
.nav-row { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; }
.logo { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.logo-invert { filter: brightness(0) invert(1); }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: .2rem; }
.main-nav > ul > li > a { display: block; padding: .6rem .85rem; border-radius: 999px; font-size: 1rem; color: var(--muted); font-weight: 600; transition: color .2s, background .2s; }
.main-nav > ul > li > a:hover, .has-mega:focus-within > a, .has-mega:hover > a { color: var(--text); background: var(--bg-2); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .98rem; font-weight: 600; }
.nav-phone:hover { color: var(--text); }
.menu-btn { display: none; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }

.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255, 255, 255, .98); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .25);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s var(--ease);
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { width: min(100% - 2.5rem, var(--wrap)); margin: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; padding: 2rem 0 2.25rem; }
.mega-head { display: flex; align-items: center; gap: .5rem; font: 700 1.02rem/1.3 var(--ff-head); margin-bottom: .8rem; color: var(--text); }
.mega-head .ico { color: var(--a1); }
.mega-col li a { display: block; padding: .3rem 0; color: var(--muted); font-size: .95rem; line-height: 1.35; transition: color .15s, transform .15s; }
.mega-col li a:hover { color: var(--a1); transform: translateX(3px); }

.mobile-nav { border-top: 1px solid var(--border); max-height: calc(100dvh - 76px); overflow-y: auto; padding: 1rem 0 1.5rem; background: #fff; }
.mobile-nav details { border-bottom: 1px solid var(--border); }
.mobile-nav summary { display: flex; align-items: center; gap: .6rem; padding: .95rem 0; font-weight: 700; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .ico { color: var(--a1); }
.mobile-nav details ul { padding: 0 0 .8rem 1.8rem; }
.mobile-nav details a { display: block; padding: .4rem 0; color: var(--muted); }
.mobile-nav .m-link { display: block; padding: .95rem 0; font-weight: 700; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 1.2rem; width: 100%; }

/* ---------- Hero (dark) ---------- */
.hero { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none; filter: blur(70px); opacity: .7; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 5%; top: 0; background: radial-gradient(circle, rgba(124, 92, 255, .55), transparent 65%); }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; right: 0; top: 5%; background: radial-gradient(circle, rgba(34, 211, 238, .38), transparent 65%); animation-delay: -6s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 40%; top: 35%; background: radial-gradient(circle, rgba(182, 243, 106, .16), transparent 65%); animation-delay: -12s; }
.aurora.soft { opacity: .45; height: 100%; }
@keyframes drift { to { transform: translate3d(6%, 8%, 0) scale(1.15); } }
.grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); font-size: .95rem; color: var(--muted); margin-bottom: 1.6rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #b6f36a; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(182, 243, 106, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(182, 243, 106, 0); } }
.lead { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem); color: var(--muted); max-width: 62ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.6rem; }
.hero-ctas.center { justify-content: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted); font-size: 1rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof .ico { color: var(--ok); }

.hero-visual { position: relative; padding: 0 0 2.5rem 2.5rem; }
.hero-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 9 / 10; background: linear-gradient(135deg, #2a1f6b, #0b4a5c); box-shadow: var(--shadow); }
.hero-photo img, .page-hero-photo img, .card-photo img, .side-photo img { width: 100%; height: 100%; object-fit: cover; }
.glass { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius); }
:root .glass:not(.dark *) { background: var(--surface); box-shadow: var(--card-shadow); backdrop-filter: none; }
.console { position: absolute; left: 0; bottom: 0; width: min(88%, 420px); padding: 1rem; background: rgba(10, 12, 20, .82); box-shadow: var(--shadow); }
.console-bar { display: flex; align-items: center; gap: .4rem; margin-bottom: .8rem; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.console-bar span { margin-left: .6rem; font-size: .8rem; color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prompt { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: 14px; background: rgba(0, 0, 0, .4); border: 1px solid var(--border-2); font-size: 1.02rem; min-height: 52px; }
.prompt .ico { color: var(--a2); }
.caret { width: 2px; height: 1.2em; background: var(--a2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.engines { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.engine { font-size: .8rem; padding: .3rem .65rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); animation: lit 9s calc(var(--i) * 1s) infinite; }
@keyframes lit { 0%, 8% { color: #05060a; background: #22d3ee; border-color: #22d3ee; } 14%, 100% { color: var(--muted); background: var(--surface); border-color: var(--border); } }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; font-size: .92rem; font-weight: 600; border-radius: 999px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; background: rgba(10, 12, 20, .78); }
.float-chip .ico { color: #b6f36a; }
.c1 { top: 6%; right: -10px; }
.c2 { top: 40%; right: -18px; animation-delay: -2s; }
.c3 { top: 18%; left: 10px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { border-bottom: 1px solid var(--border); overflow: hidden; padding: 1.15rem 0; background: var(--bg-2); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scroll 50s linear infinite; }
.marquee-track span { font: 700 1.1rem/1 var(--ff-head); color: var(--dim); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section + .section { padding-top: 0; }
.section.alt, .section.dark, .alt + .section, .dark + .section, .section + .section.alt, .section + .section.dark { padding-top: clamp(3.5rem, 7vw, 6rem); }
.section.alt { background: var(--bg-2); }
.section.dark { overflow: hidden; }
.section.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 0% 0%, rgba(124, 92, 255, .18), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(34, 211, 238, .12), transparent 60%); }
.section.dark > .wrap { position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.15rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font: 700 .85rem/1 var(--ff-body); text-transform: uppercase; letter-spacing: .14em; color: var(--a1); margin-bottom: 1rem; }
.dark .eyebrow { color: var(--a2); }
.eyebrow .ico { width: 1.1rem; height: 1.1rem; }

/* Cards: shared base */
.bento-card, .triad-card, .svc-card, .feature, .market-card, .step, .why-list li, .faq-item {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
}
/* Cursor-follow glow (vars set by JS) */
.glow { position: relative; overflow: hidden; }
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow-color), transparent 45%);
}
.glow:hover::before { opacity: 1; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.bento-card { padding: 1.8rem; border-radius: var(--radius); display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.bento-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-card.span-2 { grid-column: span 2; }
.bento-card p { color: var(--muted); }
.card-photo { margin: -1.8rem -1.8rem 1.4rem; height: 190px; overflow: hidden; background: linear-gradient(135deg, #e9e6ff, #dff6fb); }
.card-photo img { transition: transform .6s var(--ease); }
.bento-card:hover .card-photo img { transform: scale(1.04); }
.span-2 .card-photo { height: 240px; }
.bento-ico, .svc-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(91, 63, 240, .12), rgba(8, 145, 178, .1)); border: 1px solid var(--border); color: var(--a1); margin-bottom: 1.2rem; flex: none; }
.dark .bento-ico, .dark .svc-ico { color: var(--text); background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(34, 211, 238, .15)); }
.card-photo + .bento-ico { margin-top: -3.4rem; position: relative; background: #fff; box-shadow: var(--card-shadow); }
.bento-ico .ico, .svc-ico .ico { width: 24px; height: 24px; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .2rem 0 1.4rem; }
.chips li { font-size: .85rem; padding: .35rem .75rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.dark .chips li { background: rgba(255, 255, 255, .04); }
.chips.big li { font-size: .95rem; padding: .5rem .95rem; display: inline-flex; align-items: center; gap: .35rem; background: var(--surface); }
.chips.areas .ico { color: var(--a2); width: .95em; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1rem; color: var(--a1); }
.dark .more { color: var(--a2); }
.more .ico { transition: transform .25s var(--ease); }
a:hover .more .ico, .bento-card:hover .more .ico { transform: translateX(4px); }
.accent-card { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 1.5rem; background: linear-gradient(120deg, #0f1222, #1b1446 55%, #0b3a48) !important; color: #f2f4fa; border: 0 !important; }
.accent-card p { color: #c4c9d8 !important; }
.accent-card .bento-ico { margin: 0; grid-row: 1 / span 2; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .15); }
.accent-card h3, .accent-card p { margin: 0; }
.accent-card .btn { grid-row: 1 / span 2; grid-column: 3; position: relative; z-index: 2; }

/* Triad */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.triad-card { display: flex; flex-direction: column; padding: 2rem; border-radius: var(--radius); transition: border-color .3s, transform .3s var(--ease); }
.triad-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .45); }
.triad-card p { color: var(--muted); }
.tag { align-self: flex-start; font: 800 2.6rem/1 var(--ff-head); letter-spacing: -.04em; margin-bottom: 1rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Split / why */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split > div:first-child { position: sticky; top: 110px; }
.split > div p { color: var(--muted); }
.side-photo { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9e6ff, #dff6fb); box-shadow: var(--card-shadow); }
.why-list { display: grid; gap: .9rem; }
.why-list li { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: var(--radius-sm); }
.why-list h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.why-list p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.why-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(91, 63, 240, .08); color: var(--a1); flex: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; }
.step { padding: 1.6rem; border-radius: var(--radius); }
.step-n { display: block; font: 800 2.8rem/1 var(--ff-head); color: transparent; -webkit-text-stroke: 1.2px var(--a1); opacity: .6; margin-bottom: 1rem; }
.dark .step-n { -webkit-text-stroke-color: rgba(255, 255, 255, .45); opacity: 1; }
.step h3 { font-size: 1.18rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.quote-card { margin: 0; padding: 2rem; }
.quote-card .q { width: 34px; height: 34px; color: var(--a1); margin-bottom: 1rem; }
.q-text { font-size: 1.2rem; line-height: 1.55; }
.quote-card figcaption b { display: block; font-family: var(--ff-head); }
.quote-card figcaption span { color: var(--muted); font-size: .98rem; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.6rem; margin-top: 2.5rem; }
.logo-row li { font: 700 1.2rem/1 var(--ff-head); color: var(--dim); }

/* Markets */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.market-card { display: flex; flex-direction: column; padding: 1.8rem; border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s; }
.market-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.market-card > .ico { width: 30px; height: 30px; color: var(--a1); margin-bottom: 1rem; }
.market-card p { color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: .7rem; }
.faq-item { border-radius: var(--radius-sm); transition: border-color .25s, background .25s; }
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.faq-ico { transition: transform .3s var(--ease); color: var(--a1); }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 0 1.35rem 1.2rem; color: var(--muted); }
.faq-a p { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: hidden; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* CTA (always dark) */
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px; color: #f2f4fa;
  background: radial-gradient(120% 140% at 0% 0%, rgba(124, 92, 255, .45), transparent 50%), radial-gradient(120% 140% at 100% 100%, rgba(34, 211, 238, .3), transparent 50%), #0d0f1a; }
.cta-card h2 { margin-bottom: .4rem; }
.cta-card p { color: #c4c9d8; margin: 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; flex: none; }
.cta-card .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .25); }

/* Inner page hero (dark, optional photo) */
.page-hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; isolation: isolate; }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.hero-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 7; background: linear-gradient(135deg, #2a1f6b, #0b4a5c); box-shadow: var(--shadow); border: 1px solid var(--border); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .92rem; color: var(--dim); margin-bottom: 1.6rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a:hover { color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.toc a { font-size: .9rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--border-2); }

.prose { font-size: 1.15rem; }
.prose p { color: #2f374b; }
.dark .prose p { color: #cfd4e2; }
.prose h2 { margin-top: .2em; }
.prose h3 { margin-top: 1.6em; }
.with-aside { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.aside-card { position: sticky; top: 100px; padding: 1.8rem; }
.aside-card p { color: var(--muted); font-size: 1.02rem; }
.aside-link { display: flex; align-items: center; gap: .55rem; margin-top: .9rem; color: var(--muted); font-size: 1rem; }
.aside-link:hover { color: var(--text); }
.aside-note { display: flex; align-items: center; gap: .5rem; margin: 1.3rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .95rem !important; }

.check-list { display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list .ico { color: var(--ok); margin-top: .3em; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.svc-card { display: flex; flex-direction: column; padding: 1.7rem; border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.svc-card h3 { font-size: 1.25rem; }
.svc-card p { color: var(--muted); font-size: 1.02rem; }
.mini-list { display: grid; gap: .35rem; margin: 0 0 1.3rem; font-size: .97rem; color: var(--muted); }
.mini-list li { display: flex; gap: .45rem; }
.mini-list .ico { color: var(--ok); margin-top: .25em; width: 1em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 1.8rem; border-radius: var(--radius); }
.feature-n { display: inline-block; font: 700 .85rem/1 var(--ff-body); color: var(--a1); padding: .38rem .62rem; border-radius: 8px; background: rgba(91, 63, 240, .08); margin-bottom: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: 1.03rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.panel { padding: 2rem; }
.cat-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.cat-columns h3 a, .cat-columns h2 a { display: inline-flex; align-items: center; gap: .5rem; }
.cat-columns h3 .ico { color: var(--a1); }
.link-list li a { display: block; padding: .35rem 0; color: var(--muted); font-size: 1rem; }
.link-list li a:hover { color: var(--a1); }
.cat-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.cat-head .bento-ico { margin: 0; }
.cat-head h2 { margin: 0 0 .2rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.cat-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.cat-head .btn { margin-left: auto; }
.cat-block { scroll-margin-top: 90px; }

.facts dl { display: grid; margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.5rem; align-items: start; }
.form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .45rem; font-size: .98rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 1.05rem; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-2);
  border-radius: 12px; padding: .9rem 1rem; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 4px rgba(91, 63, 240, .14); }
.field:has(input:user-invalid) input, .field:has(textarea:user-invalid) textarea { border-color: #e11d48; }
.form .btn { justify-self: start; }
.notice { display: flex; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 14px; margin-bottom: 1.2rem; }
.notice.success { background: rgba(22, 163, 74, .07); border: 1px solid rgba(22, 163, 74, .35); }
.notice.success .ico { color: var(--ok); width: 28px; height: 28px; }
.notice.error { background: rgba(225, 29, 72, .06); border: 1px solid rgba(225, 29, 72, .35); color: #9f1239; }
.notice.error ul { list-style: disc; padding-left: 1.2rem; }
.contact-info { display: grid; gap: .8rem; }
.info-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: 16px; }
.info-card > .ico { width: 24px; height: 24px; color: var(--a1); }
.info-card span { display: block; font-size: .82rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.info-card b { font-weight: 700; word-break: break-word; }

/* Footer (dark) */
.site-footer { padding: 4.5rem 0 2rem; border-top: 1px solid var(--border); }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 2rem; }
.foot-brand p { color: var(--muted); font-size: 1rem; margin: 1rem 0; }
.foot-brand address { font-style: normal; display: grid; gap: .55rem; font-size: 1rem; }
.foot-brand address a, .foot-brand address span { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.foot-brand address a:hover { color: var(--text); }
.foot-col h2 { font-size: 1.02rem; margin-bottom: .9rem; }
.foot-col li a { display: block; padding: .28rem 0; font-size: .95rem; color: var(--muted); line-height: 1.4; }
.foot-col li a:hover { color: var(--text); }
.socials { display: flex; gap: 1rem; }
.socials a { color: var(--a2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .93rem; color: var(--dim); }
.foot-bottom p { margin: 0; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-bottom a:hover { color: var(--text); }

/* Scroll-driven reveal (progressive enhancement, no JS) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hide-md { display: none; }
  .foot-top { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; max-width: 560px; }
  .feature-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .main-nav, .nav-phone span { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .split, .with-aside, .contact-grid, .hero-split { grid-template-columns: 1fr; }
  .split > div:first-child, .aside-card { position: static; }
  .bento, .triad, .markets, .feature-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .hero-visual { max-width: 560px; }
  .page-hero-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  body { font-size: 1.06rem; }
  .logo { height: 34px; }
  .nav-cta .btn-sm { display: none; }
  .bento, .triad, .markets, .feature-grid, .feature-grid.four, .testimonials, .two-col, .field-row { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: auto; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .cat-head { flex-wrap: wrap; }
  .cat-head .btn { margin-left: 0; }
  .facts dl > div { grid-template-columns: 1fr; gap: .2rem; }
  .hero-visual { padding: 0 0 3rem 0; }
  .console { width: 92%; left: 4%; }
  .float-chip.c2 { right: 0; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .accent-card { grid-template-columns: 1fr; gap: .8rem; }
  .accent-card .btn, .accent-card .bento-ico { grid-row: auto; grid-column: auto; justify-self: start; }
}
