:root {
  --bg: #0a0f1f;
  --bg-alt: #0e1528;
  --card: #121a30;
  --card-2: #16203a;
  --line: #1e2a4a;
  --text: #eef2ff;
  --muted: #9aa5c8;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, #7c5cff, #22d3ee);
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

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

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(10, 15, 30, .7); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { background: rgba(10, 15, 30, .85); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { white-space: nowrap; }
.brand__text span { color: var(--cyan); }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

.nav__cta { margin-left: 8px; }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; background: rgba(10, 15, 30, .95); }
.nav__mobile.open { display: flex; }
.nav__mobile a { padding: 12px 4px; border-top: 1px solid var(--line); color: var(--text); font-weight: 500; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: .95rem; transition: transform .15s, box-shadow .15s, background .2s; border: 1px solid transparent; }
.btn--primary { background: var(--grad); color: #0b1020; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .8); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(34, 211, 238, .7); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(124, 92, 255, .5); }
.btn--block { width: 100%; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 60px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid { position: absolute; inset: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb--a { width: 480px; height: 480px; background: rgba(124, 92, 255, .5); top: -120px; right: -80px; }
.orb--b { width: 380px; height: 380px; background: rgba(34, 211, 238, .35); bottom: -140px; left: -60px; }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }

.pill { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); color: var(--cyan); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }

.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; font-weight: 800; margin: 20px 0 18px; letter-spacing: -.03em; }
.hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 30rem; }

.hero__actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.stat strong span { color: var(--cyan); }
.stat > span:last-child { color: var(--muted); font-size: .8rem; }

.hero__visual { position: relative; }
.hero__visual::before { content: ""; position: absolute; inset: 10%; background: var(--grad); filter: blur(70px); opacity: .35; border-radius: 50%; z-index: 0; }

.card-vis { position: relative; z-index: 1; background: linear-gradient(160deg, var(--card), var(--bg-alt)); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.card-vis__top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 14px; }
.card-vis__tag { color: #4ade80; background: rgba(74, 222, 128, .12); padding: 4px 10px; border-radius: 999px; font-size: .82rem; }
.spark { width: 100%; height: auto; margin: 6px 0 6px; }
.card-vis__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.mini { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.mini span { color: var(--muted); font-size: .74rem; }
.mini strong { font-size: 1rem; }

.card-float { position: absolute; z-index: 2; background: rgba(18, 26, 48, .92); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.card-float--a { top: 8%; left: -18px; }
.card-float--b { bottom: 12%; right: -14px; }

/* ---------- STRIP ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: var(--bg-alt); }
.strip__label { text-align: center; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.strip__logos { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: rgba(154, 165, 200, .6); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }

/* ---------- SECTION ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1.15; margin: 12px 0 14px; }
.section__head p { color: var(--muted); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

/* ---------- CARDS ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .22s, border-color .22s, background .22s; }
.card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .5); background: var(--card-2); }
.card__icon { width: 50px; height: 50px; margin-bottom: 18px; border-radius: 13px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; }

/* service icons — solid glyph on tinted rounded tile */
.svg-inv, .svg-tax, .svg-corp, .svg-risk, .svg-ret, .svg-act {
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}
.svg-inv { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a78bfa'%3E%3Cpath d='M10 2h4v6h8v2h-8v6h8v2h-8v4h-4v-4H2v-2h8v-6H2V8h8z'/%3E%3C/svg%3E"); background-size: 26px; background-color: rgba(124,92,255,.16); }
.svg-tax { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2367e8f9'%3E%3Cpath d='M14.5 8.5 6 21H4l7.5-12.5zM18 2l2.5 2.5L13 12l-4-1.5z'/%3E%3C/svg%3E"); background-size: 26px; background-color: rgba(34,211,238,.16); }
.svg-corp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fbbf24'%3E%3Cpath d='M3 21h18v-2H3zM5 3h10l5 5v12a1 1 0 0 1-1 1H5z'/%3E%3C/svg%3E"); background-size: 26px; background-color: rgba(251,191,36,.16); }
.svg-risk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f472b6'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23f472b6'/%3E%3Ccircle cx='12' cy='12' r='6' fill='none' stroke='%23121a30' stroke-width='2'/%3E%3Cpath d='M12 6v6l4 2.3' fill='none' stroke='%23121a30' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 26px; background-color: rgba(244,114,182,.16); }
.svg-ret { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234ade80'%3E%3Cpath d='M12 2a7 7 0 0 1 7 7c0 2.5 1.3 3.9 3.6 5.2C23 14.5 22.5 16 21.2 16H2.8C1.5 16 1 14.5 1.4 13.2 3.7 11.9 5 10.5 5 9A7 7 0 0 1 12 2z'/%3E%3C/svg%3E"); background-size: 26px; background-color: rgba(74,222,128,.16); }
.svg-act { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b9cf8'%3E%3Crect x='3' y='5' width='7' height='14' rx='1'/%3E%3Crect x='10.5' y='9' width='5.5' height='10' rx='1'/%3E%3Crect x='16.5' y='2' width='4.5' height='17' rx='1'/%3E%3C/svg%3E"); background-size: 26px; background-color: rgba(139,148,248,.16); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.about__gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 150px 150px; gap: 14px; }
.about__img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about__img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__img--1 { grid-column: span 8; }
.about__img--2 { grid-column: span 4; }
.about__img--3 { grid-column: span 12; }
.about__text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; margin: 14px 0 18px; line-height: 1.12; }
.about__text > p { color: var(--muted); }
.about__list { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; }
.about__list li::before { content: "✔"; color: var(--cyan); font-weight: 800; flex: none; background: rgba(34, 211, 238, .1); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: .7rem; margin-top: 3px; }
.about__sig { display: flex; gap: 14px; align-items: center; }
.sig-avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #0b1020; }
.about__sig strong { display: block; }
.about__sig span { color: var(--muted); font-size: .85rem; }

/* ---------- LEGAL ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.legal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, background .2s; }
.legal-card:hover { border-color: rgba(34, 211, 238, .4); background: var(--card-2); }
.legal-card__label { color: var(--cyan); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.legal-card strong { font-size: 1rem; font-weight: 600; }
.legal-note { max-width: 800px; margin: 34px auto 0; color: var(--muted); text-align: center; font-size: .92rem; }

/* ---------- OFFICES ---------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .22s, border-color .22s; }
.office:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, .5); }
.office__pin { font-size: 1.6rem; }
.office h3 { font-size: 1.1rem; }
.office p { color: var(--muted); font-size: .92rem; }
.office a { color: var(--cyan); font-weight: 600; font-size: .95rem; }
.office a:hover { text-decoration: underline; }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; margin: 14px 0 16px; line-height: 1.12; }
.contact__info > p { color: var(--muted); margin-bottom: 26px; }
.contact__line { display: flex; gap: 12px; align-items: center; color: var(--text); font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact__line span { background: rgba(34, 211, 238, .1); border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; flex: none; }

.contact__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.frow label { display: flex; flex-direction: column; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.frow input, .frow textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; color: var(--text); font-size: .95rem; font-family: inherit; font-weight: 500; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.frow input:focus, .frow textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.form-msg { text-align: center; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #4ade80; }
.form-msg.err { color: #f87171; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.brand--foot .brand__mark { width: 38px; height: 38px; }
.footer__brand p { color: var(--muted); margin: 18px 0 22px; font-size: .92rem; max-width: 30ch; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; display: grid; place-items: center; transition: .2s; background: var(--card); }
.social a:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .1); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: var(--muted); transition: fill .2s; }
.social a:hover svg { fill: var(--cyan); }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 { font-size: 1rem; margin-bottom: 4px; }
.footer__col a { color: var(--muted); font-size: .9rem; transition: color .2s; width: fit-content; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer__bottom p { color: var(--muted); font-size: .82rem; }
.footer__disclaim { margin-top: 10px; opacity: .7; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; gap: 44px; }
  .card-vis { max-width: 480px; }
  .hero__visual { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .offices, .legal-grid, .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { padding-top: 48px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .services, .legal-grid, .offices { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .about__gallery { grid-template-rows: 120px 120px; }
  .strip__logos { justify-content: center; }
  .section { padding: 60px 0; }
  .card-float--a { left: -6px; }
  .card-float--b { right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}