/* ============================================
   Gradient Button — @property declarations
   Required at top-level for animatable custom properties
   Adapted from GradientButton React component (blue theme)
   ============================================ */
@property --gb-pos-x {
    syntax: '<percentage>';
    initial-value: 11.14%;
    inherits: false;
}
@property --gb-pos-y {
    syntax: '<percentage>';
    initial-value: 140%;
    inherits: false;
}
@property --gb-spread-x {
    syntax: '<percentage>';
    initial-value: 150%;
    inherits: false;
}
@property --gb-spread-y {
    syntax: '<percentage>';
    initial-value: 180.06%;
    inherits: false;
}
@property --gb-color-1 {
    syntax: '<color>';
    initial-value: #000;
    inherits: false;
}
@property --gb-color-2 {
    syntax: '<color>';
    initial-value: #040e28;
    inherits: false;
}
@property --gb-color-3 {
    syntax: '<color>';
    initial-value: #1a3a8f;
    inherits: false;
}
@property --gb-color-4 {
    syntax: '<color>';
    initial-value: #2450b8;
    inherits: false;
}
@property --gb-color-5 {
    syntax: '<color>';
    initial-value: #3366d6;
    inherits: false;
}
@property --gb-border-angle {
    syntax: '<angle>';
    initial-value: 20deg;
    inherits: true;
}
@property --gb-border-c1 {
    syntax: '<color>';
    initial-value: hsla(220, 75%, 65%, 0.2);
    inherits: true;
}
@property --gb-border-c2 {
    syntax: '<color>';
    initial-value: hsla(220, 75%, 55%, 0.75);
    inherits: true;
}
@property --gb-stop-1 {
    syntax: '<percentage>';
    initial-value: 37.35%;
    inherits: false;
}
@property --gb-stop-2 {
    syntax: '<percentage>';
    initial-value: 61.36%;
    inherits: false;
}
@property --gb-stop-3 {
    syntax: '<percentage>';
    initial-value: 78.42%;
    inherits: false;
}
@property --gb-stop-4 {
    syntax: '<percentage>';
    initial-value: 89.52%;
    inherits: false;
}
@property --gb-stop-5 {
    syntax: '<percentage>';
    initial-value: 100%;
    inherits: false;
}

/* ============================================
   Landing Page — Rolling Background & Hero
   ============================================ */

/* Motivational quote bar — anchored to page top, scrolls away with content */
.quote-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 280px;
    box-sizing: border-box;
    font-size: 13px;
    font-style: italic;
    line-height: 1.4;
    font-family: var(--font-body);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    background: transparent;
    border-bottom: none;
    z-index: 95;
    pointer-events: none;
}

.quote-bar .quote-text {
    opacity: 0;
    animation: quoteFadeIn 0.8s ease 0.2s forwards;
}

@keyframes quoteFadeIn {
    to { opacity: 1; }
}

/* Home page: match the effective hero color (base sky blue + 45%
   white overlay) so hero and bento sections share one seamless tone. */
body.home-page {
    background: #e7f2fc;
}

/* —— Home: light sky hero + glass nav (index only) —— */
body.home-page .quote-bar {
    /* Absolute — scrolls away with content instead of sticking */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 280px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
    z-index: 80;
}

body.home-page .navbar.navbar-home {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    transform: none;
}

body.home-page .navbar.navbar-home.navbar-scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

body.home-page .navbar.navbar-home:not(.navbar-scrolled) .nav-links a:not(.nav-profile-link) {
    color: #6b7280;
}

body.home-page .navbar.navbar-home:not(.navbar-scrolled) .nav-links a:not(.nav-profile-link):hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.04);
}

body.home-page .navbar.navbar-home:not(.navbar-scrolled) .nav-links a:not(.nav-profile-link).active {
    color: #111827;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-page .navbar.navbar-home:not(.navbar-scrolled) .nav-links a:not(.nav-profile-link)::after {
    background: rgba(15, 23, 42, 0.2);
}

body.home-page .navbar.navbar-home.navbar-scrolled .nav-links a:not(.nav-profile-link) {
    color: #6b7280;
}

body.home-page .navbar.navbar-home.navbar-scrolled .nav-links a:not(.nav-profile-link):hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.04);
}

body.home-page .navbar.navbar-home.navbar-scrolled .nav-links a:not(.nav-profile-link).active {
    color: #111827;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-page .navbar.navbar-home:not(.navbar-scrolled) .hamburger-btn {
    border-color: var(--border-light);
    color: #475569;
}

body.home-page .navbar.navbar-home:not(.navbar-scrolled) .hamburger-btn:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--accent);
}

body.home-page .navbar.navbar-home:not(.navbar-scrolled) .nav-logo .logo-mark {
    filter: none;
}

body.home-page .navbar.navbar-home.navbar-scrolled .nav-logo .logo-mark {
    filter: none;
}

body.home-page .navbar.navbar-home:not(.navbar-scrolled) .nav-profile-link {
    color: #475569;
    border-color: var(--border-light);
}

body.home-page .navbar.navbar-home.navbar-scrolled .nav-profile-link {
    color: inherit;
    border-color: var(--border-light);
}

body.home-page .logo-cloud-section {
    z-index: 3;
}

body.home-page .cta-hero-enhanced {
    border-radius: 9999px;
    padding: 17px 44px;
    font-size: 19px;
}

/* ===== Home Page Entrance Animations ===== */

/* Quote bar + navbar entrance */
body.home-page .quote-bar {
    animation: heroBgReveal 1s ease 0s both;
}
body.home-page .navbar {
    animation: heroBgReveal 0.8s ease 0.1s both;
}

@keyframes heroTitleReveal {
    0%   { opacity: 0; transform: translateY(50px) scale(0.92); filter: blur(8px); }
    60%  { opacity: 1; filter: blur(0px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}

@keyframes heroBulletproofReveal {
    0%   { opacity: 0; transform: translateY(30px); letter-spacing: 0.15em; }
    50%  { opacity: 0.7; letter-spacing: 0.04em; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: -0.03em; }
}

@keyframes heroSubtitleReveal {
    0%   { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroCtaReveal {
    0%   { opacity: 0; transform: translateY(20px) scale(0.9); }
    70%  { transform: translateY(-3px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroCloudFadeIn {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroBgReveal {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.hero-landing {
    animation: heroBgReveal 1.8s ease forwards;
    opacity: 1;
}

.hero-landing h1 {
    animation: heroTitleReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both !important;
}

body.home-page .hero-landing .gradient-text {
    animation: heroBulletproofReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.hero-landing .hero-subtitle {
    animation: heroSubtitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both !important;
}

.hero-landing .cta-hero-enhanced {
    animation: heroCtaReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s both !important;
}

.hero-landing .logo-cloud-section {
    animation: heroCloudFadeIn 1.4s ease 2.2s both;
}

.hero-landing .logo-cloud-heading {
    animation: heroSubtitleReveal 1s ease 2.4s both;
}

.hero-landing .logo-cloud-container {
    animation: heroSubtitleReveal 1s ease 2.6s both;
}

/* Steps section — hidden until scrolled into view */
.home-scroll-ambient .home-scroll-kicker,
.home-scroll-ambient .home-scroll-h2,
.home-step-card,
.home-step-connector {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-scroll-ambient.revealed .home-scroll-kicker {
    opacity: 1; transform: translateY(0); transition-delay: 0s;
}
.home-scroll-ambient.revealed .home-scroll-h2 {
    opacity: 1; transform: translateY(0); transition-delay: 0.1s;
}
.home-scroll-ambient.revealed .home-step-card:nth-child(1) {
    opacity: 1; transform: translateY(0); transition-delay: 0.25s;
}
.home-scroll-ambient.revealed .home-step-connector:nth-child(2) {
    opacity: 1; transform: translateY(0); transition-delay: 0.35s;
}
.home-scroll-ambient.revealed .home-step-card:nth-child(3) {
    opacity: 1; transform: translateY(0); transition-delay: 0.45s;
}
.home-scroll-ambient.revealed .home-step-connector:nth-child(4) {
    opacity: 1; transform: translateY(0); transition-delay: 0.55s;
}
.home-scroll-ambient.revealed .home-step-card:nth-child(5) {
    opacity: 1; transform: translateY(0); transition-delay: 0.65s;
}

/* Feature sections reveal on scroll via IntersectionObserver */
.feature-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/*
  Hero — sky + clouds photo (center clear blue), soft blends: quote bar → sky,
  bottom → white for section handoff.
*/
.hero-landing {
    position: relative;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 32px 0;
    overflow: hidden;
    background-color: #d4eaff;
    background-image:
        linear-gradient(180deg,
            rgba(212, 234, 255, 0.0) 0%,
            rgba(212, 234, 255, 0.0) 100%),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.45) 100%),
        url(images/hero-sky-clouds.png);
    background-size: cover, cover, cover;
    background-position: center top, center top, center top;
    background-repeat: no-repeat;
}

/* Frosted blur fade at top of home page — softens the hero image edge
   and blends into the quote bar / navbar above. Height and blur are
   tuned larger than the bottom fade so the top reads as a proper
   atmospheric haze rather than a hairline seam. */
.hero-landing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(40vh, 320px);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(0deg,
        transparent 0%,
        rgba(231, 242, 252, 0.25) 25%,
        rgba(231, 242, 252, 0.55) 50%,
        rgba(231, 242, 252, 0.82) 72%,
        rgba(231, 242, 252, 0.95) 88%,
        #e7f2fc 100%);
    backdrop-filter: blur(22px) saturate(1.05);
    -webkit-backdrop-filter: blur(22px) saturate(1.05);
    mask-image: linear-gradient(0deg, transparent 0%, black 55%, black 100%);
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, black 55%, black 100%);
}

/* Frosted fade at bottom of hero — smooth blend into next section */
.hero-landing::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: min(28vh, 220px);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(240, 244, 255, 0.3) 30%,
        rgba(240, 244, 255, 0.65) 55%,
        rgba(240, 244, 255, 0.88) 75%,
        #f0f4ff 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    mask-image: linear-gradient(180deg, transparent 0%, black 35%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 35%);
}

.hero-landing-content {
    position: relative;
    max-width: 960px;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-landing h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(46px, 10.2vw, 108px);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    text-align: center;
    animation: fadeUp 0.8s var(--ease-out) 0.1s both;
    color: #0a0a0a;
}

body.home-page .hero-landing .gradient-text {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #0041c2;
    font-weight: 300;
    font-family: inherit;
}

/* ===== Rotating Text in Hero ===== */
.rotating-text-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    clip-path: inset(-0.25em -0.25em -0.25em 0);
    transition: width 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
/* Invisible sizer — reserves line height only (width fully controlled by JS) */
.rotating-text-sizer {
    display: inline-block;
    width: 0;
    visibility: hidden;
    white-space: nowrap;
    pointer-events: none;
    font-family: inherit;
}
/* Absolute words slide in/out, width controlled by JS for centering */
.rotating-word {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.45s cubic-bezier(0.32, 0.72, 0, 1),
                transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    color: #0a0a0a;
    font-family: inherit;
}
.rotating-word.active {
    opacity: 1;
    transform: translateY(0%);
}
.rotating-word.exit-up {
    opacity: 0;
    transform: translateY(-100%);
}

.hero-landing .hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 2.4vw, 20px);
    color: #334155;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.65;
    text-align: center;
    animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.hero-landing .hero-subtitle strong {
    color: #0f172a;
    font-weight: 600;
}

/* Enhanced CTA button */
/* Gradient Button — Blue theme adapted from GradientButton component */
.cta-hero-enhanced {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 60px;
    min-width: 160px;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    position: relative;
    cursor: pointer;
    border: none;
    appearance: none;
    overflow: hidden;
    isolation: isolate;
    animation: fadeUp 0.8s var(--ease-out) 0.4s both;

    /* Radial gradient with animatable custom properties */
    background: radial-gradient(
        var(--gb-spread-x) var(--gb-spread-y) at var(--gb-pos-x) var(--gb-pos-y),
        var(--gb-color-1) var(--gb-stop-1),
        var(--gb-color-2) var(--gb-stop-2),
        var(--gb-color-3) var(--gb-stop-3),
        var(--gb-color-4) var(--gb-stop-4),
        var(--gb-color-5) var(--gb-stop-5)
    );

    box-shadow:
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 60px rgba(59, 130, 246, 0.12),
        0 6px 28px rgba(59, 130, 246, 0.2);

    transition:
        --gb-pos-x 0.5s,
        --gb-pos-y 0.5s,
        --gb-spread-x 0.5s,
        --gb-spread-y 0.5s,
        --gb-color-1 0.5s,
        --gb-color-2 0.5s,
        --gb-color-3 0.5s,
        --gb-color-4 0.5s,
        --gb-color-5 0.5s,
        --gb-border-angle 0.5s,
        --gb-border-c1 0.5s,
        --gb-border-c2 0.5s,
        --gb-stop-1 0.5s,
        --gb-stop-2 0.5s,
        --gb-stop-3 0.5s,
        --gb-stop-4 0.5s,
        --gb-stop-5 0.5s,
        transform 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out),
        letter-spacing 0.4s var(--ease-out);
}

/* Animated gradient border via mask-composite */
.cta-hero-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        var(--gb-border-angle),
        var(--gb-border-c1),
        var(--gb-border-c2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: --gb-border-angle 0.5s, --gb-border-c1 0.5s, --gb-border-c2 0.5s;
}

.cta-hero-enhanced:hover {
    transform: scale(1.06);
    letter-spacing: 0.02em;
    box-shadow:
        0 0 24px rgba(59, 130, 246, 0.6),
        0 0 60px rgba(59, 130, 246, 0.35),
        0 0 120px rgba(59, 130, 246, 0.2);

    --gb-pos-x: 0%;
    --gb-pos-y: 91.51%;
    --gb-spread-x: 120.24%;
    --gb-spread-y: 103.18%;
    --gb-color-1: #93c5fd;
    --gb-color-2: #60a5fa;
    --gb-color-3: #3b82f6;
    --gb-color-4: #2563eb;
    --gb-color-5: #1e40af;
    --gb-border-angle: 190deg;
    --gb-border-c1: hsla(220, 78%, 90%, 0.15);
    --gb-border-c2: hsla(220, 75%, 80%, 0.7);
    --gb-stop-1: 0%;
    --gb-stop-2: 8.8%;
    --gb-stop-3: 21.44%;
    --gb-stop-4: 71.34%;
    --gb-stop-5: 85.76%;
}

.cta-hero-enhanced:hover .cta-arrow {
    transform: translateX(6px);
}

.cta-arrow {
    transition: transform 0.3s var(--ease-out);
}

.cta-hero-enhanced:active {
    transform: translateY(-1px) scale(1.02);
}

/* Page exit transition */
body.page-exiting {
    transition: opacity 0.5s ease;
    opacity: 0;
}

/* ============================================
   Apple-style Full-Page Feature Sections
   ============================================ */

/* ============================================
   Scroll — premium light sections (reference-inspired)
   ============================================ */
.home-scroll-wrap {
    position: relative;
    z-index: 2;
}

.home-scroll-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-scroll-ambient {
    position: relative;
    padding: 88px 0 72px;
    background: linear-gradient(180deg,
        #f0f4ff 0%,
        #f0f2f9 32%,
        #eef3fb 58%,
        #eaf1fb 78%,
        #e7f2fc 100%);
}

/* Frosted fade at top of steps section — blurs the color handoff
   from the hero above into the steps band. */
.home-scroll-ambient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(22vh, 180px);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        #f0f4ff 0%,
        rgba(240, 244, 255, 0.75) 45%,
        rgba(240, 244, 255, 0.35) 75%,
        rgba(240, 244, 255, 0) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 100%);
}

/* Frosted fade at bottom of steps section — blurs the color handoff
   down into the bento grid background. */
.home-scroll-ambient::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: min(24vh, 200px);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(231, 242, 252, 0) 0%,
        rgba(231, 242, 252, 0.35) 25%,
        rgba(231, 242, 252, 0.7) 55%,
        #e7f2fc 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    mask-image: linear-gradient(180deg, transparent 0%, black 60%, black 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 60%, black 100%);
}

.home-scroll-ambient .home-scroll-inner {
    position: relative;
    z-index: 1;
}


.home-scroll-kicker {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 14px;
}

.home-scroll-h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(32px, 4.2vw, 46px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-align: center;
    color: #0f172a;
    margin-bottom: 14px;
}

.home-scroll-h2--before-steps {
    margin-bottom: 40px;
}

.home-steps-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.home-step-card {
    flex: 1 1 260px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 32px;
    padding: 24px 22px 28px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-align: center;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-step-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.05),
        0 20px 50px rgba(37, 99, 235, 0.12);
}

.home-step-num {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.home-step-card h3 {
    font-family: 'Space Grotesk', var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.home-step-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    flex: 1;
}

.home-step-card a {
    display: inline-block;
    margin-top: auto;
    padding-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.home-step-card a:hover {
    text-decoration: underline;
}

.home-step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    color: #cbd5e1;
}

.home-step-connector svg {
    width: 36px;
    height: 24px;
}

@media (max-width: 900px) {
    .home-steps-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .home-step-connector {
        transform: rotate(90deg);
        flex: 0 0 auto;
        padding: 4px 0;
    }
    .home-step-card {
        max-width: 420px;
        width: 100%;
    }
}

/* ============================================
   Bento Grid Feature Layout
   ============================================ */
.bento-features {
    max-width: 1520px;
    margin: 0 auto;
    padding: 80px 40px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bento-full { grid-column: 1 / -1; }
.bento-half { grid-column: span 1; }

.feature-section {
    min-height: unset;
    display: block;
    padding: 0;
    position: relative;
    overflow: visible;
}

.feature-section:nth-child(even) {
    background: none;
}

.bento-card {
    background: transparent;
    border-radius: 0;
    padding: 44px 52px;
    position: relative;
    overflow: visible;
    height: 100%;
    box-sizing: border-box;
    transition: none;
    box-shadow: none;
    border: none;
}

.bento-card:hover {
    box-shadow: none;
    transform: none;
}

.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.bento-number {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.bento-category {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
}

.bento-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.bento-reversed .bento-card-body {
    direction: rtl;
}
.bento-reversed .bento-card-body > * {
    direction: ltr;
}

/* Half-width cards: stack vertically */
.bento-half .bento-card-body {
    grid-template-columns: 1fr;
    gap: 28px;
}

.bento-half .bento-card {
    padding: 36px 40px;
}

/* --- Text side --- */
.feature-text { display: flex; flex-direction: column; }

.feature-label {
    display: none; /* Moved to bento-card-header */
}

.bento-card .feature-text h2 {
    font-family: 'Space Grotesk', var(--font-display);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.bento-half .feature-text h2 {
    font-size: clamp(22px, 2.8vw, 30px);
}

.bento-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.65;
    max-width: 440px;
    margin-bottom: 24px;
}

.bento-half .bento-desc {
    max-width: none;
}

/* --- Visual side in bento --- */
.bento-card .feature-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    perspective: 900px;
}

.bento-card .feature-visual .mockup-card {
    width: 100%;
    max-width: 560px;
    height: 430px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 16px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.bento-card:hover .mockup-card {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 24px 56px rgba(0, 0, 0, 0.08);
}

.bento-half .mockup-card {
    max-width: 100%;
}

/* Override mockup-card colors for bento light bg */
.bento-card .mockup-dots span:first-child { background: #ff5f57; }
.bento-card .mockup-dots span:nth-child(2) { background: #ffbd2e; }
.bento-card .mockup-dots span:nth-child(3) { background: #28c840; }

/* Tabs on bento light bg */
.bento-card .feature-tab {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #4b5563;
}
.bento-card .feature-tab.active {
    background: rgba(36, 80, 184, 0.08);
    border-color: var(--accent);
    color: #1a1a2e;
}
.bento-card .tab-num {
    background: rgba(0, 0, 0, 0.06);
    color: #6b7280;
}
.bento-card .feature-tab.active .tab-num {
    background: var(--accent);
    color: #fff;
}
.bento-card .tab-label {
    color: #6b7280;
}
.bento-card .feature-tab.active .tab-label {
    color: #1a1a2e;
}

/* Mockup internal text color overrides for white bg */
.bento-card .m-bar-label,
.bento-card .m-kw-word,
.bento-card .m-ats-check,
.bento-card .m-bullet-before,
.bento-card .m-bullet-after {
    color: #374151;
}
.bento-card .mockup-card-flipper {
    color: #374151;
}
.bento-card .score-num {
    color: #1a1a2e;
}

.feature-text h2 {
    font-family: 'Space Grotesk', var(--font-display);
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 480px;
}

.feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 10px 28px;
    border: 1px solid;
}

.feature-cta svg {
    transition: transform 0.3s var(--ease-out);
}

.feature-cta:hover svg {
    transform: translateX(5px);
}

/* --- Mockup card (visual side) --- */
.feature-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}

.mockup-card {
    width: 640px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 16px 56px rgba(0,0,0,0.18), 0 0 0 1px rgba(36,80,184,0.06);
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.feature-section.visible .mockup-card {
    animation: none;
}

/* Performance: disable decorative CSS animations inside bento mockups (reduces jank) */
.feature-section .feature-visual,
.feature-section .feature-visual * {
    animation: none !important;
}

.mockup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 40px rgba(36,80,184,0.08);
}

.mockup-dots {
    display: flex;
    gap: 7px;
    margin-bottom: 20px;
}

.mockup-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

/* --- Mockup inner elements --- */
.m-line {
    height: 12px;
    border-radius: 6px;
    background: var(--border);
    margin-bottom: 10px;
}

.m-line.highlighted {
    background: rgba(36, 80, 184, 0.15);
    border: 1px solid rgba(36, 80, 184, 0.25);
}

/* -- 1. Resume Analyzer: Score ring + keywords -- */
.m-score-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 20px;
}

.score-ring-wrap {
    position: relative;
    width: 110px; height: 110px;
    flex-shrink: 0;
}

.score-ring { width: 110px; height: 110px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 6; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
    stroke-dasharray: 264; stroke-dashoffset: 264;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}
.feature-section.visible .ring-fill,
.flip-panel.active .ring-fill { stroke-dashoffset: 34; }

.score-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-light);
}

.m-score-bars { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.m-bar-row { display: flex; align-items: center; gap: 10px; }
.m-bar-label { font-size: 13px; color: var(--text-muted); width: 68px; text-align: right; }
.m-bar-track { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.m-bar-fill { height: 100%; border-radius: 3px; width: 0; transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

.m-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.m-pill {
    font-size: 12px; font-weight: 600; padding: 5px 14px;
    border-radius: 20px; letter-spacing: 0.02em;
}
.m-pill-ok { background: rgba(85,239,196,0.1); color: var(--green); border: 1px solid rgba(85,239,196,0.2); }
.m-pill-miss { background: rgba(232,106,106,0.1); color: var(--red); border: 1px solid rgba(232,106,106,0.2); }

/* -- 3. Interview Prep: Camera + feedback -- */
.m-video-frame {
    background: #0c0c14;
    border-radius: 12px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 14px;
    overflow: hidden;
}

.m-video-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(36,80,184,0.08), transparent 70%);
}

.m-rec {
    position: absolute;
    top: 10px; left: 12px;
    display: flex; align-items: center; gap: 6px;
}

.m-rec-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ff4757;
    box-shadow: 0 0 8px rgba(255,71,87,0.6);
}
.m-rec-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; color: rgba(255,255,255,0.6);
}

.m-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(36,80,184,0.15);
    border: 2px solid rgba(36,80,184,0.3);
    display: flex; align-items: center; justify-content: center;
}

.m-avatar svg { width: 28px; height: 28px; color: var(--accent-light); opacity: 0.6; }

.m-feedback { display: flex; flex-direction: column; gap: 10px; }
.m-fb-row { display: flex; align-items: center; gap: 12px; }
.m-fb-label { font-size: 14px; color: var(--text-muted); width: 84px; }
.m-fb-track { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.m-fb-fill { height: 100%; border-radius: 3px; width: 0; transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

/* -- 4. Networking: Email compose -- */
.m-email-field {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.m-email-field:last-of-type { margin-bottom: 16px; }

.m-field-label {
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    width: 56px; text-transform: uppercase; letter-spacing: 0.06em;
}

.m-field-value {
    font-size: 15px; color: var(--text-secondary);
}

.m-email-body { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }

.m-send-row {
    display: flex; justify-content: flex-end; margin-top: 14px;
}

.m-send-btn {
    font-size: 14px; font-weight: 700; padding: 9px 24px;
    border-radius: 8px; background: var(--orange); color: #fff;
    letter-spacing: 0.02em;
}

/* -- 5. Cover Letter: Document -- */
.m-doc-lines { display: flex; flex-direction: column; gap: 10px; }

/* -- 6. Guides: Category cards -- */
.m-guide-cats { display: flex; flex-direction: column; gap: 10px; }

.m-guide-cat {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.m-guide-cat:hover { border-color: var(--border-accent); transform: translateX(4px); }

.m-cat-name { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.m-cat-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; font-weight: 600; padding: 5px 14px;
    border-radius: 20px;
}
.m-cat-count.accent { background: var(--accent-glow); color: var(--accent-light); }
.m-cat-count.blue { background: var(--blue-bg); color: var(--blue); }
.m-cat-count.green { background: var(--green-bg); color: var(--green); }
.m-cat-count.orange { background: var(--orange-bg); color: var(--orange); }

/* ============================================
   Feature Sections — Tab Navigation
   ============================================ */
.feature-section + .feature-section {
    border-top: none;
}

/* Mockup card panels — stacked, show/hide */
.mockup-card-flipper {
    position: relative;
    width: 100%;
    max-width: 640px;
}
.flip-panel {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
    pointer-events: none;
}
.flip-panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s;
    pointer-events: auto;
}

/* Text side transitions */
.feature-descriptions {
    display: grid;
    width: 100%;
}
.feature-desc {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
    pointer-events: none;
}
.feature-desc.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
    pointer-events: auto;
}
.feature-desc p {
    max-width: none;
}
.feature-desc strong {
    color: var(--accent-light);
    font-weight: 700;
}
.feature-desc em {
    color: var(--text-secondary);
    font-style: normal;
    background: rgba(36,80,184,0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}
[data-theme="light"] .feature-desc em {
    background: rgba(37,99,235,0.07);
    color: #374151;
}

/* Tab navigation below card */
.feature-tabs {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}
.feature-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}
.feature-tab:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}
.feature-tab.active {
    background: rgba(36,80,184,0.08);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(36,80,184,0.15);
}
.tab-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
}
.feature-tab.active .tab-num {
    background: var(--accent);
    color: white;
}
.tab-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: color 0.3s;
    text-align: center;
    line-height: 1.3;
}
.feature-tab.active .tab-label {
    color: var(--accent-light);
}
.tab-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent);
    border-radius: 0 0 10px 10px;
}
.feature-section.in-view .feature-tab.active .tab-progress {
    animation: tabFill 5s linear forwards;
}
@keyframes tabFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* --- Bullet rewrite panel --- */
.m-bullet-rewrite {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.m-bullet-before, .m-bullet-after {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.m-bullet-before {
    background: rgba(232,106,106,0.08);
    border: 1px solid rgba(232,106,106,0.2);
    color: var(--red);
    text-decoration: line-through;
    opacity: 0.7;
}
.m-bullet-after {
    background: rgba(85,239,196,0.08);
    border: 1px solid rgba(85,239,196,0.2);
    color: var(--green);
}
.m-bullet-arrow {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
}
.m-bullet-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

/* --- ATS scan panel --- */
.m-ats-scan {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.m-ats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.m-ats-row:last-child { border-bottom: none; }
.m-ats-check {
    font-size: 13px;
    color: var(--text-secondary);
}
.m-ats-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.m-ats-pass { background: rgba(85,239,196,0.1); color: var(--green); }
.m-ats-warn { background: rgba(255,165,2,0.1); color: var(--orange); }
.m-ats-fail { background: rgba(232,106,106,0.1); color: var(--red); }

.m-ats-score-bar {
    margin-top: 16px;
    height: 10px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.m-ats-score-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--green));
    width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.flip-panel.active .m-ats-score-fill { width: 78%; }

/* --- Keyword gap panel (enhanced) --- */
.m-keyword-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.m-kw-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.m-kw-word, .m-kw-name {
    font-size: 14px;
    font-weight: 600;
    width: 100px;
    flex-shrink: 0;
    color: var(--text-primary);
}
.m-kw-bar-track, .m-kw-bar {
    flex: 1;
    height: 10px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.m-kw-bar-fill, .m-kw-fill {
    height: 100%;
    border-radius: 3px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.m-kw-fill.found { background: var(--green); }
.m-kw-fill.weak { background: var(--orange); }
.m-kw-fill.missing { background: var(--red); }
.flip-panel.active .m-kw-bar-fill,
.flip-panel.active .m-kw-fill { transform: scaleX(1); width: var(--w, 100%) !important; }
.m-kw-status {
    font-size: 11px;
    font-weight: 700;
    width: 54px;
    text-align: right;
}
.m-kw-status.found { color: var(--green); }
.m-kw-status.weak { color: var(--orange); }
.m-kw-status.missing { color: var(--red); }

/* ============================================
   NEW PANEL TYPES — Sticky Flip Sections
   ============================================ */

/* --- STAR detail panel --- */
.m-star-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.m-star-detail-badge {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff;
    flex-shrink: 0;
    opacity: 0; transform: scale(0) rotate(-20deg);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flip-panel.active .m-star-detail-badge {
    opacity: 1; transform: scale(1) rotate(0);
}
.m-star-detail-title {
    font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.m-star-detail-text {
    font-size: 14px; line-height: 1.6; color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    opacity: 0; transform: translateY(12px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.flip-panel.active .m-star-detail-text {
    opacity: 1; transform: translateY(0);
}
.m-star-detail-metrics {
    display: flex; gap: 8px; margin-top: 4px;
}
.m-star-metric {
    flex: 1;
    text-align: center;
    padding: 8px 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    opacity: 0; transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flip-panel.active .m-star-metric { opacity: 1; transform: translateY(0); }
.flip-panel.active .m-star-metric:nth-child(1) { transition-delay: 0.3s; }
.flip-panel.active .m-star-metric:nth-child(2) { transition-delay: 0.4s; }
.flip-panel.active .m-star-metric:nth-child(3) { transition-delay: 0.5s; }
.m-star-metric-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px; font-weight: 700;
}
.m-star-metric-label {
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
}

/* --- Waveform analysis bars --- */
.m-waveform {
    display: flex; align-items: flex-end; gap: 3px;
    height: 100px; padding: 0 12px;
}
.m-wave-bar {
    flex: 1; background: var(--accent);
    border-radius: 2px 2px 0 0;
    opacity: 0.3;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.flip-panel.active .m-wave-bar { transform: scaleY(1); }

/* --- Coaching tips --- */
.m-coaching { display: flex; flex-direction: column; gap: 10px; }
.m-coach-tip {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 18px; border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    font-size: 14px; color: var(--text-secondary); line-height: 1.6;
    opacity: 0; transform: translateX(-16px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.flip-panel.active .m-coach-tip { opacity: 1; transform: translateX(0); }
/* --- LinkedIn / Chat message --- */
.m-chat { display: flex; flex-direction: column; gap: 12px; }
.m-chat-bubble {
    padding: 16px 20px; border-radius: 16px;
    font-size: 14px; line-height: 1.6; max-width: 88%;
    opacity: 0; transform: scale(0.85) translateY(8px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.flip-panel.active .m-chat-bubble { opacity: 1; transform: scale(1) translateY(0); }
.m-chat-bubble.sent {
    background: var(--accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.m-chat-bubble.received {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.m-chat-header {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    margin-bottom: 4px;
}

/* --- Coffee chat questions --- */
.m-questions { display: flex; flex-direction: column; gap: 10px; }
.m-question-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 18px; border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    font-size: 14px; color: var(--text-secondary); line-height: 1.5;
    opacity: 0; transform: translateY(10px);
    transition: all 0.4s ease;
}
.flip-panel.active .m-question-item { opacity: 1; transform: translateY(0); }
.m-q-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; font-weight: 700; color: var(--accent-light);
    width: 22px; flex-shrink: 0;
}

/* --- Upload / Input mockup --- */
.m-upload-area {
    display: flex; flex-direction: column; gap: 10px;
}
.m-upload-box {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: border-color 0.3s;
}
/* --- Typing animation doc --- */
.m-typing-doc { display: flex; flex-direction: column; gap: 9px; }
.m-typing-line {
    height: 12px; border-radius: 6px; background: var(--border);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.flip-panel.active .m-typing-line { transform: scaleX(1); }
.m-typing-cursor {
    display: inline-block; width: 2px; height: 14px;
    background: var(--accent-light);
    animation: cursorBlink 1s step-end infinite;
    margin-top: 4px;
}

/* --- Flashcard --- */
.m-flashcard {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    min-height: 180px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px;
}
.m-flashcard-q {
    font-size: 17px; font-weight: 600; color: var(--text-primary);
    line-height: 1.5;
}
.m-flashcard-a {
    font-size: 14px; color: var(--text-secondary);
    line-height: 1.6;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.m-flashcard-tag {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 4px 12px; border-radius: 6px;
}

/* --- Progress rings --- */
.m-progress-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.m-progress-ring {
    text-align: center;
    padding: 16px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    opacity: 0; transform: scale(0.6);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.m-progress-ring svg { width: 64px; height: 64px; display: block; margin: 0 auto 10px; }
.m-progress-ring span {
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    display: block;
}

/* --- Career Paths panels --- */
.m-paths-list { display: flex; flex-direction: column; gap: 10px; }
.m-path-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    opacity: 0; transform: translateY(10px);
    transition: all 0.4s ease;
    cursor: pointer;
}
.m-path-card:hover { border-color: var(--border-accent); transform: translateX(4px); }
.flip-panel.active .m-path-card { opacity: 1; transform: translateY(0); }
.flip-panel.active .m-path-card:nth-child(1) { transition-delay: 0.1s; }
.flip-panel.active .m-path-card:nth-child(2) { transition-delay: 0.2s; }
.flip-panel.active .m-path-card:nth-child(3) { transition-delay: 0.3s; }
.m-path-ring { width: 48px; height: 48px; flex-shrink: 0; position: relative; }
.m-path-ring svg { width: 48px; height: 48px; display: block; }
.m-path-info { flex: 1; }
.m-path-name { font-size: 14px; font-weight: 700; color: var(--text-primary); display: block; margin-bottom: 2px; }
.m-path-count { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.m-path-cta {
    font-size: 10px; font-weight: 700; padding: 4px 12px;
    border-radius: 6px; letter-spacing: 0.04em;
}

.m-quiz-preview { display: flex; flex-direction: column; gap: 8px; }
.m-quiz-progress-bar {
    height: 6px; border-radius: 3px; background: var(--border); overflow: hidden;
}
.m-quiz-progress-fill {
    height: 100%; border-radius: 3px; background: var(--accent);
    width: 0; transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.flip-panel.active .m-quiz-progress-fill { width: 25%; }
.m-quiz-step-label {
    font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace;
    text-align: right;
}
.m-quiz-question {
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    line-height: 1.5; padding: 4px 0;
}
.m-quiz-options { display: flex; flex-direction: column; gap: 6px; }
.m-quiz-option {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    font-size: 13px; color: var(--text-secondary);
    opacity: 0; transform: translateY(8px);
    transition: all 0.35s ease;
    cursor: pointer;
}
.flip-panel.active .m-quiz-option { opacity: 1; transform: translateY(0); }
.flip-panel.active .m-quiz-option:nth-child(1) { transition-delay: 0.15s; }
.flip-panel.active .m-quiz-option:nth-child(2) { transition-delay: 0.25s; }
.flip-panel.active .m-quiz-option:nth-child(3) { transition-delay: 0.35s; }
.flip-panel.active .m-quiz-option:nth-child(4) { transition-delay: 0.45s; }
.m-quiz-option.correct {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.3);
    color: var(--green);
}
.m-quiz-option-letter {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--text-muted); flex-shrink: 0;
}
.m-quiz-option.correct .m-quiz-option-letter {
    background: var(--green); color: #fff;
}
.m-quiz-continue {
    display: block; width: 100%; text-align: center;
    padding: 8px 0; border-radius: 10px;
    background: var(--accent); color: #fff;
    font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
    margin-top: 2px;
}

.m-streak-display { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.m-streak-flame {
    display: flex; align-items: center; gap: 10px;
    opacity: 0; transform: scale(0.6);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.flip-panel.active .m-streak-flame { opacity: 1; transform: scale(1); }
.m-streak-flame svg { width: 56px; height: 56px; }
.m-streak-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px; font-weight: 700; color: var(--text-primary);
    line-height: 1;
}
.m-streak-title {
    font-size: 18px; font-weight: 700; color: var(--text-primary);
    opacity: 0; transform: translateY(8px);
    transition: all 0.4s ease 0.25s;
}
.flip-panel.active .m-streak-title { opacity: 1; transform: translateY(0); }
.m-streak-best {
    font-size: 12px; color: var(--text-muted);
    opacity: 0; transform: translateY(8px);
    transition: all 0.4s ease 0.35s;
}
.flip-panel.active .m-streak-best { opacity: 1; transform: translateY(0); }
.m-streak-week {
    display: flex; gap: 8px; margin-top: 8px;
    opacity: 0; transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.flip-panel.active .m-streak-week { opacity: 1; transform: translateY(0); }
.m-streak-day {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex: 1;
}
.m-streak-day-label {
    font-size: 10px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.m-streak-day-check {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.m-streak-day-check.done {
    background: rgba(34,197,94,0.12); color: var(--green);
    border: 1px solid rgba(34,197,94,0.25);
}
.m-streak-day-check.empty {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.m-streak-day-check.today {
    background: rgba(36,80,184,0.12); color: var(--accent-light);
    border: 1px solid rgba(36,80,184,0.3);
}

/* --- Verb comparison --- */
.m-verb-compare { display: flex; flex-direction: column; gap: 10px; }
.m-verb-row {
    display: flex; align-items: center; gap: 10px;
    opacity: 0; transform: translateX(-12px);
    transition: all 0.4s ease;
}
.flip-panel.active .m-verb-row { opacity: 1; transform: translateX(0); }
.m-verb-weak {
    flex: 1; padding: 10px 16px; border-radius: 10px;
    background: rgba(232,106,106,0.08); border: 1px solid rgba(232,106,106,0.2);
    font-size: 14px; color: var(--red); text-decoration: line-through;
}
.m-verb-arrow { color: var(--text-muted); font-size: 18px; }
.m-verb-strong {
    flex: 1; padding: 10px 16px; border-radius: 10px;
    background: rgba(85,239,196,0.08); border: 1px solid rgba(85,239,196,0.2);
    font-size: 14px; color: var(--green); font-weight: 600;
}

/* --- Do/Don't checklist --- */
.m-dos-donts { display: flex; flex-direction: column; gap: 8px; }
.m-dd-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; padding: 12px 16px; border-radius: 10px;
    opacity: 0; transform: translateY(8px);
    transition: all 0.3s ease;
}
.flip-panel.active .m-dd-item { opacity: 1; transform: translateY(0); }
.m-dd-item.do-item {
    background: rgba(85,239,196,0.06); color: var(--green);
    border: 1px solid rgba(85,239,196,0.15);
}
.m-dd-item.dont-item {
    background: rgba(232,106,106,0.06); color: var(--red);
    border: 1px solid rgba(232,106,106,0.15);
}
.m-dd-icon { font-size: 12px; width: 16px; text-align: center; }

/* --- Difficulty tags --- */
.m-diff-tag {
    font-size: 9px; font-weight: 700; padding: 2px 8px;
    border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em;
}
.m-diff-easy { background: rgba(85,239,196,0.1); color: var(--green); }
.m-diff-med { background: rgba(255,165,2,0.1); color: var(--orange); }
.m-diff-hard { background: rgba(232,106,106,0.1); color: var(--red); }

/* ============================================
   FLIP-PANEL-DRIVEN ANIMATIONS
   All animations now trigger on .flip-panel.active
   ============================================ */

/* --- Feedback bars fill on panel active --- */
.flip-panel .m-fb-fill { width: 0 !important; transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.flip-panel.active .m-fb-fill { width: var(--w) !important; }
.flip-panel.active .m-fb-row:nth-child(1) .m-fb-fill { transition-delay: 0.2s; }
.flip-panel.active .m-fb-row:nth-child(2) .m-fb-fill { transition-delay: 0.35s; }
.flip-panel.active .m-fb-row:nth-child(3) .m-fb-fill { transition-delay: 0.5s; }
.flip-panel.active .m-fb-row:nth-child(4) .m-fb-fill { transition-delay: 0.65s; }

/* --- Wave bars stagger --- */
.flip-panel .m-wave-bar { height: var(--h); }
.flip-panel.active .m-wave-bar:nth-child(1) { transition-delay: 0.05s; }
.flip-panel.active .m-wave-bar:nth-child(2) { transition-delay: 0.08s; }
.flip-panel.active .m-wave-bar:nth-child(3) { transition-delay: 0.11s; }
.flip-panel.active .m-wave-bar:nth-child(4) { transition-delay: 0.14s; }
.flip-panel.active .m-wave-bar:nth-child(5) { transition-delay: 0.17s; }
.flip-panel.active .m-wave-bar:nth-child(6) { transition-delay: 0.2s; }
.flip-panel.active .m-wave-bar:nth-child(7) { transition-delay: 0.23s; }
.flip-panel.active .m-wave-bar:nth-child(8) { transition-delay: 0.26s; }
.flip-panel.active .m-wave-bar:nth-child(9) { transition-delay: 0.29s; }
.flip-panel.active .m-wave-bar:nth-child(10) { transition-delay: 0.32s; }
.flip-panel.active .m-wave-bar:nth-child(11) { transition-delay: 0.35s; }
.flip-panel.active .m-wave-bar:nth-child(12) { transition-delay: 0.38s; }

/* --- Avatar pulse ring --- */
.m-avatar { position: relative; }
.m-avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(36,80,184,0.3);
    opacity: 0;
}
.flip-panel.active .m-avatar::after {
    animation: avatarPulse 2s ease-out 0.3s infinite;
}
@keyframes avatarPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* --- Email typing cursor --- */
.m-field-value { position: relative; }
.m-field-value::after {
    content: '';
    display: inline-block;
    width: 1.5px; height: 13px;
    background: var(--accent-light);
    margin-left: 2px;
    vertical-align: middle;
    opacity: 0;
}
.flip-panel.active .m-field-value::after {
    animation: cursorBlink 1s step-end infinite 0.3s;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* --- Email body lines sequential reveal --- */
.m-email-body .m-line {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.flip-panel.active .m-email-body .m-line { transform: scaleX(1); }
.flip-panel.active .m-email-body .m-line:nth-child(1) { transition-delay: 0.15s; }
.flip-panel.active .m-email-body .m-line:nth-child(2) { transition-delay: 0.25s; }
.flip-panel.active .m-email-body .m-line:nth-child(3) { transition-delay: 0.35s; }
.flip-panel.active .m-email-body .m-line:nth-child(4) { transition-delay: 0.45s; }
.flip-panel.active .m-email-body .m-line:nth-child(5) { transition-delay: 0.55s; }

/* --- Send button pulse --- */
.m-send-btn {
    opacity: 0;
    transform: scale(0.7) translateY(8px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s;
}
.flip-panel.active .m-send-btn {
    opacity: 1; transform: scale(1) translateY(0);
    animation: sendPulse 2s ease-in-out infinite;
}
@keyframes sendPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,165,2,0.3); }
    50% { box-shadow: 0 0 20px 6px rgba(255,165,2,0.25); }
}

/* --- Doc lines sequential reveal --- */
.m-doc-lines .m-line {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.flip-panel.active .m-doc-lines .m-line { transform: scaleX(1); }
.flip-panel.active .m-doc-lines .m-line:nth-child(1) { transition-delay: 0.1s; }
.flip-panel.active .m-doc-lines .m-line:nth-child(2) { transition-delay: 0.17s; }
.flip-panel.active .m-doc-lines .m-line:nth-child(3) { transition-delay: 0.24s; }
.flip-panel.active .m-doc-lines .m-line:nth-child(4) { transition-delay: 0.31s; }
.flip-panel.active .m-doc-lines .m-line:nth-child(5) { transition-delay: 0.38s; }
.flip-panel.active .m-doc-lines .m-line:nth-child(6) { transition-delay: 0.45s; }
.flip-panel.active .m-doc-lines .m-line:nth-child(7) { transition-delay: 0.52s; }
.flip-panel.active .m-doc-lines .m-line:nth-child(8) { transition-delay: 0.59s; }
.flip-panel.active .m-doc-lines .m-line:nth-child(9) { transition-delay: 0.66s; }

/* --- Verb row stagger --- */
.flip-panel.active .m-verb-row:nth-child(1) { transition-delay: 0.1s; }
.flip-panel.active .m-verb-row:nth-child(2) { transition-delay: 0.2s; }
.flip-panel.active .m-verb-row:nth-child(3) { transition-delay: 0.3s; }
.flip-panel.active .m-verb-row:nth-child(4) { transition-delay: 0.4s; }

/* --- Do/Don't items stagger --- */
.flip-panel.active .m-dd-item:nth-child(1) { transition-delay: 0.08s; }
.flip-panel.active .m-dd-item:nth-child(2) { transition-delay: 0.16s; }
.flip-panel.active .m-dd-item:nth-child(3) { transition-delay: 0.24s; }
.flip-panel.active .m-dd-item:nth-child(4) { transition-delay: 0.32s; }
.flip-panel.active .m-dd-item:nth-child(5) { transition-delay: 0.4s; }
.flip-panel.active .m-dd-item:nth-child(6) { transition-delay: 0.48s; }

/* --- Question items stagger --- */
.flip-panel.active .m-question-item:nth-child(1) { transition-delay: 0.1s; }
.flip-panel.active .m-question-item:nth-child(2) { transition-delay: 0.2s; }
.flip-panel.active .m-question-item:nth-child(3) { transition-delay: 0.3s; }
.flip-panel.active .m-question-item:nth-child(4) { transition-delay: 0.4s; }
.flip-panel.active .m-question-item:nth-child(5) { transition-delay: 0.5s; }

/* --- Guide category cards stagger --- */
.m-guide-cat {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flip-panel.active .m-guide-cat { opacity: 1; transform: translateY(0) scale(1); }
.flip-panel.active .m-guide-cat:nth-child(1) { transition-delay: 0.1s; }
.flip-panel.active .m-guide-cat:nth-child(2) { transition-delay: 0.2s; }
.flip-panel.active .m-guide-cat:nth-child(3) { transition-delay: 0.3s; }
.flip-panel.active .m-guide-cat:nth-child(4) { transition-delay: 0.4s; }

/* --- Flashcard entrance --- */
.m-flashcard {
    opacity: 0;
    transform: rotateY(15deg) scale(0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}
.flip-panel.active .m-flashcard { opacity: 1; transform: rotateY(0) scale(1); }

/* --- Progress rings entrance --- */
.flip-panel.active .m-progress-ring { opacity: 1; transform: scale(1); }
.flip-panel.active .m-progress-ring:nth-child(1) { transition-delay: 0.1s; }
.flip-panel.active .m-progress-ring:nth-child(2) { transition-delay: 0.2s; }
.flip-panel.active .m-progress-ring:nth-child(3) { transition-delay: 0.3s; }
.flip-panel.active .m-progress-ring:nth-child(4) { transition-delay: 0.4s; }

/* --- Upload boxes bounce in --- */
.m-upload-box {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flip-panel.active .m-upload-box { opacity: 1; transform: translateY(0) scale(1); }
.flip-panel.active .m-upload-box:nth-child(1) { transition-delay: 0.15s; }
.flip-panel.active .m-upload-box:nth-child(2) { transition-delay: 0.3s; }

/* --- Typing doc lines reveal --- */
.flip-panel.active .m-typing-line:nth-child(1) { transition-delay: 0.1s; }
.flip-panel.active .m-typing-line:nth-child(2) { transition-delay: 0.2s; }
.flip-panel.active .m-typing-line:nth-child(3) { transition-delay: 0.3s; }
.flip-panel.active .m-typing-line:nth-child(4) { transition-delay: 0.4s; }
.flip-panel.active .m-typing-line:nth-child(5) { transition-delay: 0.5s; }
.flip-panel.active .m-typing-line:nth-child(6) { transition-delay: 0.6s; }

/* --- Keyword grid rows stagger --- */
.m-kw-row {
    opacity: 0;
    transform: translateX(-16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.flip-panel.active .m-kw-row { opacity: 1; transform: translateX(0); }
.flip-panel.active .m-kw-row:nth-child(1) { transition-delay: 0.1s; }
.flip-panel.active .m-kw-row:nth-child(2) { transition-delay: 0.2s; }
.flip-panel.active .m-kw-row:nth-child(3) { transition-delay: 0.3s; }
.flip-panel.active .m-kw-row:nth-child(4) { transition-delay: 0.4s; }

/* --- KW bar fills (handled by scaleX in base CSS) --- */

/* --- ATS scan rows stagger --- */
.m-ats-row {
    opacity: 0;
    transform: translateX(-12px);
    transition: all 0.4s ease;
}
.flip-panel.active .m-ats-row { opacity: 1; transform: translateX(0); }
.flip-panel.active .m-ats-row:nth-child(1) { transition-delay: 0.08s; }
.flip-panel.active .m-ats-row:nth-child(2) { transition-delay: 0.16s; }
.flip-panel.active .m-ats-row:nth-child(3) { transition-delay: 0.24s; }
.flip-panel.active .m-ats-row:nth-child(4) { transition-delay: 0.32s; }
.flip-panel.active .m-ats-row:nth-child(5) { transition-delay: 0.4s; }
.flip-panel.active .m-ats-row:nth-child(6) { transition-delay: 0.48s; }

/* --- Score ring entrance --- */
.score-ring-wrap {
    opacity: 0;
    transform: scale(0.5) rotate(-30deg);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}
.flip-panel.active .score-ring-wrap { opacity: 1; transform: scale(1) rotate(0); }

/* --- Score bars fill --- */
.flip-panel .m-bar-fill {
    width: 0 !important;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.flip-panel.active .m-bar-fill { width: var(--w) !important; }
.flip-panel.active .m-bar-row:nth-child(1) .m-bar-fill { transition-delay: 0.3s; }
.flip-panel.active .m-bar-row:nth-child(2) .m-bar-fill { transition-delay: 0.4s; }
.flip-panel.active .m-bar-row:nth-child(3) .m-bar-fill { transition-delay: 0.5s; }
.flip-panel.active .m-bar-row:nth-child(4) .m-bar-fill { transition-delay: 0.6s; }

/* --- Bullet rewrite entrance --- */
.m-bw-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 4px;
}
.m-bw-box {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.flip-panel.active .m-bw-box { opacity: 1; transform: translateY(0); }
.flip-panel.active .m-bw-box.before { transition-delay: 0.1s; }
.flip-panel.active .m-bw-box.after { transition-delay: 0.35s; }

/* --- Highlighted lines glow animation --- */
.flip-panel.active .m-line.highlighted {
    animation: lineGlow 2s ease-in-out infinite alternate;
}
@keyframes lineGlow {
    0% { box-shadow: none; }
    100% { box-shadow: 0 0 8px rgba(36,80,184,0.15), inset 0 0 4px rgba(36,80,184,0.1); }
}


/* ============================================
   CONTINUOUS LOOPING ANIMATIONS
   Always moving while panel is active / in view
   ============================================ */

/* --- Wave bars oscillate continuously --- */
@keyframes waveOscillate {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}
.flip-panel.active .m-wave-bar {
    animation: waveOscillate var(--wave-dur, 1.4s) ease-in-out infinite;
}
.flip-panel.active .m-wave-bar:nth-child(1) { --wave-dur: 1.2s; animation-delay: 0s; }
.flip-panel.active .m-wave-bar:nth-child(2) { --wave-dur: 1.5s; animation-delay: 0.1s; }
.flip-panel.active .m-wave-bar:nth-child(3) { --wave-dur: 1.1s; animation-delay: 0.05s; }
.flip-panel.active .m-wave-bar:nth-child(4) { --wave-dur: 1.6s; animation-delay: 0.15s; }
.flip-panel.active .m-wave-bar:nth-child(5) { --wave-dur: 1.3s; animation-delay: 0.08s; }
.flip-panel.active .m-wave-bar:nth-child(6) { --wave-dur: 1.7s; animation-delay: 0.2s; }
.flip-panel.active .m-wave-bar:nth-child(7) { --wave-dur: 1.15s; animation-delay: 0.03s; }
.flip-panel.active .m-wave-bar:nth-child(8) { --wave-dur: 1.45s; animation-delay: 0.12s; }
.flip-panel.active .m-wave-bar:nth-child(9) { --wave-dur: 1.25s; animation-delay: 0.07s; }
.flip-panel.active .m-wave-bar:nth-child(10) { --wave-dur: 1.55s; animation-delay: 0.18s; }
.flip-panel.active .m-wave-bar:nth-child(11) { --wave-dur: 1.35s; animation-delay: 0.09s; }
.flip-panel.active .m-wave-bar:nth-child(12) { --wave-dur: 1.65s; animation-delay: 0.22s; }

/* --- Feedback / score bars soft pulse --- */
@keyframes barPulse {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.75; filter: brightness(1.3); }
}
.flip-panel.active .m-fb-fill {
    animation: barPulse 2.5s ease-in-out infinite 1.2s;
}
.flip-panel.active .m-bar-fill {
    animation: barPulse 3s ease-in-out infinite 1s;
}

/* --- Score ring continuous glow pulse --- */
@keyframes ringGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(36,80,184,0.2)); }
    50% { filter: drop-shadow(0 0 16px rgba(36,80,184,0.5)); }
}
.flip-panel.active .score-ring-wrap {
    animation: ringGlow 3s ease-in-out infinite;
}

/* --- Score number glow pulse --- */
@keyframes numGlow {
    0%, 100% { text-shadow: 0 0 6px rgba(36,80,184,0.2); }
    50% { text-shadow: 0 0 20px rgba(36,80,184,0.5), 0 0 40px rgba(36,80,184,0.15); }
}
.flip-panel.active .score-num {
    animation: numGlow 3s ease-in-out infinite;
}

/* --- Progress ring SVG stroke pulse --- */
@keyframes progressPulse {
    0%, 100% { stroke-width: 3; opacity: 1; }
    50% { stroke-width: 4; opacity: 0.8; }
}
.flip-panel.active .m-progress-ring svg circle:last-child {
    animation: progressPulse 2.5s ease-in-out infinite;
}
.flip-panel.active .m-progress-ring:nth-child(1) svg circle:last-child { animation-delay: 0s; }
.flip-panel.active .m-progress-ring:nth-child(2) svg circle:last-child { animation-delay: 0.3s; }
.flip-panel.active .m-progress-ring:nth-child(3) svg circle:last-child { animation-delay: 0.6s; }
.flip-panel.active .m-progress-ring:nth-child(4) svg circle:last-child { animation-delay: 0.9s; }

/* --- STAR badge gentle breathing --- */
@keyframes badgeBreathe {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(36,80,184,0); }
    50% { transform: scale(1.06); box-shadow: 0 0 16px 4px rgba(36,80,184,0.2); }
}
.flip-panel.active .m-star-detail-badge {
    animation: badgeBreathe 2.5s ease-in-out infinite 0.8s;
}

/* --- Flashcard gentle perspective wobble --- */
@keyframes flashcardWobble {
    0%, 100% { transform: rotateY(0deg) translateY(0); }
    25% { transform: rotateY(1.5deg) translateY(-2px); }
    75% { transform: rotateY(-1.5deg) translateY(2px); }
}
.flip-panel.active .m-flashcard {
    animation: flashcardWobble 5s ease-in-out infinite;
}

/* --- Chat bubbles gentle float --- */
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.flip-panel.active .m-chat-bubble.sent {
    animation: bubbleFloat 3.5s ease-in-out infinite 0.3s;
}
.flip-panel.active .m-chat-bubble.received {
    animation: bubbleFloat 4s ease-in-out infinite 0.6s;
}

/* --- Upload box border breathing --- */
@keyframes uploadBreathe {
    0%, 100% { border-color: var(--border); transform: translateY(0) scale(1); }
    50% { border-color: rgba(36,80,184,0.4); transform: translateY(-2px) scale(1.01); }
}
.flip-panel.active .m-upload-box {
    animation: uploadBreathe 3s ease-in-out infinite;
}
.flip-panel.active .m-upload-box:nth-child(2) { animation-delay: 0.5s; }

/* --- Typing doc lines cascade loop --- */
@keyframes typingLoop {
    0% { transform: scaleX(0); opacity: 0.5; }
    30% { transform: scaleX(1); opacity: 1; }
    70% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0.5; }
}
.flip-panel.active .m-typing-line {
    animation: typingLoop 4s ease-in-out infinite;
}
.flip-panel.active .m-typing-line:nth-child(1) { animation-delay: 0s; }
.flip-panel.active .m-typing-line:nth-child(2) { animation-delay: 0.3s; }
.flip-panel.active .m-typing-line:nth-child(3) { animation-delay: 0.6s; }
.flip-panel.active .m-typing-line:nth-child(4) { animation-delay: 0.9s; }
.flip-panel.active .m-typing-line:nth-child(5) { animation-delay: 1.2s; }
.flip-panel.active .m-typing-line:nth-child(6) { animation-delay: 1.5s; }

/* --- Verb comparison arrow slide --- */
@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); color: var(--text-muted); }
    50% { transform: translateX(5px); color: var(--green); }
}
.flip-panel.active .m-verb-arrow {
    animation: arrowBounce 2s ease-in-out infinite;
}
.flip-panel.active .m-verb-row:nth-child(1) .m-verb-arrow { animation-delay: 0s; }
.flip-panel.active .m-verb-row:nth-child(2) .m-verb-arrow { animation-delay: 0.25s; }
.flip-panel.active .m-verb-row:nth-child(3) .m-verb-arrow { animation-delay: 0.5s; }
.flip-panel.active .m-verb-row:nth-child(4) .m-verb-arrow { animation-delay: 0.75s; }

/* --- Strong verb glow --- */
@keyframes verbGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(85,239,196,0); }
    50% { box-shadow: 0 0 10px 2px rgba(85,239,196,0.15); }
}
.flip-panel.active .m-verb-strong {
    animation: verbGlow 3s ease-in-out infinite;
}

/* --- Do/Don't icon pulse --- */
@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.flip-panel.active .m-dd-item .m-dd-icon {
    animation: checkPulse 2s ease-in-out infinite;
}
.flip-panel.active .m-dd-item:nth-child(1) .m-dd-icon { animation-delay: 0s; }
.flip-panel.active .m-dd-item:nth-child(2) .m-dd-icon { animation-delay: 0.15s; }
.flip-panel.active .m-dd-item:nth-child(3) .m-dd-icon { animation-delay: 0.3s; }
.flip-panel.active .m-dd-item:nth-child(4) .m-dd-icon { animation-delay: 0.45s; }
.flip-panel.active .m-dd-item:nth-child(5) .m-dd-icon { animation-delay: 0.6s; }
.flip-panel.active .m-dd-item:nth-child(6) .m-dd-icon { animation-delay: 0.75s; }

/* --- Guide category cards hover glow --- */
@keyframes catCardGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(36,80,184,0); transform: translateY(0) scale(1); }
    50% { box-shadow: 0 0 14px 2px rgba(36,80,184,0.12); transform: translateY(-2px) scale(1.01); }
}
.flip-panel.active .m-guide-cat {
    animation: catCardGlow 3.5s ease-in-out infinite;
}
.flip-panel.active .m-guide-cat:nth-child(1) { animation-delay: 0s; }
.flip-panel.active .m-guide-cat:nth-child(2) { animation-delay: 0.4s; }
.flip-panel.active .m-guide-cat:nth-child(3) { animation-delay: 0.8s; }
.flip-panel.active .m-guide-cat:nth-child(4) { animation-delay: 1.2s; }

/* --- Keyword bar fill shimmer --- */
@keyframes kwBarShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.4); }
}
.flip-panel.active .m-kw-fill,
.flip-panel.active .m-kw-bar-fill {
    animation: kwBarShimmer 2.5s ease-in-out infinite 0.8s;
}

/* --- ATS status pills shimmer --- */
@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.flip-panel.active .m-ats-status {
    animation: statusBlink 2s ease-in-out infinite;
}
.flip-panel.active .m-ats-row:nth-child(1) .m-ats-status { animation-delay: 0s; }
.flip-panel.active .m-ats-row:nth-child(2) .m-ats-status { animation-delay: 0.2s; }
.flip-panel.active .m-ats-row:nth-child(3) .m-ats-status { animation-delay: 0.4s; }
.flip-panel.active .m-ats-row:nth-child(4) .m-ats-status { animation-delay: 0.6s; }
.flip-panel.active .m-ats-row:nth-child(5) .m-ats-status { animation-delay: 0.8s; }
.flip-panel.active .m-ats-row:nth-child(6) .m-ats-status { animation-delay: 1s; }

/* --- ATS score bar fill pulse --- */
@keyframes atsBarPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; filter: brightness(1.2); }
}
.flip-panel.active .m-ats-score-fill {
    animation: atsBarPulse 2.5s ease-in-out infinite 1s;
}

/* --- Rec dot continuous pulse --- */
@keyframes recDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(232,106,106,0.5); }
    50% { opacity: 0.6; transform: scale(1.2); box-shadow: 0 0 8px 3px rgba(232,106,106,0.3); }
}
.flip-panel.active .m-rec-dot {
    animation: recDotPulse 1.5s ease-in-out infinite;
}

/* --- Rec timer count up animation --- */
@keyframes timerFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.flip-panel.active .m-rec-time {
    animation: timerFade 2s ease-in-out infinite;
}

/* --- Coach tip icon subtle spin --- */
@keyframes coachIconPop {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(5deg); }
}
.flip-panel.active .m-coach-tip span:first-child {
    animation: coachIconPop 2.5s ease-in-out infinite;
}
.flip-panel.active .m-coach-tip:nth-child(1) span:first-child { animation-delay: 0s; }
.flip-panel.active .m-coach-tip:nth-child(2) span:first-child { animation-delay: 0.3s; }
.flip-panel.active .m-coach-tip:nth-child(3) span:first-child { animation-delay: 0.6s; }
.flip-panel.active .m-coach-tip:nth-child(4) span:first-child { animation-delay: 0.9s; }

/* --- Question number pulse --- */
@keyframes qNumPulse {
    0%, 100% { color: var(--accent-light); }
    50% { color: var(--accent); text-shadow: 0 0 6px rgba(36,80,184,0.3); }
}
.flip-panel.active .m-q-num {
    animation: qNumPulse 2s ease-in-out infinite;
}

/* --- Difficulty tag shimmer --- */
@keyframes diffShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.flip-panel.active .m-diff-tag {
    animation: diffShimmer 2s ease-in-out infinite;
}

/* --- Bullet rewrite arrow bounce --- */
@keyframes rewriteArrow {
    0%, 100% { transform: translateY(0); color: var(--text-muted); }
    50% { transform: translateY(3px); color: var(--green); }
}
.flip-panel.active .m-bullet-arrow {
    animation: rewriteArrow 2s ease-in-out infinite;
}

/* --- Cat count badges pop loop --- */
@keyframes countPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.flip-panel.active .m-cat-count {
    animation: countPop 2.5s ease-in-out infinite;
}

/* --- Metric numbers subtle glow --- */
@keyframes metricGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; text-shadow: 0 0 8px currentColor; }
}
.flip-panel.active .m-star-metric-num {
    animation: metricGlow 3s ease-in-out infinite;
}

/* --- Doc export icon float --- */
@keyframes exportFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.flip-panel.active > div[style*="text-align:center"] svg {
    animation: exportFloat 3s ease-in-out infinite;
}

/* --- Chat bubbles stagger --- */
.flip-panel.active .m-chat-bubble:nth-child(1) { transition-delay: 0.15s; }
.flip-panel.active .m-chat-bubble:nth-child(2) { transition-delay: 0.35s; }
.flip-panel.active .m-chat-bubble:nth-child(3) { transition-delay: 0.55s; }

/* --- Coach tips stagger --- */
.flip-panel.active .m-coach-tip:nth-child(1) { transition-delay: 0.1s; }
.flip-panel.active .m-coach-tip:nth-child(2) { transition-delay: 0.22s; }
.flip-panel.active .m-coach-tip:nth-child(3) { transition-delay: 0.34s; }
.flip-panel.active .m-coach-tip:nth-child(4) { transition-delay: 0.46s; }

/* --- Highlighted lines shimmer --- */
.m-line.highlighted {
    position: relative;
    overflow: hidden;
}
.m-line.highlighted::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(36,80,184,0.12), transparent);
}
.feature-section.visible .m-line.highlighted::after,
.flip-panel.active .m-line.highlighted::after {
    animation: shimmer 3s ease-in-out 0.8s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* --- Guide count badges pop --- */
.m-cat-count {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flip-panel.active .m-cat-count { opacity: 1; transform: scale(1); }
.flip-panel.active .m-guide-cat:nth-child(1) .m-cat-count { transition-delay: 0.2s; }
.flip-panel.active .m-guide-cat:nth-child(2) .m-cat-count { transition-delay: 0.3s; }
.flip-panel.active .m-guide-cat:nth-child(3) .m-cat-count { transition-delay: 0.4s; }
.flip-panel.active .m-guide-cat:nth-child(4) .m-cat-count { transition-delay: 0.5s; }

/* --- Score number count-up (JS driven, start hidden) --- */
.score-num {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease 0.4s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}
.feature-section.visible .score-num,
.flip-panel.active .score-num {
    opacity: 1;
    transform: scale(1);
}

/* --- Animations --- */
@keyframes mockupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Scroll reveal --- */
.feature-text .feature-label,
.feature-text h2,
.feature-text p,
.feature-text .feature-cta {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-visual {
    opacity: 0;
    filter: blur(6px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.feature-text .feature-label { transition-delay: 0.08s; }
.feature-text h2             { transition-delay: 0.16s; }
.feature-text p              { transition-delay: 0.26s; }
.feature-text .feature-cta   { transition-delay: 0.36s; }

.feature-section.visible .feature-visual {
    opacity: 1;
    filter: blur(0);
}

.feature-section.visible .feature-text .feature-label,
.feature-section.visible .feature-text h2,
.feature-section.visible .feature-text p,
.feature-section.visible .feature-text .feature-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Divider */
.feature-section + .feature-section::before {
    display: none;
}

/* Company Logo Cloud — full-bleed bar (edge to edge), anchored to bottom */
.logo-cloud-section {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding: 0 0 12px;
    text-align: center;
    align-self: stretch;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    opacity: 0.38;
}

.logo-cloud-heading {
    margin-bottom: 20px;
    line-height: 1.3;
    padding: 0 24px;
    box-sizing: border-box;
}

.logo-cloud-sub {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.logo-cloud-main {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: -0.02em;
}

.logo-cloud-container {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0;
}

.logo-cloud-track {
    overflow: hidden;
}

.logo-cloud-inner {
    display: flex;
    gap: 42px;
    width: max-content;
    animation: logoCloudScroll 30s linear infinite;
}

.cloud-logo {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.7;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    user-select: none;
    transition: opacity 0.3s;
}

.cloud-logo:hover {
    opacity: 1;
}

/* Progressive blur edges */

.logo-cloud-blur {
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px;
    pointer-events: none;
    z-index: 2;
}

.logo-cloud-blur-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.logo-cloud-blur-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

[data-theme="light"] .hero-landing .logo-cloud-blur-left,
[data-theme="light"] .hero-landing .logo-cloud-blur-right {
    background: none;
}

@keyframes logoCloudScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-landing { padding: 110px 20px 70px; }
    .hero-landing h1 { margin-bottom: 24px; }
    .hero-landing .hero-subtitle { max-width: 100%; }
    .cta-hero-enhanced { padding: 16px 40px; font-size: 16px; }
    .cloud-logo { font-size: 12px; }
    .logo-cloud-inner { gap: 28px; }
    .logo-cloud-blur { width: 60px; }
    .logo-cloud-sub { font-size: 14px; }
    .logo-cloud-main { font-size: 18px; }

    /* Bento grid responsive — tablet */
    .bento-features { padding: 60px 24px; }
    .bento-grid { grid-template-columns: 1fr; gap: 16px; }
    .bento-half { grid-column: span 1; }
    .bento-card { padding: 28px 24px; border-radius: 0; border: none; box-shadow: none; background: transparent; }
    .bento-card-body { grid-template-columns: 1fr; gap: 28px; }
    .bento-reversed .bento-card-body { direction: ltr; }
    .bento-card .mockup-card { max-width: 100%; transform: none !important; }
    .bento-card .feature-text h2 { font-size: 26px; }
    .bento-half .bento-card { padding: 24px 20px; }

    .feature-section { min-height: auto; padding: 0; }
    .mockup-card { width: 100%; max-width: 540px; margin: 0 auto; }
    .feature-text p { max-width: none; font-size: 15px; }
    .feature-cta { justify-content: center; }
    .m-video-frame { height: 130px; }
    .score-ring-wrap { width: 80px; height: 80px; }
    .score-ring { width: 80px; height: 80px; }
    .score-num { font-size: 20px; }
    .feature-tabs { gap: 4px; }
    .tab-label { font-size: 9px; max-width: 100%; }
    .feature-tab { padding: 8px 4px; min-width: 0; min-height: 44px; }
    .feature-descriptions { text-align: left; }
}

@media (max-width: 480px) {
    .hero-landing {
        padding: 80px 20px 48px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    .hero-landing h1 { margin-bottom: 16px; font-size: clamp(34px, 10vw, 48px); }
    .hero-landing .hero-subtitle {
        font-size: 13px;
        line-height: 1.6;
        margin: 0 auto 28px;
        padding: 0 4px;
    }
    .cta-hero-enhanced { padding: 14px 36px; font-size: 15px; }
    .logo-cloud-section { padding: 0 0 24px; }

    /* Bento grid responsive — mobile */
    .bento-features { padding: 40px 16px; }
    .bento-grid { gap: 12px; }
    .bento-card { padding: 24px 18px; border-radius: 0; border: none; box-shadow: none; background: transparent; }
    .bento-card .feature-text h2 { font-size: 22px; }
    .bento-card-header { margin-bottom: 20px; }
    .bento-category { font-size: 9px; }

    /* Feature sections — prevent overflow */
    .feature-text, .feature-visual { min-width: 0; overflow: hidden; }
    .mockup-card { max-width: 100%; width: 100%; padding: 14px; box-sizing: border-box; }
    .m-score-row { flex-direction: column; gap: 14px; }
    .m-bar-label { width: 40px; font-size: 9px; }
    .m-bar-row { gap: 6px; }

    /* Feature tabs — force fit in viewport */
    .feature-tabs { gap: 3px; width: 100%; }
    .feature-tab { padding: 6px 2px; min-width: 0; flex: 1; }
    .tab-label { font-size: 9px; }
    .tab-num { width: 22px; height: 22px; font-size: 11px; }

    /* Feature text */
    .feature-text h2 { font-size: 24px; }
    .feature-text p { font-size: 14px; word-wrap: break-word; overflow-wrap: break-word; }
    .feature-descriptions { text-align: left; }
    .feature-descriptions p { font-size: 13px; line-height: 1.6; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .feature-visual,
    .feature-text .feature-label,
    .feature-text h2,
    .feature-text p,
    .feature-text .feature-cta {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* --- Light mode overrides for mockup cards --- */
[data-theme="light"] .mockup-card {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
}
[data-theme="light"] .mockup-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.08), 0 0 0 1px rgba(37,99,235,0.08);
}
[data-theme="light"] .m-video-frame {
    background: #e5e7eb;
}
[data-theme="light"] .m-rec-time {
    color: rgba(0,0,0,0.45);
}
[data-theme="light"] .m-avatar {
    background: rgba(37,99,235,0.08);
    border-color: rgba(37,99,235,0.18);
}
[data-theme="light"] .m-guide-cat {
    background: rgba(0,0,0,0.02);
}
[data-theme="light"] .m-line.highlighted {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}
[data-theme="light"] .m-pill-ok {
    background: rgba(22,163,74,0.08);
    border-color: rgba(22,163,74,0.18);
}
[data-theme="light"] .m-pill-miss {
    background: rgba(220,38,38,0.08);
    border-color: rgba(220,38,38,0.18);
}
[data-theme="light"] .hero-landing {
    background-color: #d4eaff;
    background-image:
        linear-gradient(180deg,
            rgba(212, 234, 255, 0.0) 0%,
            rgba(212, 234, 255, 0.0) 100%),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.45) 100%),
        url(images/hero-sky-clouds.png);
    background-size: cover, cover, cover;
    background-position: center top, center top, center top;
    background-repeat: no-repeat;
}
[data-theme="light"] .cta-hero-enhanced {
    --gb-color-1: #1e40af;
    --gb-color-2: #2563eb;
    --gb-color-3: #3b82f6;
    --gb-color-4: #60a5fa;
    --gb-color-5: #93c5fd;
    --gb-border-c1: hsla(220, 75%, 50%, 0.3);
    --gb-border-c2: hsla(220, 75%, 40%, 0.8);
    box-shadow: none;
}
/* ============================================
   Light Mode — Mockup Card Text Fix
   Inline styles use rgba(255,255,255,...) which
   is invisible on white card backgrounds.
   ============================================ */
[data-theme="light"] .mockup-card [style*="255,255,255"] {
    color: var(--text-secondary) !important;
}
[data-theme="light"] .mockup-card [style*="color:#fff"] {
    color: var(--text-primary) !important;
}

/* Light mode — Tab component backgrounds */
[data-theme="light"] .feature-tab {
    background: rgba(0,0,0,0.02);
}
[data-theme="light"] .feature-tab:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .feature-tab.active {
    background: rgba(37,99,235,0.06);
}
[data-theme="light"] .tab-num {
    background: rgba(0,0,0,0.05);
}

/* Light mode — Card internal component backgrounds */
[data-theme="light"] .m-star-detail-text,
[data-theme="light"] .m-coach-tip,
[data-theme="light"] .m-question-item,
[data-theme="light"] .m-flashcard,
[data-theme="light"] .m-progress-ring,
[data-theme="light"] .m-star-metric {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .m-chat-bubble.received {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

/* Light mode — SVG progress ring background strokes */
[data-theme="light"] .m-progress-ring svg circle:first-child {
    stroke: rgba(0,0,0,0.08) !important;
}

/* Light mode — Video frame background */
[data-theme="light"] .m-video-frame::before {
    background: radial-gradient(circle at 50% 40%, rgba(37,99,235,0.06), transparent 70%);
}

/* Light mode — Feature section even-row alternate bg */
[data-theme="light"] .feature-section:nth-child(even) {
    background: none;
}

/* ============================================
   Interactive Hover Button — Feature CTAs
   Expanding dot + sliding text effect
   ============================================ */
.feature-cta .cta-text-default {
    display: inline-block;
    transform: translateX(1px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.feature-cta:hover .cta-text-default {
    transform: translateX(48px);
    opacity: 0;
}
.feature-cta .cta-text-hover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    color: #fff;
    transform: translateX(48px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}
.feature-cta:hover .cta-text-hover {
    transform: translateX(-1px);
    opacity: 1;
}
.feature-cta .cta-text-hover svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
}
.feature-cta .cta-dot {
    position: absolute;
    left: 20%; top: 40%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.feature-cta:hover .cta-dot {
    left: -15%; top: -15%;
    width: 130%; height: 130%;
    border-radius: 0;
}
.feature-cta:hover svg {
    transform: none;
}

/* Light mode interactive hover */
[data-theme="light"] .feature-cta {
    border-color: currentColor;
}


/* ============================================
   Splash Gate Page
   ============================================ */
#splash-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, rgba(36, 80, 184, 0.12) 0%, rgba(8, 10, 16, 0.85) 60%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#splash-gate.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-card {
    background: rgba(14, 18, 24, 0.92);
    border: 1px solid rgba(36, 80, 184, 0.18);
    border-radius: 24px;
    padding: 48px 44px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 60px rgba(36, 80, 184, 0.08);
    animation: splashCardIn 0.6s ease-out both;
}
@keyframes splashCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.splash-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.splash-logo-row svg {
    width: 36px;
    height: 36px;
}
.splash-logo-row span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #e8edf5);
    letter-spacing: -0.02em;
}
.splash-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}
.splash-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2450b8 0%, #1a3a8f 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(36, 80, 184, 0.3), 0 4px 20px rgba(36, 80, 184, 0.2);
}
.splash-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(36, 80, 184, 0.45), 0 6px 28px rgba(36, 80, 184, 0.3);
}
.splash-btn-primary:active { transform: translateY(0); }
.splash-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary, #e8edf5);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.splash-btn-ghost:hover {
    border-color: rgba(36, 80, 184, 0.4);
    background: rgba(36, 80, 184, 0.08);
    transform: translateY(-1px);
}
.splash-btn-ghost:active { transform: translateY(0); }
.splash-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    color: var(--text-muted, #4a5568);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.splash-divider::before, .splash-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.splash-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.splash-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 100px;
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    background-size: 300% 300%;
}
.splash-social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.3));
    animation: splashIconPulse 2.5s ease-in-out infinite;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.splash-social-link:hover svg {
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)) drop-shadow(0 0 14px rgba(192,132,252,0.8));
    animation: splashIconBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1.2);
}
.splash-social-link:active svg { transform: scale(0.9); transition: all 0.08s ease; }
.splash-social-ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #405de6, #5b51d8, #f09433);
    background-size: 300% 300%;
    animation: splashSocialGrad 4s ease infinite;
}
.splash-social-ig:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,0.4); filter: brightness(1.08); }
.splash-social-tt {
    background: linear-gradient(135deg, #010101, #25f4ee, #fe2c55);
    background-size: 200% 200%;
    animation: splashSocialGrad 3s ease infinite;
}
.splash-social-tt:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,244,238,0.3), 0 6px 24px rgba(254,44,85,0.3); filter: brightness(1.08); }
.splash-social-li {
    background: linear-gradient(135deg, #0077B5, #004e7a, #0077B5, #00a0dc);
    background-size: 300% 300%;
    animation: splashSocialGrad 4s ease infinite;
}
.splash-social-li:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0, 119, 181, 0.4); filter: brightness(1.08); }
@keyframes splashSocialGrad {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes splashIconPulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(255,255,255,0.2)); }
    50% { filter: drop-shadow(0 0 8px rgba(192,132,252,0.6)) drop-shadow(0 0 16px rgba(124,58,237,0.3)); }
}
@keyframes splashIconBounce {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(1.15) rotate(5deg); }
    75% { transform: scale(1.25) rotate(-3deg); }
    100% { transform: scale(1.2) rotate(0deg); }
}

/* Light mode */
[data-theme="light"] #splash-gate {
    background: radial-gradient(ellipse at 50% 40%, rgba(37, 99, 235, 0.08) 0%, rgba(243, 244, 246, 0.88) 60%, rgba(255, 255, 255, 0.92) 100%);
}
[data-theme="light"] .splash-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 24px 80px rgba(0,0,0,0.1), 0 0 60px rgba(37, 99, 235, 0.06);
}
[data-theme="light"] .splash-btn-ghost {
    color: #1a202c;
    border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .splash-btn-ghost:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.06);
}
[data-theme="light"] .splash-divider::before,
[data-theme="light"] .splash-divider::after {
    background: rgba(0,0,0,0.1);
}

/* Focus styles for accessibility */
.splash-btn-primary:focus-visible,
.splash-btn-ghost:focus-visible,
.splash-social-link:focus-visible {
    outline: 2px solid #4a90d9;
    outline-offset: 2px;
}

/* Mobile */
@media (max-width: 480px) {
    .splash-card {
        padding: 36px 20px 32px;
        border-radius: 20px;
    }
    .splash-btn-primary, .splash-btn-ghost { padding: 14px 24px; font-size: 15px; }
    .splash-socials { flex-direction: column; gap: 10px; }
    .splash-social-link { justify-content: center; padding: 12px 20px; font-size: 13px; }
}

