/**
 * Deerviz - Pure White Studio Aesthetic
 * Static Landing Page Styles
 *
 * Design Philosophy: Premium minimalism meets creative elegance
 * - Pristine white canvas with layered depth
 * - Emerald accents for key moments only
 * - Generous negative space
 * - Distinctive typography with character
 */

/* ===================================
   i18n Language Switching
   =================================== */
/* Default: show Chinese, hide English */
.zh { display: inline !important; }
.en { display: none !important; }

/* When language is English */
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="en"] .en { display: inline !important; }

/* Block-level elements - default Chinese */
p.zh, div.zh, h1.zh, h2.zh, h3.zh, h4.zh, h5.zh, h6.zh { display: block !important; }
p.en, div.en, h1.en, h2.en, h3.en, h4.en, h5.en, h6.en { display: none !important; }

html[data-lang="en"] p.zh,
html[data-lang="en"] div.zh,
html[data-lang="en"] h1.zh,
html[data-lang="en"] h2.zh,
html[data-lang="en"] h3.zh,
html[data-lang="en"] h4.zh,
html[data-lang="en"] h5.zh,
html[data-lang="en"] h6.zh { display: none !important; }

html[data-lang="en"] p.en,
html[data-lang="en"] div.en,
html[data-lang="en"] h1.en,
html[data-lang="en"] h2.en,
html[data-lang="en"] h3.en,
html[data-lang="en"] h4.en,
html[data-lang="en"] h5.en,
html[data-lang="en"] h6.en { display: block !important; }

/* ===================================
   Announcement Bar
   =================================== */
.announcement-bar {
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
    padding: 0.5rem 1rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* Adjust header position when announcement bar exists */
body:has(.announcement-bar) .header {
    top: 36px;
}

body:has(.announcement-bar) .hero {
    padding-top: calc(8rem + 36px);
}

.announcement-bar a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.announcement-bar a:hover {
    opacity: 0.9;
}

.announcement-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.announcement-text {
    font-weight: 500;
}

.announcement-arrow {
    font-size: 1rem;
    transition: transform 0.2s;
}

.announcement-bar a:hover .announcement-arrow {
    transform: translateX(4px);
}

.announcement-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.announcement-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .announcement-bar {
        padding: 0.4rem 0.75rem;
    }

    .announcement-bar a {
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .announcement-badge {
        display: none;
    }

    .announcement-close {
        right: 0.5rem;
        font-size: 1rem;
    }

    body:has(.announcement-bar) .header {
        top: 32px;
    }

    body:has(.announcement-bar) .hero {
        padding-top: calc(6rem + 32px);
    }
}

/* ===================================
   Typography - System Fonts
   =================================== */
/* Google Fonts removed - using system font stack for consistency */

/* ===================================
   CSS Variables - Pure White Palette
   =================================== */
:root {
    /* White Background Layers */
    --bg-pure: #ffffff;
    --bg-soft: #fafbfc;
    --bg-muted: #f4f6f8;
    --bg-subtle: #eef1f4;
    --bg-accent: #e8ecf0;

    /* Emerald Accent - Used Sparingly */
    --accent-primary: #10b981;
    --accent-hover: #059669;
    --accent-light: #d1fae5;
    --accent-subtle: rgba(16, 185, 129, 0.06);
    --accent-glow: rgba(16, 185, 129, 0.12);

    /* Text Hierarchy - Rich Contrast */
    --text-heading: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-dim: #cbd5e1;

    /* Borders - Subtle Definition */
    --border-light: rgba(0, 0, 0, 0.04);
    --border-visible: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --border-accent: rgba(16, 185, 129, 0.25);

    /* Typography - System Font Stack */
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Shadows - Soft & Layered */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 8px 32px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.08), 0 32px 80px rgba(0, 0, 0, 0.06);
    --shadow-accent: 0 4px 20px rgba(16, 185, 129, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.6s;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-pure);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-heading);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-smooth);
}

/* ===================================
   Layout Container
   =================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    position: relative;
}

/* ===================================
   Navigation - Clean Floating Bar
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
    padding: 0.75rem 0;
}

.header.scrolled .nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    transition: all var(--duration-normal) var(--ease-out);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.logo-img {
    height: 44px;
    width: auto;
    transition: transform var(--duration-fast) var(--ease-out);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.header.scrolled .logo-img {
    height: 38px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    transition: width var(--duration-fast) var(--ease-out);
}

.nav-menu a:hover {
    color: var(--text-heading);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ===================================
   Buttons - Clean & Refined
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.25);
}

.btn-outline {
    background: var(--bg-pure);
    border: 1.5px solid var(--border-visible);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-soft);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.5rem 0.75rem;
}

.btn-text:hover {
    color: var(--accent-primary);
    background: var(--accent-subtle);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-heading);
    transition: all var(--duration-fast);
    border-radius: 2px;
}

/* ===================================
   Hero Section - Split Layout with 3D Focus
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-pure) 50%, var(--bg-soft) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left: Text Content */
.hero-content {
    text-align: left;
}

/* Right: 3D Scene */
#hero-canvas {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, var(--bg-muted) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border-light);
    box-shadow:
        var(--shadow-lg),
        inset 0 0 60px rgba(16, 185, 129, 0.03);
    overflow: hidden;
}

#hero-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Decorative frame around 3D */
#hero-canvas::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed var(--border-light);
    border-radius: calc(var(--radius-xl) - 8px);
    pointer-events: none;
    z-index: 2;
}

/* Hero Video Box - replaces 3D canvas */
.hero-video-box {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: transparent;
}

.hero-video-box video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

/* Hero Content */
.hero-title {
    margin-bottom: 1.25rem;
    position: relative;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
    color: var(--accent-primary);
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: 0;
    right: 0;
    height: 0.12em;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 0 0.75rem 0;
    line-height: 1.75;
}

.hero-slogan {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: "KaiTi", "STKaiti", "FangSong", serif;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    display: inline-block;
    border-left: 3px solid var(--accent-primary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Video Showcase Section */
.video-showcase {
    padding: var(--space-xl) 0;
    background: var(--bg-pure);
    position: relative;
    z-index: 1;
}

/* Video Container - Browser Mockup Style */
.hero-video {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--bg-muted);
    border: 1px solid var(--border-visible);
    box-shadow:
        var(--shadow-xl),
        0 0 0 1px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Browser-style Header Bar */
.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-muted) 100%);
    border-bottom: 1px solid var(--border-light);
    z-index: 2;
}

/* Browser Dots */
.hero-video::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 16px;
    width: 12px;
    height: 12px;
    background: #ff5f57;
    border-radius: 50%;
    box-shadow:
        20px 0 0 #febc2e,
        40px 0 0 #28c840;
    z-index: 3;
}

.hero-video video {
    width: 100%;
    display: block;
    margin-top: 40px;
}

/* Decorative floating elements around video */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-video-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-light) 0%, transparent 60%);
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
}

.hero-video-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 60px;
    height: 60px;
    background: var(--bg-muted);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    z-index: -1;
}

/* ===================================
   Trusted Section
   =================================== */
.trusted {
    padding: var(--space-lg) 0;
    background: var(--bg-pure);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.trusted-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    opacity: 0.5;
}

.trusted-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* ===================================
   Section Titles
   =================================== */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Value Props Section
   =================================== */
.value-props {
    padding: var(--space-2xl) 0;
    background: var(--bg-pure);
    position: relative;
    z-index: 1;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.value-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .value-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .value-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Cards - Clean & Elevated
   =================================== */
.value-card,
.feature-card,
.use-case-card {
    background: var(--bg-pure);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
}

.value-card:hover,
.feature-card:hover,
.use-case-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-visible);
    box-shadow: var(--shadow-lg);
}

/* Mouse Glow Effect */
.value-card::before,
.feature-card::before,
.use-case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--accent-subtle),
        transparent 40%
    );
    opacity: 0;
    transition: opacity var(--duration-normal);
    pointer-events: none;
}

.value-card:hover::before,
.feature-card:hover::before,
.use-case-card:hover::before {
    opacity: 1;
}

/* Icons */
.value-icon,
.feature-icon,
.use-case-icon {
    width: 46px;
    height: 46px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all var(--duration-normal) var(--ease-out);
}

.value-icon svg,
.feature-icon svg,
.use-case-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: all var(--duration-fast);
}

.value-card:hover .value-icon,
.feature-card:hover .feature-icon,
.use-case-card:hover .use-case-icon {
    background: var(--accent-primary);
}

.value-card:hover .value-icon svg,
.feature-card:hover .feature-icon svg,
.use-case-card:hover .use-case-icon svg {
    color: white;
}

/* Card Text */
.value-card h3,
.feature-card h3,
.use-case-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.value-card p,
.feature-card p,
.use-case-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: var(--space-2xl) 0;
    background: var(--bg-soft);
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* ===================================
   Use Cases Section
   =================================== */
.use-cases {
    padding: var(--space-2xl) 0;
    background: var(--bg-pure);
    position: relative;
    z-index: 1;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Formats and Platforms sections removed - replaced by Tutorials section */

/* ===================================
   Pricing Section
   =================================== */
.pricing {
    padding: var(--space-2xl) 0;
    background: var(--bg-soft);
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    gap: 1.25rem;
}

.pricing-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1400px;
    gap: 1rem;
}

.pricing-grid-5 .pricing-card {
    padding: 1.5rem;
}

.pricing-card {
    background: var(--bg-pure);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-visible);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-6px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.pricing-price .price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.pricing-price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-features .check {
    color: var(--accent-primary);
    font-weight: 600;
}

.pricing-features .cross {
    color: var(--text-dim);
}

.btn-block {
    width: 100%;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 1300px) {
    .pricing-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
}

@media (max-width: 1100px) {
    .pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

    .pricing-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-grid-4 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-grid-5 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-grid-5 .pricing-card {
        padding: 2rem;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: translateY(-6px);
    }
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    position: relative;
    padding: var(--space-2xl) 0;
    text-align: center;
    background: var(--bg-muted);
    overflow: hidden;
    z-index: 1;
}

/* Subtle Accent Glow */
.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.5;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.cta p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Simple CTA Section */
.cta-simple {
    padding: 5rem 0;
    text-align: center;
    background: var(--bg-pure);
}

.cta-simple h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2rem;
}

.cta-simple .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .cta-simple {
        padding: 3rem 0;
    }

    .cta-simple h2 {
        font-size: 1.35rem;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--space-xl) 0 2rem;
    background: var(--bg-soft);
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo-link {
    display: block;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.footer-logo {
    max-width: 120px;
    height: auto;
}

#p5-logo-container {
    width: 240px;
    height: 131px;
    position: relative;
    overflow: visible;
    margin-bottom: 0.75rem;
}

#p5-logo-container canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.footer-slogan {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--duration-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-company {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-company-en {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-icp {
    margin-top: 0.5rem;
}

.footer-icp a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-icp a:hover {
    color: var(--accent-primary);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Load Animations */
.hero-title {
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-slogan {
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-actions {
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-video {
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

#hero-canvas {
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-logo-link {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    #p5-logo-container {
        margin: 0 auto 0.75rem;
    }
}

@media (max-width: 1024px) {
    .value-grid,
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero responsive */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    #hero-canvas {
        order: 2;
        height: 350px;
    }

    .hero-video-box {
        order: 2;
        height: 350px;
    }

    .hero-subtitle {
        margin: 0 auto 0.75rem;
    }

    .hero-slogan {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu,
    .nav-actions {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-pure);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s var(--ease-out);
        z-index: 100;
    }

    .nav-menu {
        gap: 0;
        align-items: stretch;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-actions {
        top: auto;
        bottom: 0;
        height: auto;
        right: -100%;
        width: 280px;
        padding: 1.5rem 2rem;
        border-top: 1px solid var(--border-light);
        flex-direction: row;
        justify-content: center;
    }

    /* Mobile menu open state */
    .nav-menu.active,
    .nav-actions.active {
        right: 0;
    }

    /* Menu overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero {
        padding: 5rem 0 2rem;
        min-height: auto;
    }

    #hero-canvas {
        height: 280px;
    }

    .hero-video-box {
        height: 280px;
    }

    .hero-slogan {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        letter-spacing: 0.1em;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Video */
    .video-showcase {
        padding: var(--space-lg) 0;
    }

    /* Grids */
    .value-grid,
    .use-cases-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Footer - 2 column compact layout */
    .footer {
        padding: var(--space-lg) 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        text-align: left;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .footer-logo-link {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    #p5-logo-container {
        width: 180px;
        height: 98px;
        margin: 0 auto;
    }

    .footer-links {
        text-align: left;
    }

    .footer-links h4 {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* Section Spacing */
    .value-props,
    .features,
    .use-cases,
    .tutorials,
    .cta {
        padding: var(--space-xl) 0;
    }

    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--space-md);
    }

    /* CTA */
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Pricing */
    .pricing {
        padding: var(--space-xl) 0;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-note {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    .trusted-logos {
        gap: 1.5rem;
    }

    .trusted-logo {
        font-size: 0.9rem;
    }

    .value-card,
    .feature-card,
    .use-case-card {
        padding: 1.25rem;
    }

    .platform-item {
        min-width: 100px;
        padding: 1rem;
    }

    .platform-item svg {
        width: 28px;
        height: 28px;
    }

    .platform-item span {
        font-size: 0.8rem;
    }

    /* Footer - single column on very small */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    /* Hero adjustments */
    #hero-canvas {
        height: 220px;
    }

    .hero-video-box {
        height: 220px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Formats tags */
    .format-tags {
        gap: 0.375rem;
    }

    .tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Video browser mockup */
    .hero-video::before {
        height: 32px;
    }

    .hero-video::after {
        top: 11px;
        left: 12px;
        width: 10px;
        height: 10px;
        box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
    }

    .hero-video video {
        margin-top: 32px;
    }

    /* CTA section */
    .cta h2 {
        font-size: 1.5rem;
    }

    .cta p {
        font-size: 1rem;
    }

    /* Pricing */
    .pricing-header h3 {
        font-size: 1.1rem;
    }

    .pricing-price .price {
        font-size: 2rem;
    }
}

/* ===================================
   Scroll Reveal Classes
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.15s; }
.reveal-delay-3 { transition-delay: 0.2s; }
.reveal-delay-4 { transition-delay: 0.25s; }
.reveal-delay-5 { transition-delay: 0.3s; }
.reveal-delay-6 { transition-delay: 0.35s; }

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-accent);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ===================================
   Selection
   =================================== */
::selection {
    background: var(--accent-light);
    color: var(--text-heading);
}

/* ===================================
   Cookie Consent Banner
   =================================== */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-pure);
    border-top: 1px solid var(--border-visible);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
    z-index: 9999;
    transform: translateY(0);
    transition: transform 0.3s var(--ease-out);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-content a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--accent-hover);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    border: none;
}

.cookie-btn-primary {
    background: var(--accent-primary);
    color: white;
}

.cookie-btn-primary:hover {
    background: var(--accent-hover);
}

.cookie-btn-outline {
    background: transparent;
    border: 1px solid var(--border-visible);
    color: var(--text-secondary);
}

.cookie-btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   Legal Pages (Privacy, Terms)
   =================================== */
.legal-page {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    background: var(--bg-soft);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-pure);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.legal-content h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.legal-content ul {
    margin: 0.75rem 0 1rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.legal-content a {
    color: var(--accent-primary);
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .legal-content h1 {
        font-size: 1.75rem;
    }
}

/* ===================================
   Use Cases Section Redesign
   =================================== */
.use-cases-redesign {
    background: #f8fafb;
    padding: 6rem 0;
}

.use-cases-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-card-new {
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.use-case-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.use-case-visual {
    height: 200px;
    border-radius: 1.25rem;
    margin: 0.75rem;
    margin-bottom: 0;
    overflow: hidden;
    background: var(--bg-soft);
}

.use-case-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.use-case-card-new:hover .use-case-visual img {
    transform: scale(1.08);
}

.use-case-content {
    padding: 1.5rem;
    padding-top: 1rem;
}

.use-case-card-new h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.use-case-card-new p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Unified Card Base - White Aesthetic */
.use-case-green,
.use-case-blue,
.use-case-purple,
.use-case-orange {
    background: var(--bg-pure);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.use-case-green::before,
.use-case-blue::before,
.use-case-purple::before,
.use-case-orange::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 1.5rem 0 0 1.5rem;
}

.use-case-card-new h3 {
    color: var(--text-heading);
}

.use-case-card-new p {
    color: var(--text-secondary);
    opacity: 1;
}

/* Green Card - Education */
.use-case-green::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.use-case-green .use-case-visual {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

/* Blue Card - Product */
.use-case-blue::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.use-case-blue .use-case-visual {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* Purple Card - Healthcare */
.use-case-purple::before {
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
}

.use-case-purple .use-case-visual {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

/* Orange Card - Industrial */
.use-case-orange::before {
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
}

.use-case-orange .use-case-visual {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}

/* Use Cases Responsive */
@media (max-width: 1024px) {
    .use-cases-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .use-cases-redesign {
        padding: 4rem 0;
    }

    .use-cases-grid-new {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .use-case-visual {
        height: 150px;
    }
}

/* ===================================
   Tutorials Section
   =================================== */
.tutorials {
    background: var(--bg-soft);
    padding: 6rem 0;
}

.tutorials-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tutorials-content {
    max-width: 480px;
}

.tutorials-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.tutorials-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tutorials-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid white;
    margin-left: -8px;
}

.avatar-stack .avatar:first-child {
    margin-left: 0;
}

.proof-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Cards Stack */
.tutorials-cards {
    position: relative;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tutorial-card {
    position: absolute;
    width: 320px;
    background: white;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.tutorial-card-back-2 {
    transform: translateX(50px) translateY(-15px) rotate(8deg);
    opacity: 0.5;
    z-index: 1;
    border: 1px solid var(--border-light);
}

.tutorial-card-back-2 .card-placeholder {
    height: 320px;
    background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-soft) 100%);
    border-radius: 1rem;
    margin: 0.75rem;
}

.tutorial-card-back-1 {
    transform: translateX(25px) translateY(-8px) rotate(4deg);
    opacity: 0.75;
    z-index: 2;
    border: 1px solid var(--border-light);
}

.tutorial-card-back-1 .card-placeholder {
    height: 320px;
    background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-soft) 100%);
    border-radius: 1rem;
    margin: 0.75rem;
}

.tutorial-card-front {
    z-index: 3;
    padding: 2rem;
}

.tutorial-card-front:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.tutorial-card .card-icon {
    width: 48px;
    height: 48px;
    background: #ecfdf5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.tutorial-card .card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #6ee7b7;
}

.tutorial-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.tutorial-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-topics .topic {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
}

.card-episodes {
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
    letter-spacing: 0.05em;
}

/* Tutorials Responsive */
@media (max-width: 1024px) {
    .tutorials-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .tutorials-content {
        max-width: 100%;
    }

    .tutorials-social-proof {
        justify-content: center;
    }

    .tutorials-cards {
        height: 320px;
    }

    .tutorial-card {
        width: 280px;
    }
}

@media (max-width: 640px) {
    .tutorials {
        padding: 4rem 0;
    }

    .tutorials-title {
        font-size: 1.75rem;
    }

    .tutorials-cards {
        height: 300px;
    }

    .tutorial-card {
        width: 260px;
    }

    .tutorial-card-front {
        padding: 1.5rem;
    }
}

/* ===================================
   Showcase Section
   =================================== */
.showcase {
    background: var(--bg-pure);
    padding: 6rem 0;
}

.showcase-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.showcase-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-pure);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.showcase-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.showcase-visual {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.showcase-visual svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.showcase-visual-green {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #10b981;
}

.showcase-visual-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #3b82f6;
}

.showcase-visual-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    color: #8b5cf6;
}

.showcase-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.showcase-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.showcase-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.showcase-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.showcase-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #34d399;
    text-decoration: none;
    transition: color 0.2s ease;
}

.showcase-link:hover {
    color: #10b981;
}

/* Showcase Responsive */
@media (max-width: 1024px) {
    .showcase-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .showcase-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .showcase-content {
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .showcase {
        padding: 4rem 0;
    }
}

/* ===================================
   Features Section Redesign
   =================================== */
.features-redesign {
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
    padding: 6rem 0;
}

.features-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.features-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.features-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.features-title .highlight {
    color: var(--accent-primary);
}

.features-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.features-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Features Grid New */
.features-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card-new {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-card-new.featured {
    grid-row: span 2;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid var(--accent-primary);
}

.feature-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--accent-primary);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-icon-new {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #059669 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon-new svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-card-new h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card-new p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card-new.featured h3 {
    font-size: 1.5rem;
}

.feature-card-new.featured p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.feature-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-highlights li {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Features Redesign Responsive */
@media (max-width: 1024px) {
    .features-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-stats {
        justify-content: center;
    }

    .features-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card-new.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .features-redesign {
        padding: 4rem 0;
    }

    .features-title {
        font-size: 2rem;
    }

    .features-stats {
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .features-grid-new {
        grid-template-columns: 1fr;
    }

    .feature-card-new.featured {
        grid-column: span 1;
    }
}

/* ===================================
   AI Assistant Float Button & Dialog
   =================================== */
.ai-assistant-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.ai-assistant-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5);
}

.ai-assistant-fab.active {
    transform: rotate(90deg);
}

.ai-assistant-fab svg {
    width: 24px;
    height: 24px;
    color: white;
}

.ai-assistant-dialog {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ai-assistant-dialog.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-dialog-header {
    padding: 1rem 1.25rem;
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-dialog-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.ai-dialog-close:hover {
    opacity: 1;
}

.ai-dialog-body {
    flex: 1;
    overflow: hidden;
}

.ai-dialog-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 480px) {
    .ai-assistant-fab {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    .ai-assistant-fab svg {
        width: 20px;
        height: 20px;
    }

    .ai-assistant-dialog {
        bottom: 4.5rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        height: 60vh;
    }
}
