/* ========================================
   Mode Promotional Website
   Matching Extension Design System
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Monochrome Palette */
    --black: #0a0a0a;
    --charcoal: #1a1a1a;
    --graphite: #2d2d2d;
    --slate: #4a4a4a;
    --stone: #6b6b6b;
    --silver: #9a9a9a;
    --ash: #c4c4c4;
    --pearl: #e8e8e8;
    --ivory: #f5f5f5;
    --white: #fafafa;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 150ms;
    --transition-base: 250ms;
    --transition-slow: 400ms;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Scroll Animations - Premium Reveal Effects */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out),
        filter 0.8s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Staggered animation delays for children */
.animate-on-scroll:nth-child(1) {
    transition-delay: 0ms;
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 120ms;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 240ms;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 360ms;
}

/* Scale + Fade Animation Variant */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(6px);
    transition:
        opacity 0.9s var(--ease-out),
        transform 0.9s var(--ease-out),
        filter 0.7s var(--ease-out);
}

.animate-scale-in.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Slide from Left Animation */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from Right Animation */
.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Elegant Rise Animation with Rotation */
.animate-rise {
    opacity: 0;
    transform: translateY(60px) rotate(2deg);
    transition:
        opacity 0.9s var(--ease-out),
        transform 0.9s var(--ease-out);
}

.animate-rise.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Smooth Fade Only */
.animate-fade {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out);
}

.animate-fade.visible {
    opacity: 1;
}

/* Float Up Animation - Very Subtle */
.animate-float-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s var(--ease-out),
        transform 0.8s var(--ease-out);
}

.animate-float-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(60px) rotate(6deg);
    }

    to {
        opacity: 1;
        transform: translateX(60px) rotate(6deg);
    }
}

.hero-title {
    animation: fadeInUp 0.8s var(--ease-out) both;
    animation-delay: 0.1s;
}

.dictionary-entry {
    animation: fadeInUp 0.8s var(--ease-out) both;
    animation-delay: 0.25s;
}

.hero-content .cta-button {
    animation: fadeInUp 0.8s var(--ease-out) both;
    animation-delay: 0.4s;
}

.extension-preview {
    animation: fadeInUp 0.9s var(--ease-out) both;
    animation-delay: 0.3s;
    position: relative;
    z-index: 4;
}

/* Individual card animations are defined in the card-preview-mockup section below */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Mobile touch optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices to prevent sticky states */
    .cta-button:hover,
    .demo-method-icon:hover,
    .demo-product-card:hover,
    .demo-step:hover,
    .ext-action-card:hover,
    .ext-recent-item:hover,
    .ext-nav-item:hover {
        transform: none;
        box-shadow: inherit;
    }

    /* Better tap highlighting */
    a, button, .ext-action-card, .demo-method-icon, .demo-product-card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* Prevent text selection on interactive elements */
    .cta-button, .waitlist-btn, .ext-action-card, .demo-method-icon {
        -webkit-user-select: none;
        user-select: none;
    }
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

p {
    color: var(--slate);
}

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

/* Container */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-3xl);
    padding-top: var(--space-3xl);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    margin-bottom: var(--space-xl);
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--black);
    display: block;
    line-height: 1;
}

.logo-mark.small {
    font-size: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: var(--space-md);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    color: var(--stone);
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--slate);
    max-width: 480px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* ========================================
   Dictionary Entry Styling
   ======================================== */

.dictionary-entry {
    max-width: 520px;
    margin-bottom: var(--space-xl);
    text-align: left;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--pearl);
    border-bottom: 1px solid var(--pearl);
}

.dict-pronunciation {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.dict-phonetic {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--slate);
    letter-spacing: 0.02em;
}

.dict-origin {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--stone);
}

.dict-word-class {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--silver);
    margin-bottom: var(--space-md);
}

.dict-definition {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.dict-number {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--silver);
    flex-shrink: 0;
    margin-top: 2px;
}

.dict-definition p {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--charcoal);
    margin: 0;
}

.dict-strikethrough {
    text-decoration: line-through;
    color: var(--silver);
    text-decoration-thickness: 1px;
}

.dict-replacement {
    color: var(--black);
    font-weight: 500;
}

/* Responsive adjustments for dictionary entry */
@media (max-width: 1024px) {
    .dictionary-entry {
        text-align: center;
    }

    .dict-pronunciation {
        justify-content: center;
    }

    .dict-definition {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .dictionary-entry {
        max-width: 100%;
        padding: var(--space-md) 0;
    }

    .dict-definition p {
        font-size: 1rem;
    }
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base) var(--ease-out);
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--charcoal);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button.large {
    font-size: 1.125rem;
    padding: var(--space-lg) var(--space-xl);
}

.chrome-icon {
    width: 20px;
    height: 20px;
}

.cta-subtext {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--silver);
}

/* Hero Visual / Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================
   Footer - Editorial Style (Ogaki-inspired)
   ======================================== */

.footer-editorial {
    background: var(--white);
    padding: var(--space-4xl) var(--space-lg) var(--space-xl);
    margin-top: var(--space-xl);
}

/* Closing Statement */
.footer-statement {
    max-width: 900px;
    margin: 0 auto var(--space-4xl);
    padding-bottom: var(--space-4xl);
    border-bottom: 1px solid var(--ash);
}

.footer-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--black);
    letter-spacing: -0.02em;
}

/* Footer Grid */
.footer-grid {
    max-width: 900px;
    margin: 0 auto var(--space-4xl);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-column-label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--silver);
}

.footer-contact {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--charcoal);
    transition: color var(--transition-fast) var(--ease-out);
}

.footer-contact:hover {
    color: var(--black);
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav-links a {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--slate);
    transition: color var(--transition-fast) var(--ease-out);
}

.footer-nav-links a:hover {
    color: var(--black);
}

/* Bottom Bar */
.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--ash);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--silver);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--silver);
    transition: color var(--transition-fast) var(--ease-out);
}

.footer-legal a:hover {
    color: var(--charcoal);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-editorial {
        padding: var(--space-3xl) var(--space-md) var(--space-lg);
    }

    .footer-statement {
        margin-bottom: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        margin-bottom: var(--space-3xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Better touch targets for footer links */
    .footer-nav-links a {
        display: inline-block;
        padding: var(--space-xs) 0;
        min-height: 44px;
        line-height: 36px;
    }

    .footer-legal a {
        padding: var(--space-xs) var(--space-sm);
        min-height: 44px;
        line-height: 36px;
    }

    .footer-contact {
        display: inline-block;
        padding: var(--space-xs) 0;
        min-height: 44px;
        line-height: 36px;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .footer-editorial {
        padding: var(--space-2xl) var(--space-md) var(--space-md);
    }

    .footer-headline {
        font-size: 2rem;
    }

    .footer-statement {
        margin-bottom: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    .footer-grid {
        gap: var(--space-lg);
        margin-bottom: var(--space-2xl);
    }

    .footer-column-label {
        font-size: 0.625rem;
    }

    .footer-nav-links a {
        font-size: 1rem;
    }

    .footer-contact {
        font-size: 0.9375rem;
    }
}

/* Legacy Footer Styles (kept for compatibility) */
.footer {
    padding: var(--space-3xl) var(--space-lg);
    border-top: 1px solid var(--pearl);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--black);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--stone);
}

.footer-nav {
    margin-top: var(--space-md);
}

.footer-link {
    font-size: 0.875rem;
    color: var(--silver);
    transition: color var(--transition-fast) var(--ease-out);
}

.footer-link:hover {
    color: var(--charcoal);
}

/* Preview Stack Layout */
.preview-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    min-width: 400px;
}

/* Shareable Card Preview (behind) */
.card-preview-mockup {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 1;
    cursor: pointer;
}

/* Individual card positions - fanned stack effect */
.card-preview-mockup.card-1 {
    transform: translateY(-80%) translateX(60px) rotate(-12deg);
    z-index: 1;
}

.card-preview-mockup.card-2 {
    transform: translateY(-50%) translateX(120px) rotate(0deg);
    z-index: 2;
}

.card-preview-mockup.card-3 {
    transform: translateY(-20%) translateX(60px) rotate(12deg);
    z-index: 3;
}

/* Hover effects for each card */
.card-preview-mockup {
    transition: transform 0.3s ease-out;
}

.card-preview-mockup.card-1:hover {
    transform: translateY(-80%) translateX(55px) rotate(-15deg) scale(1.05);
}

.card-preview-mockup.card-2:hover {
    transform: translateY(-50%) translateX(130px) rotate(2deg) scale(1.05);
}

.card-preview-mockup.card-3:hover {
    transform: translateY(-20%) translateX(55px) rotate(15deg) scale(1.05);
}

.card-preview-mockup img {
    width: 220px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.card-click-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--transition-base) var(--ease-out);
    white-space: nowrap;
}

.card-preview-mockup:hover .card-click-hint {
    opacity: 1;
}

/* Card Lightbox Modal */
.card-modal {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base) var(--ease-out),
        visibility var(--transition-base) var(--ease-out);
}

.card-modal.active {
    opacity: 1;
    visibility: visible;
}

.card-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform var(--transition-base) var(--ease-out);
}

.card-modal.active .card-modal-content {
    transform: scale(1);
}

.card-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.card-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--pearl);
    border: none;
    border-radius: 50%;
    color: var(--charcoal);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast) var(--ease-out);
}

.card-modal-close:hover {
    background: var(--ash);
}

/* Extension Preview Mockup */
.extension-preview {
    position: relative;
    z-index: 4;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    font-family: var(--font-sans);
    flex-shrink: 0;
}

.ext-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.ext-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    color: var(--slate);
    letter-spacing: 0.02em;
}

.ext-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ivory);
    border: 1px solid var(--pearl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 150ms var(--ease-out);
}

.ext-avatar:hover {
    background: var(--pearl);
    border-color: var(--ash);
}

.ext-hero {
    text-align: center;
    padding: 8px 20px 20px;
}

.ext-hero-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--black);
}

.ext-hero-subtitle {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 300;
    color: var(--slate);
}

.ext-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.ext-action-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--white);
    border: 1px solid var(--pearl);
    border-radius: var(--radius-md);
    color: var(--slate);
    cursor: pointer;
    transition: all 200ms var(--ease-out);
    position: relative;
}

.ext-action-card:hover {
    background: var(--ivory);
    border-color: var(--ash);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ext-action-card.has-badge {
    padding-top: 24px;
}

.ext-dev-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4a857;
    color: white;
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.ext-action-card svg {
    width: 22px;
    height: 22px;
}

.ext-action-card span:not(.ext-dev-badge) {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--charcoal);
}

.ext-recent {
    padding: 0 20px 16px;
}

.ext-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ext-section-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--black);
}

.ext-section-link {
    font-size: 0.75rem;
    color: var(--silver);
    cursor: pointer;
    transition: color 150ms var(--ease-out);
}

.ext-section-link:hover {
    color: var(--charcoal);
}

.ext-recent-list {
    background: var(--white);
    border: 1px solid var(--pearl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ext-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 150ms var(--ease-out);
}

.ext-recent-item:hover {
    background: var(--ivory);
}

.ext-recent-item:not(:last-child) {
    border-bottom: 1px solid var(--pearl);
}

.ext-recent-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--pearl);
}

.ext-recent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ext-recent-name {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ext-recent-date {
    font-size: 0.75rem;
    color: var(--silver);
}

.ext-nav {
    display: flex;
    border-top: 1px solid var(--pearl);
    background: var(--white);
}

.ext-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    color: var(--silver);
    cursor: pointer;
    transition: color 150ms var(--ease-out);
}

.ext-nav-item:hover {
    color: var(--slate);
}

.ext-nav-item.active {
    color: var(--charcoal);
}

.ext-nav-item.active:hover {
    color: var(--charcoal);
}

.ext-nav-item.active::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--charcoal);
    border-radius: 50%;
    margin-top: 2px;
}

.ext-nav-item span {
    font-size: 0.6875rem;
    font-weight: 500;
}

/* Runway References Preview */
.ext-image-bar {
    height: 12px;
    background: var(--pearl);
    margin: 0 20px 20px;
    border-radius: 6px;
}

.ext-references {
    padding: 0 20px 20px;
}

.ext-ref-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 4px;
}

.ext-ref-subtitle {
    font-size: 0.8125rem;
    color: var(--silver);
    margin-bottom: 16px;
}

.ext-runway-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ext-runway-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--pearl);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms var(--ease-out);
}

.ext-runway-item:hover {
    background: var(--ivory);
    border-color: var(--ash);
}

.ext-runway-icon {
    width: 48px;
    height: 48px;
    background: var(--charcoal);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    flex-shrink: 0;
}

.ext-runway-info {
    flex: 1;
    min-width: 0;
}

.ext-runway-designer {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--black);
}

.ext-runway-collection {
    display: block;
    font-size: 0.8125rem;
    color: var(--silver);
}

.ext-runway-arrow {
    color: var(--silver);
    font-size: 1rem;
    transition: transform 150ms var(--ease-out);
}

.ext-runway-item:hover .ext-runway-arrow {
    transform: translateX(3px);
    color: var(--slate);
}

.ext-action-buttons {
    display: flex;
    gap: 10px;
}

.ext-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--charcoal);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms var(--ease-out);
}

.ext-btn-primary:hover {
    background: var(--black);
    transform: translateY(-1px);
}

.ext-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    color: var(--charcoal);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--pearl);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms var(--ease-out);
}

.ext-btn-secondary:hover {
    background: var(--ivory);
    border-color: var(--ash);
}

/* ========================================
   Editorial Section - Magazine Style
   ======================================== */

.editorial {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--white);
    max-width: 100%;
}

/* Large Statement */
.editorial-statement {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.statement-text {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

.statement-text em {
    font-style: italic;
    color: var(--black);
}


/* Discover - Editorial Grid */
.editorial-discover {
    max-width: 900px;
    margin: 0 auto;
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--pearl);
}

.discover-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--silver);
    margin-bottom: var(--space-xl);
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-3xl);
}

.discover-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.discover-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.01em;
}

.discover-desc {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--stone);
    line-height: 1.5;
}

/* Editorial Responsive */
@media (max-width: 768px) {
    .editorial {
        padding: var(--space-3xl) var(--space-md);
    }

    .statement-text {
        font-size: 1.625rem;
        line-height: 1.5;
    }

    .discover-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .discover-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .editorial {
        padding: var(--space-2xl) var(--space-md);
    }

    .statement-text {
        font-size: 1.25rem;
        line-height: 1.6;
    }

    .discover-title {
        font-size: 1.125rem;
    }

    .discover-desc {
        font-size: 0.875rem;
    }
}


/* ========================================
   Waitlist Section
   ======================================== */

.waitlist-section {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--ivory);
}

.waitlist-container {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.waitlist-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone);
    margin-bottom: var(--space-md);
}

.waitlist-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.waitlist-desc {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.waitlist-form {
    width: 100%;
}

.waitlist-input-group {
    display: flex;
    gap: var(--space-sm);
    max-width: 420px;
    margin: 0 auto;
}

.waitlist-input {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--ash);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.waitlist-input::placeholder {
    color: var(--silver);
}

.waitlist-input:focus {
    outline: none;
    border-color: var(--charcoal);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.waitlist-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
    background: var(--black);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.waitlist-btn:hover {
    background: var(--charcoal);
    transform: translateY(-1px);
}

.waitlist-btn:active {
    transform: translateY(0);
}

.waitlist-btn-arrow {
    transition: transform var(--transition-fast);
}

.waitlist-btn:hover .waitlist-btn-arrow {
    transform: translateX(3px);
}

.waitlist-message {
    margin-top: var(--space-md);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--stone);
    min-height: 1.5em;
}

.waitlist-message.success {
    color: #2e7d32;
}

.waitlist-message.error {
    color: #c62828;
}

/* Waitlist Responsive */
@media (max-width: 768px) {
    .waitlist-section {
        padding: var(--space-3xl) var(--space-md);
    }

    .waitlist-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .waitlist-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .waitlist-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .waitlist-desc {
        font-size: 0.9375rem;
        margin-bottom: var(--space-lg);
    }

    .waitlist-input-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .waitlist-input {
        padding: 16px 18px;
        font-size: 1rem;
        min-height: 52px;
    }

    .waitlist-btn {
        justify-content: center;
        min-height: 52px;
        padding: 16px 24px;
        font-size: 1rem;
    }
}


/* Fullpage Hero Variant */
.hero.hero-fullpage {
    min-height: calc(100vh - 80px);
}

/* Minimal Footer Variant (deprecated - using footer-editorial now) */

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    .preview-stack {
        min-width: auto;
    }

    .card-preview-mockup {
        transform: translateY(-50%) translateX(40px) rotate(6deg);
    }

    .card-preview-mockup img {
        width: 180px;
    }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        text-align: center;
        padding-top: var(--space-3xl);
    }

    .hero-content {
        align-items: center;
    }

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

    .hero-visual {
        order: -1;
    }

    .preview-stack {
        min-height: auto;
    }

    .card-preview-mockup {
        display: none;
    }

    .extension-preview {
        width: 280px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .analysis-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--space-3xl) var(--space-md);
    }

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

    .hero-tagline {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .preview-stack {
        flex-direction: column;
        gap: 20px;
    }

    .extension-preview {
        width: 300px;
    }

    .preview-runway {
        display: none;
    }

    .ext-hero-title,
    .ext-hero-subtitle {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        font-size: 1.0625rem;
    }

    .analysis-item {
        flex-direction: column;
        text-align: center;
    }

    .analysis-icon {
        margin: 0 auto;
    }

    /* Better mobile hero spacing */
    .hero.hero-fullpage {
        min-height: auto;
        padding-top: var(--space-xl);
        padding-bottom: var(--space-2xl);
    }

    .hero-content {
        gap: var(--space-md);
    }

    .dictionary-entry {
        margin-bottom: var(--space-lg);
    }

    /* Improve extension preview on small screens */
    .extension-preview {
        width: 100%;
        max-width: 320px;
    }

    .preview-stack {
        min-height: auto;
        padding: var(--space-md) 0;
    }
}

/* ========================================
   Feature Demo Section
   ======================================== */

.feature-demo {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
    background: var(--white);
}

.demo-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.demo-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--silver);
    margin-bottom: var(--space-sm);
}

.demo-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--black);
    letter-spacing: -0.02em;
}

/* Demo Flow Layout */
.demo-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.demo-step {
    background: var(--white);
    border: 1px solid var(--pearl);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition-base) var(--ease-out);
}

.demo-step:hover {
    border-color: var(--ash);
    box-shadow: var(--shadow-md);
}

.demo-step--wide {
    grid-column: span 2;
}

.demo-step-number {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--silver);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.demo-step-content {}

.demo-step-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: var(--space-xs);
}

.demo-step-desc {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Step 1: Input Methods */
.demo-input-methods {
    display: flex;
    gap: var(--space-md);
}

.demo-method-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    border: 1px solid var(--pearl);
    border-radius: var(--radius-md);
    color: var(--slate);
    transition: all var(--transition-base) var(--ease-out);
}

.demo-method-icon:hover {
    background: var(--pearl);
    border-color: var(--ash);
    transform: translateY(-2px);
}

/* Step 2: Aesthetic Reveal */
.demo-aesthetic-reveal {
    background: var(--ivory);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.demo-aesthetic-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--silver);
    margin-bottom: var(--space-xs);
}

.demo-aesthetic-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--black);
    min-height: 2.2em;
}

/* Typewriter animation */
.demo-aesthetic-name.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--silver);
    white-space: nowrap;
    animation:
        typing 1.5s steps(12, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--silver);
    }
}

/* Step 3: Product Grid */
.demo-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.demo-product-card {
    background: var(--white);
    border: 1px solid var(--pearl);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base) var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
}

.demo-product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance for product cards */
.demo-product-card:nth-child(1) {
    transition-delay: 0ms;
}

.demo-product-card:nth-child(2) {
    transition-delay: 150ms;
}

.demo-product-card:nth-child(3) {
    transition-delay: 300ms;
}

.demo-product-card:hover {
    border-color: var(--ash);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.demo-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--pearl) 0%, var(--ash) 100%);
    position: relative;
    overflow: hidden;
}

/* Shimmer loading effect */
.demo-product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.demo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--ivory);
}

.demo-product-info {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-product-brand {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--silver);
}

.demo-product-name {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-product-price {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black);
}

.demo-price-original {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--silver);
    text-decoration: line-through;
    margin-left: 4px;
}

a.demo-product-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.demo-product-image:has(img)::after {
    display: none;
}

/* Step 4: Card Preview */
.demo-card-preview {
    display: flex;
    justify-content: center;
}

.demo-card-image {
    max-width: 180px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base) var(--ease-out);
}

.demo-card-image:hover {
    transform: scale(1.02) rotate(1deg);
}

/* Responsive Demo Section */
@media (max-width: 768px) {
    .demo-flow {
        grid-template-columns: 1fr;
    }

    .demo-step--wide {
        grid-column: span 1;
    }

    .demo-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .demo-product-info {
        padding: var(--space-xs) var(--space-sm) var(--space-sm);
    }

    .demo-product-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Horizontal scrolling product grid - show all cards */
    .demo-product-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-sm);
        padding-bottom: var(--space-sm);
        margin: 0 calc(-1 * var(--space-md));
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .demo-product-card {
        flex: 0 0 140px;
        scroll-snap-align: start;
    }

    .demo-product-card:nth-child(3) {
        display: block;
    }

    /* Hide scrollbar but keep functionality */
    .demo-product-grid::-webkit-scrollbar {
        display: none;
    }

    .demo-product-grid {
        scrollbar-width: none;
    }

    /* Larger touch targets for method icons */
    .demo-input-methods {
        justify-content: center;
        gap: var(--space-sm);
    }

    .demo-method-icon {
        width: 52px;
        height: 52px;
        min-width: 44px;
        min-height: 44px;
    }

    .demo-step {
        padding: var(--space-lg);
    }

    .demo-step-title {
        font-size: 1.25rem;
    }

    .demo-step-desc {
        font-size: 0.875rem;
    }
}