/* ==========================================================================
   webconsultancy.dev
   ========================================================================== */

:root {
    --bg: #0b0d17;
    --bg-alt: #10131f;
    --surface: #151927;
    --surface-2: #1b2033;
    --border: rgba(255, 255, 255, 0.08);
    --text: #eef0f7;
    --muted: #9aa1b8;
    --accent: #7c6cff;
    --accent-2: #22d3ee;
    --accent-3: #f472b6;
    --gradient: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    --radius: 18px;
    --radius-sm: 10px;
    --header-h: 72px;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f7f8fc;
    --bg-alt: #eef0f8;
    --surface: #ffffff;
    --surface-2: #f2f3fa;
    --border: rgba(15, 20, 40, 0.09);
    --text: #0e1222;
    --muted: #586079;
    --accent: #5b4cf0;
    --accent-2: #0891b2;
    --shadow: 0 20px 50px -24px rgba(20, 25, 60, 0.25);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }

.icon { width: 1.1em; height: 1.1em; flex: none; }

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

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
    border: 1px solid transparent; cursor: pointer; font-family: inherit;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { box-shadow: 0 14px 36px -8px var(--accent); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.icon-btn {
    width: 42px; height: 42px; display: inline-grid; place-items: center;
    border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn .icon { width: 20px; height: 20px; }

/* Logo ------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.logo-mark svg { width: 34px; height: 34px; display: block; }
.logo-tld { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header ----------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 75%, transparent);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.header-actions { display: flex; gap: 8px; }
.nav-toggle { display: none; }
.when-dark { display: none; }
:root:not([data-theme="light"]) .when-light { display: none; }
:root:not([data-theme="light"]) .when-dark { display: inline; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(64px, 10vw, 130px) 0 48px; overflow: hidden; }
.hero-sm { padding-bottom: 24px; }
.hero-glow {
    position: absolute; inset: -30% -10% auto; height: 760px; pointer-events: none; z-index: -1;
    background:
        radial-gradient(40% 50% at 25% 30%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
        radial-gradient(35% 45% at 75% 20%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 70%),
        radial-gradient(30% 40% at 60% 70%, color-mix(in srgb, var(--accent-3) 14%, transparent), transparent 70%);
    filter: blur(20px);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { max-width: 960px; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px;
}
.hero .eyebrow { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); letter-spacing: 0.04em; text-transform: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.04em; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 720px; margin: 0 auto 32px; }
.hero-sm .hero-lead { margin-left: 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-sm .hero-cta { justify-content: flex-start; }
.hero-points { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 12px 28px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--accent-2); }

.marquee { margin-top: 72px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track { align-items: center; gap: 20px; padding: 14px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-logo {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    height: 76px; padding: 0 28px; border-radius: 16px; background: #fff;
    border: 1px solid rgba(15, 20, 40, 0.06); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5);
    transition: transform .25s ease, box-shadow .25s ease;
}
.client-logo:hover, .client-logo:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .55); }
.client-logo img { height: 34px; width: auto; max-width: 200px; }
.client-logo img[data-logo="daniels-gutters"], .client-logo img[data-logo="garden-solutions"] { height: 46px; }
.client-logo img[data-logo="translatedin"] { height: 36px; }
.client-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; }
.client-wordmark svg { width: 32px; height: 32px; flex: none; }
.client-wordmark b { font-weight: 700; }
.client-wordmark small { font-size: .6em; font-weight: 700; padding: 3px 6px; border-radius: 4px; margin-left: 2px; color: #fff; vertical-align: 3px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { max-width: 560px; margin-bottom: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { position: relative; overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.service::after { content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: 0; transition: opacity .3s; z-index: 0; mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000); -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000); mask-composite: exclude; -webkit-mask-composite: xor; padding: 1px; border-radius: inherit; pointer-events: none; }
.service:hover { transform: translateY(-4px); }
.service:hover::after { opacity: 1; }
.service p { color: var(--muted); margin: 0; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 22px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.service-icon .icon { width: 24px; height: 24px; }

/* Stats */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 24px; text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat-value { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
.project.is-hidden { display: none; }
.project-link { display: block; border-radius: var(--radius); }
.project-meta { padding-top: 22px; }
.project-meta h3 { font-size: 1.45rem; margin-bottom: 8px; }
.project-meta h3 a:hover { color: var(--accent-2); }
.project-meta p { color: var(--muted); margin-bottom: 14px; }

.browser { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); transition: transform .4s ease; }
.project-link:hover .browser { transform: translateY(-6px) rotate(-0.4deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 12px; flex: 1; font-size: 0.78rem; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 3px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-body { aspect-ratio: 16 / 10; position: relative; background: linear-gradient(135deg, var(--g1), var(--g2)); overflow: hidden; }
.browser-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s ease; }
.project-link:hover .browser-body img { transform: scale(1.03); }
.mock { position: absolute; inset: 0; padding: 9% 9%; display: flex; flex-direction: column; justify-content: center; gap: 14px; color: #fff; }
.mock::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 100%, rgba(255,255,255,.25), transparent 60%), radial-gradient(40% 60% at 0% 0%, rgba(0,0,0,.18), transparent 70%); }
.mock::after { content: ""; position: absolute; right: 8%; bottom: 12%; width: 34%; aspect-ratio: 1; border-radius: 24px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); transform: rotate(8deg); backdrop-filter: blur(4px); }
.mock > * { position: relative; z-index: 1; }
.mock-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; max-width: 60%; line-height: 1.05; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.mock-line { height: 10px; width: 46%; border-radius: 6px; background: rgba(255,255,255,.55); }
.mock-line.short { width: 32%; background: rgba(255,255,255,.35); }
.mock-btn { width: 110px; height: 32px; border-radius: 999px; background: #fff; margin-top: 6px; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.78rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

/* Process */
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.process-step { position: relative; padding: 32px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.process-num { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; background: var(--gradient); color: #fff; margin-bottom: 20px; }
.process-step p { color: var(--muted); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.about-grid p { color: var(--muted); }
.about-grid .btn { margin-top: 12px; }
.about-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.about-panel h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.about-panel h3:not(:first-child) { margin-top: 28px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.9rem; font-weight: 500; }
.chips-soft li { background: color-mix(in srgb, var(--accent-2) 10%, transparent); border-color: color-mix(in srgb, var(--accent-2) 25%, transparent); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 24px; transition: border-color .2s; }
.faq[open] { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2, .faq summary h3 { font-size: 1.05rem; margin: 0; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.faq-plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.faq-plus::after { transform: rotate(90deg); }
.faq[open] .faq-plus::after { transform: rotate(0); }
.faq p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; top: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%); pointer-events: none; }
.contact-intro { position: relative; }
.contact-intro p { color: var(--muted); }
.contact-details { font-style: normal; display: grid; gap: 12px; margin-top: 28px; }
.contact-details a, .contact-details span { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.contact-details a:hover { color: var(--accent-2); }
.contact-details .icon { color: var(--accent-2); }

.contact-form { position: relative; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 0.88rem; font-weight: 600; padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 0.9rem; cursor: pointer; transition: all .2s; }
.pill input:checked + span { background: var(--gradient); color: #fff; border-color: transparent; }
.pill input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.alert-success { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35); color: #16a34a; }
.alert-error { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); color: #ef4444; }

/* Case study */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--text); }
.case .hero-title { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.case-shot { max-width: 1000px; margin: 0 auto 64px; }
.case-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.case-grid p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--accent-2); margin-top: 5px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; margin: 0; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { color: var(--accent-2); }
.next-project { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.next-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: -0.03em; }
.next-link:hover { color: var(--accent-2); }

/* Multi-page components */
.nav a.is-active:not(.btn) { color: var(--text); position: relative; }
.nav a.is-active:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--gradient); }
a.service { display: block; color: inherit; }

.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: var(--gradient); color: #fff;
    box-shadow: 0 30px 80px -30px var(--accent);
}
.cta-band h2 { margin-bottom: 8px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { margin: 0; opacity: .9; }
.btn-light { background: #fff; color: #111; }
.btn-light:hover { box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }

.service-list { display: grid; gap: 20px; }
.service-row {
    display: grid; grid-template-columns: 120px 1.2fr 1fr; gap: 32px; align-items: start;
    padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.service-row h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.service-row p { margin: 0; }
.service-row .checklist { margin: 0; }
.service-row-head { display: grid; gap: 14px; }
.service-index { font-family: var(--font-head); font-weight: 700; color: var(--muted); }
.chips-lg li { padding: 12px 20px; font-size: 1rem; }
.filters-bar { margin-bottom: 40px; }
.faq-page { max-width: 860px; }
.faq-page .faq summary h2 { font-size: 1.1rem; }
.footer-cta { display: inline-flex !important; margin-top: 8px; color: #fff; }
.contact-intro .checklist { margin-top: 28px; }

/* Resources & guides */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card-link {
    display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); transition: transform .25s ease, border-color .25s ease;
}
.guide-card-link:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.guide-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.guide-card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.guide-card-service { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-2); }
.guide-card-link h2 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 10px; }
.guide-card-link p { color: var(--muted); font-size: .95rem; flex: 1; }
.guide-card-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--text); }

.guide-head { max-width: 900px; }
.guide .hero-title { font-size: clamp(2rem, 5vw, 3.4rem); }
.guide .hero .eyebrow:hover { border-color: var(--accent); }
.guide-byline { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-byline a { color: var(--text); font-weight: 600; }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 24px; padding-bottom: 96px; }
.guide-toc-inner { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; justify-items: start; }
.guide-toc-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.guide-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.guide-toc ol a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.guide-toc ol a:hover, .guide-toc ol a.is-current { color: var(--text); border-left-color: var(--accent); }

.prose { max-width: 760px; font-size: 1.06rem; }
.prose > p, .prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; display: grid; gap: .5em; }
.prose li::marker { color: var(--accent-2); font-weight: 700; }
.prose a:not(.btn) { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--text); }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.prose .faq-list { margin-bottom: 2em; }
.prose .faq summary h3 { margin: 0; }
.key-takeaways { padding: 24px 28px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); margin-bottom: 2em; }
.key-takeaways-title { font-family: var(--font-head); font-weight: 700; margin-bottom: 10px; }
.key-takeaways ul { margin: 0; }
.guide-service-cta { margin-top: 3em; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 20px; }
.guide-service-cta h2 { margin: 0 0 .4em; font-size: 1.5rem; }
.guide-service-cta p:not(.eyebrow) { color: var(--muted); margin: 0; }
.guide-service-cta .eyebrow { margin-bottom: 8px; }
.guide-service-cta .hero-cta { justify-content: flex-start; }

.service-guides { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .92rem; }
.service-guides span { color: var(--muted); font-weight: 600; }
.service-guides a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 500; }
.service-guides a:hover { text-decoration: underline; }
.service-promo { grid-column: 2 / -1; }

/* ClickTrap product promo */
.product-promo {
    --ct: #22D3A6; --ct-ink: #0E1A2B;
    position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: start;
    padding: 32px; margin: 2.4em 0; border-radius: var(--radius); color: #e8eef7;
    background: radial-gradient(60% 120% at 100% 0%, rgba(34, 211, 166, .22), transparent 60%), linear-gradient(135deg, #0E1A2B, #10243a);
    border: 1px solid rgba(34, 211, 166, .35);
}
.product-promo-brand { display: grid; justify-items: center; gap: 10px; }
.product-promo-mark svg { width: 64px; height: 64px; display: block; }
.product-promo-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ct); }
.product-promo h3 { color: #fff; font-size: 1.35rem; margin: 0 0 8px; }
.product-promo p { color: #b9c6d8 !important; margin: 0; font-size: .98rem; }
.product-promo-points { list-style: none; padding: 0 !important; margin: 14px 0 0 !important; display: flex !important; flex-wrap: wrap; gap: 8px 20px !important; }
.product-promo-points li { display: inline-flex; align-items: center; gap: 8px; color: #e8eef7 !important; font-size: .92rem; }
.product-promo-points .icon { color: var(--ct); }
.product-promo-cta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.product-promo--compact { grid-template-columns: auto 1fr auto; align-items: center; }
.product-promo--compact .product-promo-cta { grid-column: auto; flex-direction: column; align-items: center; }
.btn-clicktrap { background: var(--ct); color: var(--ct-ink); white-space: nowrap; }
.btn-clicktrap:hover { box-shadow: 0 12px 30px -10px rgba(34, 211, 166, .6); }
.product-promo-link { font-size: .88rem; color: #b9c6d8 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.product-promo--compact { margin: 0; padding: 22px 24px; }
.product-promo--compact .product-promo-mark svg { width: 44px; height: 44px; }
.product-promo--compact h3 { font-size: 1.1rem; }

/* Homepage ClickTrap section */
.clicktrap-section { padding-top: 0; }
.ct-panel {
    --ct: #22D3A6; --ct-ink: #0E1A2B;
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
    padding: clamp(28px, 5vw, 64px); border-radius: 32px; color: #e8eef7;
    background:
        radial-gradient(50% 70% at 100% 0%, rgba(34, 211, 166, .25), transparent 65%),
        radial-gradient(40% 60% at 0% 100%, rgba(34, 211, 166, .12), transparent 70%),
        linear-gradient(140deg, #0b1626 0%, #0E1A2B 45%, #10283d 100%);
    border: 1px solid rgba(34, 211, 166, .28);
    box-shadow: 0 40px 100px -40px rgba(34, 211, 166, .35);
}
.ct-panel::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 70% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 30%, #000 20%, transparent 75%);
}
.ct-copy, .ct-visual { position: relative; }
.ct-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.ct-mark svg { width: 40px; height: 40px; display: block; }
.ct-wordmark { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.ct-wordmark b { color: var(--ct); }
.ct-badge { margin-left: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ct); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(34, 211, 166, .4); background: rgba(34, 211, 166, .08); }
.ct-panel h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 16px; }
.ct-accent { color: var(--ct); }
.ct-lead { color: #b9c6d8; font-size: 1.05rem; margin-bottom: 26px; }
.ct-threats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-threats li { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 2px; }
.ct-threats strong { color: #fff; font-size: .95rem; }
.ct-threats strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f87171; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); }
.ct-threats span { color: #93a3b8; font-size: .86rem; line-height: 1.45; }
.ct-facts { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 0; border-radius: 16px; border: 1px solid rgba(34, 211, 166, .25); overflow: hidden; }
.ct-facts li { flex: 1; padding: 14px 16px; display: grid; text-align: center; border-left: 1px solid rgba(34, 211, 166, .2); }
.ct-facts li:first-child { border-left: 0; }
.ct-facts b { font-family: var(--font-head); font-size: 1.5rem; color: var(--ct); line-height: 1.1; }
.ct-facts span { font-size: .8rem; color: #93a3b8; }
.ct-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ct-ghost { color: #e8eef7; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.btn-ct-ghost:hover { border-color: var(--ct); }
.ct-platforms { margin: 22px 0 0; font-size: .85rem; color: #93a3b8; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ct-platforms span { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #dbe4ef; font-weight: 500; }

.ct-shot { display: block; }
.ct-shot .browser { border-color: rgba(255, 255, 255, .12); background: #0E1A2B; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease; }
.ct-shot:hover .browser { transform: perspective(1400px) rotateY(0) rotateX(0); }
.ct-shot .browser-bar { background: #13233a; border-color: rgba(255, 255, 255, .08); }
.ct-shot .browser-bar span { background: #0E1A2B; color: #93a3b8; }
.ct-float {
    position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
    background: rgba(14, 26, 43, .92); border: 1px solid rgba(255, 255, 255, .12); color: #dbe4ef; font-size: .82rem; font-weight: 500;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); animation: ct-bob 5s ease-in-out infinite;
}
.ct-float em { font-style: normal; font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(248, 113, 113, .16); color: #fca5a5; }
.ct-float em.ok { background: rgba(34, 211, 166, .16); color: var(--ct); }
.ct-float-1 { left: -24px; bottom: 18%; }
.ct-float-2 { right: -16px; top: 12%; animation-delay: -2.5s; }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; }
.ct-dot-red { background: #f87171; }
.ct-dot-green { background: var(--ct); }
@keyframes ct-bob { 50% { transform: translateY(-8px); } }

@media (max-width: 1024px) {
    .ct-panel { grid-template-columns: 1fr; gap: 40px; }
    .ct-float-1 { left: 8px; }
    .ct-float-2 { right: 8px; }
}
@media (max-width: 600px) {
    .ct-panel { border-radius: 24px; }
    .ct-threats { grid-template-columns: 1fr; }
    .ct-facts li { padding: 12px 8px; }
    .ct-facts b { font-size: 1.15rem; white-space: nowrap; }
    .ct-cta .btn { width: 100%; }
    .ct-shot .browser { transform: none; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 28px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.footer-grid a:not(.logo), .footer-grid span { display: block; margin-bottom: 10px; font-size: 0.95rem; }
.footer-grid a:not(.logo):hover { color: var(--accent-2); }
.footer-blurb { margin-top: 16px; max-width: 320px; font-size: 0.95rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
    .about-grid, .faq-wrap, .contact-card, .case-grid { grid-template-columns: 1fr; gap: 40px; }
    .service-row { grid-template-columns: 1fr; gap: 20px; }
    .service-guides, .service-promo { grid-column: auto; }
    .guide-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-layout { grid-template-columns: 1fr; gap: 0; }
    .guide-toc { display: none; }
    .product-promo { grid-template-columns: 1fr; text-align: left; }
    .product-promo-brand { justify-items: start; grid-auto-flow: column; align-items: center; }
    .product-promo-cta, .product-promo--compact .product-promo-cta { grid-column: auto; align-items: flex-start; }
    .product-promo--compact { grid-template-columns: 1fr; }
    .service-row-head { grid-auto-flow: column; justify-content: start; align-items: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-grid; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        padding: 12px 16px 24px; background: var(--bg); border-bottom: 1px solid var(--border);
        transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
    }
    .nav.is-open { transform: none; }
    .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; color: var(--text); }
    .nav-cta { margin-top: 16px; }
    .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .services-grid, .process-grid, .guide-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .card, .about-panel { padding: 24px; }
    .hero-cta .btn { width: 100%; }
    .logo { font-size: 1.05rem; }
    .logo-mark svg { width: 30px; height: 30px; }
}

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