/* ==========================================================================
   VISUALS — the dimensional objects that carry each section's idea
   ========================================================================== */

/* ==========================================================================
   LAYER STACK — context as physical planes (AI & Prompt Engineering)
   ========================================================================== */

.layer-stack {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
    transform-style: preserve-3d;
    transform: rotateX(52deg) rotateZ(-42deg);
}
.ls-plane {
    position: relative;
    height: 58px;
    margin-bottom: 20px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.035);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    padding-left: 18px;
    transition: var(--transition);
    animation: float-y 7s ease-in-out infinite;
}
.ls-plane:nth-child(1) { animation-delay: 0s;   }
.ls-plane:nth-child(2) { animation-delay: 0.5s; }
.ls-plane:nth-child(3) { animation-delay: 1.0s; }
.ls-plane:nth-child(4) { animation-delay: 1.5s; }
.ls-plane:nth-child(5) { animation-delay: 2.0s; margin-bottom: 0; }

.ls-plane span {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}
.ls-plane.is-key {
    background: linear-gradient(120deg, rgba(184,239,67,0.18), rgba(184,239,67,0.05));
    border-color: var(--primary-brand-line);
    box-shadow: 0 18px 34px rgba(0,0,0,0.5), 0 0 24px rgba(184,239,67,0.12);
}
.ls-plane.is-key span { color: var(--primary-brand); }
.layer-stack:hover .ls-plane { border-color: var(--primary-brand-line); }

/* ==========================================================================
   WIREFRAME → SITE (AI-Powered Website Development)
   ========================================================================== */

.wireframe {
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.03);
    overflow: hidden;
    box-shadow: 0 26px 50px rgba(0,0,0,0.55);
    transform: perspective(900px) rotateY(-13deg) rotateX(5deg);
    transition: var(--transition);
}
.wireframe:hover { transform: perspective(900px) rotateY(-6deg) rotateX(2deg) translateY(-6px); }

.wf-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.03);
}
.wf-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.wf-bar i:first-child { background: var(--primary-brand); }
.wf-bar u {
    flex: 1;
    height: 6px;
    margin-left: 8px;
    border-radius: 3px;
    background: rgba(255,255,255,0.07);
    text-decoration: none;
}

.wf-body { padding: 20px 18px 24px; }
.wf-hero {
    height: 74px;
    border-radius: var(--r-sm);
    background: linear-gradient(125deg, rgba(184,239,67,0.2), rgba(184,239,67,0.04));
    border: 1px solid var(--primary-brand-line);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
/* Light sweeping across the mock hero, echoing the real one above it */
.wf-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    animation: drift-line 4.5s var(--ease-soft) infinite;
}
.wf-row { display: flex; gap: 10px; margin-bottom: 12px; }
.wf-row div {
    flex: 1;
    height: 42px;
    border-radius: 5px;
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border-subtle);
}
.wf-lines { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.wf-lines i { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.07); }
.wf-lines i:nth-child(1) { width: 92%; }
.wf-lines i:nth-child(2) { width: 74%; }
.wf-lines i:nth-child(3) { width: 55%; }
.wf-cta {
    width: 118px; height: 30px;
    border-radius: 6px;
    background: var(--primary-brand);
    box-shadow: 0 6px 16px rgba(184,239,67,0.25);
}

/* ==========================================================================
   VIDEO BAND — cinematic frames with depth (AI Video & Avatar)
   ========================================================================== */

.video-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 20px);
    perspective: 1200px;
    padding-block: 20px;
}
.vb-frame {
    position: relative;
    flex: 0 0 auto;
    border-radius: var(--r-md);
    border: 1px solid var(--border-glass);
    background:
        radial-gradient(ellipse 80% 70% at 50% 40%, rgba(184,239,67,0.1), transparent 70%),
        rgba(255,255,255,0.035);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: var(--transition);
    display: grid;
    place-items: center;
}
/* Centre frame is the focal point; the flanks recede into depth */
.vb-frame.side {
    width: clamp(96px, 13vw, 168px);
    aspect-ratio: 9 / 16;
    opacity: 0.45;
    filter: blur(1.5px);
}
.vb-frame.side.left  { transform: rotateY(26deg)  translateZ(-70px) scale(0.9); }
.vb-frame.side.right { transform: rotateY(-26deg) translateZ(-70px) scale(0.9); }
.vb-frame.main {
    width: clamp(178px, 24vw, 288px);
    aspect-ratio: 9 / 16;
    border-color: var(--primary-brand-line);
    box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 50px rgba(184,239,67,0.14);
    z-index: 2;
}
.video-band:hover .vb-frame.side { opacity: 0.7; filter: blur(0.5px); }

/* The avatar clip fills the centre frame; the play mark is the pre-roll state
   and retires once playback actually begins (or stays put if it never does). */
.vb-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    /* The clip is 9:16, the frame is 9:16 — cover crops nothing. A different
       aspect ratio would centre-crop rather than letterbox. */
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.9s var(--ease-out);
    pointer-events: none;
}
.vb-frame.is-playing .vb-video { opacity: 1; }

/* Keeps the corner label legible over whatever frame is on screen */
.vb-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.9s var(--ease-out);
    background:
        linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 34%),
        linear-gradient(to bottom, rgba(0,0,0,0.34) 0%, transparent 24%);
}
.vb-frame.is-playing .vb-scrim { opacity: 1; }

.vb-play {
    z-index: 2;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid var(--primary-brand-line);
    background: rgba(184,239,67,0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    color: var(--primary-brand);
    position: relative;
}
.vb-play::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--primary-brand);
    animation: pulse-ring 3s ease-out infinite;
}
.vb-play svg { width: 18px; height: 18px; margin-left: 3px; }

.vb-frame.is-playing .vb-play {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.vb-label {
    position: absolute;
    z-index: 3;
    left: 14px; bottom: 14px;
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.vb-frame.main .vb-label { color: var(--primary-brand); }

/* Timeline scrub under the band */
.vb-track {
    position: relative;
    height: 3px;
    max-width: 420px;
    margin: 34px auto 0;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.vb-track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    background: linear-gradient(90deg, var(--primary-brand-deep), var(--primary-brand));
    border-radius: 2px;
    box-shadow: 0 0 14px var(--primary-brand-glow);
    animation: vb-scrub 6s var(--ease-soft) infinite;
}
@keyframes vb-scrub {
    0%   { width: 8%; }
    55%  { width: 76%; }
    100% { width: 8%; }
}

/* ==========================================================================
   ORBIT — social / local signal fields
   ========================================================================== */

.orbit {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin-inline: auto;
    display: grid;
    place-items: center;
}
.orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
}
.orbit-ring.r2 { inset: 15%; border-color: rgba(255,255,255,0.075); }
.orbit-ring.r3 { inset: 30%; border-color: var(--primary-brand-line); }

.orbit-core {
    position: relative;
    z-index: 3;
    width: 84px; height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background: radial-gradient(circle, rgba(184,239,67,0.24), rgba(184,239,67,0.05));
    border: 1px solid var(--primary-brand-line);
    box-shadow: 0 0 44px rgba(184,239,67,0.22);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-brand);
    padding: 8px;
    line-height: 1.25;
}
.orbit-core::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid var(--primary-brand);
    animation: pulse-ring 3.6s ease-out infinite;
}

/* Chips pinned around the field — positioned per-instance */
.orbit-chip {
    position: absolute;
    z-index: 4;
    padding: 8px 15px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border-glass);
    background: rgba(10,10,10,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
    transition: var(--transition);
    animation: float-y 8s ease-in-out infinite;
}
.orbit-chip:hover {
    color: var(--primary-brand);
    border-color: var(--primary-brand-line);
    background: rgba(184,239,67,0.12);
}
.orbit-chip.c1 { top: 2%;  left: 50%; transform: translateX(-50%); animation-delay: 0s;   }
.orbit-chip.c2 { top: 22%; right: -4%; animation-delay: 0.9s; }
.orbit-chip.c3 { bottom: 22%; right: -2%; animation-delay: 1.8s; }
.orbit-chip.c4 { bottom: 2%; left: 50%; transform: translateX(-50%); animation-delay: 2.7s; }
.orbit-chip.c5 { bottom: 22%; left: -4%; animation-delay: 3.6s; }
.orbit-chip.c6 { top: 22%; left: -2%; animation-delay: 4.5s; }

/* Sweep line — a radar pass over the field */
.orbit-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(184,239,67,0.14) 34deg, transparent 70deg);
    animation: orbit-spin 9s linear infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   CANVA / VISUAL MARKETING — asset mosaic
   ========================================================================== */

.asset-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 74px;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
    perspective: 900px;
}
.am-tile {
    border-radius: var(--r-sm);
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.04);
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    /* The tile ground is lighter than the page, so --text-faint lands just
       under 4.5:1 here — step up one level. */
    color: var(--text-dim);
    text-align: center;
    padding: 6px;
    transition: var(--transition);
    transform-style: preserve-3d;
}
.am-tile:hover {
    color: var(--primary-brand);
    border-color: var(--primary-brand-line);
    background: rgba(184,239,67,0.1);
    transform: translateZ(24px) scale(1.05);
    box-shadow: 0 20px 36px rgba(0,0,0,0.5);
}
.am-tile.wide { grid-column: span 2; }
.am-tile.tall { grid-row: span 2; }
.am-tile.accent {
    background: linear-gradient(135deg, rgba(184,239,67,0.2), rgba(184,239,67,0.04));
    border-color: var(--primary-brand-line);
    color: var(--primary-brand);
}

/* ==========================================================================
   SEARCH FIELD — query rising through the layers (SEO/AEO/GEO)
   ========================================================================== */

.search-field {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
}
.sf-query {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: var(--r-pill);
    border: 1px solid var(--primary-brand-line);
    background: rgba(184,239,67,0.08);
    margin-bottom: 26px;
    box-shadow: 0 0 30px rgba(184,239,67,0.12);
}
.sf-query svg { width: 16px; height: 16px; color: var(--primary-brand); flex-shrink: 0; }
.sf-query span {
    font-size: 0.86rem;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 400;
}
/* Blinking caret — the query is being typed, not static */
.sf-caret {
    display: inline-block;
    width: 1.5px; height: 14px;
    background: var(--primary-brand);
    margin-left: 2px;
    vertical-align: -2px;
    animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.sf-results { display: flex; flex-direction: column; gap: 10px; }
.sf-result {
    position: relative;
    padding: 14px 18px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.03);
    transition: var(--transition);
}
.sf-result:hover { border-color: var(--primary-brand-line); background: rgba(255,255,255,0.06); }
.sf-result b {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 7px;
}
.sf-result i {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 5px;
}
.sf-result i:nth-of-type(1) { width: 96%; }
.sf-result i:nth-of-type(2) { width: 68%; }
.sf-result.is-ai {
    background: linear-gradient(120deg, rgba(184,239,67,0.13), rgba(255,255,255,0.03));
    border-color: var(--primary-brand-line);
}
.sf-result.is-ai b { color: var(--primary-brand); }
.sf-result.is-ai i { background: rgba(184,239,67,0.22); }
.sf-badge {
    position: absolute;
    top: 12px; right: 14px;
    font-family: var(--font-heading);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-brand);
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(184,239,67,0.14);
    border: 1px solid var(--primary-brand-line);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR VISUALS
   ========================================================================== */

@media (max-width: 1024px) {
    .layer-stack { transform: rotateX(42deg) rotateZ(-34deg) scale(0.92); }
}

@media (max-width: 768px) {
    /* Flatten the 3D isometric — it reads poorly at narrow widths */
    .layer-stack { transform: none; max-width: 100%; }
    .ls-plane { height: 50px; margin-bottom: 10px; animation: none; }

    .wireframe { transform: none; max-width: 100%; }
    .wireframe:hover { transform: translateY(-4px); }

    .vb-frame.side { display: none; }
    .vb-frame.main { width: min(62vw, 240px); }

    .orbit { max-width: 300px; }
    .orbit-chip { font-size: 0.6rem; padding: 6px 11px; }
    .orbit-chip.c2, .orbit-chip.c6 { top: 16%; }
    .orbit-chip.c3, .orbit-chip.c5 { bottom: 16%; }

    .asset-mosaic { grid-auto-rows: 62px; gap: 9px; }
    .am-tile:hover { transform: none; }
}
