/* =============================================
   CHESS360 — CHESS.COM THEME
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Nohemi';
    src: url('nohemi-font-family/Nohemi-SemiBold-BF6438cc57db2ff.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nohemi';
    src: url('nohemi-font-family/Nohemi-Bold-BF6438cc577b524.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nohemi';
    src: url('nohemi-font-family/Nohemi-ExtraBold-BF6438cc5761ae2.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --ff-display: 'Montserrat', sans-serif;
    --ff-title: 'Nohemi', 'Montserrat', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --green: #5aeb06;
    --accent: var(--green);
    --accent-glow: color-mix(in srgb, var(--green) 60%, transparent);
    --accent-subtle: color-mix(in srgb, var(--green) 10%, transparent);

    --bg-primary: #000;
    --bg-secondary: #000;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-border: #151515;

    --text-primary: #f0f0f5;
    --text-secondary: #bababa;
    --text-muted: #8a8a8a;

    --border: #1a1a1a;
    --shadow: rgba(0, 0, 0, 0.8);
    --grain-opacity: 0;
    --shader-visible: 0;
    --glow-color: color-mix(in srgb, var(--green) 20%, transparent);

    /* Glass tokens */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(24px) saturate(180%);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.10);

    --neon-blue: #4fc3f7;
    --neon-purple: #b388ff;
    --gold: #f5a623;
    --red: #ff1616;
    --max-w: 760px;
    --container-x: clamp(1.5rem, 6vw, 2.5rem);
    --section-pad: clamp(3rem, 7.5vw, 5rem);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color-scheme: dark;
}

/* === LOADING SCREEN === */
.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    width: min(100%, 320px);
    padding-inline: 1.5rem;
    text-align: center;
}

.loader-board-wrapper {
    perspective: 800px;
    align-self: center;
    width: 160px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.loader-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 76px;
    height: 76px;
    gap: 3px;
    transform: rotateX(35deg) rotateZ(45deg);
    transform-style: preserve-3d;
}

.sq {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    animation: sq-flip 1.9s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Stagger the flips by diagonal wave */
.sq:nth-child(1) { animation-delay: -0.22s; }
.sq:nth-child(2), .sq:nth-child(5) { animation-delay: -0.06s; }
.sq:nth-child(3), .sq:nth-child(6), .sq:nth-child(9) { animation-delay: 0.1s; }
.sq:nth-child(4), .sq:nth-child(7), .sq:nth-child(10), .sq:nth-child(13) { animation-delay: 0.26s; }
.sq:nth-child(8), .sq:nth-child(11), .sq:nth-child(14) { animation-delay: 0.42s; }
.sq:nth-child(12), .sq:nth-child(15) { animation-delay: 0.58s; }
.sq:nth-child(16) { animation-delay: 0.74s; }

@keyframes sq-flip {
    0%, 15% {
        transform: rotateY(0deg) translateZ(0px);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
    }
    50% {
        transform: rotateY(180deg) translateZ(12px);
        background: var(--accent);
        box-shadow: 0 0 12px var(--accent-glow);
    }
    85%, 100% {
        transform: rotateY(360deg) translateZ(0px);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
    }
}

.loader-brand {
    font-family: var(--ff-display);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    animation: pulse-text 2s ease-in-out infinite alternate;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
}

.loader-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 18px rgba(90, 235, 6, 0.18);
}

@media(max-width:640px) {
    .loader-content {
        width: 100%;
        padding-inline: 1rem;
    }
}

@keyframes pulse-text {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--ff-body);
    font-weight: 400;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100%;
    transition: background 0.6s ease, color 0.4s ease;
}

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

img {
    max-width: 100%;
    display: block
}

::selection {
    background: var(--accent);
    color: #fff
}

/* === 3D CANVAS === */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: var(--shader-visible);
    transition: opacity 0.6s ease;
}

#float-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* === SCROLLING CHECKERED BACKGROUND === */
.scrolling-checker-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%);
    background-size:
        52px 52px,
        52px 52px,
        52px 52px,
        52px 52px;
    background-position:
        0 0,
        0 26px,
        26px -26px,
        -26px 0;
    background-attachment: scroll;
    opacity: 0.42;
}

/* === GRAIN === */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: var(--grain-opacity);
    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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* === SCROLL PROGRESS === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    z-index: 1000;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* === THEME TOGGLE === */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 50px;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-elastic);
    color: var(--text-primary);
    box-shadow: 0 4px 12px var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--glow-color)
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform 0.5s var(--ease-elastic)
}

[data-theme="dark"] .icon-sun {
    display: block
}

[data-theme="dark"] .icon-moon {
    display: none
}

[data-theme="light"] .icon-sun {
    display: none
}

[data-theme="light"] .icon-moon {
    display: block
}

/* === CURSOR GLOW === */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

@media(hover:hover) {
    .cursor-glow {
        opacity: 0.08
    }
}

[data-theme="light"] .cursor-glow {
    mix-blend-mode: multiply;
    opacity: 0.05
}

/* === LAYOUT === */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--container-x)
}

main {
    position: relative;
    z-index: 5
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0.08) 74%, transparent 100%);
}

.sec-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 6vh, 4rem) 0 8vh;
}

/* Centered splash state for cinematic intro */
.hero-headline.is-centered {
    position: fixed;
    top: 50dvh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: min(var(--max-w), 100vw);
    max-width: var(--max-w);
    padding: 0 var(--container-x);
    margin: 0;
    margin-bottom: 0;
    pointer-events: none;
}

/* === TYPOGRAPHY === */
h1,
h2 {
    font-family: var(--ff-title);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(3rem, 9vw, 5.5rem);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: clamp(2.2rem, 7vw, 3.8rem);
}

.hero-headline {
    font-weight: 600;
    --hero-stack-gap: clamp(0.55rem, 1.6vh, 1rem);
    margin-bottom: calc(var(--hero-stack-gap) * 2 + 2rem);
}

.hero-intro-line {
    display: block;
}

.hero-follow-line {
    display: block;
    text-align: right;
    margin-top: var(--hero-stack-gap);
}

.hero-headline.is-centered .hero-follow-line {
    margin-top: clamp(1.2rem, 4vh, 2.6rem);
}

.hero-headline .hero-emphasis {
    font-weight: 800;
}

.subheadline {
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
    font-family: var(--ff-body);
}

.body-text {
    font-family: var(--ff-body);
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    margin-bottom: 1.8rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.muted-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Highlight Animation Class */
.highlight-text {
    display: inline;
    color: inherit;
    font-weight: 900;
    padding: 2px 4px;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left center;
    transition: background-size 0.8s var(--ease-out), color 0.4s ease, box-shadow 0.4s ease;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 0;
}

.highlight-text.active {
    background-size: 100% 100%;
    color: #050505;
    box-shadow: 0 0 20px var(--accent-glow);
}

.strong-note {
    font-weight: 700;
    color: var(--text-primary);
    font-size: clamp(1.2rem, 3vw, 1.35rem);
    letter-spacing: -0.01em;
    display: block;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent);
}

.big-brand {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 3rem auto;
    transition: filter 0.3s ease;
    filter: invert(1) hue-rotate(180deg) brightness(1.2) drop-shadow(0 0 35px var(--accent-glow))
}

/* === TEXT SPLIT === */
.char {
    display: inline-block;
    will-change: transform, opacity, filter
}

.word {
    display: inline-block;
    will-change: transform, opacity
}

/* === BUTTONS === */
.cta-wrap {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--accent);
    color: #050505;
    font-family: var(--ff-title);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s var(--ease-out), background 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px var(--accent-glow);
    background: color-mix(in srgb, var(--green) 88%, #050505);
}

.btn-primary.huge {
    padding: 1.6rem 3.5rem;
    font-size: 1.4rem;
    width: 100%;
}

.btn-outline-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.2rem 2.8rem;
    font-family: var(--ff-title);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--green);
    background: color-mix(in srgb, var(--green) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline-glow:hover {
    background: color-mix(in srgb, var(--green) 15%, transparent);
    border-color: var(--green);
    box-shadow: 0 0 25px color-mix(in srgb, var(--green) 20%, transparent);
    color: var(--text-primary);
}

/* === PREMIUM UPGRADE CARD === */
.premium-upgrade-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
    border-radius: 24px;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    text-align: center;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow), 0 0 40px color-mix(in srgb, var(--green) 6%, transparent);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.premium-upgrade-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--glass-shadow-hover), 0 0 60px color-mix(in srgb, var(--green) 12%, transparent);
    border-color: color-mix(in srgb, var(--green) 45%, transparent);
}

.upgrade-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upgrade-title {
    font-family: var(--ff-title);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0;
}

.upgrade-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin: 0;
    max-width: 450px;
    line-height: 1.6;
}

.btn-chesscom-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, var(--green), color-mix(in srgb, var(--green) 72%, #050505));
    color: #fff;
    font-family: var(--ff-title);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    line-height: 1.15;
    padding: 1.5rem 3rem;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--green) 40%, transparent), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.4s var(--ease-elastic), box-shadow 0.4s var(--ease-out), filter 0.3s;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    width: 100%;
    max-width: 500px;
}

.btn-chesscom-premium:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--green) 60%, transparent), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.1);
    color: #fff;
}

.icon-crown {
    width: clamp(50px, 9vw, 64px);
    height: clamp(50px, 9vw, 64px);
    flex: 0 0 auto;
    transform: translateY(-3px);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.btn-premium-label {
    display: block;
    max-width: 12ch;
    text-align: center;
    line-height: 1.08;
    transform: translateY(2px);
}

.microcopy {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em
}

/* === DARK CARDS (NOW GRAPH CONTAINER) === */
.dark-card {
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.dark-card::before {
    display: none;
}

/* === HERO CHART === */
.chart-hero-hook {
    width: 100%;
    aspect-ratio: 460/320;
    position: relative;
    margin-top: 2rem;
}

.svg-graph {
    width: 100%;
    height: 100%;
    overflow: visible
}

.line-plateau {
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 3;
    stroke-dasharray: 6, 6;
    stroke-linecap: round
}

.line-hook {
    fill: none;
    stroke: var(--accent);
    stroke-width: 5;
    stroke-linecap: round;
    filter: drop-shadow(0 4px 6px var(--accent-glow))
}

.hook-dot {
    fill: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow))
}

/* === STAT BLOCK === */
.stat-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3.5rem 0
}

.stat {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s var(--ease-elastic), border-color 0.3s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.stat:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
}

.stat.highlight {
    border-color: color-mix(in srgb, var(--green) 30%, transparent);
    background: color-mix(in srgb, var(--green) 6%, transparent);
}

.stat-num {
    display: block;
    font-family: var(--ff-display);
    font-size: clamp(3.5rem, 11vw, 5.5rem);
    /* Much bigger numbers */
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
    color: var(--accent);
    /* Accent color for all stats */
    text-shadow: 0 4px 15px var(--accent-glow);
}

.stat-suffix {
    font-size: 0.4em;
    vertical-align: middle;
    margin-left: 0.2rem;
    color: inherit;
    opacity: 0.8;
    font-weight: 700
}

.stat-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
}

.inline-stat {
    color: var(--accent);
    font-size: clamp(2.6rem, 9vw, 4rem);
    font-weight: 800;
    font-family: var(--ff-title);
    line-height: 1;
    display: block;
}

.inline-stat .stat-suffix {
    font-size: 1em;
    vertical-align: baseline;
    margin-left: 0.08em;
}

.social-proof-metric {
    display: block;
    margin-bottom: 0.5rem;
}

.inline-stat-label {
    display: block;
    color: var(--accent);
    font-family: var(--ff-title);
    font-size: clamp(1.35rem, 5vw, 2.1rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

/* === MULTI-LINE CHART === */
.chart-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--ff-display);
}

.chart-wrapper {
    width: 100%;
    aspect-ratio: 560/560;
    position: relative
}

.svg-multi-graph {
    width: 100%;
    height: 100%;
    overflow: visible
}

.line-casual {
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 3;
    stroke-linecap: round
}

.line-tools {
    fill: none;
    stroke: #60a5fa;
    stroke-width: 4;
    stroke-linecap: round;
}

.line-structured {
    fill: none;
    stroke: var(--accent);
    stroke-width: 5;
    stroke-linecap: round;
    filter: drop-shadow(0 4px 8px var(--accent-glow))
}

.sec-data {
    padding-bottom: 2rem;
    text-align: center;
}

.chart-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    text-align: center
}

.chart-legend {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.legend-item:hover {
    transform: translateY(-2px);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block
}

/* === TESTIMONIALS === */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3.5rem 0
}

.testi-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: var(--glass-shadow);
    transition: transform 0.5s var(--ease-elastic), box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.testi-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--ff-display);
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.1;
    line-height: 1;
}

.testi-card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--glass-border-hover);
}

.testi-card p {
    font-family: var(--ff-body);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* === UNITY CLOSER === */
.unity-closer {
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-family: var(--ff-display);
    font-weight: 800;
    margin: 5rem 0 3rem;
    line-height: 1.4;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.unity-closer em {
    font-style: normal;
    color: var(--accent);
}

/* === REVEAL === */
.no-list {
    margin: 3rem 0;
    padding: 0;
    list-style: none;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.no-list li {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.no-list li:last-child {
    margin-bottom: 0;
}

.no-list li::before {
    content: '×';
    flex-shrink: 0;
    font-weight: 900;
    color: var(--red);
    font-size: 1.5rem;
    line-height: 1
}

.no-list li.positive::before {
    content: '✓';
    color: var(--accent);
    font-size: 1.3rem
}

.no-list li.positive {
    color: var(--text-primary);
    font-weight: 700;
}

.transparency-block {
    background: color-mix(in srgb, var(--green) 3%, transparent);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 20px;
    margin: 4rem 0;
    border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
    box-shadow: var(--glass-shadow), 0 0 30px color-mix(in srgb, var(--green) 4%, transparent);
}

.t-intro {
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-family: var(--ff-display);
}

.check-list {
    list-style: none;
    margin-bottom: 2rem
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 500;
}

.check {
    color: var(--accent);
    font-weight: 900;
    font-size: 1.3rem;
    flex-shrink: 0
}

.t-outro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-top: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
    padding-top: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

/* === PERSONAL NOTE === */
.personal-note {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0
}

.avatar-placeholder {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    color: var(--text-primary);
    font-family: var(--ff-display);
    font-size: 1rem;
    box-shadow: 0 0 20px var(--glow-color);
}

.greeting {
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: var(--ff-display)
}

.note-content p {
    font-family: var(--ff-body);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8
}

.cta-primary-wrap {
    align-items: center;
    text-align: center;
    margin-top: 3rem;
    width: 100%
}

/* === SOFT CLOSE === */
.summary-list {
    margin: 3rem 0;
    padding: 0;
    list-style: none
}

.summary-list li {
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 2rem;
    font-weight: 600;
}

.summary-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.closing-sig {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem
}

/* === FOOTER === */
.sec-footer {
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 5;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sec-footer p {
    font-family: var(--ff-body);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.7
}

.final-punch {
    font-weight: 900;
    color: var(--accent);
    margin-top: 2rem;
    font-size: 1.2rem;
    font-family: var(--ff-display);
}

/* === GSAP STATES === */
.rv {
    opacity: 0;
    transform: translateY(40px)
}

.rv-scale {
    opacity: 0;
    transform: scale(0.95)
}

.char {
    opacity: 0;
    transform: translateY(100%);
}

.word {
    opacity: 0;
    transform: translateY(10px)
}

/* === RESPONSIVE === */
@media(min-width:640px) {
    .stat-block {
        flex-direction: row;
        gap: 1.5rem
    }

    .stat {
        flex: 1
    }

    .testimonials-grid {
        flex-direction: row
    }

    .testi-card {
        flex: 1
    }

    .cta-wrap {
        align-items: center;
    }
}

@media(min-width:768px) {
    h1 {
        margin-top: 5vh
    }
}

@media(max-width:640px) {
    .personal-note {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 3rem 0
    }

    .avatar-placeholder {
        margin: 0 auto
    }

    .btn-primary {
        width: 100%;
        justify-content: center
    }

    .cta-wrap {
        align-items: stretch
    }

    .stat-num {
        font-size: 3.5rem;
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important
    }

    .char,
    .word,
    .rv,
    .rv-scale {
        opacity: 1;
        transform: none;
        filter: none
    }

    #three-canvas,
    #float-canvas {
        display: none
    }
}
