/* ==========================================================
   SUMAN MUKHERJEE — PORTFOLIO v4
   Posh. Techie. Smooth. Awwwards-grade.
   ========================================================== */

:root {
    /* Core neutrals */
    --ink: #06070b;
    --ink-2: #0c0e15;
    --ink-3: #131621;
    --paper: #f6f5f1;
    --paper-2: #ecebe5;

    /* Dual accent system */
    --acid: #c5ff3d;         /* primary highlight — electric lime, upgraded */
    --acid-dim: #9ed12f;
    --plasma: #7c5cff;       /* complementary violet */
    --plasma-dim: #5a3ef0;
    --signal: #00e0ff;       /* tertiary cyan for data/ticker */

    /* Type */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snap: cubic-bezier(0.2, 0.9, 0.3, 1.3);
    --max-w: 1240px;
    --nav-h: 68px;
}

/* -- DARK (default) -- */
body {
    --bg: var(--ink);
    --bg2: var(--ink-2);
    --bg3: var(--ink-3);
    --fg: #f4f3ef;
    --fg2: #b8b6ad;
    --fg3: #7c7a73;
    --fg4: #3f3e3a;
    --border: rgba(255,255,255,0.09);
    --border-strong: rgba(255,255,255,0.18);
    --card: rgba(255,255,255,0.035);
    --card-hover: rgba(255,255,255,0.07);
    --glass: rgba(20,22,30,0.55);
    --glow: 0 0 48px rgba(197,255,61,0.15);
}

/* -- LIGHT -- */
[data-theme="light"] body {
    --bg: var(--paper);
    --bg2: #efede6;
    --bg3: #e4e2da;
    --fg: #0a0b10;
    --fg2: #2a2b33;
    --fg3: #6c6b65;
    --fg4: #bcb9b0;
    --border: rgba(0,0,0,0.09);
    --border-strong: rgba(0,0,0,0.2);
    --card: rgba(255,255,255,0.8);
    --card-hover: #fff;
    --glass: rgba(246,245,241,0.72);
    --glow: 0 0 40px rgba(124,92,255,0.12);
    --acid: #2d7a1f;
    --acid-dim: #205816;
    --plasma: #5a3ef0;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust:100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none; /* replaced by custom cursor */
}
@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
button { cursor: none; font-family: inherit; background: none; border: none; color: inherit; }
@media (hover: none) { button { cursor: pointer; } }
ul { list-style: none; }
img { max-width: 100%; display: block; }
/* Text selection — readable in every theme */
::selection { background: var(--plasma); color: #fff; text-shadow: none; }
[data-theme="light"] ::selection { background: var(--plasma); color: #fff; }
[data-theme="terminal"] ::selection { background: var(--acid); color: #000; }
/* Prevent janky hover-flash on hoverable text */
a, button { -webkit-tap-highlight-color: transparent; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ======================== SHADER CANVAS BG ======================== */
.shader-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}
.shader-bg canvas { width: 100% !important; height: 100% !important; display:block; }

body > * { position: relative; z-index: 1; }

/* Grain */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ======================== CUSTOM CURSOR ======================== */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
    will-change: transform;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
}
.cursor-ring {
    width: 38px; height: 38px;
    border: 1.5px solid rgba(255,255,255,0.8);
    transform: translate(-50%, -50%);
    transition: width .35s var(--ease), height .35s var(--ease),
                border-color .25s var(--ease), background .25s var(--ease);
}
.cursor-ring.hovering {
    width: 64px; height: 64px;
    background: rgba(197,255,61,0.12);
    border-color: var(--acid);
}
.cursor-dot.hovering {
    width: 0; height: 0;
}
.cursor-ring.pressing {
    width: 28px; height: 28px;
    background: var(--acid);
    border-color: var(--acid);
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ======================== SCROLL PROGRESS ======================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--acid), var(--plasma));
    z-index: 10002;
    transition: width 0.08s linear;
    box-shadow: 0 0 10px var(--acid);
}

/* ======================== SECTION DOTS NAV ======================== */
.dots-nav {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dots-nav a {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--fg3);
    position: relative;
    transition: all .3s var(--ease);
}
.dots-nav a.active {
    background: var(--acid);
    border-color: var(--acid);
    box-shadow: 0 0 10px var(--acid);
    transform: scale(1.25);
}
.dots-nav a::after {
    content: attr(data-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg2);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .25s;
    background: var(--glass);
    backdrop-filter: blur(6px);
    padding: 4px 8px;
    border-radius: 4px;
}
.dots-nav a:hover::after { opacity: 1; }
@media (max-width: 900px) { .dots-nav { display: none; } }

/* ======================== NAV ======================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 3vw, 2rem);
    transition: all .3s var(--ease);
    background: transparent;
}
.nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.nav-logo span { font-style: italic; color: var(--acid); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-size: 0.92rem;
    color: var(--fg2);
    position: relative;
    transition: color .25s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    height: 2px; width: 0;
    background: var(--acid);
    transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; gap: 1rem; align-items: center; }
.nav-btn {
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: var(--acid);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all .3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(197,255,61,0.35);
}
.theme-toggle {
    width: 40px; height: 22px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    position: relative;
}
.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--acid);
    transition: all .3s var(--ease);
}
[data-theme="light"] .theme-toggle::before {
    left: calc(100% - 18px);
    background: var(--plasma);
}

.burger { display: none; width: 28px; height: 22px; position: relative; }
.burger span {
    position: absolute;
    left: 0; width: 100%; height: 2px;
    background: var(--fg);
    transition: all .3s var(--ease);
}
.burger span:nth-child(1) { top: 4px; }
.burger span:nth-child(2) { top: 16px; }
.burger.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { top: 10px; transform: rotate(-45deg); }

@media (max-width: 880px) {
    .nav-links {
        position: fixed;
        inset: var(--nav-h) 0 0;
        flex-direction: column;
        background: var(--glass);
        backdrop-filter: blur(20px);
        padding: 3rem 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1.4rem; font-family: var(--font-serif); }
    .burger { display: block; }
    .nav-btn { display: none; }
}

/* ======================== HERO ======================== */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 4rem) clamp(1.25rem, 4vw, 2rem) 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: var(--max-w);
    margin: 0 auto;
    align-items: center;
    position: relative;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--glass);
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    color: var(--fg2);
    margin-bottom: 1.5rem;
}
.tag-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 8px var(--acid);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    50% { opacity: 0.4; transform: scale(0.9); }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.hero-title em {
    font-style: italic;
    color: var(--acid);
    position: relative;
}
.hero-title em::before {
    content: '';
    position: absolute;
    bottom: 6%;
    left: -2%;
    width: 104%;
    height: 8%;
    background: var(--plasma);
    opacity: 0.18;
    z-index: -1;
    transform: skewX(-8deg);
}

.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--fg2);
    max-width: 560px;
    margin-bottom: 2rem;
}
.hero-sub strong { color: var(--fg); font-weight: 600; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.btn-main, .btn-line {
    position: relative;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    overflow: hidden;
}
.btn-main {
    background: var(--acid);
    color: var(--ink);
    box-shadow: 0 6px 22px rgba(197,255,61,0.28);
}
.btn-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--plasma);
    transform: translateX(-100%);
    transition: transform .4s var(--ease);
    z-index: 0;
}
.btn-main:hover::before { transform: translateX(0); }
.btn-main:hover { color: #fff; box-shadow: 0 10px 32px rgba(124,92,255,0.45); }
.btn-main > * { position: relative; z-index: 1; }

.btn-line {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
}
.btn-line:hover {
    background: var(--card-hover);
    border-color: var(--acid);
    color: var(--acid);
}
.btn-full { width: 100%; justify-content: center; }

.hero-trust {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.trust-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg2);
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.trust-badge i { color: var(--acid); }

.hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

/* Jupiter palette (accent + chat) */
:root {
    --jup-cream: #e8d4a3;
    --jup-amber: #d4903a;
    --jup-tan:   #c9a66b;
    --jup-deep:  #8b5a2b;
    --jup-red:   #b8411e;
    --jup-glow:  rgba(232,212,163,0.45);
}

/* HERO IMAGE — orbital frame */
.hero-img-wrap {
    position: relative;
    border-radius: 24px;
    overflow: visible;
    aspect-ratio: 4/5;
    transition: transform .5s var(--ease);
    isolation: isolate;
}
.hero-img-wrap::before,
.hero-img-wrap::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(124,92,255,0.18);
    pointer-events: none;
    animation: spin 50s linear infinite;
}
.hero-img-wrap::before {
    inset: -22px;
    border-top-color: var(--plasma);
    border-right-color: transparent;
    border-bottom-color: rgba(232,212,163,0.18);
    border-left-color: transparent;
}
.hero-img-wrap::after {
    inset: -38px;
    animation-duration: 80s;
    animation-direction: reverse;
    border-style: dotted;
    border-color: rgba(197,255,61,0.12);
    border-top-color: rgba(197,255,61,0.35);
    opacity: 0.7;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-img-wrap:hover { transform: scale(1.015); }

.hero-img-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    box-shadow:
        0 40px 90px rgba(0,0,0,0.55),
        0 0 0 1px rgba(232,212,163,0.3),
        0 0 60px rgba(232,212,163,0.12);
    background: linear-gradient(135deg, #1a1410, #3a2a1e);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(197,255,61,0.10), transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(124,92,255,0.18), transparent 50%),
        linear-gradient(180deg, transparent 55%, rgba(8,5,12,0.55));
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.95;
}
.hero-img-sticker {
    position: absolute;
    bottom: 14px; left: 14px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--jup-cream);
    padding: 0.4rem 0.7rem;
    background: rgba(20,12,6,0.7);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    border: 1px solid rgba(232,212,163,0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.hero-img-sticker::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--jup-red);
    box-shadow: 0 0 6px var(--jup-red);
    animation: pulse 2s ease-in-out infinite;
}

/* ============ JUPITER CHAT — site-cohesive cool dark ============ */
.hero-chat {
    position: relative;
    background: linear-gradient(180deg, rgba(14,12,24,0.94) 0%, rgba(20,16,32,0.94) 100%);
    border: 1px solid rgba(124,92,255,0.28);
    border-radius: 18px;
    padding: 1.1rem 1.1rem 0.9rem;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 50px rgba(124,92,255,0.12);
    overflow: hidden;
    backdrop-filter: blur(14px);
}
.hero-chat::before {
    /* AI energy line — plasma → acid → plasma */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent, var(--plasma), var(--acid), var(--plasma), transparent);
    opacity: 0.9;
}
[data-theme="light"] .hero-chat {
    background: linear-gradient(180deg, #fff 0%, #f7f5fc 100%);
    border-color: rgba(124,92,255,0.3);
    box-shadow: 0 20px 50px rgba(124,92,255,0.12), 0 0 0 1px rgba(124,92,255,0.08);
}

.hero-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}
.hero-chat-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #e6e8f5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}
[data-theme="light"] .hero-chat-title { color: var(--ink); }
.hero-chat-title img { width: 20px; height: 20px; flex-shrink: 0; }

/* ============ JUPITER ANIMATED ICON ============ */
.jup-icon-wrap {
    position: relative;
    width: 26px; height: 26px;
    display: inline-block;
    flex-shrink: 0;
}
.jup-icon { width: 100%; height: 100%; overflow: visible; display: block; }
.jup-pulse {
    fill: rgba(124,92,255,0.16);
    stroke: rgba(124,92,255,0.42);
    stroke-width: 0.5;
    transform-origin: 16px 16px;
    animation: jupPulse 2.6s ease-in-out infinite;
}
@keyframes jupPulse {
    0%, 100% { transform: scale(0.85); opacity: 0.85; }
    50%      { transform: scale(1.1);  opacity: 0.3;  }
}
.jup-orbit ellipse {
    fill: none;
    stroke: rgba(232,212,163,0.55);
    stroke-width: 0.5;
}
.jup-orbit {
    transform-origin: 16px 16px;
    transform-box: fill-box;
}
.jup-orbit-1 { animation: spin 7s linear infinite; }
.jup-orbit-2 {
    animation: spin 11s linear infinite reverse;
    transform: rotate(60deg);
    transform-origin: 16px 16px;
}
.jup-orbit-2 ellipse { stroke: rgba(197,255,61,0.45); }
.orbit-dot {
    fill: var(--acid);
    filter: drop-shadow(0 0 2.5px var(--acid));
}
.orbit-dot-2 {
    fill: var(--jup-amber);
    filter: drop-shadow(0 0 2.5px var(--jup-amber));
}
[data-theme="light"] .jup-pulse { fill: rgba(124,92,255,0.12); stroke: rgba(124,92,255,0.35); }
[data-theme="light"] .jup-orbit ellipse { stroke: rgba(139,90,43,0.5); }
[data-theme="terminal"] .jup-pulse { fill: rgba(157,255,107,0.18); stroke: rgba(157,255,107,0.5); }
[data-theme="terminal"] .jup-orbit ellipse { stroke: rgba(157,255,107,0.45); }
[data-theme="terminal"] .orbit-dot { fill: var(--acid); }
[data-theme="terminal"] .orbit-dot-2 { fill: #fff; }
.hero-chat-title .name-accent { color: var(--plasma); }
[data-theme="light"] .hero-chat-title .name-accent { color: var(--plasma); }

.hero-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(230,232,245,0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
[data-theme="light"] .hero-chat-status { color: rgba(8,5,12,0.6); }
.hero-chat-status::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 8px var(--acid);
    animation: pulse 1.8s ease-in-out infinite;
}

.hero-chat-body {
    min-height: 88px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e6e8f5;
    padding: 0.95rem 1.05rem;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    border: 1px solid rgba(124,92,255,0.18);
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--plasma) transparent;
}
[data-theme="light"] .hero-chat-body {
    background: #fff;
    color: #0e0a18;
    border-color: rgba(124,92,255,0.2);
}
.hero-chat-body::-webkit-scrollbar { width: 6px; }
.hero-chat-body::-webkit-scrollbar-thumb { background: var(--plasma); border-radius: 3px; }

.hero-chat-q {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed rgba(124,92,255,0.25);
    color: rgba(230,232,245,0.85);
    font-size: 0.84rem;
}
[data-theme="light"] .hero-chat-q { color: rgba(14,10,24,0.75); border-color: rgba(124,92,255,0.25); }
.hero-chat-q::before {
    content: '>';
    color: var(--plasma);
    font-weight: 700;
    flex-shrink: 0;
}

.hero-chat-a {
    color: #e6e8f5;
    font-size: 0.9rem;
    line-height: 1.65;
}
[data-theme="light"] .hero-chat-a { color: #0e0a18; }
.hero-chat-a strong { color: var(--acid); font-weight: 600; }
[data-theme="light"] .hero-chat-a strong { color: var(--plasma); }
.hero-chat-a .bullet {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding-left: 0.2rem;
}
.hero-chat-a .bullet::before {
    content: '◆';
    color: var(--plasma);
    font-size: 0.65rem;
    padding-top: 0.28rem;
    flex-shrink: 0;
}
.hero-chat-a .cites {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px dashed rgba(124,92,255,0.22);
}
[data-theme="light"] .hero-chat-a .cites { border-color: rgba(124,92,255,0.25); }
.hero-chat-a .cite {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(124,92,255,0.4);
    border-radius: 4px;
    color: #d6d8ff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(124,92,255,0.12);
}
[data-theme="light"] .hero-chat-a .cite {
    color: var(--plasma);
    border-color: rgba(124,92,255,0.4);
    background: rgba(124,92,255,0.1);
}

.hero-chat-body .cursor-blink {
    display: inline-block;
    width: 7px; height: 13px;
    background: var(--acid);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s infinite;
    box-shadow: 0 0 6px var(--acid);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-chat-suggest {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.6rem 0 0.4rem;
}
.hero-chat-chip {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    background: rgba(124,92,255,0.1);
    border: 1px solid rgba(124,92,255,0.3);
    border-radius: 999px;
    color: #d6d8ff;
    transition: all .25s;
    letter-spacing: 0.02em;
}
.hero-chat-chip:hover {
    background: var(--plasma);
    color: #fff;
    border-color: var(--plasma);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(124,92,255,0.35);
}
[data-theme="light"] .hero-chat-chip {
    background: rgba(124,92,255,0.08);
    border-color: rgba(124,92,255,0.3);
    color: var(--plasma);
}

.hero-chat-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
    padding: 0.55rem 0.6rem;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(124,92,255,0.3);
    border-radius: 12px;
    transition: border-color .25s, box-shadow .25s;
}
[data-theme="light"] .hero-chat-input {
    background: #fff;
    border-color: rgba(124,92,255,0.35);
}
.hero-chat-input:focus-within {
    border-color: var(--plasma);
    box-shadow: 0 0 0 3px rgba(124,92,255,0.22);
}
.hero-chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f0f1ff;
    caret-color: var(--acid);
    font-family: var(--font-mono);
    /* 16px min prevents iOS Safari auto-zoom on focus */
    font-size: 16px;
    padding: 0.45rem 0.15rem;
    outline: none;
    min-width: 0;
}
[data-theme="light"] .hero-chat-input input { color: #0e0a18; caret-color: var(--plasma); }
.hero-chat-input input::placeholder {
    color: rgba(214,216,255,0.45);
    font-style: normal;
}
[data-theme="light"] .hero-chat-input input::placeholder { color: rgba(14,10,24,0.4); }

.hero-chat-input button {
    background: linear-gradient(135deg, var(--plasma) 0%, var(--jup-amber) 100%);
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    transition: transform .2s, filter .2s, box-shadow .2s;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(124,92,255,0.25);
}
.hero-chat-input button:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Terminal theme override for chat */
[data-theme="terminal"] .hero-chat {
    background: #040806;
    border-color: rgba(157,255,107,0.35);
    box-shadow: 0 0 40px rgba(157,255,107,0.18);
}
[data-theme="terminal"] .hero-chat::before {
    background: linear-gradient(90deg, transparent, var(--acid), transparent);
}
[data-theme="terminal"] .hero-chat-title { color: var(--acid); }
[data-theme="terminal"] .hero-chat-body { background: #000; color: var(--acid); border-color: rgba(157,255,107,0.2); }
[data-theme="terminal"] .hero-chat-a { color: var(--acid); }
[data-theme="terminal"] .hero-chat-input { background: #000; border-color: rgba(157,255,107,0.3); }
[data-theme="terminal"] .hero-chat-input input { color: var(--acid); caret-color: var(--acid); }
[data-theme="terminal"] .hero-chat-input input::placeholder { color: rgba(157,255,107,0.4); }
[data-theme="terminal"] .hero-chat-input button { background: var(--acid); color: #000; }

/* Floating stats around hero */
.hero-floats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
.hf-card {
    padding: 1.25rem;
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.hf-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--acid) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .35s;
}
.hf-card:hover { transform: translateY(-4px); border-color: var(--acid); }
.hf-card:hover::before { opacity: 0.08; }
.hf-num {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    color: var(--fg);
    letter-spacing: -0.02em;
}
.hf-lbl {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg3);
}

@media (max-width: 880px) {
    .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: calc(var(--nav-h) + 2rem); }
    .hero-floats { grid-template-columns: repeat(2,1fr); }
    .hero-right { order: 2; }
    .hero-img-wrap { max-width: 360px; margin: 0 auto; }
}

/* Small phones (iPhone SE, Galaxy S8, iPhone 12 mini, etc.) */
@media (max-width: 420px) {
    .hero { padding-left: 1rem; padding-right: 1rem; gap: 2rem; }
    .hero-floats { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 2rem; }
    .hf-card { padding: 1rem; }
    .hero-img-wrap { max-width: 280px; }
    .hero-chat { padding: 0.9rem 0.9rem 0.75rem; }
    .hero-chat-body { max-height: 220px; }
    .nav-links a { font-size: 1.25rem; }
}

/* ======================== MARQUEE ======================== */
.marquee-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    background: var(--bg2);
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: inline-flex;
    gap: 2rem;
    white-space: nowrap;
    animation: scroll 42s linear infinite;
    will-change: transform;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    font-style: italic;
    color: var(--fg);
}
.marquee-track span:not(.sep) { transition: color .3s; }
.marquee-track span:hover { color: var(--plasma); transition: color .2s; }
.marquee-track .sep { color: var(--acid); opacity: 0.75; }
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ======================== SECTIONS ======================== */
.section {
    padding: clamp(5rem, 10vw, 8rem) 0;
    position: relative;
}
.section-dark { background: var(--bg2); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--fg2);
    margin-bottom: 1.25rem;
}
.label-num { color: var(--acid); }
.label-line { width: 50px; height: 1px; background: var(--fg3); }

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 960px;
}
.section-heading em {
    font-style: italic;
    color: var(--acid);
}

/* ======================== TRANSFORM ======================== */
.transform-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.big-statement {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
}
.big-statement em { font-style: italic; color: var(--acid); }

.transform-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 880px;
    margin: 0 auto;
}
.tf-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    transition: all .35s var(--ease);
}
.tf-item:hover {
    background: var(--card);
    padding-left: 2.5rem;
}
.tf-from {
    text-align: right;
    color: var(--fg3);
    font-size: 1.05rem;
    font-family: var(--font-mono);
    text-decoration: line-through;
    text-decoration-color: rgba(255,0,80,0.6);
}
.tf-arrow {
    color: var(--acid);
    font-size: 1.4rem;
    transition: transform .3s var(--ease);
}
.tf-item:hover .tf-arrow { transform: translateX(6px); }
.tf-to {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    color: var(--fg);
}

/* ======================== BENTO ======================== */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.bento-card {
    grid-column: span 4;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    transition: transform .4s var(--ease), border-color .3s, background .3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}
.bento-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--acid), var(--plasma));
    opacity: 0;
    transition: opacity .35s var(--ease);
    z-index: -1;
}
.bento-card:hover {
    background: var(--card-hover);
    border-color: transparent;
}
.bento-card:hover::before { opacity: 1; }
.bento-card > * { position: relative; z-index: 1; }

.bento-hero-card { grid-column: span 8; grid-row: span 2; background: var(--bg3); border: 1px solid var(--border-strong); }
.bento-accent { grid-column: span 8; background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(197,255,61,0.08)); border-color: rgba(124,92,255,0.3); }
.bento-featured-card { grid-column: span 8; }
@media (max-width: 1000px) {
    .bento-card, .bento-hero-card, .bento-accent, .bento-featured-card { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 640px) {
    .bento-card { grid-column: 1 / -1 !important; }
}

.bento-card h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.1;
    margin-bottom: 0.7rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.bento-card p {
    color: var(--fg2);
    font-size: 0.96rem;
    margin-bottom: 1rem;
}
.bento-card p strong { color: var(--fg); }

.bc-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.bc-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg3);
}
.bc-result {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--acid);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.bc-badge {
    display: inline-block;
    padding: 0.28rem 0.6rem;
    background: var(--acid);
    color: var(--ink);
    border-radius: 999px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.bc-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    background: linear-gradient(90deg, var(--plasma), var(--acid));
    color: var(--ink);
    border-radius: 999px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.bc-tech {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}
.bc-tech span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--fg2);
    transition: all .25s;
}
.bc-tech span:hover {
    border-color: var(--acid);
    color: var(--acid);
}
.bc-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: var(--bg2);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.bc-metric { display: flex; flex-direction: column; gap: 0.3rem; }
.bc-metric-num {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    color: var(--acid);
}
.bc-metric-lbl {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg3);
}
.bc-stats-row {
    display: flex;
    gap: 1.25rem;
    margin: 1rem 0;
}
.bc-stats-row > div { display: flex; flex-direction: column; }
.bc-stats-row strong {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--fg);
}
.bc-stats-row small {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--fg3);
    letter-spacing: 0.08em;
}
.bc-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--acid);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color .25s;
}
.bc-link:hover { color: var(--plasma); }

/* ======================== BUBBLE TOOLKIT ======================== */
.bubble-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}
@media (max-width: 780px) { .bubble-grid { grid-template-columns: 1fr; gap: 2rem; } }

.bubble-category {
    padding: 1.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: all .35s var(--ease);
}
.bubble-category:hover { border-color: var(--border-strong); }

.bubble-cat-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.bubble-cat-title i { color: var(--acid); }

.bubble-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.bubble-pill {
    --pill-hover-bg: var(--acid);
    --pill-hover-color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--fg2);
    transition: all .3s var(--ease);
    opacity: 0;
    transform: scale(0);
    will-change: transform;
}
.bubble-pill.animated { opacity: 1; transform: scale(1) rotate(var(--pill-rotation, 0deg)); }
.bubble-pill:hover {
    background: var(--pill-hover-bg);
    color: var(--pill-hover-color);
    border-color: var(--pill-hover-bg);
    transform: scale(1.08) rotate(0deg) !important;
}

/* ======================== EXPERTISE ======================== */
.exp-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (max-width: 780px) { .exp-cols { grid-template-columns: 1fr; } }

.exp-col {
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    position: relative;
    transition: all .4s var(--ease);
    overflow: hidden;
}
.exp-col::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--acid), var(--plasma));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
}
.exp-col:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.exp-col:hover::before { transform: scaleX(1); }

.exp-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--acid), var(--plasma));
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}
.exp-num {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--fg4);
    line-height: 1;
}
.exp-col h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    font-weight: 400;
}
.exp-col p { color: var(--fg2); margin-bottom: 1rem; font-size: 0.95rem; }
.exp-col ul li {
    font-size: 0.88rem;
    color: var(--fg2);
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.35rem;
}
.exp-col ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--acid);
}

/* ======================== PROOF ======================== */
.proof-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 880px) { .proof-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .proof-row { grid-template-columns: 1fr; } }

.proof-item {
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all .35s var(--ease);
}
.proof-item:hover { transform: translateY(-4px); border-color: var(--acid); }
.proof-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--acid);
    color: var(--ink);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}
.proof-item h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.proof-item p { font-size: 0.88rem; color: var(--fg2); }
.proof-item a { color: var(--acid); border-bottom: 1px dashed var(--acid); }

/* ======================== WRITING ======================== */
.writing-list { display: flex; flex-direction: column; }
.writing-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: all .35s var(--ease);
}
.writing-item:hover {
    padding-left: 1rem;
    background: var(--card);
}
.wi-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--fg3);
    letter-spacing: 0.08em;
}
.writing-item h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 400;
    line-height: 1.2;
}
.wi-arrow {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--fg3);
    transition: all .3s var(--ease);
}
.writing-item:hover .wi-arrow { color: var(--acid); transform: translate(6px, -6px); }
@media (max-width: 640px) { .writing-item { grid-template-columns: 1fr auto; } .wi-date { grid-column: 1 / -1; } }

/* ======================== CONTACT ======================== */
.contact-sub { font-size: 1.05rem; color: var(--fg2); max-width: 600px; margin-bottom: 3rem; }

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; gap: 2rem; } }

.contact-links { display: flex; flex-direction: column; gap: 0; }
.cl-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: all .3s var(--ease);
}
.cl-item:hover { padding-left: 1rem; background: var(--card); }
.cl-item i {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--bg3);
    color: var(--acid);
    display: grid;
    place-items: center;
    font-size: 1rem;
}
.cl-item strong { display: block; font-size: 0.88rem; }
.cl-item span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg3); }

.contact-form {
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(10px);
}
.contact-form h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 0.5rem; }
.form-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 520px) { .form-duo { grid-template-columns: 1fr; } }
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.85rem 1rem;
    background: var(--bg3);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-family: inherit;
    color: var(--fg);
    caret-color: var(--acid);
    font-size: 0.95rem;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--fg3); }
.contact-form select { color: var(--fg); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--acid);
    box-shadow: 0 0 0 3px rgba(197,255,61,0.15);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ======================== FOOTER ======================== */
.footer {
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.footer-left p { font-size: 0.85rem; color: var(--fg3); margin-top: 0.3rem; }
.footer-right { display: flex; gap: 0.6rem; }
.footer-right a {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--fg2);
    transition: all .3s;
}
.footer-right a:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); transform: translateY(-2px); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--fg3);
    font-family: var(--font-mono);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ======================== BACK TO TOP ======================== */
.btt {
    position: fixed;
    bottom: 22px; left: 22px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--acid);
    color: var(--ink);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .35s var(--ease);
    z-index: 998;
    box-shadow: 0 6px 20px rgba(197,255,61,0.4);
}
.btt.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ======================== REVEAL ======================== */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ======================== SPLIT TEXT UTILITY ======================== */
.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px) rotate(8deg);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.split-char.inview { opacity: 1; transform: translateY(0) rotate(0); }

/* ======================== LIVE STATS STRIP ======================== */
.live-strip {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.8rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
}
.live-strip span { display: inline-flex; gap: 0.4rem; align-items: center; }
.live-strip .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 8px var(--acid);
    animation: pulse 1.4s ease-in-out infinite;
}
.live-strip b { color: var(--fg); font-weight: 500; }

/* ======================== TERMINAL THEME (3rd mode) ======================== */
[data-theme="terminal"] body,
[data-theme="terminal"] {
    --bg: #050806;
    --bg2: #08100a;
    --bg3: #0c1a10;
    --fg: #9dff6b;
    --fg2: #5fbd4a;
    --fg3: #3b8030;
    --fg4: #1f4318;
    --border: rgba(157,255,107,0.15);
    --border-strong: rgba(157,255,107,0.35);
    --card: rgba(30,70,20,0.2);
    --card-hover: rgba(40,90,25,0.32);
    --glass: rgba(6,12,8,0.7);
    --acid: #9dff6b;
    --acid-dim: #6ed144;
    --plasma: #00ffd1;
    --glow: 0 0 60px rgba(157,255,107,0.35);
    font-family: var(--font-mono) !important;
}
[data-theme="terminal"] body {
    font-family: var(--font-mono) !important;
    background:
        radial-gradient(ellipse at center, rgba(157,255,107,0.06), transparent 70%),
        var(--bg);
}
[data-theme="terminal"] .hero-title,
[data-theme="terminal"] .section-heading,
[data-theme="terminal"] .big-statement,
[data-theme="terminal"] .nav-logo,
[data-theme="terminal"] .bento-card h3,
[data-theme="terminal"] .exp-col h3,
[data-theme="terminal"] .proof-item h4,
[data-theme="terminal"] .writing-item h3,
[data-theme="terminal"] .contact-form h3,
[data-theme="terminal"] .marquee-track {
    font-family: var(--font-mono) !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
}
[data-theme="terminal"] .hero-title em,
[data-theme="terminal"] .section-heading em,
[data-theme="terminal"] .big-statement em { font-style: normal !important; color: var(--acid); }
[data-theme="terminal"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.18),
        rgba(0,0,0,0.18) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 9997;
    mix-blend-mode: multiply;
}
[data-theme="terminal"] .shader-bg { opacity: 0.35; filter: hue-rotate(60deg) saturate(0.7); }

/* ======================== TOAST (replaces popup) ======================== */
.toast {
    position: fixed;
    bottom: 22px; right: 22px;
    max-width: 340px;
    padding: 1.1rem 1.25rem;
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    transform: translateY(140%);
    opacity: 0;
    transition: transform .5s var(--ease), opacity .5s var(--ease);
    z-index: 9996;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--acid);
}
.toast-avatar img { width: 100%; height: 100%; object-fit: cover; }
.toast-body { flex: 1; }
.toast-body strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.toast-body p { font-size: 0.82rem; color: var(--fg2); margin-bottom: 0.6rem; line-height: 1.4; }
.toast-actions { display: flex; gap: 0.4rem; }
.toast-actions a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all .25s;
}
.toast-actions a:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.toast-close {
    position: absolute;
    top: 6px; right: 10px;
    font-size: 1.2rem;
    color: var(--fg3);
    background: none;
    border: none;
}
.toast-close:hover { color: var(--fg); }
@media (max-width: 520px) { .toast { right: 12px; left: 12px; bottom: 12px; max-width: none; } }

/* ======================== TESTIMONIALS ======================== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
    padding: 1.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    position: relative;
    transition: all .35s var(--ease);
}
.testimonial:hover { border-color: var(--acid); transform: translateY(-4px); }
.testimonial::before {
    content: '"';
    position: absolute;
    top: 4px; left: 16px;
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--acid);
    opacity: 0.2;
    line-height: 1;
}
.testimonial p {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    line-height: 1.5;
    color: var(--fg);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.testimonial-author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acid), var(--plasma));
    color: var(--ink);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    font-family: var(--font-mono);
}
.testimonial-author-meta { display: flex; flex-direction: column; }
.testimonial-author-meta strong { font-size: 0.92rem; }
.testimonial-author-meta span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg3); }
.testimonial-verify {
    position: absolute;
    top: 1rem; right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--acid);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}
.testimonial-verify:hover {
    opacity: .85;
    transform: translateY(-1px);
}

/* ======================== CAL BOOKING BOX ======================== */
.cal-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    background: var(--card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cal-cta-copy { flex: 1 1 280px; min-width: 0; }
.cal-cta strong {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--fg);
    display: block;
}
.cal-cta small {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--fg3);
    display: block;
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}
.cal-cta-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg);
    background: transparent;
    transition: all .25s var(--ease);
}
.btn-ghost:hover {
    border-color: var(--plasma);
    color: #fff;
    background: rgba(124,92,255,0.15);
    transform: translateY(-1px);
}
[data-theme="light"] .btn-ghost { color: var(--ink); }
[data-theme="light"] .btn-ghost:hover { color: var(--ink); background: rgba(124,92,255,0.1); }

/* ======================== MOTION REDUCE ======================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
