/* ============ B2site — Design tokens ============ */
:root {
  --bg: #070A14;
  --bg-2: #0B1020;
  --surface: #0F1528;
  --card: #131A2E;
  --line: rgba(232, 236, 255, 0.08);
  --line-2: rgba(232, 236, 255, 0.16);
  --text: #E8ECFF;
  --muted: #8C95B8;
  --dim: #5C6488;
  --accent: #5B7CFF;
  --accent-2: #8FA6FF;
  --accent-soft: rgba(91, 124, 255, 0.14);
  --success: #4ADE9B;

  --font-head: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }

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

/* ============ Typography ============ */
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.05; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 20px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(74,222,155,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(74,222,155,0); } }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #A9B9FF 60%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, border-color .3s;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(91,124,255,.7); }
.btn--primary:hover { transform: translateY(-2px); background: #6B89FF; box-shadow: 0 16px 40px -12px rgba(91,124,255,.9); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; }
.arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 10, 20, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.logo img { display: block; height: 46px; width: auto; transition: transform .5s var(--ease); }
.logo:hover img { transform: scale(1.04); }
.logo--footer img { height: 56px; }
.nav__links { display: flex; align-items: center; gap: 36px; font-size: 15px; color: var(--muted); }
.nav__links a:not(.btn) { position: relative; transition: color .3s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links .btn { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 160px 0 0; overflow: hidden; }
.hero__glow {
  position: absolute; width: 900px; height: 900px; top: -400px; right: -200px;
  background: radial-gradient(circle, rgba(91,124,255,.35) 0%, rgba(91,124,255,0) 65%);
  filter: blur(20px); pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: .6; pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(40px, 5.4vw, 74px); font-weight: 700; margin-bottom: 28px; }
.hero__sub { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 40px; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--muted); }
.check { color: var(--success); margin-right: 6px; }

/* Hero visual */
.hero__visual { position: relative; height: 480px; }
.browser {
  position: absolute; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(91,124,255,.08);
}
.browser--main { inset: 20px 0 20px 20px; transform: perspective(1400px) rotateY(-10deg) rotateX(4deg); animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 50% { translate: 0 -12px; } }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser__bar span { margin-left: 14px; font-size: 12px; color: var(--dim); background: rgba(255,255,255,.04); padding: 4px 14px; border-radius: 999px; }
.mock-hero { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.mock-nav { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.mock-nav b { width: 60px; height: 10px; border-radius: 4px; background: var(--accent); }
.mock-nav em { width: 40px; height: 6px; border-radius: 4px; background: var(--line-2); }
.mock-nav em:first-of-type { margin-left: auto; }
.mock-title { height: 26px; width: 85%; border-radius: 6px; background: linear-gradient(90deg, #E8ECFF 0%, #8FA6FF 100%); opacity: .9; }
.mock-title--short { width: 55%; }
.mock-line { height: 8px; width: 70%; border-radius: 4px; background: var(--line-2); margin-top: 6px; }
.mock-btns { display: flex; gap: 10px; margin: 8px 0 18px; }
.mock-btns b { width: 110px; height: 32px; border-radius: 999px; background: var(--accent); }
.mock-btns em { width: 90px; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards div { height: 90px; border-radius: 10px; background: linear-gradient(160deg, rgba(91,124,255,.22), rgba(91,124,255,.03)); border: 1px solid var(--line); }

.float-card {
  position: absolute; background: rgba(19,26,46,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.float-card--a { left: -30px; bottom: 30px; width: 210px; animation: floatY 6s ease-in-out infinite reverse; }
.float-card--b { right: -16px; top: 0; display: flex; align-items: center; gap: 12px; animation: floatY 8s ease-in-out infinite; }
.float-card__label { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.float-card__value { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 600; margin: 4px 0 8px; }
.float-card__value b { color: var(--success); }
.float-card__score {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--success);
  border: 3px solid var(--success); border-right-color: rgba(74,222,155,.2);
}
.spark { width: 100%; height: 36px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 2.4s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Marquee */
.marquee { margin-top: 110px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-size: 22px; font-weight: 500; color: var(--dim); padding: 0 32px; white-space: nowrap; display: flex; align-items: center; gap: 64px; }
.marquee__track span::after { content: "✦"; font-size: 12px; color: var(--accent); margin-left: 32px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 140px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 72px; max-width: 720px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 700; }
.section__lead { font-size: 18px; color: var(--muted); max-width: 440px; font-weight: 300; }

/* Statement */
.statement { padding: 120px 0; }
.statement__text { font-family: var(--font-head); font-size: clamp(28px, 3.6vw, 48px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; max-width: 1000px; }
.statement__text .hl { color: var(--accent); }
.statement__text .muted { color: var(--dim); }

/* Services */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.services .service { grid-column: span 2; }
.services .service:nth-child(n+4) { grid-column: span 3; }
.service {
  position: relative; padding: 36px 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, background .4s;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(91,124,255,.16), transparent 60%);
  pointer-events: none;
}
.service:hover { transform: translateY(-6px); border-color: var(--line-2); }
.service:hover::before { opacity: 1; }
.service--featured { border-color: rgba(91,124,255,.45); background: linear-gradient(180deg, rgba(91,124,255,.1), var(--surface) 60%); }
.badge { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 500; color: var(--accent-2); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.service__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); font-size: 22px; margin-bottom: 28px; }
.service h3 { font-size: 23px; font-weight: 600; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.service ul { display: grid; gap: 8px; font-size: 14px; color: var(--text); border-top: 1px solid var(--line); padding-top: 20px; }
.service li::before { content: "→"; color: var(--accent); margin-right: 10px; }

/* Works */
.works { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.work { grid-column: span 2; display: block; }
.work--wide { grid-column: span 3; }
.work__preview {
  position: relative; height: 380px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); display: flex; align-items: center; padding: 44px;
  transition: transform .6s var(--ease);
}
.work__preview::after { content: ""; position: absolute; inset: 0; background: rgba(7,10,20,0); transition: background .4s; }
.work:hover .work__preview { transform: scale(.985); }
.wp-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; transition: transform .6s var(--ease); }
.work:hover .wp-inner { transform: translateY(-6px); }
.wp-kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.wp-title { font-family: var(--font-head); font-size: 48px; line-height: 1; font-weight: 600; }
.wp-title.serif { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; }
.wp-title.bold { font-weight: 800; letter-spacing: -0.03em; }
.wp-btn { align-self: flex-start; font-size: 13px; padding: 10px 20px; border-radius: 999px; }

.work__preview--food { background: radial-gradient(circle at 80% 20%, #6B3A1E 0%, #2A150B 55%, #170B05 100%); color: #F5E6D3; }
.work__preview--food .wp-btn { background: #D9A35F; color: #1E0F06; }
.work__preview--med { background: linear-gradient(160deg, #EAF6F5 0%, #CFE9E6 100%); color: #0D3B3A; }
.work__preview--med .wp-title { font-size: 40px; font-weight: 600; }
.work__preview--med .wp-btn { background: #0D7C74; color: #fff; }
.work__preview--gym { background: linear-gradient(160deg, #141414 0%, #050505 100%); color: #fff; }
.work__preview--gym .wp-title { color: #D4FF3A; font-size: 58px; }
.work__preview--gym .wp-btn { background: #D4FF3A; color: #0A0A0A; font-weight: 600; }
.work__preview--shop { background: linear-gradient(120deg, #F1E7DD 0%, #E2D0C0 100%); color: #3A2A20; }
.work__preview--shop .wp-btn { border: 1px solid #3A2A20; }

.work__meta { display: flex; justify-content: space-between; align-items: center; padding: 20px 4px 0; gap: 16px; }
.work__meta h3 { font-size: 20px; font-weight: 600; }
.work__meta p { font-size: 14px; color: var(--muted); }
.work__tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 32px 28px 36px; border-top: 1px solid var(--line-2); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--accent); transition: width 1.2s var(--ease); }
.step.is-visible::before { width: 100%; }
.step__num { display: block; font-family: var(--font-head); font-size: 15px; color: var(--accent); margin-bottom: 40px; }
.step h3 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 15px; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why__text .section__title { margin-bottom: 24px; }
.why__text .section__lead { margin-bottom: 36px; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why__item { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: border-color .3s, transform .4s var(--ease); }
.why__item:hover { border-color: rgba(91,124,255,.45); transform: translateY(-4px); }
.why__item b { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.why__item span { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s; }
.faq__item[open] { border-color: rgba(91,124,255,.4); }
.faq__item summary { list-style: none; cursor: pointer; padding: 24px 28px; font-family: var(--font-head); font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 28px 26px; color: var(--muted); }

/* Contact */
.contact { overflow: hidden; }
.contact__glow { position: absolute; width: 800px; height: 800px; left: -300px; bottom: -400px; background: radial-gradient(circle, rgba(91,124,255,.25), transparent 65%); pointer-events: none; }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.contact__text .section__title { margin-bottom: 24px; }
.contact__direct { display: grid; gap: 14px; margin-top: 44px; }
.contact__link { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); max-width: 380px; }
.contact__link:hover { border-color: var(--accent); transform: translateX(6px); }
.contact__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-size: 20px; }
.contact__link b { display: block; font-weight: 500; }
.contact__link small { color: var(--muted); font-size: 13px; }

.form { position: relative; padding: 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 20px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px; font-weight: 400;
  transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form input.is-invalid { border-color: #FF6B7A; }
.form__chips { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__chips legend { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.form__chips label { display: inline-block; cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text); transition: all .25s; }
.form__chips label:hover span { border-color: var(--accent-2); }
.form__chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.form__chips input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.form__error { color: #FF8A96; font-size: 14px; min-height: 0; }
.form__error:empty { display: none; }
.form__note { text-align: center; font-size: 13px; color: var(--dim); }
.form__success { position: absolute; inset: 0; border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 40px; }
.form__success[hidden] { display: none; }
.form__success-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,155,.14); color: var(--success); font-size: 28px; margin-bottom: 10px; }
.form__success h3 { font-size: 28px; }
.form__success p { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 48px; }
.footer__claim { color: var(--muted); margin-top: 12px; max-width: 320px; font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; color: var(--muted); font-size: 15px; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer__bottom a:hover { color: var(--text); }

/* ============ Caselle (home) ============ */
.explore { padding-top: 120px; }
.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "srv srv lav lav"
    "srv srv met faq"
    "cta cta cta cta";
  gap: 20px;
}
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 32px; border-radius: var(--radius-lg); min-height: 260px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
  isolation: isolate;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(91,124,255,.2), transparent 60%);
}
.tile:hover, .tile:focus-visible { transform: translateY(-6px); border-color: rgba(91,124,255,.5); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(91,124,255,.15); outline: none; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile__kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); font-weight: 500; }
.tile__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.1; }
.tile__text { color: var(--muted); font-size: 15px; max-width: 420px; }
.tile__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text); }
.tile__arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--ease), background .3s, border-color .3s; }
.tile:hover .tile__arrow { transform: translateX(4px) rotate(-45deg); background: var(--accent); border-color: var(--accent); color: #fff; }

.tile--servizi { grid-area: srv; min-height: 540px; background: linear-gradient(160deg, rgba(91,124,255,.16), var(--surface) 55%); }
.tile--servizi .tile__title { font-size: clamp(32px, 3.6vw, 48px); }
.tile--servizi .tile__chips { margin-top: auto; }
.tile--servizi .tile__go { margin-top: 22px; }
.tile--servizi::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 150px; right: -150px; top: 46%;
  border-radius: 50%; border: 2px solid transparent;
  background: linear-gradient(90deg, rgba(91,124,255,0), #7DE3FF 50%, rgba(139,92,255,.3)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  transform: rotate(-24deg); opacity: .45; transition: transform .8s var(--ease), opacity .5s;
}
.tile--servizi:hover::after { transform: rotate(-18deg) scale(1.05); opacity: .8; }
.tile__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tile__chips li { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); background: rgba(7,10,20,.4); transition: border-color .3s; }
.tile:hover .tile__chips li { border-color: rgba(91,124,255,.35); }

.tile--lavori { grid-area: lav; }
.tile__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.th { height: 92px; border-radius: 12px; display: flex; align-items: flex-end; padding: 10px; overflow: hidden; transition: transform .5s var(--ease); border: 1px solid var(--line); }
.th em { font-style: normal; font-size: 12px; font-weight: 600; font-family: var(--font-head); white-space: nowrap; }
.th em.serif { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 14px; }
.th--food { background: radial-gradient(circle at 80% 20%, #6B3A1E, #170B05); color: #F5E6D3; }
.th--med { background: linear-gradient(160deg, #EAF6F5, #CFE9E6); color: #0D3B3A; }
.th--gym { background: #0A0A0A; color: #D4FF3A; }
.th--shop { background: linear-gradient(120deg, #F1E7DD, #E2D0C0); color: #3A2A20; }
.tile:hover .th:nth-child(1) { transform: translateY(-6px) rotate(-2deg); }
.tile:hover .th:nth-child(2) { transform: translateY(-10px); transition-delay: .04s; }
.tile:hover .th:nth-child(3) { transform: translateY(-6px) rotate(2deg); transition-delay: .08s; }
.tile:hover .th:nth-child(4) { transform: translateY(-10px); transition-delay: .12s; }

.tile--metodo { grid-area: met; }
.tile__steps { display: grid; gap: 8px; margin-top: 4px; }
.tile__steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); transition: color .3s, transform .4s var(--ease); }
.tile__steps b { font-family: var(--font-head); font-size: 12px; color: var(--accent); width: 22px; }
.tile:hover .tile__steps li { color: var(--text); }
.tile:hover .tile__steps li:nth-child(2) { transform: translateX(4px); }
.tile:hover .tile__steps li:nth-child(3) { transform: translateX(8px); }
.tile:hover .tile__steps li:nth-child(4) { transform: translateX(12px); }

.tile--faq { grid-area: faq; }
.tile__q { position: absolute; right: -6px; top: -30px; font-family: var(--font-head); font-weight: 800; font-size: 200px; line-height: 1; color: rgba(91,124,255,.1); z-index: -1; transition: transform .6s var(--ease), color .4s; }
.tile:hover .tile__q { transform: rotate(12deg) scale(1.05); color: rgba(91,124,255,.18); }

.tile--cta {
  grid-area: cta; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px;
  padding: 44px 48px; border-color: rgba(91,124,255,.5);
  background: linear-gradient(120deg, #2C47D9 0%, var(--accent) 45%, #8B5CFF 100%);
}
.tile--cta .tile__kicker { color: rgba(255,255,255,.8); }
.tile--cta .tile__title { color: #fff; font-size: clamp(28px, 3.2vw, 42px); }
.tile--cta .tile__text { color: rgba(255,255,255,.85); max-width: 560px; }
.tile--cta::before { background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 60%); }
.tile__cta-text { display: flex; flex-direction: column; gap: 12px; }
.tile__btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; padding: 16px 18px 16px 28px; border-radius: 999px; background: #fff; color: #0B1020; font-weight: 600; font-size: 16px; }
.tile__btn .tile__arrow { background: #0B1020; color: #fff; border: 0; }
.tile--cta:hover .tile__arrow { background: #0B1020; }

/* ============ Pagine interne ============ */
.page > .section:first-child, .page > .contact:first-child { padding-top: 170px; }
.page h1.section__title { font-size: clamp(40px, 5.6vw, 72px); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); }

.next-band { padding: 0 0 120px; }
.next-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: radial-gradient(600px circle at 0% 0%, rgba(91,124,255,.16), transparent 60%), var(--surface);
}
.next-band__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; }
.next-band .eyebrow { margin-bottom: 12px; }
.next-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Transizione morbida tra le pagine */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .25s ease both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "srv srv" "lav lav" "met faq" "cta cta"; }
  .tile--servizi { min-height: 0; }
}
@media (max-width: 680px) {
  .explore { padding-top: 80px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "srv" "lav" "met" "faq" "cta"; gap: 14px; }
  .tile { padding: 26px 22px; min-height: 0; }
  .tile__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th { height: 72px; }
  .tile--cta { flex-direction: column; align-items: flex-start; padding: 30px 22px; }
  .page > .section:first-child, .page > .contact:first-child { padding-top: 120px; }
  .next-band { padding-bottom: 80px; }
  .next-band__inner { padding: 30px 22px; }
  .next-band__actions .btn { flex: 1 1 100%; }
}

/* ============ Pagine legali ============ */
.legal { padding: 150px 0 110px; }
.legal__back { display: table; font-size: 14px; color: var(--muted); margin-bottom: 40px; transition: color .3s; }
.legal__back:hover { color: var(--text); }
.legal__title { font-size: clamp(38px, 5vw, 60px); font-weight: 700; margin-bottom: 14px; }
.legal__updated { color: var(--dim); font-size: 14px; margin-bottom: 48px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 48px 0 16px; letter-spacing: -0.01em; line-height: 1.3; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal p + p { margin-top: 14px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal ul { margin: 14px 0; display: grid; gap: 8px; }
.legal li { padding-left: 22px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal a:not(.legal__back) { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(143,166,255,.35); }
.legal a:not(.legal__back):hover { text-decoration-color: var(--accent-2); }
.legal__box { padding: 22px 24px; border-radius: var(--radius); border: 1px solid rgba(91,124,255,.4); background: var(--accent-soft); color: var(--text); line-height: 1.7; }
.legal__table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.legal__table th, .legal__table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__table th { color: var(--text); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.legal__table td { color: var(--muted); }
.legal__table td:first-child { color: var(--text); width: 52%; }
.legal__todo { background: rgba(255,196,0,.15); color: #FFD666; padding: 1px 6px; border-radius: 4px; }
.footer__bottom a { text-decoration: none; }
.form__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form__note a:hover { color: var(--text); }

@media (max-width: 600px) {
  .legal { padding: 120px 0 80px; }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100% !important; }
  .legal__table thead { display: none; }
  .legal__table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .legal__table td { border: 0; padding: 2px 0; }
}

/* ============ WhatsApp fisso ============ */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.65);
  transition: transform .4s var(--ease), box-shadow .4s;
  animation: waIn .8s 1.2s var(--ease) both;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waRing 2.6s 2s infinite; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 18px 40px -10px rgba(37,211,102,.85); }
.wa-float__tip {
  position: absolute; right: 74px; white-space: nowrap; font-size: 14px; font-weight: 500;
  background: var(--card); color: var(--text); border: 1px solid var(--line-2);
  padding: 9px 14px; border-radius: 10px; pointer-events: none;
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease);
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }
@keyframes waIn { from { opacity: 0; transform: scale(.4); } }
@keyframes waRing { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { height: 420px; max-width: 620px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services .service, .services .service:nth-child(n+4) { grid-column: auto; }
  .services .service:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why, .contact__inner { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,10,20,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 12px 24px 28px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--text); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 20px; }
  .nav.menu-open { background: rgba(7,10,20,.97); }

  .section { padding: 96px 0; }
  .section__head { margin-bottom: 48px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .work__meta { flex-wrap: wrap; }
  .work, .work--wide { grid-column: auto; }
  .work__preview { height: 300px; padding: 32px; }
  .wp-title { font-size: 40px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 120px; }
  .hero__sub { font-size: 17px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__visual { height: 320px; }
  .browser--main { inset: 10px 0 10px 0; }
  .float-card--a { left: -6px; bottom: 0; width: 180px; }
  .float-card--b { right: -6px; }
  .mock-cards div { height: 60px; }
  .marquee { margin-top: 72px; }
  .marquee__track span { font-size: 18px; }
  .services, .steps, .why__grid, .form__row { grid-template-columns: 1fr; }
  .service { padding: 30px 24px; }
  .form { padding: 26px 20px; }
  .footer__inner { flex-direction: column; }
  .statement { padding: 88px 0; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .wa-float__tip { display: none; }
}
