/* ==========================================================================
   Web4Future design system (w4-*)
   Loaded after main.css (Tailwind). Prefixed to avoid utility collisions.
   ========================================================================== */

:root {
    --w4-ink: #0b0b0d;
    --w4-ink-2: #141418;
    --w4-ink-3: #1d1d23;
    --w4-paper: #f4f2ed;
    --w4-paper-2: #eae7df;
    --w4-white: #ffffff;
    --w4-muted: #8a8a93;
    --w4-muted-dark: #5d5d66;
    --w4-line: rgba(255, 255, 255, .10);
    --w4-line-dark: rgba(11, 11, 13, .12);
    --w4-accent: #ff5a1f;
    --w4-accent-2: #ff8a3d;
    --w4-blue: #3b6cff;
    --w4-green: #22c55e;
    --w4-radius: 22px;
    --w4-radius-sm: 14px;
    --w4-ease: cubic-bezier(.16, 1, .3, 1);
    --w4-font: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
    --w4-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --w4-max: 1320px;
}

body.w4 {
    font-family: var(--w4-font);
    background: var(--w4-paper);
    color: var(--w4-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.w4 ::selection { background: var(--w4-accent); color: #fff; }

.w4-wrap { max-width: var(--w4-max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .w4-wrap { padding: 0 40px; } }

.w4-serif { font-family: var(--w4-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.w4-accent { color: var(--w4-accent); }

/* ---------- Eyebrow / labels ---------- */
.w4-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    color: var(--w4-muted);
}
.w4-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--w4-accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .18); }
.w4-index { font-size: 13px; font-weight: 500; color: var(--w4-muted); font-variant-numeric: tabular-nums; }

/* ---------- Headings ---------- */
.w4-display {
    font-size: clamp(44px, 8.4vw, 132px);
    line-height: .92; letter-spacing: -.045em; font-weight: 600;
}
.w4-h2 {
    font-size: clamp(36px, 5.6vw, 84px);
    line-height: .98; letter-spacing: -.04em; font-weight: 600;
}
.w4-h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.w4-lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--w4-muted-dark); }
.w4-dark .w4-lead { color: #a6a6ae; }

/* ---------- Buttons ---------- */
.w4-btn {
    --bg: var(--w4-accent); --fg: #fff;
    position: relative; display: inline-flex; align-items: center; gap: 12px;
    height: 58px; padding: 0 10px 0 28px; border-radius: 999px;
    background: var(--bg); color: var(--fg);
    font-weight: 600; font-size: 16px; letter-spacing: -.01em;
    overflow: hidden; isolation: isolate; white-space: nowrap;
    transition: transform .5s var(--w4-ease), box-shadow .4s var(--w4-ease);
    will-change: transform;
}
.w4-btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--w4-ink); transform: translateY(101%); transition: transform .55s var(--w4-ease);
}
.w4-btn:hover::before { transform: translateY(0); }
.w4-btn:hover { box-shadow: 0 18px 40px -12px rgba(255, 90, 31, .55); }
.w4-btn .w4-btn-ico {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .18); overflow: hidden; flex-shrink: 0;
}
.w4-btn .w4-btn-ico svg { width: 18px; height: 18px; transition: transform .55s var(--w4-ease); }
.w4-btn:hover .w4-btn-ico svg { transform: translateX(3px) rotate(-45deg); }
.w4-btn-ghost { --bg: transparent; --fg: currentColor; border: 1px solid currentColor; padding: 0 28px; }
.w4-btn-ghost::before { background: currentColor; }
.w4-btn-ghost:hover { box-shadow: none; }
.w4-dark .w4-btn-ghost:hover, .w4-btn-ghost.on-dark:hover { color: var(--w4-ink); }
.w4-dark .w4-btn-ghost::before { background: #fff; }
.w4-btn-ghost:hover span { color: var(--w4-paper); }
.w4-dark .w4-btn-ghost:hover span { color: var(--w4-ink); }
.w4-btn-sm { height: 46px; padding: 0 22px; font-size: 15px; }
.w4-btn-light { --bg: #fff; --fg: var(--w4-ink); }
.w4-btn-light::before { background: var(--w4-accent); }
.w4-btn-light:hover { color: #fff; }

.w4-link {
    position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .5s var(--w4-ease);
}
.w4-link:hover { background-size: 100% 1px; }

/* ---------- Navigation ---------- */
.w4-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 60; height: 80px;
    background: rgba(250, 244, 236, .86);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: background .4s ease, border-color .4s ease, transform .5s var(--w4-ease);
}
.w4-nav.is-scrolled { background: rgba(250, 244, 236, .9); border-color: var(--w4-line-dark); }
.w4-nav.is-hidden { transform: translateY(-100%); }
.w4-nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.w4-nav-logo img { height: 44px; width: auto; }
.w4-nav-links { display: none; align-items: center; gap: 4px; }
.w4-nav-links a {
    position: relative; padding: 8px 14px; border-radius: 999px; color: #3d3a36;
    font-size: 15px; font-weight: 500; transition: color .3s ease, background .3s ease;
}
.w4-nav-links a:hover, .w4-nav-links a.is-active { color: var(--w4-ink); background: rgba(11, 11, 13, .06); }
.w4-nav-right { display: none; align-items: center; gap: 18px; }
.w4-nav-phone { color: #3d3a36; font-size: 14px; font-weight: 500; display: none; }
.w4-nav-phone:hover { color: var(--w4-accent); }
.w4-lang { display: inline-flex; align-items: center; gap: 6px; color: #3d3a36; font-size: 13px; font-weight: 600; }
.w4-lang:hover { color: var(--w4-accent); }
.w4-lang svg { height: 12px; width: auto; border-radius: 2px; }
@media (min-width: 1100px) { .w4-nav-links, .w4-nav-right { display: flex; } .w4-burger { display: none !important; } }
@media (min-width: 1360px) { .w4-nav-phone { display: inline; } }

.w4-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; border-radius: 50%; background: rgba(11, 11, 13, .07); align-items: center;
}
.w4-burger span { display: block; width: 18px; height: 2px; background: var(--w4-ink); border-radius: 2px; transition: transform .4s var(--w4-ease), opacity .3s; }
.w4-burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.w4-burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.w4-mobile {
    position: fixed; inset: 80px 0 0 0; z-index: 59; background: var(--w4-ink); color: #fff;
    padding: 32px 24px 40px; display: flex; flex-direction: column; overflow-y: auto;
}
.w4-mobile a.w4-mobile-link {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 34px; font-weight: 600; letter-spacing: -.03em; padding: 12px 0; border-bottom: 1px solid var(--w4-line);
}
.w4-mobile a.w4-mobile-link small { font-size: 13px; color: var(--w4-muted); font-weight: 500; letter-spacing: 0; }

/* ---------- Sections ---------- */
.w4-section { padding: 120px 0; position: relative; }
@media (max-width: 767px) { .w4-section { padding: 80px 0; } }
.w4-dark { background: var(--w4-ink); color: #fff; }
.w4-paper { background: var(--w4-paper); }
.w4-white { background: #fff; }
.w4-section-head { display: grid; gap: 28px; margin-bottom: 72px; }
@media (min-width: 900px) { .w4-section-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 64px; } }

/* ---------- Hero ---------- */
.w4-hero {
    --cream: 250, 244, 236;
    position: relative; overflow: hidden; background: rgb(var(--cream)); color: var(--w4-ink);
    display: flex; flex-direction: column;
}
.w4-hero-media { display: block; }
.w4-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.w4-hero-content { position: relative; z-index: 2; width: 100%; padding-top: 40px; padding-bottom: 32px; }
.w4-hero h1 {
    margin: 20px 0 22px; max-width: 13ch;
    font-size: clamp(42px, 5.2vw, 92px); line-height: .95; letter-spacing: -.045em; font-weight: 600;
}
.w4-hero h1 .w4-serif { color: var(--w4-accent); padding-right: .06em; white-space: nowrap; }
.w4-hero .w4-lead { max-width: 44ch; color: #4a4540; }
.w4-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.w4-hero .w4-stats { margin-top: 32px; }
.w4-hero .w4-stat-label { color: #6b655e; }
.w4-status {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
    border: 1px solid var(--w4-line-dark); background: rgba(255, 255, 255, .7); font-size: 14px; color: var(--w4-ink);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.w4-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--w4-green); position: relative; flex-shrink: 0; }
.w4-status i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--w4-green); animation: w4-ping 2s var(--w4-ease) infinite; }
@keyframes w4-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.w4-hero-card {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px;
    padding: 14px 20px 14px 14px; border-radius: 18px; background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px -20px rgba(60, 30, 10, .35); color: var(--w4-ink);
    animation: w4-float 6s ease-in-out infinite;
}
.w4-hero-card-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--w4-accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.w4-hero-card-ico svg { width: 20px; height: 20px; }
.w4-hero-card b { display: block; font-size: 15px; letter-spacing: -.01em; }
.w4-hero-card small { display: block; font-size: 13px; color: var(--w4-muted-dark); margin-top: 2px; }
@keyframes w4-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Phone/tablet: text first, photo as its own card */
@media (max-width: 899px) {
    .w4-hero-media { order: 2; position: relative; margin: 0 24px 40px; aspect-ratio: 4 / 5; border-radius: var(--w4-radius); overflow: hidden; }
    .w4-hero-card { left: 36px; right: 36px; bottom: 56px; }
}
@media (min-width: 600px) and (max-width: 899px) { .w4-hero-media { aspect-ratio: 16 / 11; } .w4-hero-card { right: auto; } }

/* Desktop: full-bleed photo, headline over the bright window side */
@media (min-width: 900px) {
    .w4-hero { min-height: min(calc(100svh - 80px), 940px); justify-content: center; }
    .w4-hero-media { position: absolute; inset: 0; }
    .w4-hero-media img { object-position: 72% 50%; }
    .w4-hero::after {
        content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
        background: linear-gradient(90deg, rgba(var(--cream), .97) 0%, rgba(var(--cream), .92) 34%, rgba(var(--cream), .6) 50%, rgba(var(--cream), 0) 64%);
    }
    .w4-hero-content { padding-top: 36px; padding-bottom: 40px; }
    .w4-hero-content > div { max-width: 600px; }
    .w4-hero .w4-lead { max-width: 40ch; }
    .w4-hero-card { right: 4%; bottom: 14%; }
    /* Short laptop screens: size the headline by height so the stats stay above the fold */
    @media (max-height: 900px) {
        .w4-hero h1 { font-size: clamp(42px, min(5.2vw, 8.2vh), 92px); }
        .w4-hero .w4-lead { font-size: 17px; }
        .w4-hero .w4-stats { margin-top: 24px; }
        .w4-hero .w4-stat-num { font-size: clamp(32px, 6vh, 56px); }
    }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .w4-hero-media img { object-position: 80% 50%; }
    .w4-hero::after { background: linear-gradient(90deg, rgba(var(--cream), .97) 0%, rgba(var(--cream), .92) 40%, rgba(var(--cream), .3) 62%, rgba(var(--cream), 0) 75%); }
    .w4-hero-content > div { max-width: 480px; }
}

.w4-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 36px; }
@media (min-width: 640px) { .w4-stats { gap: 56px; } }
.w4-stat-num { font-size: clamp(36px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.w4-stat-num sup { font-size: .45em; color: var(--w4-accent); top: -.9em; margin-left: 2px; }
.w4-stat-label { margin-top: 10px; font-size: 14px; color: var(--w4-muted); }

/* ---------- Marquee ---------- */
.w4-marquee-track { display: flex; width: max-content; animation: w4-marquee 38s linear infinite; }
.w4-marquee-item { display: inline-flex; align-items: center; gap: 56px; padding-right: 56px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #8b8b94; white-space: nowrap; }
.w4-marquee-item::after { content: '✦'; font-size: 14px; color: var(--w4-accent); }
@keyframes w4-marquee { to { transform: translateX(-50%); } }

.w4-ticker { overflow: hidden; padding: 28px 0; background: var(--w4-accent); color: var(--w4-ink); transform: rotate(-1.2deg) scale(1.02); }
.w4-ticker .w4-marquee-track { animation-duration: 28s; }
.w4-ticker .w4-marquee-item { color: var(--w4-ink); font-size: clamp(28px, 4vw, 52px); letter-spacing: -.035em; }
.w4-ticker .w4-marquee-item::after { color: var(--w4-ink); font-size: .5em; }

/* ---------- Client logos ---------- */
.w4-logos { background: rgb(250, 244, 236); padding: 56px 0 72px; border-bottom: 1px solid var(--w4-line-dark); }
.w4-logos-title { text-align: center; font-size: 15px; color: var(--w4-muted-dark); margin-bottom: 32px; }
.w4-logos-marquee { position: relative; overflow: hidden; }
.w4-logos-marquee::before, .w4-logos-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.w4-logos-marquee::before { left: 0; background: linear-gradient(90deg, rgb(250, 244, 236), transparent); }
.w4-logos-marquee::after { right: 0; background: linear-gradient(-90deg, rgb(250, 244, 236), transparent); }
.w4-logos-track { display: flex; gap: 12px; width: max-content; list-style: none; margin: 0; padding: 4px 0; animation: w4-marquee 45s linear infinite; }
.w4-logos-marquee:hover .w4-logos-track { animation-play-state: paused; }
.w4-logos-track li { display: grid; place-items: center; flex: 0 0 auto; width: 170px; height: 84px; padding: 14px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--w4-line-dark); transition: transform .5s var(--w4-ease), box-shadow .4s ease; }
.w4-logos-track li:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(60, 30, 10, .3); }
.w4-logos-track a { display: contents; }
.w4-logos-track img { max-width: 100%; max-height: 46px; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(.9); opacity: .65; mix-blend-mode: multiply; transition: filter .4s ease, opacity .4s ease; }
.w4-logos-track li:hover img { filter: none; opacity: 1; }
.w4-logos-track img.is-dark-logo { filter: grayscale(1) invert(1) contrast(1.1); }
.w4-logos-track li:hover img.is-dark-logo { filter: none; mix-blend-mode: normal; }
@media (max-width: 560px) { .w4-logos-track li { width: 140px; height: 72px; } .w4-logos-marquee::before, .w4-logos-marquee::after { width: 48px; } }
@media (prefers-reduced-motion: reduce) { .w4-logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .w4-logos-track li[aria-hidden] { display: none; } }

/* Small SEO label inside the hero H1 (RO) */
.w4-h1-kicker { display: block; font-family: var(--w4-font); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--w4-accent); margin-bottom: 12px; }

/* ---------- Work grid ---------- */
.w4-work { display: grid; gap: 28px; }
@media (min-width: 900px) { .w4-work { grid-template-columns: 1fr 1fr; gap: 36px; } .w4-work .w4-case:nth-child(even) { margin-top: 120px; } }
.w4-case { display: block; color: inherit; }
.w4-case-media {
    position: relative; aspect-ratio: 4 / 3; border-radius: var(--w4-radius); overflow: hidden; background: var(--w4-paper-2);
}
.w4-case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--w4-ease); }
.w4-case:hover .w4-case-media img { transform: scale(1.06); }
.w4-case-view {
    position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%;
    display: grid; place-items: center; background: var(--w4-accent); color: #fff; font-weight: 600; font-size: 15px;
    transform: scale(0); transition: transform .6s var(--w4-ease);
}
.w4-case:hover .w4-case-view { transform: scale(1); }
.w4-case-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; }
.w4-case-tag { font-size: 13px; color: var(--w4-muted-dark); border: 1px solid var(--w4-line-dark); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.w4-case p { margin-top: 10px; color: var(--w4-muted-dark); line-height: 1.55; max-width: 52ch; }

/* ---------- AI vs DIY ---------- */
.w4-versus { display: grid; gap: 16px; }
@media (min-width: 1000px) { .w4-versus { grid-template-columns: 1fr 1fr 1.15fr; align-items: stretch; } }
.w4-vcol { border-radius: var(--w4-radius); padding: 32px; border: 1px solid var(--w4-line); background: var(--w4-ink-2); display: flex; flex-direction: column; }
.w4-vcol.is-us {
    background: linear-gradient(160deg, #1f130d 0%, var(--w4-ink-2) 55%);
    border-color: rgba(255, 90, 31, .45); box-shadow: 0 30px 80px -30px rgba(255, 90, 31, .35);
    position: relative;
}
.w4-vcol-badge { position: absolute; top: -13px; right: 28px; background: var(--w4-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.w4-vcol h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.w4-vcol .w4-vsub { color: var(--w4-muted); font-size: 15px; margin-top: 6px; min-height: 44px; }
.w4-vlist { margin-top: 24px; display: grid; gap: 0; }
.w4-vlist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--w4-line); font-size: 15px; line-height: 1.45; color: #c9c9cf; }
.w4-vlist li b { display: block; color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .02em; margin-bottom: 2px; }
.w4-vlist .ok, .w4-vlist .no, .w4-vlist .mid { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.w4-vlist .ok { background: rgba(34, 197, 94, .16); color: var(--w4-green); }
.w4-vlist .no { background: rgba(239, 68, 68, .14); color: #f87171; }
.w4-vlist .mid { background: rgba(250, 204, 21, .14); color: #facc15; }
.w4-vlist svg { width: 12px; height: 12px; }

.w4-calc {
    margin-top: 48px; border-radius: var(--w4-radius); border: 1px solid var(--w4-line); background: var(--w4-ink-2);
    padding: 36px; display: grid; gap: 36px;
}
@media (min-width: 900px) { .w4-calc { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 48px; } }
.w4-range { margin-top: 26px; }
.w4-range label { display: flex; justify-content: space-between; font-size: 15px; color: #c9c9cf; margin-bottom: 12px; }
.w4-range label output { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.w4-range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--w4-accent) var(--p, 50%), #33333b var(--p, 50%)); outline: none; }
.w4-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--w4-accent); cursor: grab; }
.w4-range input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--w4-accent); cursor: grab; }
.w4-calc-out { border-radius: var(--w4-radius-sm); background: var(--w4-ink); border: 1px solid var(--w4-line); padding: 32px; }
.w4-calc-big { font-size: clamp(44px, 5vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--w4-accent); font-variant-numeric: tabular-nums; }

/* ---------- Bento services ---------- */
.w4-bento { display: grid; gap: 16px; }
@media (min-width: 760px) { .w4-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) and (max-width: 1099px) { .w4-bento .w4-tile:last-child { grid-column: span 2; } .w4-bento .w4-tile.span-6 { grid-column: span 2; } .w4-bento .w4-tile.span-6:last-child:nth-child(even) { grid-column: auto; } }
@media (min-width: 1100px) { .w4-bento { grid-template-columns: repeat(6, 1fr); } .w4-tile.span-3 { grid-column: span 3; } .w4-tile.span-2 { grid-column: span 2; } .w4-tile.span-4 { grid-column: span 4; } .w4-tile.span-6 { grid-column: span 6; min-height: 0; } }
.w4-tile {
    --tx: 50%; --ty: 50%;
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
    min-height: 300px; padding: 32px; border-radius: var(--w4-radius); background: #fff; border: 1px solid var(--w4-line-dark); color: var(--w4-ink);
    transition: transform .6s var(--w4-ease), border-color .4s ease;
}
.w4-tile::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; background: radial-gradient(420px circle at var(--tx) var(--ty), rgba(255, 90, 31, .10), transparent 60%); pointer-events: none; }
.w4-tile:hover { transform: translateY(-6px); border-color: rgba(255, 90, 31, .45); }
.w4-tile:hover::before { opacity: 1; }
.w4-tile.is-dark { background: var(--w4-ink); color: #fff; border-color: var(--w4-ink); }
.w4-tile.is-accent { background: var(--w4-accent); color: #fff; border-color: var(--w4-accent); }
.w4-tile.is-accent::before { background: radial-gradient(420px circle at var(--tx) var(--ty), rgba(255, 255, 255, .25), transparent 60%); }
.w4-tile p { color: var(--w4-muted-dark); line-height: 1.55; margin-top: 12px; max-width: 46ch; }
.w4-tile.is-dark p { color: #a6a6ae; }
.w4-tile.is-accent p { color: rgba(255, 255, 255, .85); }
.w4-tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.w4-tile-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .5; transition: all .5s var(--w4-ease); flex-shrink: 0; }
.w4-tile-arrow svg { width: 18px; height: 18px; }
.w4-tile:hover .w4-tile-arrow { opacity: 1; transform: rotate(-45deg); background: var(--w4-ink); color: #fff; border-color: var(--w4-ink); }
.w4-tile.is-dark:hover .w4-tile-arrow { background: var(--w4-accent); border-color: var(--w4-accent); }
.w4-tile.is-accent:hover .w4-tile-arrow { background: #fff; color: var(--w4-accent); border-color: #fff; }
.w4-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w4-chips span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; opacity: .6; }

/* ---------- Google reviews ---------- */
.w4-stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; }
.w4-gscore { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; padding: 10px 18px 10px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--w4-line-dark); color: var(--w4-ink); transition: transform .5s var(--w4-ease), box-shadow .4s ease; }
.w4-gscore:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(60, 30, 10, .3); }
.w4-gscore-num { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.w4-gscore small { display: block; font-size: 13px; color: var(--w4-muted-dark); margin-top: 2px; }
.w4-reviews { display: grid; gap: 16px; }
@media (min-width: 760px) { .w4-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .w4-reviews { grid-template-columns: repeat(6, 1fr); } .w4-review { grid-column: span 2; } .w4-review:nth-child(4) { grid-column: 2 / span 2; } }
.w4-review { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--w4-radius); background: #fff; border: 1px solid var(--w4-line-dark); }
.w4-review blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: #2a2724; flex: 1; }
.w4-review-orig summary { cursor: pointer; font-size: 13px; color: var(--w4-muted-dark); list-style: none; }
.w4-review-orig summary::-webkit-details-marker { display: none; }
.w4-review-orig summary::before { content: '↳ '; color: var(--w4-accent); }
.w4-review-orig p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--w4-muted-dark); font-style: italic; }
.w4-review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--w4-line-dark); }
.w4-review-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--w4-paper-2); color: var(--w4-ink); font-weight: 600; }
.w4-review figcaption b { display: block; font-size: 15px; text-transform: capitalize; }
.w4-review figcaption small { display: block; font-size: 13px; color: var(--w4-muted-dark); }

/* ---------- Process ---------- */
.w4-process { display: grid; gap: 48px; }
@media (min-width: 1000px) { .w4-process { grid-template-columns: 1fr 1.25fr; gap: 96px; } .w4-process-sticky { position: sticky; top: 140px; align-self: start; } }
.w4-step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 36px 0; border-top: 1px solid var(--w4-line-dark); }
.w4-step:last-child { border-bottom: 1px solid var(--w4-line-dark); }
.w4-step-num { font-family: var(--w4-serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--w4-accent); }
.w4-step p { margin-top: 10px; color: var(--w4-muted-dark); line-height: 1.6; }
.w4-step .w4-case-tag { display: inline-block; margin-top: 16px; white-space: normal; }
.w4-step > * { min-width: 0; }

/* ---------- MCP page ---------- */
.w4-mcp-hero { position: relative; overflow: hidden; background: var(--w4-ink); color: #fff; padding: 96px 0 104px; }
.w4-mcp-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px circle at 85% 10%, rgba(255, 90, 31, .22), transparent 60%), radial-gradient(600px circle at 0% 100%, rgba(255, 138, 61, .08), transparent 60%); }
.w4-mcp-hero > * { position: relative; }
.w4-mcp-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .w4-mcp-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; } }
.w4-mcp-hero h1 { font-size: clamp(42px, 5.4vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 24px 0 26px; }
.w4-mcp-hero h1 .w4-serif { color: var(--w4-accent); }
.w4-mcp-hero .w4-lead { color: #b9b4ad; max-width: 48ch; }

.w4-chat { border-radius: var(--w4-radius); background: var(--w4-ink-2); border: 1px solid var(--w4-line); padding: 22px; box-shadow: 0 40px 90px -40px rgba(255, 90, 31, .35); }
.w4-chat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--w4-line); font-size: 13px; color: var(--w4-muted); }
.w4-chat-top b { color: #fff; font-weight: 600; }
.w4-chat-dots { display: flex; gap: 6px; }
.w4-chat-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b2b33; }
.w4-chat-msg { margin-top: 18px; max-width: 88%; padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.w4-chat-msg.is-user { margin-left: auto; background: var(--w4-accent); color: #fff; border-bottom-right-radius: 4px; }
.w4-chat-msg.is-ai { background: #1d1d23; color: #e4e1dc; border-bottom-left-radius: 4px; }
.w4-chat-tool { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); color: #86efac; font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.w4-chat-tool i { width: 6px; height: 6px; border-radius: 50%; background: var(--w4-green); }
.w4-chat-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 14px; }
.w4-chat-table td { padding: 7px 0; border-top: 1px solid var(--w4-line); }
.w4-chat-table td:last-child { text-align: right; color: var(--w4-accent-2); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.w4-chat-note { margin-top: 14px; font-size: 12px; color: var(--w4-muted); text-align: center; }

.w4-flow { display: grid; gap: 14px; align-items: stretch; margin-top: 8px; }
@media (min-width: 900px) { .w4-flow { grid-template-columns: 1fr auto 1.15fr auto 1fr; } }
.w4-flow-box { border-radius: var(--w4-radius-sm); padding: 24px; background: #fff; border: 1px solid var(--w4-line-dark); }
.w4-flow-box.is-mid { background: var(--w4-ink); color: #fff; border-color: var(--w4-ink); box-shadow: 0 30px 70px -35px rgba(255, 90, 31, .55); }
.w4-flow-box small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--w4-accent); font-weight: 600; margin-bottom: 8px; }
.w4-flow-box b { display: block; font-size: 20px; letter-spacing: -.02em; }
.w4-flow-box p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--w4-muted-dark); }
.w4-flow-box.is-mid p { color: #b9b4ad; }
.w4-flow-arrow { display: grid; place-items: center; color: var(--w4-accent); font-size: 26px; }
@media (max-width: 899px) { .w4-flow-arrow { transform: rotate(90deg); } }

.w4-rules { display: grid; gap: 16px; }
@media (min-width: 760px) { .w4-rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .w4-rules { grid-template-columns: repeat(3, 1fr); } }
.w4-rule { padding: 30px; border-radius: var(--w4-radius); border: 1px solid var(--w4-line); background: var(--w4-ink-2); }
.w4-rule-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 90, 31, .14); color: var(--w4-accent); margin-bottom: 20px; }
.w4-rule-ico svg { width: 22px; height: 22px; }
.w4-rule h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.w4-rule p { margin-top: 10px; color: #a6a6ae; line-height: 1.6; font-size: 15px; }

.w4-two { display: grid; gap: 40px; }
@media (min-width: 1000px) { .w4-two { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; } }
.w4-prose p { font-size: 18px; line-height: 1.7; color: #4a4540; }
.w4-prose p + p { margin-top: 18px; }
.w4-prose strong { color: var(--w4-ink); }

/* ---------- Results ---------- */
.w4-results { display: grid; gap: 16px; }
@media (min-width: 900px) { .w4-results { grid-template-columns: repeat(3, 1fr); } }
.w4-result { padding: 36px 32px; border-radius: var(--w4-radius); border: 1px solid var(--w4-line); background: var(--w4-ink-2); }
.w4-result-num { font-size: clamp(48px, 5.4vw, 80px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.w4-result-num .w4-serif { color: var(--w4-accent); }
.w4-result p { margin-top: 18px; color: #a6a6ae; line-height: 1.55; }
.w4-result small { display: block; margin-top: 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--w4-muted); }

/* ---------- FAQ ---------- */
.w4-faq { border-top: 1px solid var(--w4-line-dark); }
.w4-faq details { border-bottom: 1px solid var(--w4-line-dark); }
.w4-faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 28px 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em; transition: color .3s ease;
}
.w4-faq summary::-webkit-details-marker { display: none; }
.w4-faq summary:hover { color: var(--w4-accent); }
.w4-faq summary i { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--w4-line-dark); flex-shrink: 0; transition: transform .5s var(--w4-ease), background .3s; }
.w4-faq summary i::before, .w4-faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; border-radius: 2px; }
.w4-faq summary i::after { transform: rotate(90deg); transition: transform .5s var(--w4-ease); }
.w4-faq details[open] summary i { background: var(--w4-accent); color: #fff; border-color: var(--w4-accent); }
.w4-faq details[open] summary i::after { transform: rotate(0); }
.w4-faq-body { padding: 0 64px 32px 0; color: var(--w4-muted-dark); line-height: 1.7; font-size: 17px; }
.w4-faq-body ul { margin-top: 10px; display: grid; gap: 6px; }
.w4-faq-body li::before { content: '→ '; color: var(--w4-accent); }

/* ---------- CTA ---------- */
.w4-cta { position: relative; overflow: hidden; background: var(--w4-ink); color: #fff; padding: 140px 0 120px; }
.w4-cta::before { content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: 100%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .35), transparent 65%); pointer-events: none; }
.w4-cta-title { font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.05em; font-weight: 600; }
.w4-cta-title .w4-serif { color: var(--w4-accent); }
.w4-cta-grid { display: grid; gap: 48px; align-items: end; margin-top: 56px; position: relative; }
@media (min-width: 900px) { .w4-cta-grid { grid-template-columns: 1fr auto; } }
.w4-cta-circle {
    width: 200px; height: 200px; border-radius: 50%; background: var(--w4-accent); color: #fff; display: grid; place-items: center; text-align: center;
    font-weight: 600; font-size: 18px; line-height: 1.2; transition: transform .6s var(--w4-ease), background .4s; will-change: transform;
}
.w4-cta-circle:hover { background: #fff; color: var(--w4-ink); }
.w4-cta-circle svg { width: 26px; height: 26px; margin: 10px auto 0; transition: transform .6s var(--w4-ease); }
.w4-cta-circle:hover svg { transform: rotate(-45deg); }
.w4-cta-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; color: #a6a6ae; font-size: 15px; }
.w4-cta-trust span { display: inline-flex; align-items: center; gap: 8px; }
.w4-cta-trust span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--w4-accent); }

/* ---------- Footer ---------- */
.w4-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--w4-ink); color: #b9b4ad; border-top: 1px solid var(--w4-line); padding: 80px 0 0; }
.w4-footer-bg { position: absolute; inset: 0; z-index: -1; }
.w4-footer-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.w4-footer-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 13, .82) 0%, rgba(11, 11, 13, .62) 50%, rgba(11, 11, 13, .4) 100%);
}
.w4-footer-grid { padding-bottom: 140px; }
@media (min-width: 1200px) { .w4-footer-bg img { object-position: 50% 62%; } }
@media (max-width: 899px) { .w4-footer-grid { padding-bottom: 96px; } .w4-footer-bg img { object-position: 50% 75%; } }
.w4-footer-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .w4-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.w4-footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.w4-footer ul { display: grid; gap: 10px; font-size: 15px; }
.w4-footer a:hover { color: #fff; }
.w4-footer-logo { height: 48px; width: auto; margin-bottom: 24px; }
.w4-footer-bar { background: rgba(11, 11, 13, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) { .w4-footer-bar { margin: 0 -40px; padding-left: 40px; padding-right: 40px; } }
.w4-footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--w4-line); font-size: 14px; }
.w4-footer-bar nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--w4-ease), transform 1.1s var(--w4-ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }

.w4-split .w4-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w4-split .w4-w > span { display: inline-block; }
.js .w4-split .w4-w > span { transform: translateY(105%); transition: transform 1.1s var(--w4-ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.js .w4-split.is-in .w4-w > span { transform: none; }

.w4-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 70; background: var(--w4-accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal], .js .w4-split .w4-w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
    .w4-marquee-track { animation: none; }
    .w4-status i::after, .w4-hero-card { animation: none; }
}

/* ==========================================================================
   Inner-page skin: restyles the legacy Tailwind templates (EN + RO)
   Tailwind v4 reads colours from variables, so remapping them here
   moves every page onto the new palette.
   ========================================================================== */
body.w4 {
    --color-brand-blue: #1d1d23;
    --color-brand-orange: #ff5a1f;

    --color-blue-50: #faf4ec;  --color-blue-100: #f5e8da; --color-blue-200: #efd8c2;
    --color-blue-300: #f3b28a; --color-blue-400: #ff8a3d; --color-blue-500: #ff6a2f;
    --color-blue-600: #ff5a1f; --color-blue-700: #e0480f; --color-blue-800: #26262d;
    --color-blue-900: #141418; --color-blue-950: #0b0b0d;

    --color-indigo-50: #faf4ec;  --color-indigo-100: #f5e8da; --color-indigo-200: #efd8c2;
    --color-indigo-400: #ff8a3d; --color-indigo-500: #ff6a2f; --color-indigo-600: #e0480f;
    --color-indigo-700: #c2410c; --color-indigo-800: #26262d;

    --color-purple-50: #f7f1ea;  --color-purple-100: #f1e6da; --color-purple-400: #d9773f;
    --color-purple-500: #c2410c; --color-purple-600: #b23c0b; --color-purple-700: #9a3412;
    --color-purple-800: #26262d; --color-purple-900: #141418;

    --color-slate-50: #f4f2ed;  --color-slate-100: #eceae4; --color-slate-800: #1d1d23; --color-slate-900: #0b0b0d;
    --color-gray-50: #f4f2ed;   --color-gray-100: #eceae4;  --color-gray-200: #e2dfd8;
    --color-gray-800: #1d1d23;  --color-gray-900: #0b0b0d;
}

/* Dark heroes / bands: ink with a warm glow instead of corporate blue */
body.w4 main .bg-gradient-to-br.to-blue-900,
body.w4 main .bg-gradient-to-br.to-slate-800,
body.w4 main .bg-gradient-to-br.to-gray-900,
body.w4 main .bg-gradient-to-r.to-blue-900 {
    background-color: var(--w4-ink);
    background-image:
        radial-gradient(700px circle at 85% 0%, rgba(255, 90, 31, .22), transparent 60%),
        radial-gradient(600px circle at 0% 100%, rgba(255, 138, 61, .10), transparent 60%),
        linear-gradient(180deg, #141418, #0b0b0d);
}
body.w4 main > section:first-child.text-white,
body.w4 main > section:first-child .text-white h1 { position: relative; }
body.w4 main > section:first-child.text-white { padding-top: 112px; padding-bottom: 104px; }

/* Light heroes */
body.w4 main .bg-gradient-to-br.from-blue-50 { background-image: linear-gradient(180deg, #faf4ec, var(--w4-paper)); }

/* Typography */
body.w4 main h1 { font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
body.w4 main h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
body.w4 main h3 { font-weight: 600; letter-spacing: -.02em; }
body.w4 main .text-blue-100, body.w4 main .text-blue-200 { color: #c9c4bd; }
body.w4 main .text-white .text-brand-orange, body.w4 main .text-white .text-orange-400 { color: var(--w4-accent-2); }

/* Buttons: solid accent pills */
body.w4 .gradient-orange { background: var(--w4-accent); }
body.w4 .gradient-blue { background: var(--w4-ink); }
body.w4 main a.rounded-lg[class*="px-"][class*="py-"],
body.w4 main button.rounded-lg[class*="px-"][class*="py-"],
body.w4 main a.rounded-xl[class*="px-"][class*="py-"],
body.w4 main button[type="submit"][class*="px-"] {
    border-radius: 999px;
    transition: transform .5s var(--w4-ease), box-shadow .4s var(--w4-ease), background-color .3s ease, color .3s ease;
}
body.w4 main a.gradient-orange:hover, body.w4 main a.bg-brand-orange:hover, body.w4 main button.gradient-orange:hover {
    box-shadow: 0 18px 40px -12px rgba(255, 90, 31, .55);
}
body.w4 .hover-scale:hover { transform: translateY(-4px); }

/* Cards */
body.w4 .card-shadow { box-shadow: 0 1px 0 rgba(11, 11, 13, .04); border: 1px solid var(--w4-line-dark); }
body.w4 .card-shadow:hover { box-shadow: 0 30px 60px -30px rgba(60, 30, 10, .25); }
body.w4 main .shadow-lg, body.w4 main .shadow-md { box-shadow: 0 20px 50px -28px rgba(60, 30, 10, .28); }
body.w4 main .shadow-xl, body.w4 main .shadow-2xl { box-shadow: 0 30px 70px -30px rgba(60, 30, 10, .35); }
body.w4 main .bg-white.rounded-2xl, body.w4 main .bg-white.rounded-xl { border: 1px solid var(--w4-line-dark); }
body.w4 main .text-white .bg-white\/10, body.w4 main .bg-white\/10 { border: 1px solid rgba(255, 255, 255, .12); }

/* Forms */
body.w4 main input:not([type=range]):not([type=checkbox]):not([type=radio]), body.w4 main textarea, body.w4 main select {
    border-radius: 14px; border-color: #dcd8cf;
}
body.w4 main input:focus, body.w4 main textarea:focus, body.w4 main select:focus {
    outline: none; border-color: var(--w4-accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .15);
}

/* Prose (blog, legal pages) */
body.w4 .prose a { color: var(--w4-accent); }
body.w4 .prose h2, body.w4 .prose h3 { letter-spacing: -.025em; }

/* ---------- Small screens ---------- */
.w4-calc > *, .w4-versus > * { min-width: 0; }
@media (max-width: 560px) {
    .w4-btn { white-space: normal; height: auto; min-height: 58px; padding-top: 9px; padding-bottom: 9px; line-height: 1.25; }
    .w4-calc, .w4-calc-out, .w4-vcol { padding: 24px; }
    .w4-stats { gap: 22px; }
    .w4-faq-body { padding-right: 0; }
    .w4-cta-circle { width: 150px; height: 150px; font-size: 16px; }
}
