/* =========================================================
   LRC Innovation — Design System
   ========================================================= */

:root {
    /* Core palette */
    --bg-0:   #070a16;   /* hero / darkest */
    --bg-1:   #0b1022;   /* services */
    --bg-2:   #0e1330;   /* approach */
    --bg-3:   #0a0f24;   /* work */
    --bg-4:   #080c1b;   /* contact */

    --surface:      rgba(255, 255, 255, 0.04);
    --surface-hover:rgba(255, 255, 255, 0.07);
    --border:       rgba(255, 255, 255, 0.09);
    --border-glow:  rgba(120, 150, 255, 0.35);

    --text:      #eaeefb;
    --text-soft: #a7b0cc;
    --text-mute: #6b7599;

    --accent:      #5b8cff;
    --accent-2:    #a855f7;
    --accent-3:    #22d3ee;
    --grad:        linear-gradient(120deg, #5b8cff 0%, #a855f7 60%, #f472b6 100%);
    --grad-soft:   linear-gradient(120deg, #5b8cff, #a855f7);

    --radius:    18px;
    --radius-sm: 12px;
    --container: 1160px;
    --divider-h: 110px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);

    --font-head: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, .brand-text { font-family: var(--font-head); line-height: 1.1; }

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

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

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

/* ========================= BUTTONS ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad-soft);
    color: #fff;
    box-shadow: 0 10px 30px -8px rgba(91, 140, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(168, 85, 247, 0.65); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-glow); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.88rem; background: var(--grad-soft); color: #fff; }
.btn-small:hover { transform: translateY(-2px); }
.btn-block { width: 100%; padding: 16px; font-size: 1rem; }
.btn-lg { padding: 20px 44px; font-size: 1.15rem; border-radius: 999px; }

/* ========================= HEADER ========================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: padding .3s var(--ease), background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    padding: 10px 0;
    background: rgba(8, 11, 24, 0.72);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; }
.brand-text { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-accent { color: var(--accent); margin-left: 2px; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-list a { color: var(--text-soft); font-size: 0.95rem; font-weight: 500; transition: color .2s; position: relative; }
.nav-list a:not(.btn):hover { color: var(--text); }
.nav-list a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--grad-soft); border-radius: 2px;
    transition: width .3s var(--ease);
}
.nav-list a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================= HERO ========================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 120px;
    background:
        radial-gradient(1000px 600px at 70% -10%, rgba(168, 85, 247, 0.18), transparent 60%),
        radial-gradient(900px 500px at 10% 20%, rgba(91, 140, 255, 0.16), transparent 55%),
        var(--bg-0);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.hero-glow-1 { width: 480px; height: 480px; background: #5b8cff; top: -120px; right: -60px; animation: float1 14s ease-in-out infinite; }
.hero-glow-2 { width: 420px; height: 420px; background: #a855f7; bottom: -140px; left: -80px; animation: float2 16s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(-40px, 40px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(50px, -30px) scale(1.08); } }

.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-3);
    padding: 8px 16px; margin-bottom: 26px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface);
}
.hero-title { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 26px; }
.hero-title span { display: block; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-soft); max-width: 620px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.9rem; color: var(--text-mute); }


/* ========================= SECTIONS ========================= */
/* Bottom-anchored dividers are painted inside the bottom of each section using
   the NEXT section's colour, so they consume that section's bottom padding.
   We keep a tighter top and add the divider's height back onto the bottom of
   any section that actually has one, so content clears the transition and the
   header below it does not float too far down. */
.section {
    position: relative;
    padding-top: 72px;
    padding-bottom: 120px;
    overflow: hidden;
}
.section:has(> .divider-bottom) { padding-bottom: calc(120px + var(--divider-h)); }
/* Background colour is set explicitly per section via a bg-* utility, so each
   page can control its own scroll-through colour flow independently. */
.bg-0 { background: var(--bg-0); }
.bg-1 { background: var(--bg-1); }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }
.bg-4 { background: var(--bg-4); }

.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-kicker {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.section-lead { color: var(--text-soft); font-size: 1.08rem; }

/* ---- Background patterns per section ---- */
.section-pattern { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; }
.pattern-dots {
    background-image: radial-gradient(rgba(255,255,255,0.10) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.pattern-grid {
    background-image:
        linear-gradient(rgba(120,150,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,150,255,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 40%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 80%);
}
.pattern-diagonal {
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 24px);
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.section .container { position: relative; z-index: 1; }

/* ---- Patterned dividers between sections ---- */
.divider { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 2; }
.divider-bottom { bottom: -1px; }
.divider svg { display: block; width: 100%; height: var(--divider-h); }
/* Divider fill = colour of the NEXT section, set with a to-bg-* class. */
.divider svg path { fill: var(--divider-next, var(--bg-1)); }
.divider.to-bg-0 { --divider-next: var(--bg-0); }
.divider.to-bg-1 { --divider-next: var(--bg-1); }
.divider.to-bg-2 { --divider-next: var(--bg-2); }
.divider.to-bg-3 { --divider-next: var(--bg-3); }
.divider.to-bg-4 { --divider-next: var(--bg-4); }

/* ========================= CARDS ========================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
    overflow: hidden;
}
.card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(120,150,255,0.14), transparent 40%);
    opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-glow); background: var(--surface-hover); }
.card:hover::before { opacity: 1; }
.card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-bottom: 20px;
    font-size: 1.4rem; border-radius: 14px;
    background: linear-gradient(135deg, rgba(91,140,255,0.25), rgba(168,85,247,0.25));
    border: 1px solid var(--border-glow); color: var(--text);
}
.card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.card-text { color: var(--text-soft); font-size: 0.98rem; }

/* ========================= CONTACT ========================= */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-intro { padding-top: 10px; }
.contact-intro .section-kicker,
.contact-intro .section-title { text-align: left; }
.contact-points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 12px; color: var(--text-soft); }
.contact-points span { color: var(--accent-3); font-weight: 700; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    backdrop-filter: blur(6px);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.field .optional { color: var(--text-mute); font-weight: 400; }
.field input, .field textarea {
    width: 100%; padding: 14px 16px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: var(--font-body); font-size: 1rem;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(91,140,255,0.15);
    background: rgba(0,0,0,0.35);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.82rem; color: var(--text-mute); margin-top: 14px; text-align: center; }

.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 0.95rem; }
.form-alert-ok  { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4); color: #86efac; }
.form-alert-err { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }

/* ========================= FOOTER ========================= */
.site-footer { background: var(--bg-0); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.footer-tag { color: var(--text-mute); margin-top: 8px; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-soft); font-size: 0.95rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: var(--text-mute); font-size: 0.88rem; }

/* ========================= REVEAL ANIMATION ========================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-glow { animation: none; }
    html { scroll-behavior: auto; }
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 940px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
    :root { --divider-h: 72px; } /* gentler wave on narrow screens */
    .nav-toggle { display: flex; }
    .nav-list {
        position: absolute; top: 100%; right: 12px; left: 12px;
        flex-direction: column; align-items: stretch; gap: 6px;
        background: rgba(12,16,32,0.96); backdrop-filter: blur(14px);
        border: 1px solid var(--border); border-radius: var(--radius);
        padding: 14px; margin-top: 12px;
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav-list.open { opacity: 1; visibility: visible; transform: none; }
    .nav-list a { padding: 10px 12px; border-radius: 10px; }
    .nav-list a:hover { background: var(--surface); }
    .nav-cta { margin-top: 4px; }
    .nav-cta .btn { width: 100%; }
    .section { padding-top: 52px; padding-bottom: 84px; }
    .section:has(> .divider-bottom) { padding-bottom: calc(84px + var(--divider-h)); }
    .hero { padding: 120px 0 100px; }
}
@media (max-width: 540px) {
    .card-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .footer-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Multi-page additions
   ========================================================= */

/* ---- Active nav item ---- */
.nav-list a.is-active { color: var(--text); }
.nav-list a.is-active::after { width: 100%; }

/* ---- "See more" button under a section ---- */
.section-more { text-align: center; margin-top: 48px; }

/* ---- Inner page hero (shorter than the home splash) ---- */
.page-hero {
    position: relative;
    padding: 180px 0 130px;
    background:
        radial-gradient(900px 500px at 75% -20%, rgba(168, 85, 247, 0.16), transparent 60%),
        radial-gradient(800px 460px at 5% 10%, rgba(91, 140, 255, 0.14), transparent 55%),
        var(--bg-0);
    overflow: hidden;
}
.page-hero-short { padding: 180px 0 110px; }
.page-hero-content { position: relative; z-index: 2; max-width: 820px; }
.page-title { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }
.page-sub { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: var(--text-soft); max-width: 620px; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); overflow: hidden;
    transition: border-color .25s;
}
.faq-item[open] { border-color: var(--border-glow); }
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 26px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 18px; height: 18px; }
.faq-plus::before, .faq-plus::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease);
}
.faq-plus::before { width: 18px; height: 2px; }
.faq-plus::after  { width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-body { padding: 0 26px 24px; color: var(--text-soft); }
.faq-body p { max-width: 62ch; }
.faq-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.faq-body a:hover { color: var(--accent-2); }

/* ---- Prose (About story) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose .section-title { margin-bottom: 26px; }
.prose p { color: var(--text-soft); font-size: 1.08rem; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }

/* ---- Service detail (What We Do) ---- */
.service-list { display: grid; gap: 22px; max-width: 920px; margin: 0 auto; }
.service-detail {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); padding: 34px;
    transition: border-color .35s, transform .35s var(--ease);
}
.service-detail:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.service-detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.service-detail-head .card-icon { margin-bottom: 0; }
.service-detail-title { font-size: 1.5rem; font-weight: 700; }
.service-detail-text { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 22px; max-width: 68ch; }
.deliverables { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.deliverables li {
    position: relative; padding-left: 24px; color: var(--text-soft); font-size: 0.95rem;
    flex: 1 1 240px;
}
.deliverables li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: #fff; font-size: 0.7rem; font-weight: 700;
    width: 16px; height: 16px; border-radius: 5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad-soft);
}

/* ---- CTA band ---- */
.cta-section { text-align: center; }
.cta-band { max-width: 640px; margin: 0 auto; }
.cta-band .section-title { margin-bottom: 16px; }
.cta-band .section-lead { margin-bottom: 30px; }

@media (max-width: 760px) {
    .page-hero { padding: 150px 0 100px; }
    .service-detail { padding: 26px; }
    .service-detail-head { gap: 14px; }
}

/* =========================================================
   Service categories (overview + detail)
   ========================================================= */

/* Left-aligned section header variant */
.section-head-left { margin-left: 0; margin-right: auto; text-align: left; }

/* ---- Home: two-category overview ---- */
.cat-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 34px; transition: border-color .35s, transform .35s var(--ease);
}
.cat-card:hover { border-color: var(--border-glow); transform: translateY(-5px); }
.cat-card-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.cat-card-head .card-icon { margin-bottom: 0; flex: none; }
.cat-card-title { font-size: 1.5rem; font-weight: 700; }
.cat-card-tag { color: var(--text-soft); font-size: 0.98rem; margin-top: 4px; }
.cat-tags { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-tags li {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.18); color: var(--text-soft);
    font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
    transition: color .25s, border-color .25s;
}
.cat-tags li span { color: var(--accent); font-size: 1.05rem; }
.cat-card:hover .cat-tags li { color: var(--text); }

/* ---- Section-level actions (button row) ---- */
.section-actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 52px;
}

/* ---- What We Do: item cards inside a category ---- */
.cat-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-item {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.cat-item:hover { transform: translateY(-6px); border-color: var(--border-glow); background: var(--surface-hover); }
.cat-item .card-icon { margin-bottom: 18px; }
.cat-item-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.cat-item-text { color: var(--text-soft); font-size: 0.97rem; }

@media (max-width: 940px) {
    .cat-overview { grid-template-columns: 1fr; }
    .cat-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .cat-items, .cat-tags { grid-template-columns: 1fr; }
    .section-actions .btn { width: 100%; }
}

/* ---- Homepage big call to action ---- */
.cta-big { text-align: center; }
.cta-big-inner { max-width: 780px; margin: 0 auto; }
.cta-big-title {
    font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em;
    font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.1; margin: 8px 0 22px;
}
.cta-big-lead {
    color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 640px; margin: 0 auto 38px;
}
.cta-big-note { margin-top: 22px; color: var(--text-mute); font-size: 0.92rem; }

/* =========================================================
   Form extras, modal and admin
   ========================================================= */

/* ---- Required markers / hints ---- */
.req { color: #f472b6; font-weight: 700; }
.form-legend { font-size: 0.82rem; color: var(--text-mute); margin-bottom: 20px; }
.field-hint { font-size: 0.8rem; color: var(--text-mute); margin-top: 7px; }
.captcha-q { color: var(--accent-3); font-weight: 700; }
.captcha-input { max-width: 200px; }
.field input:required:focus, .field textarea:required:focus { border-color: var(--accent); }

/* ---- Email confirmation modal ---- */
.modal {
    position: fixed; inset: 0; z-index: 300;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 14, 0.72); backdrop-filter: blur(5px); }
.modal-card {
    position: relative; z-index: 1; width: 100%; max-width: 460px;
    background: var(--bg-2); border: 1px solid var(--border-glow); border-radius: var(--radius);
    padding: 36px 32px; text-align: center;
    box-shadow: 0 40px 90px -25px rgba(0, 0, 0, 0.75);
    animation: modal-pop .3s var(--ease);
}
@keyframes modal-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.modal-card h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 12px; }
.modal-lead { color: var(--text-soft); font-size: 0.98rem; }
.modal-email {
    font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
    color: var(--accent-3); word-break: break-all; margin: 12px 0;
}
.modal-sub { color: var(--text-mute); font-size: 0.86rem; margin-bottom: 26px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } }

/* ---- Admin ---- */
.admin-body { background: var(--bg-0); min-height: 100vh; }

.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login-card {
    width: 100%; max-width: 400px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px 34px;
}
.admin-login-card .brand-text { font-size: 1.2rem; }
.admin-login-card h1 { font-size: 1.5rem; margin: 14px 0 24px; }

.admin-wrap { max-width: 900px; margin: 0 auto; padding: 48px 24px 90px; }
.admin-bar {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
    padding-bottom: 24px; margin-bottom: 30px; border-bottom: 1px solid var(--border);
}
.admin-title { font-size: 1.8rem; font-weight: 700; margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.admin-count {
    font-size: 0.95rem; font-weight: 600; color: #fff;
    background: var(--grad-soft); border-radius: 999px; padding: 3px 13px;
}
.admin-empty { color: var(--text-soft); text-align: center; padding: 60px 0; }

.enquiry {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 26px; margin-bottom: 16px;
}
.enquiry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.enquiry-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.enquiry-company { color: var(--text-mute); font-size: 0.9rem; margin-left: 10px; }
.enquiry-meta { color: var(--text-mute); font-size: 0.85rem; white-space: nowrap; }
.enquiry-contact { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.enquiry-contact a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.enquiry-ip { color: var(--text-mute); font-size: 0.8rem; }
.enquiry-msg { color: var(--text-soft); white-space: pre-wrap; line-height: 1.6; }

/* =========================================================
   Thank-you page
   ========================================================= */

.thanks-hero { min-height: 78vh; display: flex; align-items: center; }
.thanks-content { text-align: center; max-width: 780px; }

/* ---- Animated confirmation tick ---- */
.thanks-tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; margin-bottom: 26px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 0 10px rgba(91, 140, 255, 0.06), 0 24px 60px -20px rgba(91, 140, 255, 0.45);
}
.thanks-tick-ring {
    stroke-dasharray: 151; stroke-dashoffset: 151;
    animation: tick-ring .7s var(--ease) .15s forwards;
}
.thanks-tick-mark {
    stroke-dasharray: 34; stroke-dashoffset: 34;
    animation: tick-mark .45s var(--ease) .6s forwards;
}
@keyframes tick-ring { to { stroke-dashoffset: 0; } }
@keyframes tick-mark { to { stroke-dashoffset: 0; } }

.thanks-title {
    font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em;
    font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1.02;
    margin: 10px 0 24px;
}
.thanks-lead {
    color: var(--text-soft); font-size: clamp(1.05rem, 2.1vw, 1.3rem);
    max-width: 620px; margin: 0 auto;
}
.thanks-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin-top: 38px;
}


@media (max-width: 600px) {
    .thanks-hero { min-height: 0; padding-top: 120px; }
    .thanks-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .thanks-tick-ring, .thanks-tick-mark { animation: none; stroke-dashoffset: 0; }
}

/* =========================================================
   Admin — tabs, visitor stats and journey drill-down
   ========================================================= */

.admin-tabs { display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.admin-tab {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    font-weight: 600; font-size: 0.95rem; color: var(--text-soft);
    transition: all .25s var(--ease);
}
.admin-tab:hover { border-color: var(--border-glow); color: var(--text); }
.admin-tab.is-active { color: #fff; border-color: transparent; background: var(--grad-soft); }
.admin-tab.is-active .admin-count { background: rgba(255, 255, 255, 0.2); }

.admin-subtitle { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.admin-filter {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap; margin: 38px 0 16px;
}

/* ---- Headline figures ---- */
.stat-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px; margin-bottom: 34px;
}
.stat-tile {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px 18px; text-align: center;
}
.stat-tile-num {
    display: block; font-family: var(--font-head); font-weight: 800;
    font-size: 1.9rem; line-height: 1;
    background: var(--grad-soft); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-tile-label { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--text-mute); }

/* ---- Top pages ---- */
.top-pages {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 26px; margin-bottom: 10px;
}
.top-pages .admin-subtitle { margin-bottom: 18px; }
.top-page { display: grid; grid-template-columns: minmax(0, 1fr) 42% auto; gap: 14px; align-items: center; padding: 7px 0; }
.top-page-path { font-size: 0.9rem; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-page-bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.top-page-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-soft); }
.top-page-count { font-weight: 700; font-size: 0.9rem; min-width: 34px; text-align: right; }

/* ---- One visitor session ---- */
.visit {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
    scroll-margin-top: 24px;
}
.visit[open] { border-color: var(--border-glow); }
.visit-head {
    display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
    padding: 18px 24px; cursor: pointer; list-style: none;
}
.visit-head::-webkit-details-marker { display: none; }
.visit-head:hover { background: var(--surface-hover); }
.visit-when { display: flex; flex-direction: column; gap: 2px; }
.visit-date { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; white-space: nowrap; }
.visit-id { font-size: 0.75rem; color: var(--text-mute); font-family: ui-monospace, monospace; }
.visit-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.visit-figures {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    font-size: 0.85rem; color: var(--text-mute); white-space: nowrap;
}
.visit-figures strong { color: var(--text); }
.visit-device { color: var(--text-soft); }

.tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.07); color: var(--text-soft);
    border: 1px solid var(--border);
}
.tag-win { background: rgba(34, 211, 238, 0.14); color: var(--accent-3); border-color: rgba(34, 211, 238, 0.35); }
.tag-ok  { background: rgba(91, 140, 255, 0.14); color: var(--accent); border-color: rgba(91, 140, 255, 0.35); }
.tag-bot { background: rgba(244, 114, 182, 0.12); color: #f472b6; border-color: rgba(244, 114, 182, 0.32); }

/* ---- Expanded detail ---- */
.visit-body { padding: 4px 24px 24px; border-top: 1px solid var(--border); }
.visit-meta {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 22px; margin: 20px 0 26px;
}
.visit-meta dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-mute); margin-bottom: 3px; }
.visit-meta dd { font-size: 0.9rem; color: var(--text-soft); word-break: break-all; }

.journey { list-style: none; position: relative; padding-left: 4px; }
.journey::before {
    content: ''; position: absolute; left: 17px; top: 14px; bottom: 14px;
    width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: 0.35;
}
.journey-step {
    position: relative; display: grid; grid-template-columns: auto 1fr auto;
    gap: 16px; align-items: center; padding: 9px 0;
}
.journey-dot {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 0.75rem; font-weight: 700; color: #fff;
    background: var(--grad-soft); border: 3px solid var(--bg-0);
}
.journey-detail { display: flex; flex-direction: column; min-width: 0; }
.journey-page { font-weight: 600; font-size: 0.94rem; }
.journey-path { font-size: 0.78rem; color: var(--text-mute); font-family: ui-monospace, monospace; word-break: break-all; }
.journey-time { font-size: 0.8rem; color: var(--text-mute); text-align: right; white-space: nowrap; }
.journey-time em { display: block; font-style: normal; color: var(--accent-3); font-size: 0.76rem; }

.visit-ua {
    margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border);
    font-size: 0.76rem; color: var(--text-mute); font-family: ui-monospace, monospace; word-break: break-all;
}

.enquiry-journey { color: var(--accent-3) !important; font-size: 0.85rem; font-weight: 600; }

@media (max-width: 760px) {
    .visit-head { grid-template-columns: 1fr; gap: 10px; }
    .visit-figures { gap: 12px; }
    .top-page { grid-template-columns: minmax(0, 1fr) auto; }
    .top-page-bar { display: none; }
    .journey-step { grid-template-columns: auto 1fr; }
    .journey-time { grid-column: 2; text-align: left; }
}

/* =========================================================
   Legal pages (privacy policy)
   ========================================================= */

.legal { max-width: 760px; margin: 0 auto; }
.legal-updated { color: var(--text-mute); font-size: 0.88rem; margin-bottom: 32px; }

.legal h2 {
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(1.3rem, 2.6vw, 1.65rem);
    margin: 44px 0 14px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--text-soft); margin-bottom: 16px; }
.legal ul { color: var(--text-soft); margin: 0 0 18px; padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal em { color: var(--text); font-style: italic; }
.legal a {
    color: var(--accent); font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px;
}
.legal a:hover { color: var(--accent-3); }

/* The at-a-glance box at the top of the policy. */
.legal-summary {
    background: var(--surface); border: 1px solid var(--border-glow);
    border-radius: var(--radius); padding: 28px 30px; margin-bottom: 10px;
}
.legal-summary h2 { margin: 0 0 14px; font-size: 1.15rem; }
.legal-summary ul { margin: 0; }
.legal-summary li:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .legal-summary { padding: 22px 20px; }
}

/* ---- Admin health checks ---- */
.health-intro { color: var(--text-soft); font-size: 0.95rem; margin: 10px 0 24px; max-width: 640px; }
.health-row {
    display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--accent-3);
    border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 10px;
}
.health-row.is-bad { border-left-color: #f472b6; background: rgba(244, 114, 182, 0.06); }
.health-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    font-weight: 700; font-size: 0.9rem; color: #fff;
    background: var(--accent-3);
}
.health-row.is-bad .health-mark { background: #f472b6; }
.health-label { display: block; font-weight: 700; font-size: 0.98rem; margin-bottom: 3px; }
.health-detail { display: block; color: var(--text-soft); font-size: 0.88rem; }
.admin-count-bad { background: #f472b6 !important; }

/* ---- Unread enquiries (nothing is emailed, so the dashboard flags them) ---- */
.enquiry.is-new { border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.04); }
.admin-count-new { background: var(--accent-3) !important; color: #04121a !important; }
