* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #FAFAF3;
    --color-surface: #F5F5F0;
    --color-text: #111827;
    --color-text-secondary: #6b7280;
    --color-border: #e5e7eb;
    --color-accent: #111827;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

html {
    overflow-x: clip;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    will-change: transform;
    contain: layout;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-center {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
}

.btn-nav {
    padding: 0.625rem 1.5rem;
    background: var(--color-text);
    color: white !important;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 140px;
    text-align: center;
    display: inline-block;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

/* Hero Section - Split Layout */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 5rem 8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-left {
    max-width: 600px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-right {
    position: relative;
}

.hero-product-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.15);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2rem;
    background: var(--color-text);
    color: white;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.2);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.15s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Demo Section */
.demo-section {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 3rem;
}

.demo-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
}

.video-wrapper {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-secondary);
}

/* Flow Animation Section */
.flow-section {
    padding: 0 2rem 4rem;
    position: relative;
}

/* Flow diagram container */
.flow-diagram-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Flow diagram */
.flow-diagram {
    width: 100%;
    height: 250px;
    opacity: var(--flow-progress, 0);
}

.flow-marker {
    opacity: var(--flow-progress, 0);
}

.flow-label {
    font-size: 12px;
    font-weight: 600;
    fill: #111827;
    opacity: var(--flow-progress, 0);
}

.flow-line {
    stroke-dasharray: 8 4;
    animation: dashFlow 0.5s linear infinite;
}

.flow-ai-circle {
    opacity: var(--flow-progress, 0);
}

.flow-ai-text {
    font-size: 12px;
    font-weight: 700;
    fill: #111827;
    opacity: var(--flow-progress, 0);
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -12;
    }
}

/* AI Processor - positioned at convergence point */
.ai-processor {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: var(--flow-progress, 0);
}

.ai-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.ai-progress-bar {
    width: 120px;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.ai-progress-fill {
    height: 100%;
    width: calc(var(--ai-progress, 0) * 1%);
    background: #111827;
    border-radius: 3px;
    transition: width 0.1s ease;
}

.ai-success {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.ai-success.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Two column result layout */
.flow-result-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Flow Output - Left side with pixel grow effect */
.flow-output {
    opacity: 0;
    transform: scale(0.01);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flow-output.visible {
    opacity: 1;
    transform: scale(1);
}

.flow-output-content {
    text-align: center;
}

.output-image {
    max-width: 100%;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 1rem;
    cursor: pointer;
}

.output-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Flow About - Right side, slides in from right */
.flow-about {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.flow-about.visible {
    opacity: 1;
    transform: translateX(0);
}

.flow-about .explainer-title {
    text-align: left;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.about-header .explainer-title {
    margin-bottom: 0;
}

.about-header .audience-toggle {
    margin-bottom: 0;
    top: 19px;
}

.flow-about p {
    text-align: left;
    margin-bottom: 1rem;
}

/* Hero scroll animations */
.hero.scrolling .transcription-sidebar,
.hero.scrolling .notes-sidebar {
    transform: scale(0.8);
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Explainer Title - used in flow-about */
.explainer-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.explainer-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
}

.explainer-content p:last-of-type {
    margin-bottom: 20px;
}

/* Audience Toggle */
.audience-toggle {
    display: inline-flex;
    position: relative;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 4px;
    top: 11px;
    right: 0px;
    margin-bottom: 2rem;
}

.toggle-btn {
    position: relative;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.toggle-btn.active {
    color: var(--color-text);
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audience-toggle[data-active="teachers"] .toggle-slider {
    transform: translateX(100%);
}

/* Audience Content */
.audience-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.audience-content.active {
    display: block;
    min-height: 400px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Toggle Container */
.features-toggle-container {
    position: absolute;
    top: -3.5rem;
    right: 0;
    z-index: 10;
}

.features-toggle-container .audience-toggle {
    top: 19px;
    margin-bottom: 0;
}

/* Card audience visibility */
.screenshot-card.hidden-audience {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Flip animation for audience toggle */
.screenshot-card.flip-out-right,
.screenshot-card.flip-out-left {
    pointer-events: none;
}

.screenshot-card.flip-out-right::before,
.screenshot-card.flip-out-left::before {
    opacity: 0;
}

.screenshot-card.flip-out-right {
    animation: flipOutRight 0.25s ease-in forwards;
}

.screenshot-card.flip-in-right {
    animation: flipInRight 0.25s ease-out forwards;
}

.screenshot-card.flip-out-left {
    animation: flipOutLeft 0.25s ease-in forwards;
}

.screenshot-card.flip-in-left {
    animation: flipInLeft 0.25s ease-out forwards;
}

@keyframes flipOutRight {
    from { transform: scale(1) rotateY(0deg); }
    to { transform: scale(1) rotateY(90deg); }
}

@keyframes flipInRight {
    from { transform: scale(1) rotateY(-90deg); }
    to { transform: scale(1) rotateY(0deg); }
}

@keyframes flipOutLeft {
    from { transform: scale(1) rotateY(0deg); }
    to { transform: scale(1) rotateY(-90deg); }
}

@keyframes flipInLeft {
    from { transform: scale(1) rotateY(90deg); }
    to { transform: scale(1) rotateY(0deg); }
}

/* Network Effect */
.network-effect {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.network-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.network-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.network-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    flex: 1;
    max-width: 120px;
}

.network-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.25rem;
    width: 0.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    transform: translateY(-1rem);
}

.step-count {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: rgba(17, 24, 39, 0.05);
    border-radius: 50%;
    line-height: 1;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1rem;
}

.step-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
}

/* Screenshots Section */
.screenshots-section {
    position: relative;
    margin-top: 2rem;
}

.horizontal-scroll-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding-top: 4rem;
    transform: translateZ(0);
}

.screenshots-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    position: fixed;
    top: 7rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100vw;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.horizontal-scroll-track {
    position: relative;
    width: 75vw;
    max-width: 75vw;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.screenshot-card {
    position: absolute;
    width: 100%;
    max-width: 75vw;
    min-height: 60vh;
    max-height: 68vh;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: visible;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.screenshot-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.screenshot-card::before {
    content: attr(data-title);
    position: absolute;
    top: -3.5rem;
    left: 0;
    transform: none;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.screenshot-card.active::before {
    opacity: 1;
}

.screenshot-card.active:hover {
    border-color: var(--color-text);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.screenshot-header {
    margin-bottom: 1rem;
}

.screenshot-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-text);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
}


.screenshot-placeholder {
    background: var(--color-surface);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 16 / 10;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    display: block;
    cursor: pointer;
}

/* First student card video - fill space */
.screenshot-card[data-title="Start Instantly"] .screenshot-video {
    object-fit: cover;
    object-position: center bottom;
    transform: scale(1.35);
    background: var(--color-bg);
}

.screenshot-card[data-title="Start Instantly"] .screenshot-placeholder {
    background: var(--color-bg);
    overflow: hidden;
}

/* Second student card - show whole image */
.screenshot-card[data-title="Capture Everything"] .screenshot-img {
    object-fit: contain;
    object-position: center;
}

/* First teacher card - zoom in on middle */
.screenshot-card[data-title="Zero Setup"] .screenshot-img {
    object-fit: cover;
    object-position: center;
}

.screenshot-card[data-title="Zero Setup"] .screenshot-placeholder {
    background: var(--color-bg);
    overflow: hidden;
}

/* Second teacher card - show top */
.screenshot-card[data-title="Answer In-Flow"] .screenshot-img {
    object-position: center top;
}

/* Third teacher card - show center */
.screenshot-card[data-title="Know Your Class"] .screenshot-img {
    object-position: center;
}

.video-progress {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: conic-gradient(
        #111827 calc(var(--progress, 0) * 1%),
        rgba(200, 200, 200, 0.5) 0
    );
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.video-progress::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
}

.screenshot-description {
    color: #4b5563;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Founder Story Section */
.story-section {
    max-width: calc(1200px - 10rem);
    margin: 8rem auto;
    padding: 0;
}

.story-container {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3.5rem 3rem;
}

.story-text {
    line-height: 1.5;
    color: var(--color-text);
    width: 100%;
    text-align: center;
}

.story-text-intro {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 1.5em;
}

.story-text-secondary {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.5;
    margin-bottom: 1.5em;
}

.story-text-emphasis {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

.story-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    text-align: right;
}

.author-link {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.author-link:hover {
    text-decoration: none;
}

.author-title {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Features Section */
.features {
    max-width: 1400px;
    margin: 8rem auto;
    padding: 0 3rem;
}

.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--color-text);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    max-width: 1400px;
    margin: 8rem auto;
    padding: 0 3rem;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    background: white;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.pricing-card:hover {
    border-color: var(--color-text);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    transform: translateY(-2px);
}

.pricing-featured {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.pricing-featured:hover {
    background: var(--color-text);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.15);
}

.pricing-featured .pricing-plan,
.pricing-featured .pricing-price span,
.pricing-featured .pricing-features li {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-featured .pricing-price {
    color: white;
}

.pricing-plan {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--color-text);
    letter-spacing: -0.03em;
}

.pricing-price span {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--color-text-secondary);
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.btn-pricing {
    width: 100%;
    text-align: center;
    padding: 0.875rem;
    background: transparent;
    border: 1px solid var(--color-text);
    border-radius: 8px;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-pricing:hover {
    background: var(--color-text);
    color: white;
}

.btn-pricing-featured {
    background: white;
    color: var(--color-text);
    border-color: white;
}

.btn-pricing-featured:hover {
    background: transparent;
    color: white;
}

/* My YC App Section */
.yc-section {
    max-width: 1200px;
    margin: 9rem auto;
    padding: 0 5rem;
}

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

.yc-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Demo Video Carousel */
.demo-carousel-card {
    position: relative;
}

.demo-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.demo-carousel-track,
.demo-carousel-arrow {
    pointer-events: auto;
}

.demo-carousel-track {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.demo-slide {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.demo-slide.active {
    display: flex;
}

.demo-carousel-arrow {
    position: absolute;
    top: calc(50% + 14px);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.demo-carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.demo-prev {
    left: -18px;
}

.demo-next {
    right: -18px;
}

.demo-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-dot.active {
    background: var(--color-text);
    transform: scale(1.2);
}

/* Interactive Demo Section */
.interactive-demo-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 4rem 5rem 3rem;
    position: relative;
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0.4), rgba(255, 255, 255, 0));
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
}

.demo-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 900;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.professor-view, .student-view-demo {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.view-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-align: center;
}

.lecture-frame, .student-frame {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: white;
    padding: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.lecture-frame {
    min-height: 300px;
}

.demo-lecture-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    display: block;
}

.prof-transcript-panel {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 250px;
    overflow-y: auto;
}

.prof-transcript {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.prof-transcript.show {
    opacity: 1;
    transform: translateY(0);
}

.student-frame {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.student-notes-panel {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    min-height: 120px;
    max-height: 180px;
    overflow-y: auto;
}

.student-notes-panel .notes-header::before {
    content: none;
}

.demo-slide-container {
    position: relative;
}

.highlightable-text {
    position: absolute;
    top: 22%;
    left: 10%;
    width: 80%;
    height: 6%;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    user-select: none;
    color: transparent;
    display: flex;
    align-items: center;
}

.highlightable-text:hover {
    background-color: rgba(250, 204, 21, 0.3);
}

.highlightable-text.highlighted {
    background-color: rgba(250, 204, 21, 0.6);
}

.student-transcript-panel {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    height: 150px;
    overflow-y: auto;
}

.student-transcript.transcription-chunk {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.draggable {
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.draggable:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.draggable:active {
    cursor: grabbing;
}

.draggable.dragging {
    opacity: 0.5;
}

.demo-note-card {
    background: rgba(248, 249, 250, 0.6);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-left: 2px solid #6366f1;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    margin-bottom: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-note-card:hover {
    background: rgba(248, 249, 250, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-note-highlight {
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 8px;
    padding: 0.25rem 0.5rem;
    background: rgba(250, 204, 21, 0.2);
    border-left: 3px solid #facc15;
    border-radius: 4px;
    opacity: 0.9;
}

.demo-teacher-note-section {
    margin: 8px 0;
    padding: 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-left: 3px solid rgba(139, 92, 246, 0.4);
    border-radius: 6px;
}

.demo-teacher-note-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.demo-teacher-note-text {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.demo-note-textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #1f2937;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-note-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.demo-note-textarea::placeholder {
    color: #9ca3af;
}

.mic-toggle-btn-float {
    position: absolute;
    top: clamp(8rem, 15vh, 14rem);
    right: clamp(1rem, 2vw, 1.5rem);
    background: white;
    border: 1px solid var(--color-border);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 44px;
    height: 44px;
}

.mic-toggle-btn-float:hover {
    background: #f9fafb;
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mic-toggle-btn-float.recording {
    color: #ef4444;
    background: #fee2e2;
    border-color: #ef4444;
    animation: pulse 1.5s ease-in-out infinite;
}

.mic-toggle-btn-float.recording:hover {
    background: #fecaca;
}

.live-captions {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 80%;
    z-index: 10;
}

.caption-text {
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.demo-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 0;
    padding: 0.75rem 1.75rem;
    background: #111827;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.demo-generate-btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

.demo-generate-btn svg {
    margin-right: 0.5rem;
}

.demo-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 1rem;
    color: #6366f1;
    font-size: 1rem;
    font-weight: 600;
}

/* Tutorial Tooltip */
.tutorial-tooltip {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip-content {
    position: relative;
    background: #111827;
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    max-width: 280px;
    width: max-content;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .tooltip-content {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        max-width: 220px;
    }
}

.tooltip-text {
    line-height: 1.4;
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.tutorial-tooltip.arrow-top .tooltip-arrow {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-color: #111827 transparent transparent transparent;
}

.tutorial-tooltip.arrow-bottom .tooltip-arrow {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #111827 transparent;
}

.tutorial-tooltip.arrow-left .tooltip-arrow {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #111827;
}

.tutorial-tooltip.arrow-right .tooltip-arrow {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 8px 8px 0;
    border-color: transparent #111827 transparent transparent;
}

.study-guide-card {
    max-width: 700px;
    margin: 2rem auto 0;
    background: #fafafa;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.study-guide-header {
    background: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.study-guide-title {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

.study-guide-subtitle {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0.25rem 0 0 0;
    font-style: italic;
}

.study-guide-content {
    padding: 1.5rem;
}

.ai-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    color: #111827;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.study-guide-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
}

.study-guide-section:nth-child(2) {
    background: rgba(251, 243, 219, 0.3);
    border-left: 2px solid #f59e0b;
}

.study-guide-section:nth-child(3) {
    background: rgba(139, 92, 246, 0.05);
    border-left: 2px solid #8b5cf6;
}

.study-guide-section:nth-child(4) {
    background: rgba(34, 197, 94, 0.05);
    border-left: 2px solid #22c55e;
}

.collaborated-sources {
    position: relative;
    margin-top: 1.5rem;
    padding: 1rem;
    padding-top: 1rem;
    border-radius: 8px;
    border: 1.5px solid rgba(139, 92, 246, 0.3);
}

.collaborated-badge {
    position: absolute;
    top: -5px;
    left: -4px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #8b5cf6;
    background: white;
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}

.collaborated-sources .study-guide-section {
    margin-bottom: 0.75rem;
}

.collaborated-sources .study-guide-section:last-child {
    margin-bottom: 0;
}

.section-label {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-timestamp {
    font-weight: 400;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: none;
}

/* Color-coded highlights in AI summary */
.highlight-note {
    background: rgba(251, 191, 36, 0.3);
    padding: 1px 2px;
    border-radius: 2px;
}

.highlight-professor {
    background: rgba(139, 92, 246, 0.2);
    padding: 1px 2px;
    border-radius: 2px;
}

.highlight-slide {
    background: rgba(34, 197, 94, 0.2);
    padding: 1px 2px;
    border-radius: 2px;
}

.section-content {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.study-guide-cta {
    display: block;
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: #111827;
    color: white;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.study-guide-cta:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .study-guide-card {
        max-width: 95%;
        margin: 1rem auto;
        max-height: 50vh;
    }

    .study-guide-header {
        padding: 1rem;
    }

    .study-guide-title {
        font-size: 1.125rem;
    }

    .study-guide-content {
        padding: 1rem;
    }

    .ai-summary {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .study-guide-section {
        padding: 0.875rem;
    }

    .section-content {
        font-size: 0.875rem;
    }

    .highlightable-text {
        top: 18%;
        left: 5%;
        width: 90%;
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* CTA Section */
.cta {
    max-width: calc(1200px - 10rem);
    margin: 8rem auto;
    padding: 5rem 3rem;
    text-align: center;
    background: var(--color-text);
    border-radius: 20px;
    color: white;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background: white;
    color: var(--color-text);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.cta-contact {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.cta-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.cta-contact a:hover {
    color: rgba(255, 255, 255, 1);
}

.cta-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-input {
    flex: 1;
    min-width: 280px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.waitlist-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.waitlist-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.waitlist-form .btn-primary {
    flex-shrink: 0;
    width: 200px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-copy {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .demo-split-view {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .view-label {
        font-size: 0.875rem;
    }

    .demo-section-title {
        font-size: 2.25rem;
    }

    .highlightable-text {
        top: 22.5%;
        left: 56.5%;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-left {
        max-width: 100%;
    }

    .feature-card-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Remove ALL backdrop-filters on mobile for smooth scrolling - #1 cause of jank */
    * {
        backdrop-filter: none !important;
    }

    .nav {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .notes-sidebar {
        background: rgb(255, 255, 255) !important;
    }

    #browser-warning-banner {
        background: rgba(17, 24, 39, 0.98) !important;
    }

    /* Simplify animations on mobile for performance while keeping smoothness */
    * {
        animation-duration: 0.25s !important;
        transition-duration: 0.15s !important;
    }

    /* Smooth essential animations */
    .fade-in, .slide-up, .show, .visible {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }

    /* Disable complex cubic-bezier, use simple ease */
    * {
        animation-timing-function: ease !important;
        transition-timing-function: ease !important;
    }

    /* Remove box-shadows on scrolling elements for performance */
    .screenshot-card,
    .feature-card,
    .pricing-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        transition: none !important;
    }

    /* Optimize touch interactions */
    button, a, .clickable {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Increase touch targets */
    .mic-toggle-btn-float,
    .btn-nav,
    .carousel-arrow {
        min-width: 44px;
        min-height: 44px;
    }

    .nav-content {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .nav-center {
        display: none;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo {
        font-size: 1.125rem;
    }

    .btn-nav {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-width: 100px;
        white-space: nowrap;
    }

    .hero {
        padding: 0rem 1.5rem 4rem 1.5rem;
        min-height: 100vh;
    }

    .explainer-section {
        margin: 0 auto;
        padding: 4rem 1.5rem;
        min-height: 50vh;
    }

    .explainer-title {
        font-size: 1.75rem;
    }

    .explainer-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .network-effect {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .network-title {
        font-size: 1rem;
    }

    .network-steps {
        gap: 1rem;
    }

    .network-step:not(:last-child)::after {
        display: none;
    }

    .step-count {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }

    .step-text {
        font-size: 0.6875rem;
        max-width: 70px;
    }

    .demo-container {
        padding: 1rem;
    }

    .interactive-demo-section {
        margin: 4rem auto;
        padding: 0 1.5rem;
    }

    .demo-section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .lecture-frame, .student-frame {
        padding: 1rem;
    }

    .mic-toggle-btn-float {
        top: clamp(6rem, 12vh, 10rem);
        right: 1rem;
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .prof-transcript-panel {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-height: 150px;
    }

    .student-notes-panel {
        min-height: 80px;
        max-height: 150px;
    }

    .student-transcript-panel {
        height: 120px;
    }

    .highlightable-text {
        top: 22%;
        left: 10%;
        width: 80%;
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .lecture-slide {
        max-width: 100%;
        padding: 1rem;
        min-height: 650px;
        position: relative;
    }

    .slide-content {
        position: absolute;
        top: 53%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: calc(100% - 2rem);
        z-index: 2;
        padding: 0;
    }

    .slide-title {
        font-size: clamp(1.75rem, 6vw, 3rem);
        text-align: center;
        margin: 0 auto 1rem;
        line-height: 1.1;
        width: 100%;
        padding: 0;
    }

    .slide-subtitle {
        display: block;
        font-size: 1rem !important;
        line-height: 1.5;
        margin: 0.5rem auto 0;
        color: #6b7280;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .slide-subtitle .subtitle-desktop {
        display: none !important;
    }

    .slide-subtitle .subtitle-mobile {
        display: inline !important;
        font-style: italic;
    }


    .transcription-sidebar {
        display: flex !important;
        position: absolute !important;
        bottom: -1.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 2rem) !important;
        max-width: none !important;
        opacity: 0 !important;
        z-index: 3 !important;
        transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        backface-visibility: hidden !important;
    }

    .transcription-sidebar.show {
        opacity: 1 !important;
        transform: translateX(-63%) !important;
    }

    .transcription-list {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .transcription-chunk {
        width: 100%;
        max-width: 400px;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
    }

    #transcript1,
    #transcript3 {
        display: none !important;
    }

    .notes-sidebar {
        display: flex !important;
        position: absolute !important;
        top: -2rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: calc(100% - 2rem) !important;
        max-width: none !important;
        min-height: 282px !important;
        max-height: 282px !important;
        opacity: 0 !important;
        z-index: 10 !important;
        transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        backface-visibility: hidden !important;
    }

    .notes-sidebar.show {
        opacity: 1 !important;
        transform: translateX(-37%) !important;
    }

    .notes-header {
        padding: 10px 15px !important;
        font-size: 12px !important;
    }

    .note-card {
        padding: 10px !important;
        font-size: 12px !important;
    }

    .teacher-note-section {
        margin: 6px 0 !important;
        padding: 8px !important;
    }

    .teacher-note-badge {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }

    .teacher-note-text {
        font-size: 11px !important;
    }

    .note-text {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }

    .hero-split {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    /* Scale up flow animation for mobile */
    .flow-diagram {
        height: 200px;
        transform: scale(1.3);
        transform-origin: center;
    }

    .flow-label {
        font-size: 20px;
        font-weight: 700;
        fill: #0F172A !important;
        opacity: 1 !important;
    }

    .flow-line {
        stroke-dasharray: 6 2;
        stroke-width: 3;
        stroke: #0F172A !important;
    }

    .flow-marker {
        r: 7;
        fill: #0F172A !important;
    }

    .ai-processor {
        bottom: 0rem;
    }

    .ai-label {
        font-size: 1rem;
        font-weight: 800;
        color: #0F172A !important;
    }

    /* Position toggle on right, title on left for mobile */
    .features-toggle-container {
        position: absolute;
        top: -2.5rem;
        left: auto;
        right: 0;
        transform: none;
    }

    .features-toggle-container .audience-toggle {
        margin-bottom: 0;
        top: 22px;
        right: 0;
    }

    /* Stack flow diagram and about section on mobile */
    .flow-section {
        position: relative;
        margin-top: -8rem;
    }

    /* Smaller toggles on mobile */
    .audience-toggle {
        font-size: 0.8rem;
    }

    .audience-toggle .toggle-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .flow-diagram-container {
        margin-bottom: 3rem;
        position: sticky;
        top: 70px;
        z-index: 5;
        padding-top: 1rem;
        padding-inline: 2rem;
    }

    .screenshots-section {
        margin-top: -6rem;
    }

    .flow-result-container {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .flow-output {
        position: fixed;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        z-index: 5;
    }

    .flow-about {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        margin-top: 60vh;
        padding: 2rem 5%;
        z-index: 20;
        transform: none !important;
    }

    .flow-about .audience-content.active {
        display: block;
        min-height: 580px;
    }

    .output-image {
        height: 350px;
    }

    /* Disable flip animations on mobile - use fade instead */
    .screenshot-card.flip-out-right,
    .screenshot-card.flip-out-left {
        animation: fadeOutMobile 0.2s ease forwards;
    }

    .screenshot-card.flip-in-right,
    .screenshot-card.flip-in-left {
        animation: fadeInMobile 0.2s ease forwards;
    }

    @keyframes fadeOutMobile {
        from { opacity: 1; }
        to { opacity: 0; }
    }

    @keyframes fadeInMobile {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .demo-section,
    .screenshots-section {
        padding-left: 0;
        padding-right: 0;
    }

    .story-section,
    .features,
    .pricing,
    .cta {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .screenshots-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .demo-title,
    .screenshots-title,
    .pricing-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .story-text {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta {
        padding: 3rem 1.5rem;
        margin: 8rem 1.5rem 3rem 1.5rem;
        max-width: calc(100% - 3rem);
    }

    .yc-section {
        display: none;
    }

    .yc-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .video-label {
        font-size: 1rem;
    }

    .demo-carousel-arrow {
        width: 32px;
        height: 32px;
    }

    .demo-prev {
        left: -12px;
    }

    .demo-next {
        right: -12px;
    }

    .demo-carousel-card {
        overflow: visible;
    }

    .waitlist-form {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }

    .waitlist-input {
        min-width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .waitlist-form .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .cta-note {
        font-size: 0.9375rem;
    }

    .feature-card-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-card,
    .story-container {
        padding: 1.5rem;
    }

    .story-section {
        margin: -5rem auto;
    }

    .story-text-intro {
        font-size: 1.125rem;
    }

    .story-text-secondary {
        font-size: 1.125rem;
    }

    .story-text-emphasis {
        font-size: 1.125rem;
    }

    .horizontal-scroll-wrapper {
        position: sticky !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        padding-top: 1rem;
        overflow: visible;
    }

    .horizontal-scroll-track {
        position: relative;
        width: 86vw;
        max-width: 86vw;
        height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .screenshot-card {
        position: absolute;
        width: 100%;
        max-width: 90vw;
        height: 65vh;
        min-height: 65vh;
        max-height: 65vh;
        box-shadow: none !important;
        overflow: visible !important;
        opacity: 0;
        transform: scale(0.85) translateY(40px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        pointer-events: none;
    }

    .screenshot-card.active {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }

    /* Disable video autoplay and reduce quality on mobile */
    .screenshot-video {
        will-change: auto;
        transform: translateZ(0);
    }

    .screenshot-card::before {
        font-size: 1.75rem;
        top: -2.5rem;
        z-index: 1;
        left: 5%;
        transform: none;
        text-align: left;
        white-space: nowrap;
        max-width: 50%;
    }

    .screenshot-card:last-child {
        margin-right: 0;
    }

    .screenshot-placeholder {
        aspect-ratio: 14 / 9;
        margin-top: 2.5rem;
    }

    .screenshot-label {
        font-size: 0.8rem;
        position: absolute;
        top: 1rem;
        left: 1rem;
    }

    .screenshot-description {
        font-size: 0.9375rem;
    }

    /* Custom image positioning for each card */
    .screenshot-card:nth-child(1) .screenshot-img {
        object-position: left center;
    }

    .screenshot-card:nth-child(2) .screenshot-img,
    .screenshot-card:nth-child(3) .screenshot-img {
        object-fit: contain;
        object-position: center center;
    }

    .screenshot-card:nth-child(4) .screenshot-img {
        object-position: center top;
    }

    .screenshot-card:nth-child(5) .screenshot-img {
        object-position: left top;
    }

    .screenshot-card:nth-child(6) .screenshot-img {
        object-position: left top;
    }

    /* Card-specific overrides for mobile */
    .screenshot-card[data-title="Start Instantly"] .screenshot-video {
        object-fit: cover;
        object-position: center bottom;
        transform: scale(1.35);
    }

    .screenshot-card[data-title="Capture Everything"] .screenshot-img {
        object-fit: cover;
        object-position: right;
    }

    .screenshot-card[data-title="Learn Together"] .screenshot-video {
        object-fit: contain;
        object-position: center;
    }

    .screenshot-card[data-title="Ask Freely"] .screenshot-video {
        object-fit: cover;
        object-position: center;
    }

    .screenshot-card[data-title="Zero Setup"] .screenshot-img {
        object-fit: cover;
        object-position: center;
    }

    .screenshot-card[data-title="Answer In-Flow"] .screenshot-img {
        object-position: center top;
    }

    .screenshot-card[data-title="Know Your Class"] .screenshot-img {
        object-position: center;
    }

    /* Video progress indicator - ensure visible on mobile */
    .video-progress {
        bottom: 8px;
        right: 8px;
        width: 20px;
        height: 20px;
        z-index: 10;
    }

    .video-progress::after {
        top: 3px;
        left: 3px;
        right: 3px;
        bottom: 3px;
    }

    /* Scroll indicator dots */
    .scroll-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 1rem 0 2rem;
        position: relative;
        z-index: 10;
    }

    .scroll-dot {
        width: 8px;
        height: 8px;
    }

    .scroll-dot.active {
        transform: scale(1.2);
    }

    /* Override 5th student card label for mobile */
    .screenshot-card[data-title="Smart Study Guide"]::before {
        content: "Smart Guide";
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Scroll dots - shown on all screen sizes */
.scroll-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 1rem 0 2rem;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-dots.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#111827 calc(var(--progress, 0) * 1%), transparent 0);
    transition: none;
}

.scroll-dot.completed::before {
    background: #111827;
}

.scroll-dot.active {
    transform: scale(1.3);
}

/* Slide Selector Overlay */
.interactive-demo-section {
    position: relative;
}

.slide-selector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.slide-selector-overlay.active {
    display: flex;
}

.slide-selector-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.slide-selector-modal {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.slide-selector-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-option-card {
    min-width: 100%;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    transition: border-color 0.3s ease;
}

.slide-option-card[data-slide="cs"] {
    border-color: #bfdbfe;
}

.slide-option-card[data-slide="biology"] {
    border-color: #bbf7d0;
}

.slide-option-card[data-slide="business"] {
    border-color: #fde68a;
}

.slide-option-card[data-slide="psychology"] {
    border-color: #e9d5ff;
}

.slide-option-card[data-slide="engineering"] {
    border-color: #fed7aa;
}

.slide-option-card.founder-card {
    border-color: #fecaca;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    border-color: var(--color-text);
    background: var(--color-surface);
    transform: scale(1.1);
}

.carousel-arrow svg {
    color: var(--color-text);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-text);
    width: 24px;
    border-radius: 4px;
}

.carousel-select-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    background: var(--color-text);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-select-btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.slide-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    text-align: center;
    width: fit-content;
}

.cs-badge {
    background: #dbeafe;
    color: #1e40af;
}

.bio-badge {
    background: #dcfce7;
    color: #166534;
}

.bus-badge {
    background: #fef3c7;
    color: #92400e;
}

.psy-badge {
    background: #f3e8ff;
    color: #6b21a8;
}

.eng-badge {
    background: #ffedd5;
    color: #9a3412;
}

.founder-badge {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.8125rem;
}

.slide-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.slide-preview {
    width: 350px;
    flex-shrink: 0;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.slide-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide-option-card .slide-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

@media (max-width: 768px) {
    .slide-selector-modal {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .slide-selector-title {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
    }

    .carousel-container {
        gap: 0.5rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .slide-option-card {
        padding: 1.25rem;
        flex-direction: column;
        align-items: stretch;
    }

    .slide-preview {
        width: 100%;
        max-width: 100%;
    }

    .slide-info {
        text-align: center;
        align-items: center;
    }

    .carousel-select-btn {
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.7;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

.screenshot-img, .demo-lecture-img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.screenshot-img:hover, .demo-lecture-img:hover {
    opacity: 0.9;
}

/* Video play button overlay */
.screenshot-placeholder {
    position: relative;
}

.screenshot-video {
    position: relative;
}

.screenshot-video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.screenshot-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.screenshot-video:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.screenshot-video:hover::before {
    opacity: 1;
}

/* Hide play button when video is playing */
.screenshot-video[data-playing="true"]::after,
.screenshot-video[data-playing="true"]::before {
    opacity: 0;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Slower scroll for student notes panel */
.student-notes-panel {
    scroll-behavior: auto;
}

@keyframes slowScroll {
    from {
        scroll-behavior: auto;
    }
    to {
        scroll-behavior: auto;
    }
}

/* Selection */
::selection {
    background: var(--color-text);
    color: white;
}

/* Hero Demo Styles */
.demo-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    overflow: visible;
}

.lecture-slide {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 4rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-height: 600px;
}

.slide-content {
    max-width: 718px;
    padding-top: 98px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.slide-subtitle {
    font-size: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

.subtitle-mobile {
    display: none !important;
    font-style: italic;
}

.subtitle-desktop {
    display: inline !important;
    font-style: italic;
}


.highlight {
    background: transparent;
    transition: background 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline;
    position: relative;
}

.highlight.active {
    background: rgba(254, 240, 138, 0.5);
}

.transcription-sidebar {
    position: absolute;
    left: -25px;
    bottom: -78px;
    width: 380px;
    max-height: 500px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.transcription-sidebar.show {
    opacity: 1;
}

.transcription-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    font-size: 14px;
}

.transcription-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}

.transcription-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transcription-chunk {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.transcription-chunk.show {
    opacity: 1;
    transform: translateY(0);
}

.transcription-chunk:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.transcription-chunk:active {
    cursor: grabbing;
}

.transcription-chunk.dragging {
    cursor: grabbing;
}

.transcription-chunk.hidden {
    display: none;
}

.transcription-clone {
    position: absolute;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    cursor: grabbing;
    max-width: 280px;
    z-index: 1001;
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

.chunk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
}

.chunk-time {
    font-weight: 600;
    color: #6366f1;
}

.chunk-page {
    background: #e0e7ff;
    color: #6366f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.chunk-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.notes-sidebar {
    position: absolute;
    right: -22px;
    top: -53px;
    width: 340px;
    min-height: 301px;
    max-height: 301px;
    background: rgba(255, 255, 255, 0.98);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    transform: translateX(calc(100% + 40px));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.notes-sidebar.show {
    opacity: 1;
    transform: translateX(0);
}

.notes-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(248, 249, 250, 0.8);
    border-radius: 0 11px 0 0;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.notes-header::before {
    content: '⋮⋮';
    color: #9ca3af;
    font-size: 12px;
    line-height: 1;
    letter-spacing: -2px;
}

.notes-content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.notes-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-card {
    position: relative;
    background: rgba(248, 249, 250, 0.6);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    animation: noteSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.note-card:hover {
    background: rgba(248, 249, 250, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.note-card.highlight-note {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

.note-card.collaborated-note {
    background: #ffffff !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(139, 92, 246, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.note-card.collaborated-note:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 4px 12px rgba(139, 92, 246, 0.12) !important;
}

/* Type badges */
.note-type-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    margin-bottom: 10px !important;
    position: relative !important;
    opacity: 0;
}

.note-type-badge.highlight-badge {
    color: #6b7280 !important;
    background: #f3f4f6 !important;
}

.note-type-badge.collaborated-badge {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

/* Badge animations */
@keyframes simpleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes collaboratedGentlePop {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes purpleGlowPulse {
    0% {
        box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
    40% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.25);
    }
    100% {
        box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
}

.note-type-badge.fade-in-initial {
    animation: simpleFadeIn 0.4s ease-out forwards;
}

.note-type-badge.fade-out {
    animation: fadeOutQuick 0.2s ease-out forwards;
}

.note-type-badge.gentle-pop-in {
    animation: collaboratedGentlePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               purpleGlowPulse 0.6s ease-out forwards;
}

.note-highlight {
    color: #6b7280 !important;
    font-style: italic !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    padding: 6px 0 !important;
    padding-bottom: 10px !important;
}

.highlight-label {
    font-weight: 600 !important;
    color: #8b5cf6 !important;
    font-style: normal !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.note-text {
    color: #6b7280 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 6px !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
    border-top: 1px solid #f3f4f6 !important;
    font-style: normal !important;
}

.note-ai-indicator {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 10px;
    color: #8b5cf6;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.note-ai-indicator.show {
    opacity: 1;
}

/* Teacher note - ultra minimal inline style matching extension */
.teacher-note-reply {
    margin-top: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-top: 1px solid #f3f4f6 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #6b7280 !important;
}

.teacher-note-label {
    font-weight: 600 !important;
    color: #8b5cf6 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.teacher-note-content {
    display: inline !important;
    margin-top: 0 !important;
    color: #6b7280 !important;
    margin-left: 4px !important;
}

@keyframes noteSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fake-cursor {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fake-cursor.show {
    opacity: 1;
}

.cursor {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1), top 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor.show {
    display: block !important;
}

.cursor-arrow {
    fill: #111827;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 0 1px rgba(255, 255, 255, 0.8));
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #111827;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
