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

:root {
    --bg: #05060a;
    --bg-soft: #0a0c14;
    --text: #e8eaf2;
    --text-dim: #8b91a7;
    --accent-human: #ff5b7a;
    --accent-ai: #5bc8ff;
    --accent-merge: #b57bff;
    --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-human) 0%, var(--accent-merge) 50%, var(--accent-ai) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ------------ Nav ------------ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 3rem;
    backdrop-filter: blur(14px);
    background: rgba(5, 6, 10, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* Logo — optional icon + gradient wordmark (white → purple → indigo) */
.nav__logo,
.nav__logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    white-space: nowrap;
}
.nav__logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    /* Image sits beside the gradient text, not inside the background-clip scope */
    flex-shrink: 0;
}

/* Slightly more nav padding so the bigger logo has breathing room */
.nav { padding: 1rem 3rem; }
.nav__links { display: flex; gap: 2.5rem; list-style: none; }
.nav__links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.nav__links a:hover { color: var(--text); }
/* Primary button — outlined pill with gradient text (white → purple → indigo).
   Matches the logo's treatment for a unified brand feel. */
.nav__cta {
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    background-color: rgba(15, 15, 25, 0.4);
}
.nav__cta:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.85);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.35);
}

/* ------------ Hero ------------ */
.hero {
    position: relative;
    height: 400vh;
    width: 100%;
}

.hero__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 91, 122, 0.08), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(91, 200, 255, 0.08), transparent 50%),
        var(--bg);
}

/* Background stars (pure CSS — tiny dots via radial-gradients) */
.hero__bg-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20% 20%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 60% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 80% 30%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 35% 65%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90% 15%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 10% 90%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 50% 50%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 25% 75%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.6), transparent);
    background-size: 400px 400px, 600px 600px, 300px 300px, 500px 500px,
                     350px 350px, 450px 450px, 550px 550px, 400px 400px,
                     600px 600px, 500px 500px;
    opacity: 0.5;
    animation: starsDrift 120s linear infinite;
}
@keyframes starsDrift {
    from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 400px 400px, 600px 600px, 300px 300px, 500px 500px,
                                350px 350px, 450px 450px, 550px 550px, 400px 400px,
                                600px 600px, 500px 500px; }
}

/* ------------ Brain stage ------------ */
.brain-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

/* ------------ Merge FX ------------ */
/* All three FX layers are centered at the same point where the brains
   converge. They stay invisible until GSAP drives them during the
   2.4–2.9 window of the scroll timeline. */
.merge-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

/* Bright radial burst — peaks at the moment the brains meet. */
.merge-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 640px;
    height: 640px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(221, 200, 255, 0.85) 18%,
        rgba(181, 123, 255, 0.65) 38%,
        rgba(91, 200, 255, 0.25) 60%,
        transparent 75%);
    filter: blur(10px);
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

/* Vertical energy beam — shoots up through the merge point. */
.merge-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 95vh;
    transform: translate(-50%, -50%) scaleY(0);
    transform-origin: center center;
    opacity: 0;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 0.9) 42%,
        rgba(181, 123, 255, 1) 50%,
        rgba(255, 255, 255, 0.9) 58%,
        rgba(255, 255, 255, 0) 90%,
        transparent 100%);
    box-shadow:
        0 0 30px rgba(181, 123, 255, 0.9),
        0 0 70px rgba(181, 123, 255, 0.5),
        0 0 120px rgba(255, 255, 255, 0.25);
    filter: blur(1.5px);
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

/* Expanding shockwave rings radiating outward from impact. */
.merge-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
}
.merge-rings span {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    margin-top: -120px;
    margin-left: -120px;
    border: 2px solid rgba(181, 123, 255, 0.85);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    box-shadow:
        0 0 40px rgba(181, 123, 255, 0.7),
        inset 0 0 40px rgba(181, 123, 255, 0.35);
    will-change: transform, opacity;
}

/* When `.is-merging` is applied by the scroll timeline, the two
   originating brains' images blend with screen mode — pink + cyan
   combine to white/lavender in the overlap, visually creating a fusion. */
.brain-stage.is-merging .brain--human img,
.brain-stage.is-merging .brain--ai img {
    mix-blend-mode: screen;
    filter: brightness(1.2) saturate(1.2);
}

/* Each brain is a fixed square frame. The <img> inside is
   letterboxed via object-fit: contain, so three PNGs with
   different aspect ratios all render their subject centered
   inside the same 560x560 region — guaranteeing alignment
   regardless of the source images. */
.brain {
    position: absolute;
    top: 50%;
    left: 50%;
    width:  min(62vh, 560px);
    height: min(62vh, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    will-change: transform, opacity;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}
.brain img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Unified brain shares the same wrapper size as the originals so the
   centering math stays identical (PNGs may not be perfectly centered
   inside their own canvas — a bigger box would expose that offset).
   It's enlarged via transform: scale() from the JS timeline instead. */

.brain--human  { /* set initial offscreen-left via JS */ }
.brain--ai     { /* set initial offscreen-right via JS */ }
.brain--unified { opacity: 0; }

/* Synapse field — purple dots that orbit around the brains during merge.
   Orbit radius is pushed out to clear the unified brain at its 1.45x
   breathe peak (which reaches ~400px from center on desktop). Uses
   min(vh, px) so the radius scales down naturally on smaller viewports. */
.synapse-field {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}
.synapse-field span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-merge);
    box-shadow: 0 0 20px var(--accent-merge), 0 0 40px rgba(181, 123, 255, 0.4);
}
.synapse-field span:nth-child(1)  { transform: rotate(  0deg) translate(min(45vh, 430px)) }
.synapse-field span:nth-child(2)  { transform: rotate( 30deg) translate(min(48vh, 470px)) }
.synapse-field span:nth-child(3)  { transform: rotate( 60deg) translate(min(43vh, 410px)) }
.synapse-field span:nth-child(4)  { transform: rotate( 90deg) translate(min(46vh, 450px)) }
.synapse-field span:nth-child(5)  { transform: rotate(120deg) translate(min(44vh, 420px)) }
.synapse-field span:nth-child(6)  { transform: rotate(150deg) translate(min(47vh, 460px)) }
.synapse-field span:nth-child(7)  { transform: rotate(180deg) translate(min(45vh, 440px)) }
.synapse-field span:nth-child(8)  { transform: rotate(210deg) translate(min(48vh, 475px)) }
.synapse-field span:nth-child(9)  { transform: rotate(240deg) translate(min(43vh, 415px)) }
.synapse-field span:nth-child(10) { transform: rotate(270deg) translate(min(46vh, 455px)) }
.synapse-field span:nth-child(11) { transform: rotate(300deg) translate(min(44vh, 410px)) }
.synapse-field span:nth-child(12) { transform: rotate(330deg) translate(min(47vh, 465px)) }

/* ------------ Hero text ------------ */
.hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.hero__stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.hero__stage.is-active { opacity: 1; }

.hero__tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.02);
}
.hero__title {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-dim);
    max-width: 520px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero__scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    text-transform: uppercase;
}
.hero__scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    position: relative;
    overflow: hidden;
}
.hero__scroll-line::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 30%;
    background: var(--text);
    animation: scrollDown 1.8s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes scrollDown {
    0%   { transform: translateY(-100%); opacity: 0; }
    40%  { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

/* Tester / AI labels — both use the theme gradient (white → purple → indigo),
   mirrored so the two words feel like they point toward each other as the
   brains converge. Uses the same palette as the logo and primary buttons. */
.stage__label {
    position: absolute;
    top: 50%;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    transform: translateY(-50%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.6));
}
.stage__label--left {
    left: 6%;
    background-image: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #6366f1 100%);
}
.stage__label--right {
    right: 6%;
    background-image: linear-gradient(-135deg, #ffffff 0%, #a855f7 50%, #6366f1 100%);
}

.stage__title {
    font-size: clamp(2.4rem, 6.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.stage__sub {
    margin-top: 1.2rem;
    color: var(--text-dim);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
}

/* Stage 3 sits directly over the glowing merged brain, so the text
   needs much higher contrast than the dim subtitle used on other
   stages. Brighten colors, add a dark scrim behind, and drop-shadow
   the whole stage so it stays readable regardless of what's behind. */
.hero__stage--unified {
    /* radial scrim so the brain dims slightly behind the text */
    background: radial-gradient(ellipse at center,
        rgba(5, 6, 10, 0.55) 0%,
        rgba(5, 6, 10, 0.35) 30%,
        transparent 60%);
}
.hero__stage--unified .stage__title {
    /* Uses the main theme gradient (white → purple → indigo) — same palette
       as the logo and primary buttons — with a strong drop-shadow so it
       stays readable over the glowing unified brain behind it. */
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #6366f1 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    text-shadow: none;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.85))
            drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
}
.hero__stage--unified .stage__sub {
    color: #f0f2ff;
    font-weight: 500;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(0, 0, 0, 0.7);
    max-width: 600px;
}

/* ------------ Progress bar ------------ */
.hero__progress {
    position: fixed;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 5;
}
.hero__progress-bar {
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--accent-human), var(--accent-merge), var(--accent-ai));
    transform: scaleX(0);
    transform-origin: left center;
}

/* ------------ Sections ------------ */
.section {
    position: relative;
    z-index: 3;
    padding: 10rem 2rem;
    background: var(--bg);
}
.section--about {
    background: linear-gradient(180deg, #05060a 0%, #0a0c14 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.section__inner { max-width: 1100px; margin: 0 auto; }
.section__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-merge);
    margin-bottom: 1.25rem;
}
.section h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 900px;
}
.section p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 680px;
}

/* ------------ Tools grid ------------ */
.section__lead {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 620px;
    margin-bottom: 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 4rem;
    min-height: 200px;
}
.tools-grid__error {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-dim);
    padding: 3rem 1rem;
}

.tool {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 1.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

/* Gradient wash that reveals on hover */
.tool::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%,
        rgba(255, 91, 122, 0.12),
        transparent 55%),
        radial-gradient(circle at 100% 100%,
        rgba(91, 200, 255, 0.12),
        transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tool:hover {
    transform: translateY(-6px);
    border-color: rgba(181, 123, 255, 0.4);
    background: rgba(181, 123, 255, 0.04);
    box-shadow: 0 18px 50px -20px rgba(181, 123, 255, 0.35);
}
.tool:hover::before { opacity: 1; }

.tool__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tool__number {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--accent-merge);
    font-weight: 600;
}

.tool__category {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-ai);
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(91, 200, 255, 0.28);
    border-radius: 999px;
    background: rgba(91, 200, 255, 0.06);
    font-weight: 600;
}
.tool__category--soon {
    color: var(--text-dim);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.tool__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.tool__tags span {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(181, 123, 255, 0.08);
    border: 1px solid rgba(181, 123, 255, 0.2);
    color: #dcc6ff;
    letter-spacing: 0.02em;
}

/* Coming-soon card — visually quieter, not a link */
.tool--coming {
    cursor: default;
    opacity: 0.7;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.015) 0px,
        rgba(255, 255, 255, 0.015) 12px,
        transparent 12px,
        transparent 24px
    ), rgba(255, 255, 255, 0.02);
}
.tool--coming:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.07);
    background:
        repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, 0.015) 0px,
            rgba(255, 255, 255, 0.015) 12px,
            transparent 12px,
            transparent 24px),
        rgba(255, 255, 255, 0.02);
}
.tool__cta--disabled {
    color: var(--text-dim);
}

.tool__name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.55rem;
}

.tool__desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

/* Card now holds two action links — Launch (primary) + Learn more (secondary) */
.tool__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.tool__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease, gap 0.3s ease;
}
.tool__cta:hover { color: var(--accent-merge); gap: 0.8rem; }
.tool__cta:hover .tool__arrow { transform: translateX(4px); }

.tool__learn {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.02em;
    border-bottom: 1px dashed rgba(139, 145, 167, 0.35);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.tool__learn:hover {
    color: var(--accent-ai);
    border-color: var(--accent-ai);
}

.tool__arrow {
    display: inline-block;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* Focus ring for keyboard navigation */
.tool:focus-visible {
    outline: 2px solid var(--accent-merge);
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .tools-grid { grid-template-columns: 1fr; }
}

/* ------------ Why Choose — 4 value cards ------------ */
.section--why {
    background: linear-gradient(180deg, #05060a 0%, #080911 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.value-card {
    padding: 2rem 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(181, 123, 255, 0.35);
    background: rgba(181, 123, 255, 0.04);
    box-shadow: 0 18px 50px -20px rgba(181, 123, 255, 0.35);
}

.value-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 91, 122, 0.15), rgba(91, 200, 255, 0.15));
    border: 1px solid rgba(181, 123, 255, 0.25);
    color: var(--accent-merge);
}
.value-card__icon svg { width: 30px; height: 30px; }

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}
.value-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 960px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .value-grid { grid-template-columns: 1fr; } }

/* ------------ About — two-column layout (text + Lottie) ------------ */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text { min-width: 0; }
.about-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 540px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-visual::before {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 91, 122, 0.12), transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(91, 200, 255, 0.14), transparent 60%);
    filter: blur(30px);
    z-index: 0;
}
.about-visual dotlottie-wc {
    position: relative;
    z-index: 1;
}
@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-visual { max-height: 380px; }
}

/* ------------ About — Redefining Quality — 3 feature items ------------ */
.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.about-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 123, 255, 0.3);
}

.about-feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 91, 122, 0.12), rgba(91, 200, 255, 0.12));
    border: 1px solid rgba(181, 123, 255, 0.2);
    color: var(--accent-merge);
}
.about-feature__icon svg { width: 24px; height: 24px; }

.about-feature__body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.about-feature__body p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 880px) { .about-features { grid-template-columns: 1fr; } }

/* ------------ Latest Insights / Blog ------------ */
.section--blog {
    background: var(--bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(181, 123, 255, 0.4);
    box-shadow: 0 20px 50px -20px rgba(181, 123, 255, 0.35);
}

.blog-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.5s ease;
    background: #0a0c14;
}
.blog-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.9;
    transition: transform 0.6s ease, opacity 0.4s ease;
    z-index: 0;
}
.blog-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.06); }
.blog-card:hover .blog-card__image::before { transform: scale(1.07); opacity: 1; }

/* Decorative gradient covers for each blog card (placeholders for real images) */
.blog-card__image--roadmap::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 91, 122, 0.5), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(181, 123, 255, 0.55), transparent 55%),
        linear-gradient(135deg, #1a0a1c, #2a0f35);
}
.blog-card__image--api::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(91, 200, 255, 0.55), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(181, 123, 255, 0.4), transparent 55%),
        linear-gradient(135deg, #0a1a2a, #0f2235);
}
.blog-card__image--playwright::before {
    background:
        radial-gradient(circle at 40% 30%, rgba(155, 230, 255, 0.45), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(255, 91, 122, 0.35), transparent 55%),
        linear-gradient(135deg, #0a1424, #1a1030);
}
.blog-card__image--performance::before {
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 170, 100, 0.35), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(181, 123, 255, 0.4), transparent 55%),
        linear-gradient(135deg, #1a1020, #2a1535);
}

.blog-card--soon { opacity: 0.72; }
.blog-card--soon:hover { transform: none; border-color: rgba(255, 255, 255, 0.07); box-shadow: none; }
.blog-card__link--disabled { color: var(--text-dim); pointer-events: none; }

.blog-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    padding: 0.35rem 0.85rem;
    background: rgba(5, 6, 10, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text);
    text-transform: uppercase;
    font-weight: 600;
}

.blog-card__body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.85rem;
}

.blog-card__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.7rem;
}
.blog-card__body > p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.blog-card__link {
    align-self: flex-start;
    color: var(--accent-merge);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.blog-card__link:hover {
    color: var(--accent-ai);
    transform: translateX(3px);
}

.blog-footer {
    text-align: center;
    margin-top: 3rem;
}
.blog-view-all {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: 1px solid rgba(181, 123, 255, 0.35);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.blog-view-all:hover {
    background: rgba(181, 123, 255, 0.08);
    border-color: var(--accent-merge);
    color: var(--accent-merge);
}

@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ------------ Stats strip (inside mission section) ------------ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg,
        rgba(255, 91, 122, 0.04),
        rgba(181, 123, 255, 0.04),
        rgba(91, 200, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
}
.stat { text-align: center; }
.stat__num {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-human), var(--accent-merge), var(--accent-ai));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.stat__num span {
    font-size: 0.7em;
    margin-left: 0.1em;
}
.stat__label {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}
@media (max-width: 720px) {
    .stats { grid-template-columns: repeat(2, 1fr); padding: 1.75rem 1rem; }
}

/* ------------ Testimonials ------------ */
.section--testimonials {
    background: linear-gradient(180deg, #05060a 0%, #0a0c14 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.testimonial {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    margin: 0;
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.testimonial:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 123, 255, 0.3);
}

.testimonial__stars {
    color: #ffc96a;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.testimonial blockquote {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.testimonial figcaption strong {
    font-size: 0.95rem;
    font-weight: 600;
}
.testimonial figcaption span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ------------ Contact ------------ */
/* Section has a large, faded brand-logo watermark sitting behind the
   content. Swap the `background-image` URL to your SVG version
   (assets/images/logo/logo-icon.svg) if you'd prefer vector. */
.section--contact {
    background: var(--bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.section--contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/logo/logo-icon.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(80vh, 680px) auto;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}
/* Gentle outer fade so the brand mark dissolves into the page edges
   without cropping any of the logo itself. */
.section--contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        transparent 55%,
        var(--bg) 100%);
    pointer-events: none;
    z-index: 1;
}
.section--contact .section__inner {
    position: relative;
    z-index: 2;
}
.section__inner--center { text-align: center; }
.section__inner--center h2,
.section__inner--center p {
    margin-left: auto;
    margin-right: auto;
}
.section__inner--center p { margin-bottom: 2rem; }

.contact__email {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-human), var(--accent-ai));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border-bottom: 1px solid rgba(181, 123, 255, 0.3);
    padding-bottom: 0.25rem;
    transition: border-color 0.3s ease;
}
.contact__email:hover { border-color: var(--accent-merge); }

.socials {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
}
.socials a {
    display: inline-block;
    padding: 0.55rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.socials a:hover {
    color: var(--text);
    border-color: rgba(181, 123, 255, 0.4);
    background: rgba(181, 123, 255, 0.05);
}


/* ============ SUB-PAGE SHARED STYLES (team, blog posts) ============ */

/* Sub-page hero: compact, no 3D canvas, just title + meta */
.page-hero {
    position: relative;
    padding: 10rem 2rem 5rem;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 91, 122, 0.12), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(91, 200, 255, 0.12), transparent 50%),
        linear-gradient(180deg, #05060a 0%, #0a0c14 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 25% 30%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 70% 50%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,0.5), transparent);
    background-size: 400px 400px, 500px 500px, 350px 350px, 450px 450px;
    opacity: 0.6;
    pointer-events: none;
}
.page-hero__inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}
.page-hero .section__eyebrow { margin-bottom: 1rem; }
.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}
.page-hero p {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--text-dim);
    max-width: 720px;
    margin: 0 auto;
}

/* Breadcrumb / back link used on blog & team pages */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}
.breadcrumb:hover { color: var(--accent-merge); }

/* ----- Team page ----- */
.founders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.founder {
    padding: 2.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.founder:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 123, 255, 0.35);
    box-shadow: 0 20px 50px -20px rgba(181, 123, 255, 0.35);
}

.founder__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-human), var(--accent-merge), var(--accent-ai));
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(181, 123, 255, 0.5);
}
.founder h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}
.founder__role {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-merge);
    font-weight: 600;
    margin-bottom: 1rem;
}
.founder p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.founder__block {
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
    background: rgba(181, 123, 255, 0.04);
    border: 1px solid rgba(181, 123, 255, 0.15);
    border-radius: 12px;
}
.founder__block-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
    letter-spacing: 0.01em;
}
.founder__list {
    padding-left: 1rem;
    margin: 0;
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.6;
}
.founder__list li { margin-bottom: 0.35rem; }
.founder__list li::marker { color: var(--accent-merge); }

.founder__value {
    margin-top: 1.25rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(135deg,
        rgba(255, 91, 122, 0.05),
        rgba(91, 200, 255, 0.05));
    border-left: 3px solid var(--accent-merge);
    border-radius: 0 12px 12px 0;
}
.founder__value h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.founder__value p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Problem list on team page */
.problems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
.problem {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.problem:hover {
    border-color: rgba(255, 91, 122, 0.3);
    transform: translateY(-3px);
}
.problem__num {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: var(--accent-human);
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.problem h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.problem p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

/* Solution callout on team page */
.solution-callout {
    margin-top: 4rem;
    padding: 3rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg,
        rgba(255, 91, 122, 0.08),
        rgba(181, 123, 255, 0.08),
        rgba(91, 200, 255, 0.08));
    border: 1px solid rgba(181, 123, 255, 0.2);
    text-align: center;
}
.solution-callout h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.solution-callout p {
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}
.solution-callout .btn-primary,
.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-color: rgba(15, 15, 25, 0.45);
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.solution-callout .btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.85);
    box-shadow: 0 12px 35px -10px rgba(168, 85, 247, 0.5);
}

/* ----- Blog post page ----- */
.post__meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}
.post__meta .post__category {
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(181, 123, 255, 0.3);
    background: rgba(181, 123, 255, 0.08);
    color: #dcc6ff;
    border-radius: 999px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
}

.post-feature-image {
    max-width: 960px;
    margin: -3rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}
.post-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8),
                0 20px 60px -30px rgba(181, 123, 255, 0.25);
}

.post-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d0d4e0;
}
.post-body h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 3rem 0 1rem;
    color: var(--text);
}
.post-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}
.post-body p { margin-bottom: 1.2rem; }
.post-body ul, .post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}
.post-body li { margin-bottom: 0.4rem; }
.post-body strong { color: var(--text); font-weight: 600; }

.post-body .placeholder {
    padding: 1rem 1.25rem;
    background: rgba(255, 200, 100, 0.04);
    border-left: 3px solid rgba(255, 200, 100, 0.4);
    border-radius: 4px;
    color: rgba(255, 220, 160, 0.75);
    font-size: 0.9rem;
    font-style: italic;
    margin: 1rem 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 3rem 0;
}
.post-author__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-human), var(--accent-ai));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}
.post-author__info strong { color: var(--text); display: block; }
.post-author__info span { font-size: 0.85rem; color: var(--text-dim); }

.related-posts {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #0a0c14 0%, #05060a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.related-posts__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.related-posts h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    margin-bottom: 2rem;
}

/* ------------ Footer — branded layout (logo + tagline + links) ------------ */
.footer {
    background: var(--bg);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.85rem;
    position: relative;
    z-index: 3;
}
.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
}
.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    white-space: nowrap;
    overflow: visible;
}
.footer__logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}
.footer__tagline {
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
    max-width: 340px;
}

.footer__col h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer__links,
.footer__col a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer__links a { color: var(--text-dim); text-decoration: none; transition: color 0.3s ease; }
.footer__links a:hover,
.footer__col a:hover { color: var(--text); }

.footer__social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.footer__social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.footer__social a:hover {
    color: var(--text);
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.08);
}

.footer__bottom {
    max-width: 1100px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer__bottom p { margin: 0; }

@media (max-width: 860px) {
    .footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer__tagline { max-width: none; }
}

/* ============ Tool landing page styles ============ */
.tool-page .page-hero h1 { line-height: 1.05; }

.tool-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.tool-hero-meta__cat {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-ai);
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(91, 200, 255, 0.3);
    border-radius: 999px;
    background: rgba(91, 200, 255, 0.06);
    font-weight: 600;
}

.tool-hero-ctas {
    display: inline-flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-ghost {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(181, 123, 255, 0.4);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}
.feature-card {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 123, 255, 0.3);
}
.feature-card__num {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: var(--accent-merge);
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.feature-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}
.step {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    position: relative;
}
.step__num {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-human), var(--accent-ai));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.75rem;
    display: block;
}
.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.step p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

.personas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}
.persona {
    padding: 1.5rem;
    background: rgba(181, 123, 255, 0.03);
    border: 1px solid rgba(181, 123, 255, 0.15);
    border-radius: var(--radius);
    text-align: center;
}
.persona__emoji {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}
.persona h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.persona p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
}

.faq {
    max-width: 780px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 1.15rem 1.4rem;
    transition: border-color 0.3s ease;
}
.faq details[open] { border-color: rgba(181, 123, 255, 0.35); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.98rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    color: var(--accent-merge);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
    margin-top: 0.75rem;
    color: var(--text-dim);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ============ Privacy Policy page ============ */
.legal-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    color: #d0d4e0;
    line-height: 1.75;
    font-size: 0.98rem;
}
.legal-body h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    margin: 3rem 0 1rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.legal-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}
.legal-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.6rem;
    color: var(--text);
    letter-spacing: 0.01em;
}
.legal-body p { margin-bottom: 1rem; }
.legal-body ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a { color: var(--accent-merge); }
.legal-last-updated {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.legal-disclaimer {
    padding: 1.25rem 1.4rem;
    background: rgba(255, 200, 100, 0.05);
    border-left: 3px solid rgba(255, 200, 100, 0.45);
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.88rem;
    color: rgba(255, 220, 160, 0.85);
}

/* ------------ Responsive ------------ */
@media (max-width: 768px) {
    .nav { padding: 1rem 1.25rem; }
    .nav__links { display: none; }
    .stage__label--left  { left: 3%; }
    .stage__label--right { right: 3%; }
    .brain { width: min(50vh, 380px); height: min(50vh, 380px); }
}
