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

:root {
    --bg: #f5f5f7;
    --bg-dark: #111119;
    --bg-card-dark: #1a1a24;
    --bg-white: #ffffff;
    --text: #111119;
    --text-light: #f5f5f7;
    --text-muted: #6b7280;
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(255, 255, 255, 0.1);
    --accent: #7c3aed;
    --accent-2: #3b82f6;
    --gradient: linear-gradient(135deg, #7c3aed, #3b82f6);
    --max: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
section { padding: 5rem 0; }

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(17, 17, 25, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { height: 72px; display: flex; justify-content: space-between; align-items: center; }
.logo { text-decoration: none; display: inline-flex; gap: .35rem; align-items: baseline; }
.logo-flow {
    font-weight: 800;
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-intel { color: var(--text-light); font-weight: 500; }
.nav { display: flex; gap: 1.1rem; align-items: center; }
.nav a { color: #c4c4cd; text-decoration: none; font-size: .95rem; transition: color .2s ease; }
.nav a:hover { color: #fff; }
.nav-cta { border: 1px solid var(--border-light); border-radius: 999px; padding: .45rem .85rem; }

.hero {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 5.2rem 0 3.4rem;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 60% 52% at 50% 40%, black, transparent 75%);
    animation: gridDrift 10s linear infinite;
}
.hero-grid::after {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 25% 35%, rgba(124,58,237,.1), transparent 45%),
                radial-gradient(circle at 70% 65%, rgba(59,130,246,.08), transparent 42%);
    animation: glowDrift 7.5s ease-in-out infinite alternate;
    pointer-events: none;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.hero-orb-1 {
    width: 280px; height: 280px;
    top: -80px; right: -30px;
    background: rgba(124,58,237,.23);
    animation: floatA 8s ease-in-out infinite;
}
.hero-orb-2 {
    width: 220px; height: 220px;
    bottom: -80px; left: -60px;
    background: rgba(59,130,246,.18);
    animation: floatB 10s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 920px; }
.hero-content, .hero-grid, .hero-orb { will-change: transform; }
.hero-badge {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #cfcfd7;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: .35rem .75rem;
}
.hero-title {
    margin-top: 1rem;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.hero-highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub { margin: 1rem auto 1.7rem; color: #b0b0ba; max-width: 700px; }
.hero-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.btn {
    border: none;
    border-radius: 12px;
    padding: .8rem 1.1rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .96rem;
    transition: transform .2s var(--ease), filter .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--gradient); box-shadow: 0 8px 24px rgba(59,130,246,.28); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(59,130,246,.38); }
.btn-ghost { color: #e5e5ea; background: transparent; border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: #8b8b9a; }
.pulse {
    animation: pulseGlow 2.8s ease-in-out infinite;
    position: relative;
    isolation: isolate;
}
.pulse::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(124,58,237,.28), rgba(59,130,246,.18), transparent 72%);
    filter: blur(16px);
    opacity: .9;
    z-index: -1;
    animation: buttonAura 2.1s ease-in-out infinite;
}
.pulse::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 14px;
    border: 1px solid rgba(167, 139, 250, .55);
    opacity: .65;
    z-index: -1;
    pointer-events: none;
    animation: buttonRing 2.1s ease-in-out infinite;
}

.positioning { background: var(--bg-white); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; }
.positioning-list p { padding: .45rem 0; color: #35353f; }

.section-head { margin-bottom: 1.5rem; }
.section-kicker {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .35rem;
}

/* Stats bar */
.stats-bar { background: var(--bg-dark); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-num {
    display: block; font-size: 2rem; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: #9797a5; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

.domains { background: #efeff3; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { border-color: rgba(124,58,237,.25); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.card h3 { font-size: 1.02rem; margin-bottom: .55rem; }
.card p { color: #4d4d57; font-size: .92rem; }

.engagements { background: var(--bg-dark); color: var(--text-light); }
.engagements .section-title { color: var(--text-light); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.eng-card {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--bg-card-dark);
    padding: 1.2rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.eng-card:hover { border-color: rgba(124,58,237,.4); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.eng-thumb {
    border-radius: 10px; overflow: hidden; margin-bottom: .7rem;
    aspect-ratio: 16/10; background: #0d0d14;
}
.eng-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: .75; transition: opacity .3s ease, transform .4s var(--ease);
}
.eng-card:hover .eng-thumb img { opacity: 1; transform: scale(1.03); }
.eng-num {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #8f8fa0;
    font-size: .78rem;
}
.eng-card h3 { margin: .4rem 0 .35rem; font-size: 1.02rem; }
.eng-card p { color: #b6b6bf; font-size: .92rem; }

.method { background: var(--bg-white); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.step {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 1rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.step:hover { border-color: rgba(124,58,237,.25); box-shadow: 0 14px 26px rgba(0,0,0,.08); }
.step span {
    display: inline-block;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text-muted);
    font-size: .8rem;
}
.step h3 { margin: .5rem 0 .25rem; font-size: 1rem; }
.step p { color: #52525d; font-size: .9rem; }

/* Audit offer */
.audit-offer { background: var(--bg-dark); color: var(--text-light); }
.audit-offer .section-title { color: var(--text-light); }
.audit-card {
    border: 1px solid var(--border-light); border-radius: 18px;
    background: var(--bg-card-dark); padding: 2rem; max-width: 720px;
}
.audit-price {
    font-size: 2.2rem; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.audit-price span {
    font-size: .85rem; font-weight: 500;
    -webkit-text-fill-color: #9797a5;
}
.audit-desc { color: #b6b6bf; margin: .8rem 0 1rem; font-size: .94rem; max-width: 600px; }
.audit-includes { list-style: none; display: grid; gap: .4rem; margin-bottom: 1.3rem; }
.audit-includes li { color: #c8c8d2; font-size: .9rem; padding-left: 1.4rem; position: relative; }
.audit-includes li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

.case-studies { background: #ededf2; }
.case-intro { color: #555b72; margin-bottom: .95rem; max-width: 720px; font-size: .94rem; }
.case-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.case-link {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .9rem 1rem;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    align-items: center;
    color: var(--text);
    transition: all .2s var(--ease);
}
.case-link span { font-weight: 600; }
.case-link em { color: #727991; font-style: normal; font-size: .82rem; }
.case-link:hover { border-color: rgba(124,58,237,.35); transform: translateY(-1px); }

.credibility {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}
.credibility .section-title { color: var(--text-light); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.tags span {
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: .38rem .8rem;
    font-size: .76rem;
    color: #b7b7c1;
}
.onsite-note {
    margin: 1.3rem auto 0;
    max-width: 700px;
    font-size: .9rem;
    color: #9797a5;
    font-style: italic;
}

.cta-final { background: var(--bg-dark); padding-top: 0; }
.cta-box {
    background: #151520;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}
.cta-box h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
.cta-box p { margin: .65rem auto 1.1rem; color: #ababba; max-width: 620px; }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
    width: min(520px, 100%);
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.2rem;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: modalIn .24s var(--ease);
}
.modal-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    border: 1px solid var(--border);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.modal-head h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.modal-head p { color: #5f5f69; font-size: .9rem; margin-bottom: .75rem; }
.modal-form { display: grid; gap: .7rem; }
.form-grid { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
label { display: grid; gap: .26rem; font-size: .82rem; color: #2f2f37; }
input, textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    padding: .56rem .62rem;
    color: var(--text);
    background: #f8f8fb;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    background: #fff;
}
.tiny-note { text-align: center; color: #7a7a87; font-size: .75rem; }

/* Challenge section with audio */
.challenge-section { display: grid; gap: .5rem; }
.challenge-label { font-size: .82rem; color: #2f2f37; }
.audio-recorder { display: flex; flex-direction: column; gap: .5rem; }
.audio-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #f0edf7; border: 1px solid rgba(124,58,237,.18);
    border-radius: 10px; padding: .5rem .75rem;
    cursor: pointer; font: inherit; font-size: .85rem; color: var(--accent);
    transition: all .2s var(--ease);
}
.audio-btn:hover { background: #e8e3f3; border-color: rgba(124,58,237,.35); }
.audio-btn.recording {
    background: #fef2f2; border-color: rgba(239,68,68,.3); color: #dc2626;
    animation: recPulse 1.5s ease-in-out infinite;
}
.audio-icon { display: flex; align-items: center; }
.audio-recording {
    display: flex; align-items: center; gap: .6rem;
    background: #fef2f2; border: 1px solid rgba(239,68,68,.2);
    border-radius: 10px; padding: .45rem .7rem;
}
.audio-waveform {
    display: flex; align-items: center; gap: 2px; height: 28px; flex: 1;
}
.audio-waveform .bar {
    width: 3px; border-radius: 2px; background: #dc2626;
    animation: waveBar .6s ease-in-out infinite alternate;
}
.audio-timer, .audio-duration {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem; color: #6b7280; min-width: 32px; text-align: right;
}
.audio-playback {
    display: flex; align-items: center; gap: .5rem;
    background: #f0edf7; border: 1px solid rgba(124,58,237,.15);
    border-radius: 10px; padding: .45rem .7rem;
}
.audio-play-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gradient); color: #fff; border: none; cursor: pointer;
    transition: transform .15s var(--ease);
}
.audio-play-btn:hover { transform: scale(1.08); }
.audio-progress {
    flex: 1; height: 4px; background: rgba(124,58,237,.15);
    border-radius: 2px; overflow: hidden; cursor: pointer;
}
.audio-progress-bar {
    height: 100%; width: 0%; background: var(--gradient);
    border-radius: 2px; transition: width .1s linear;
}
.audio-delete-btn {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 6px;
    background: transparent; border: 1px solid rgba(0,0,0,.1);
    cursor: pointer; color: #9797a5; transition: all .15s ease;
}
.audio-delete-btn:hover { color: #dc2626; border-color: rgba(239,68,68,.3); background: #fef2f2; }

@keyframes recPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.15); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
@keyframes waveBar {
    0% { height: 4px; }
    100% { height: 22px; }
}

.success { display: none; text-align: center; padding: .9rem 0 .4rem; }

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0f0f16;
    color: #8f8f9e;
    padding: 1.7rem 0;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.footer-logo { font-weight: 700; margin-bottom: .3rem; }
.footer-right { text-align: right; }

[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

.tilt { transform-style: preserve-3d; }

/* Case pages */
.case-page-hero { background: var(--bg-dark); color: var(--text-light); padding: 5.1rem 0 3.3rem; }
.case-page-title { margin-top: .75rem; margin-bottom: .8rem; font-size: clamp(2rem, 4.8vw, 3.3rem); line-height: 1.08; letter-spacing: -0.03em; }
.case-page-sub { color: #b4bbd1; max-width: 760px; }
.case-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; align-items: start; }
.spec-card, .gallery-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; }
.spec-card h3, .gallery-card h3 { font-size: 1rem; margin-bottom: .55rem; }
.spec-list { list-style: none; display: grid; gap: .45rem; }
.spec-list li { color: #464b5f; font-size: .92rem; }
.gallery-grid { display: grid; gap: .65rem; }
.gallery-grid img { width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); }

@keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(14px); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(59,130,246,.28); }
    50% { box-shadow: 0 12px 30px rgba(124,58,237,.42); }
}
@keyframes buttonAura {
    0%, 100% { opacity: .38; transform: scale(0.995); }
    50% { opacity: .58; transform: scale(1.01); }
}
@keyframes buttonRing {
    0%, 100% { opacity: .24; transform: scale(0.995); }
    50% { opacity: .62; transform: scale(1.012); }
}
@keyframes gridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 90px 58px, -70px 90px; }
}
@keyframes glowDrift {
    0% { transform: translate3d(-2%, 0, 0); opacity: .24; }
    100% { transform: translate3d(2%, -2%, 0); opacity: .4; }
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 960px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
}
/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: #c4c4cd; border-radius: 2px; transition: all .2s ease; }

@media (max-width: 760px) {
    section { padding: 4.2rem 0; }
    .header-inner { height: 64px; }
    .nav-toggle { display: flex; }
    .nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(17,17,25,.98); backdrop-filter: blur(12px);
        flex-direction: column; padding: 1rem 1.25rem; gap: .8rem;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .nav.nav-open { display: flex; }
    .split, .grid-2, .grid-3, .grid-4, .form-grid, .case-list, .case-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding: 4.8rem 0 3rem; }
    .hero-ctas { flex-direction: column; }
    .footer-inner { flex-direction: column; }
    .footer-right { text-align: left; }
    .audit-card { padding: 1.3rem; }
    .audit-price { font-size: 1.8rem; }
}
