@font-face {
    font-family: 'General Sans';
    src: url('https://cdn.jsdelivr.net/npm/@aspect-ratio/general-sans@1.0.0/fonts/GeneralSans-Variable.woff2') format('woff2');
    font-weight: 300 700;
    font-display: swap;
}
@font-face {
    font-family: 'Quizy';
    src: url('Quizy.ttf') format('truetype');
    font-display: swap;
}

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

:root {
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-300: #d2d2d7;
    --gray-400: #afafb2;
    --gray-500: #86868b;
    --gray-600: #6e6e73;
    --gray-700: #424245;
    --gray-800: #1d1d1f;
    --blue: #0077B6;
    --blue-hover: #005f8a;
    --blue-light: #e0f1fa;
    --gradient-start: #0077B6;
    --gradient-mid: #5B2D8E;
    --gradient-end: #7CB518;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== UTILITIES ========== */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 120px 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--gray-800); color: var(--white); }

.text-center { text-align: center; }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.overline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gradient-mid);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}
/* Two-line headline: each sentence stays unbreakable. Wide screen = 1 line.
   Narrow screen (mobile) = clean break between sentences (never mid-sentence). */
.section-title--two-line span { white-space: nowrap; }
@media (max-width: 640px) {
  .section-title--two-line span { display: block; }
}
.features-headline-highlight {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.features-headline-reveal {
    background: linear-gradient(270deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end), var(--gradient-mid), var(--gradient-start));
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave-text 12s ease-in-out infinite;
}
@keyframes wave-text {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-500);
    line-height: 1.5;
    max-width: 760px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 980px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.btn--primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0,119,182,0.25);
}
.btn--primary:hover {
    box-shadow: 0 6px 24px rgba(91,45,142,0.35);
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    color: var(--gradient-mid);
    border: 1.5px solid var(--gray-300);
}
.btn--secondary:hover {
    border-color: var(--gradient-mid);
    background: rgba(91,45,142,0.05);
    color: var(--gradient-mid);
}

.btn--demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-300);
    font-size: 0.9375rem;
    padding: 14px 32px;
    font-weight: 600;
    min-width: 200px;
}
.btn--primary { min-width: 200px; }
.btn--demo:hover {
    border-color: var(--gray-400);
    color: var(--gray-700);
    background: var(--gray-50);
}
.btn--demo svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}
.btn--ghost {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-group--center { justify-content: center; }

/* ========== NAVBAR ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.nav__logo {
    display: flex;
    align-items: center;
}
.nav__logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #0077B6 0%, #1B2B7B 30%, #5B2D8E 55%, #7CB518 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav__logo-text em {
    font-style: normal;
}
.nav__logo-text--footer {
    background: linear-gradient(90deg, #4DA8DA 0%, #8B7BC8 40%, #A8D55E 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav__links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav__links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}
.nav__links a:hover { color: var(--gray-800); }
.nav__cta {
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav__cta .btn {
    padding: 7px 16px;
    font-size: 0.75rem;
    min-width: auto;
}

.nav__mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    min-width: 44px;
    min-height: 44px;
    position: relative;
}
.nav__mobile-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--gray-800);
    position: absolute;
    left: 3px;
    transition: all 0.3s;
}
.nav__mobile-toggle span:nth-child(1) { top: 7px; }
.nav__mobile-toggle span:nth-child(2) { top: 12px; }
.nav__mobile-toggle span:nth-child(3) { top: 17px; }

/* Mobile menu open state */
.nav__mobile-toggle.open span:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
}
.nav__mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav__mobile-toggle.open span:nth-child(3) {
    top: 12px;
    transform: rotate(-45deg);
}

/* Mobile menu overlay */
.nav__mobile-menu {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 32px 24px;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav__mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.nav__mobile-menu a {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: color 0.2s;
}
.nav__mobile-menu a:hover { color: var(--gradient-mid); }
.nav__mobile-menu .btn {
    margin-top: 16px;
    text-align: center;
}

/* ========== HERO ========== */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0,119,182,0.06) 0%, rgba(91,45,142,0.03) 40%, transparent 70%);
    pointer-events: none;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gray-100);
    border-radius: 980px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 32px;
}
.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34c759;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero__title {
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero__title-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-500);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 40px;
}
.hero__connector {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--gray-400);
    margin: 0 auto 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hero__arrow {
    display: block;
    opacity: 0.35;
    animation: arrow-bob 2s ease-in-out infinite;
}
@keyframes arrow-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}
.hero__stat h3 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__stat p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ========== AI SHOWCASE ========== */
.ai-showcase {
    position: relative;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 340px;
}

/* Central orb */
.ai-showcase__orb {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing glow behind the orb */
.ai-showcase__glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,119,182,0.18) 0%, rgba(91,45,142,0.10) 35%, rgba(124,181,24,0.05) 55%, transparent 70%);
    animation: orb-glow 4s ease-in-out infinite;
}
@keyframes orb-glow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* Spinning rings */
.ai-showcase__ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: rgba(0,119,182,0.3);
    border-right-color: rgba(91,45,142,0.15);
    animation: ring-spin 8s linear infinite;
}
.ai-showcase__ring--2 {
    inset: -20px;
    border-top-color: rgba(124,181,24,0.25);
    border-left-color: rgba(91,45,142,0.1);
    animation: ring-spin 12s linear infinite reverse;
}
@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

/* Logo container inside orb */
.ai-showcase__logos {
    position: relative;
    width: 80px;
    height: 80px;
    z-index: 2;
}
.ai-showcase__logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5) rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.1));
}
.ai-showcase__logo.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}
.ai-showcase__logo.exiting {
    opacity: 0;
    transform: scale(0.5) rotateY(-90deg);
    transition: all 0.5s cubic-bezier(0.55, 0, 1, 0.45);
}
.ai-showcase__logo svg,
.ai-showcase__logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Brand name text under the orb */
.ai-showcase__name-wrapper {
    position: relative;
    height: 52px;
    margin-top: 20px;
    overflow: hidden;
}
.ai-showcase__name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}
.ai-showcase__name.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.ai-showcase__name.exiting {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
    transition: all 0.4s ease-in;
}

/* Per-brand name colors */
.ai-showcase__name[data-brand="claude"] { color: #D97757; }
.ai-showcase__name[data-brand="chatgpt"] { color: #10a37f; }
.ai-showcase__name[data-brand="gemini"] { color: #4285F4; }

.ai-showcase__tagline {
    font-family: 'General Sans', var(--font);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-top: 8px;
    opacity: 0;
    animation: tagline-in 1s 0.5s forwards;
}
@keyframes tagline-in {
    to { opacity: 1; }
}
.tagline-rotate-wrapper {
    display: inline-block;
}
.tagline-rotate {
    font-weight: 600;
    color: var(--gray-800);
    transition: opacity 0.35s, transform 0.35s;
}
.tagline-rotate.out {
    opacity: 0;
    transform: translateY(-6px);
}
.tagline-rotate.in {
    opacity: 1;
    transform: translateY(0);
}

/* Orbiting platform pills */
.ai-showcase__orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.ai-showcase__pill {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    white-space: nowrap;
    animation: float-pill 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * -1.5s);
    pointer-events: auto;
    transition: transform 0.3s, box-shadow 0.3s;
}
.ai-showcase__pill:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Position each pill around the orb */
.ai-showcase__pill:nth-child(1) { top: 10px; left: -60px; }
.ai-showcase__pill:nth-child(2) { top: 10px; right: -40px; }
.ai-showcase__pill:nth-child(3) { bottom: 60px; left: -50px; }
.ai-showcase__pill:nth-child(4) { bottom: 60px; right: -50px; }

@keyframes float-pill {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Connector lines from pills to center */
.ai-showcase__pill::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300));
    animation: pulse-line 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.75s);
}
.ai-showcase__pill:nth-child(1)::after { right: -40px; top: 50%; }
.ai-showcase__pill:nth-child(2)::after { left: -40px; top: 50%; background: linear-gradient(270deg, transparent, var(--gray-300)); }
.ai-showcase__pill:nth-child(3)::after { right: -40px; top: 50%; }
.ai-showcase__pill:nth-child(4)::after { left: -40px; top: 50%; background: linear-gradient(270deg, transparent, var(--gray-300)); }

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Particle dots traveling along connectors */
.ai-showcase__pill::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color);
    box-shadow: 0 0 8px var(--color);
    animation: travel-dot 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.75s);
}
.ai-showcase__pill:nth-child(1)::before { right: -40px; top: calc(50% - 2px); animation-name: dot-right; }
.ai-showcase__pill:nth-child(2)::before { left: -40px; top: calc(50% - 2px); animation-name: dot-left; }
.ai-showcase__pill:nth-child(3)::before { right: -40px; top: calc(50% - 2px); animation-name: dot-right; }
.ai-showcase__pill:nth-child(4)::before { left: -40px; top: calc(50% - 2px); animation-name: dot-left; }

@keyframes dot-right {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(40px); opacity: 0; }
}
@keyframes dot-left {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(-40px); opacity: 0; }
}

@media (max-width: 768px) {
    .ai-showcase { min-height: 300px; }
    .ai-showcase__pill:nth-child(1) { top: 0; left: 0; }
    .ai-showcase__pill:nth-child(2) { top: 0; right: 0; }
    .ai-showcase__pill:nth-child(3) { bottom: 50px; left: 10px; }
    .ai-showcase__pill:nth-child(4) { bottom: 50px; right: 10px; }
    .ai-showcase__pill::after, .ai-showcase__pill::before { display: none; }
    .ai-showcase__name { font-size: 1.375rem; }
}

/* ========== LOGOS MARQUEE ========== */
.logos {
    padding: 60px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
}
.logos__label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 32px;
}
.logos__track {
    display: flex;
    gap: 64px;
    animation: scroll-logos 30s linear infinite;
}
.logos__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-400);
    white-space: nowrap;
}
.logos__item svg,
.logos__item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.4;
    filter: grayscale(100%);
}
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== FEATURES (Why) ========== */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}
.feature-card {
    padding: 48px 36px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feature-card:hover {
    border-color: transparent;
    box-shadow: 0 24px 64px rgba(0,0,0,0.10);
    transform: translateY(-6px);
}
.feature-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.feature-card__icon--blue { background: linear-gradient(135deg, #deeefa, #c6e2f6); color: var(--gradient-start); }
.feature-card__icon--purple { background: linear-gradient(135deg, #ede0f8, #deccf2); color: var(--gradient-mid); }
.feature-card__icon--green { background: linear-gradient(135deg, #e8f5d0, #d8edba); color: #5a8c0e; }
.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ========== HOW IT WORKS — CAROUSEL ========== */
.hiw-carousel {
    margin-top: 72px;
    background: var(--white);
    border-radius: 28px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* ── Tabs ── */
.hiw-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--gray-200);
}
.hiw-tab {
    all: unset;
    cursor: pointer;
    padding: 20px 28px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid var(--gray-200);
    transition: background 0.2s;
}
.hiw-tab:last-child { border-right: none; }
.hiw-tab:hover { background: #fafafa; }
.hiw-tab__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    opacity: 0.35;
    transition: opacity 0.3s;
}
.hiw-tab--active .hiw-tab__num { opacity: 1; }
.hiw-tab__num--1 { background: linear-gradient(135deg, #deeefa, #c6e2f6); color: var(--gradient-start); }
.hiw-tab__num--2 { background: linear-gradient(135deg, #ede0f8, #deccf2); color: var(--gradient-mid); }
.hiw-tab__num--3 { background: linear-gradient(135deg, #e8f5d0, #d8edba); color: #5a8c0e; }
.hiw-tab__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: -0.01em;
    transition: color 0.3s;
    padding-bottom: 16px;
}
.hiw-tab--active .hiw-tab__label { color: var(--gray-800); }
.hiw-tab__bar {
    height: 2px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}
.hiw-tab__fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
}

/* ── Stage ── */
.hiw-stage {
    display: grid;
    min-height: 340px;
}
.hiw-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(32px);
    transition: opacity 0.4s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.hiw-slide--active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.hiw-slide--enter-right { transform: translateX(32px); opacity: 0; }
.hiw-slide--enter-left  { transform: translateX(-32px); opacity: 0; }
.hiw-slide--exit-left   { transform: translateX(-32px); opacity: 0; }
.hiw-slide--exit-right  { transform: translateX(32px); opacity: 0; }

/* ── Text panel ── */
.hiw-text {
    padding: 44px 40px 44px 44px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid #f0f0f5;
}
.hiw-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hiw-circle--1 { background: linear-gradient(135deg, #deeefa, #c6e2f6); color: var(--gradient-start); }
.hiw-circle--2 { background: linear-gradient(135deg, #ede0f8, #deccf2); color: var(--gradient-mid); }
.hiw-circle--3 { background: linear-gradient(135deg, #e8f5d0, #d8edba); color: #5a8c0e; }
.hiw-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--gray-800);
    margin-bottom: 10px;
}
.hiw-text p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}
.hiw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hiw-tag {
    padding: 4px 11px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #424245;
    border: 1px solid var(--gray-200);
    background: #f9f9fb;
}

/* ── Visual panel ── */
.hiw-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 40px;
}
.hiw-mockup {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    padding: 22px;
}
.hiw-mockup--1 { background: linear-gradient(135deg, #f0f8ff, #e8f2fd); border: 1px solid #d0e8f8; }
.hiw-platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hiw-platform-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.hiw-mockup--2 { background: linear-gradient(135deg, #f5effe, #ede0f8); border: 1px solid #ddd0f5; }
.hiw-chat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(91,45,142,0.5);
    margin-bottom: 10px;
}
.hiw-chat-ui { display: flex; flex-direction: column; gap: 7px; }
.hiw-bubble { padding: 9px 13px; border-radius: 14px; font-size: 0.8rem; line-height: 1.5; }
.hiw-bubble--user { background: var(--gradient-mid); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.hiw-bubble--ai { background: var(--white); color: var(--gray-800); border: 1px solid var(--gray-200); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.hiw-mockup--3 { background: linear-gradient(135deg, #f0fae8, #e4f5d0); border: 1px solid #cceaaa; }
.hiw-metrics { display: flex; flex-direction: column; gap: 7px; }
.hiw-metric {
    background: var(--white);
    border-radius: 12px;
    padding: 11px 14px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.hiw-metric__label { font-size: 0.725rem; color: var(--gray-500); font-weight: 500; }
.hiw-metric__val { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--gray-800); }
.hiw-metric__change { font-size: 0.725rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #e8f5d0; color: #5a8c0e; }

/* ── Nav arrows ── */
.hiw-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
}
.hiw-nav__btn {
    all: unset;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.hiw-nav__btn:hover { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); transform: scale(1.08); }

/* ========== USE CASES ========== */
.uc-section {
    position: relative;
    overflow: hidden;
}
.uc-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,119,182,0.15) 0%, rgba(91,45,142,0.06) 40%, transparent 60%);
    pointer-events: none;
}
.uc-section .overline { color: rgba(255,255,255,0.4); }
.uc-section .section-title { color: var(--white); }
.uc-section .section-subtitle { color: rgba(255,255,255,0.5); }
.uc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}
.uc-card {
    background: rgba(255,255,255,0.05);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.4s;
    display: grid;
    grid-template-rows: 178px 1fr;
}
.uc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.18);
}

/* ── Scenario block ── */
.uc-scenario {
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 9px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}
.uc-scenario--blue   { background: linear-gradient(160deg, rgba(0,119,182,0.18) 0%, rgba(0,119,182,0.10) 100%); }
.uc-scenario--purple { background: linear-gradient(160deg, rgba(91,45,142,0.22) 0%, rgba(91,45,142,0.12) 100%); }
.uc-scenario--green  { background: linear-gradient(160deg, rgba(90,140,14,0.18) 0%, rgba(90,140,14,0.10) 100%); }
.uc-scenario__msg {
    font-size: 0.8125rem;
    line-height: 1.55;
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 88%;
}
.uc-scenario__msg--user {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-style: italic;
}
.uc-scenario__msg--ai {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.12);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.uc-scenario__ai-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0077B6;
    flex-shrink: 0;
}
.uc-scenario__ai-dot--purple { background: #5B2D8E; }
.uc-scenario__ai-dot--green  { background: #5a8c0e; }

/* ── Body ── */
.uc-body {
    padding: 28px 28px 32px;
}
.uc-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}
.uc-label--blue   { background: #deeefa; color: #0077B6; }
.uc-label--purple { background: #ede0f8; color: #5B2D8E; }
.uc-label--green  { background: #e3f5d0; color: #5a8c0e; }
.uc-card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}
.uc-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    margin-bottom: 22px;
}
.uc-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    list-style: none;
}
.uc-list li {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.uc-list li svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255,255,255,0.3);
    stroke-width: 2.5;
}

/* ========== TESTIMONIALS ========== */
.tm-section {
    padding: 80px 0 72px;
    overflow: hidden;
    background: var(--white);
}
.tm-section .container { margin-bottom: 48px; }
.tm-outer { display: flex; flex-direction: column; gap: 16px; }
.tm-row { overflow: hidden; position: relative; }
.tm-row::before,
.tm-row::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.tm-row::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.tm-row::after  { right: 0; background: linear-gradient(to left, var(--white), transparent); }
@keyframes tmLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tm-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
    animation: tmLeft 160s linear infinite;
}
.tm-track:hover { animation-play-state: paused; }
.tm-card {
    width: 300px;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}
.tm-stars { color: #FFB800; font-size: 0.75rem; letter-spacing: 1px; margin-bottom: 10px; }
.tm-card p {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 16px;
}
.tm-author { display: flex; align-items: center; gap: 10px; }
.tm-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tm-author div { display: flex; flex-direction: column; gap: 1px; }
.tm-author strong { font-size: 0.8125rem; font-weight: 600; color: var(--gray-800); }
.tm-author span   { font-size: 0.75rem; color: var(--gray-500); }

/* ========== PRICING ========== */
.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 56px;
}
.pricing__toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
}
.pricing__toggle-label.active { color: var(--gray-800); }
.pricing__toggle-switch {
    width: 48px;
    height: 28px;
    border-radius: 14px;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}
.pricing__toggle-switch.active { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid)); }
.pricing__toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.pricing__toggle-switch.active::after { transform: translateX(20px); }
.pricing__save-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gradient-end);
    background: #eef7dc;
    padding: 4px 10px;
    border-radius: 980px;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pricing-card {
    border-radius: 20px;
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all 0.4s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.pricing-card--featured {
    border: 2px solid var(--gradient-mid);
    box-shadow: 0 8px 40px rgba(91,45,142,0.14);
}
.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 980px;
    white-space: nowrap;
}
.pricing-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}
.pricing-card__price span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
}
.pricing-card__desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.5;
}
.pricing-card .btn {
    width: 100%;
    margin-bottom: 24px;
}
.pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pricing-card__features li {
    font-size: 0.8125rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.pricing-card__features li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gradient-mid);
}

/* ========== CTA ========== */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: var(--gray-800);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,119,182,0.15) 0%, rgba(91,45,142,0.06) 40%, transparent 60%);
    pointer-events: none;
}
.cta-section .section-title { color: var(--white); }
.cta-section .section-subtitle { color: var(--white); }

.cta-rotate-wrapper {
    display: inline-block;
}
.cta-rotate {
    font-weight: 700;
    -webkit-text-fill-color: var(--white);
    transition: opacity 0.4s, transform 0.4s;
}
.cta-rotate.out {
    opacity: 0;
    transform: translateY(-8px);
}
.cta-rotate.in {
    opacity: 1;
    transform: translateY(0);
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-gradient {
    background: linear-gradient(
        90deg,
        var(--gradient-start) 0%,
        var(--gradient-mid) 25%,
        var(--gradient-end) 50%,
        var(--gradient-start) 75%,
        var(--gradient-mid) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 4s linear infinite;
}
@keyframes gradient-flow {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ========== FOOTER ========== */
.footer {
    padding: 64px 0 32px;
    background: var(--gray-800);
    color: var(--gray-400);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}
.footer__brand-desc {
    font-size: 0.8125rem;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 300px;
}
.footer__col-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
    font-size: 0.8125rem;
    color: var(--gray-400);
    transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .pricing__grid { grid-template-columns: repeat(2, 1fr); }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .uc-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .hero { padding: 120px 0 64px; }
    .hero__stats { flex-direction: column; gap: 24px; }
    .nav__links, .nav__cta { display: none; }
    .nav__mobile-toggle { display: block; }
    .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .features__grid { grid-template-columns: 1fr; }
    .uc-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    .btn-group { justify-content: center; }
    .hiw-carousel { margin-top: 40px; border-radius: 20px; }
    .hiw-tabs { grid-template-columns: repeat(3, 1fr); }
    .hiw-tab { padding: 16px 16px 0; }
    .hiw-tab__label { font-size: 0.75rem; padding-bottom: 12px; }
    .hiw-slide { grid-template-columns: 1fr; }
    .hiw-visual { display: none; }
    .hiw-text { padding: 28px 24px; border-right: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .hero { padding: 100px 0 48px; }
    .hero__badge { padding: 4px 12px; font-size: 0.75rem; }
    .feature-card { padding: 32px 24px; }
    .pricing-card { padding: 24px 20px; }
    .footer__grid { gap: 24px; }
    .btn { padding: 12px 24px; font-size: 0.875rem; }
    .btn-group { flex-direction: column; align-items: stretch; }
    .btn-group .btn { width: 100%; text-align: center; }
}

/* Footer social icons touch targets */
.footer a[aria-label] {
    min-width: 44px !important;
    min-height: 44px !important;
}

/* ========== DEMO WINDOW ========== */
/* ═══ Chat Demo — Liquid Glass ═══ */
.cd-wrap {
    margin-top: 56px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
/* Colorful glow behind glass for refraction */
.cd-glow {
    position: absolute;
    inset: 20px;
    border-radius: 32px;
    background: conic-gradient(from 180deg at 50% 50%, #0077B6 0deg, #5B2D8E 90deg, #7CB518 180deg, #0077B6 270deg, #5B2D8E 360deg);
    opacity: 0.15;
    filter: blur(40px);
    z-index: 0;
    animation: glowRotate 8s linear infinite;
}
@keyframes glowRotate {
    0% { filter: blur(40px) hue-rotate(0deg); }
    100% { filter: blur(40px) hue-rotate(360deg); }
}
.cd {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 8px 32px rgba(31,38,135,0.15),
        inset 0 4px 20px rgba(255,255,255,0.25);
    font-family: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
/* Specular shine layer */
.cd::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(1px);
    box-shadow:
        inset -10px -8px 0px -11px rgba(255,255,255,0.8),
        inset 0px -9px 0px -8px rgba(255,255,255,0.6);
    opacity: 0.5;
    z-index: -1;
    filter: blur(0.5px) brightness(110%);
    pointer-events: none;
}

/* Messages — single message view */
.cd__body {
    padding: 18px 24px;
    height: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}
.cd__body > * { width: 100%; }
/* Climax overlay */
.cd-climax {
    position: absolute; inset: 0; z-index: 10;
    border-radius: 24px;
    background: rgba(255,255,255,0.97);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 12px 24px;
    opacity: 0; transition: opacity 0.4s ease;
    pointer-events: none;
}
.cd-climax.active { opacity: 1; }
.cd-climax__glow {
    position: absolute; top: 50%; left: 50%;
    width: 160px; height: 160px;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,119,182,0.1) 0%, rgba(91,45,142,0.06) 40%, transparent 70%);
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.cd-climax.active .cd-climax__glow { transform: translate(-50%, -50%) scale(1); }
/* Confetti canvas inside chat bar */
.cd-confetti {
    position: absolute; inset: 0; z-index: 15;
    pointer-events: none; border-radius: 24px;
    overflow: hidden;
}
.cd-climax__number {
    position: relative; z-index: 1;
    font-size: 1.125rem;
    font-weight: 800; letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0077B6 0%, #5B2D8E 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0; transform: translateY(6px);
    transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.cd-climax.active .cd-climax__number { opacity: 1; transform: translateY(0); }
.cd-climax__sub {
    position: relative; z-index: 1;
    font-size: 0.6875rem; color: #6e6e73;
    margin-top: 2px; opacity: 0;
    transition: opacity 0.5s ease 0.4s;
}
.cd-climax.active .cd-climax__sub { opacity: 1; }
.cd-climax__line { display: none; }
.cd-climax__tag { display: none; }
/* Shimmer particles */
.cd-shimmer {
    position: absolute; inset: 0; z-index: 2;
    pointer-events: none; overflow: hidden;
    border-radius: 24px;
}
.cd-shimmer i {
    position: absolute; width: 3px; height: 3px;
    border-radius: 50%; opacity: 0;
    background: linear-gradient(135deg, #0077B6, #5B2D8E);
}
@keyframes shimmerUp {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    15% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

/* ─── Message row ─── */
.cd-msg { display: flex; align-items: center; gap: 10px; }
.cd-msg--u { justify-content: flex-start; }
.cd-msg--u .cd-sep { display: none; }
.cd-msg--a { justify-content: flex-start; }
.cd-who {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    min-width: 28px;
}
.cd-who--u { display: none; }
.cd-who--a {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cd-who--a img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}
.cd-sep {
    width: 1px;
    height: 16px;
    background: rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.cd-u {
    color: rgba(0,0,0,0.4);
    font-size: 0.84rem;
    line-height: 1.4;
    letter-spacing: -0.008em;
    border-right: 2px solid rgba(0,0,0,0.3);
    padding-right: 2px;
    animation: cursorBlink 0.8s step-end infinite;
    overflow: hidden;
    white-space: nowrap;
}
.cd-u--done { border-right: none; animation: none; }
@keyframes cursorBlink {
    0%, 100% { border-color: rgba(0,0,0,0.3); }
    50% { border-color: transparent; }
}
.cd-a {
    font-size: 0.84rem;
    line-height: 1.4;
    color: #1D1D1F;
    letter-spacing: -0.008em;
    font-weight: 500;
}

/* (cards/tables removed — single-line messages) */

/* Typing */
.cd-dots { display: flex; gap: 4px; padding: 2px 0; }
.cd-dots span {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(91,45,142,0.35);
    animation: cdDot 1.4s ease-in-out infinite;
}
.cd-dots span:nth-child(2) { animation-delay: 0.15s; }
.cd-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cdDot {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.15); }
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .cd-wrap { margin-top: 36px; }
    .cd { border-radius: 18px; }
    .cd__body { height: 170px; padding: 12px 14px; }
    .cd-u { max-width: 80%; }
    .cd-card-v { font-size: 0.95rem; }
}
