/* ============================================
   AlphaSub — Professional Subtitling for macOS
   Website Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-bg: #09090b;
    --color-surface: #111114;
    --color-surface-2: #18181b;
    --color-surface-3: #1e1e22;
    --color-border: #27272a;
    --color-border-hover: #3f3f46;
    --color-text: #fafafa;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-primary: #6366f1;
    --color-primary-hover: #818cf8;
    --color-primary-glow: rgba(99, 102, 241, 0.15);
    --color-accent: #22d3ee;
    --color-accent-glow: rgba(34, 211, 238, 0.1);
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 60px var(--color-primary-glow);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 64px;
}

/* --- 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;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.nav.scrolled {
    border-bottom-color: var(--color-border);
    background: rgba(9, 9, 11, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.nav-logo:hover {
    color: var(--color-primary-hover);
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: var(--color-surface-2);
    border-radius: var(--radius-sm);
    padding: 2px;
    border: 1px solid var(--color-border);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}

.lang-btn:hover {
    color: var(--color-text-secondary);
}

.lang-btn.active {
    background: var(--color-surface-3);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

/* --- Nav CTA --- */
.nav-cta {
    background: var(--color-primary) !important;
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-1px);
}

/* --- Mobile Menu Toggle --- */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-menu a:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}

.mobile-cta {
    background: var(--color-primary) !important;
    color: white !important;
    text-align: center;
    margin-top: 8px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, var(--color-primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-dot {
    width: 2px;
    height: 24px;
    background: var(--color-border);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.scroll-dot::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--color-primary);
    border-radius: 1px;
    animation: scrollDown 2s ease-in-out infinite;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--color-surface-2);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-3);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Section Styles --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-glow);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- Features Section --- */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-glow);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--color-primary);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* --- Formats Section --- */
.formats {
    padding: 120px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.format-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.format-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.format-card:hover::before {
    opacity: 1;
}

.format-card.critical::before {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.format-card.high::before {
    background: linear-gradient(90deg, #f59e0b, #eab308);
}

.format-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.format-card.critical .format-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.format-card.high .format-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.format-card h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.format-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* --- NLE Section --- */
.nle {
    padding: 120px 0;
}

.nle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.nle-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.nle-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.nle-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.nle-logo svg {
    width: 100%;
    height: 100%;
}

.nle-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.nle .trademark-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 24px;
    line-height: 1.5;
}

/* --- AI Section --- */
.ai-section {
    padding: 120px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ai-text .section-tag {
    margin-bottom: 16px;
}

.ai-text .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.ai-text .section-desc {
    text-align: left;
    margin-bottom: 32px;
}

.ai-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.ai-features li svg {
    width: 20px;
    height: 20px;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.ai-waveform {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    height: 120px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
}

.ai-wave-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 2px;
    animation: wave var(--i * 0.15 + 0.8s) ease-in-out infinite alternate;
    opacity: 0.8;
}

.ai-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Pro Features --- */
.pro-features {
    padding: 120px 0;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pro-item {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.pro-item:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.pro-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-glow);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
}

.pro-icon svg {
    width: 22px;
    height: 22px;
}

.pro-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pro-item p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- Open Source Section --- */
.open-source {
    padding: 120px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.os-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.os-text .section-tag {
    margin-bottom: 16px;
}

.os-text .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.os-text .section-desc {
    text-align: left;
    margin-bottom: 12px;
}

.os-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.os-visual {
    position: relative;
}

.os-code {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.os-code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
}

.os-code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.os-code-dot.red { background: #ef4444; }
.os-code-dot.yellow { background: #f59e0b; }
.os-code-dot.green { background: #22c55e; }

.os-code-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.os-code pre {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    overflow-x: auto;
    color: var(--color-text-secondary);
}

.code-keyword { color: #c084fc; }
.code-type { color: #67e8f9; }
.code-number { color: #fbbf24; }

/* --- Pricing Section --- */
.pricing {
    padding: 120px 0;
    background: var(--color-surface);
}

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

.pricing-content .section-tag {
    margin-bottom: 16px;
}

.pricing-content .section-title {
    margin-bottom: 16px;
}

.pricing-content .section-desc {
    margin-bottom: 48px;
    color: var(--color-text-secondary);
}

.pricing-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.pricing-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 8px;
}

.pricing-currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 12px;
}

.pricing-value {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -2px;
}

.pricing-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

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

.pricing-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.btn-pricing {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
}

.pricing-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Beta "free now" banner + future-price caption */
.beta-free-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(22, 163, 74, 0.10);
    border: 1px solid rgba(22, 163, 74, 0.35);
    border-radius: var(--radius-md, 12px);
    padding: 12px 16px;
    margin-bottom: 24px;
}

.beta-free-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #16a34a;
}

.beta-free-text {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-future-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Education site-license callout */
.edu-callout {
    display: flex;
    gap: 20px;
    text-align: left;
    align-items: flex-start;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-top: 24px;
}

.edu-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
}

.edu-icon svg { width: 24px; height: 24px; }

.edu-text h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: var(--color-text);
}

.edu-text p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0 0 16px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .edu-callout { flex-direction: column; gap: 14px; }
}

/* --- Download Section --- */
.download {
    padding: 120px 0;
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-content .section-tag {
    margin-bottom: 16px;
}

.download-content .section-title {
    margin-bottom: 16px;
}

.download-content .section-desc {
    margin-bottom: 48px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.download-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: left;
    transition: all var(--transition-base);
}

.download-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.download-card-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.download-channel {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-surface-3);
    padding: 3px 10px;
    border-radius: 100px;
}

.download-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.download-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.download-features li {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-features li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 700;
    font-size: 0.8rem;
}

.download-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-text);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 200%; }
}

@keyframes wave {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1); }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid,
    .formats-grid,
    .nle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

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

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .features-grid,
    .formats-grid,
    .nle-grid {
        grid-template-columns: 1fr;
    }

    .ai-content,
    .os-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ai-text .section-title,
    .ai-text .section-desc,
    .os-text .section-title,
    .os-text .section-desc {
        text-align: center;
    }

    .ai-features {
        max-width: 400px;
        margin: 0 auto;
    }

    .pro-grid {
        grid-template-columns: 1fr;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .os-actions {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .lang-switcher {
        gap: 1px;
    }

    .lang-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
}

/* ============================================
   Additions: hero shot, screenshots, lightbox,
   beta modal, download, format tiers
   ============================================ */

/* --- Window frame (product shots) --- */
.window-frame {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg), 0 0 80px var(--color-primary-glow);
}
.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
}
.window-dot { width: 11px; height: 11px; border-radius: 50%; }
.window-dot.red { background: #ff5f57; }
.window-dot.yellow { background: #febc2e; }
.window-dot.green { background: #28c840; }
.window-frame img { width: 100%; display: block; }

/* --- Hero shot --- */
.hero { min-height: auto; }
.hero-shot {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 64px auto 0;
    animation: fadeInUp 0.7s ease-out 0.4s both;
}

/* --- Screenshots --- */
.screenshots { padding: 120px 0; background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.shot {
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
    cursor: zoom-in;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.shot:hover { transform: translateY(-4px); border-color: var(--color-border-hover); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: 200px; object-fit: cover; object-position: top left; display: block; }
.shot figcaption {
    padding: 12px 14px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 95vw; max-height: 90vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close {
    position: absolute; top: 24px; right: 28px;
    background: none; border: none; color: #fff;
    font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* --- Format tiers --- */
.formats-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-success);
    margin: 8px 0 20px;
}
.formats-group-title.pro { color: var(--color-primary-hover); margin-top: 48px; }
.formats-grid + .formats-group-title { margin-top: 48px; }
.format-card.free::before { background: var(--color-success); }
.format-card.pro::before { background: var(--color-primary); }
.format-card.free .format-badge { background: rgba(34,197,94,0.12); color: var(--color-success); }
.format-card.pro .format-badge { background: rgba(99,102,241,0.14); color: var(--color-primary-hover); }

/* --- Beta / pricing extras --- */
.beta { padding: 120px 0; }
.pricing-prices { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 8px; }
.pricing-final { text-align: left; }
.pricing-final-label { display: block; font-size: 0.8rem; color: var(--color-text-muted); }
.pricing-strike { font-size: 1.1rem; color: var(--color-text-secondary); }
.pricing-strike { text-decoration: none; }

/* --- Download (2-column) --- */
.download { padding: 120px 0; }
.download-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 56px;
}
.download-card:hover { transform: none; box-shadow: none; border-color: var(--color-border); }
.download-text .section-tag { margin-bottom: 16px; }
.download-text .section-title { text-align: left; margin-bottom: 16px; }
.download-text .section-desc { text-align: left; margin: 0 0 28px; }
.download-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.download-req { font-size: 0.82rem; color: var(--color-text-muted); }
.window-frame.small { max-width: 100%; }
.window-frame.small img { height: auto; }

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease-out;
}
.modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; color: var(--color-text-muted);
    font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--color-text); }
.modal-head { text-align: center; margin-bottom: 24px; }
.modal-icon {
    width: 48px; height: 48px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-primary-glow);
    color: var(--color-primary-hover);
}
.modal-icon svg { width: 24px; height: 24px; }
.modal-head h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.modal-sub { font-size: 0.88rem; color: var(--color-text-secondary); line-height: 1.5; }
.modal-step { display: flex; flex-direction: column; gap: 14px; }
.modal-step[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--color-text-secondary); text-align: left; }
.field input {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}
.field input:focus { outline: none; border-color: var(--color-primary); }
.code-input {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    letter-spacing: 0.4em;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    width: 100%;
}
.code-input:focus { outline: none; border-color: var(--color-primary); }
.modal-codehint { font-size: 0.88rem; color: var(--color-text-secondary); text-align: center; }
.modal-error { color: #f87171; font-size: 0.82rem; min-height: 1em; text-align: center; margin: 0; }
.btn-link { background: none; border: none; color: var(--color-primary-hover); font-size: 0.85rem; cursor: pointer; padding: 4px; }
.btn-link:hover { text-decoration: underline; }
.modal-done { text-align: center; align-items: center; }
.done-check {
    width: 56px; height: 56px; margin-bottom: 6px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(34,197,94,0.12); color: var(--color-success);
}
.done-check svg { width: 28px; height: 28px; }
.modal-done h4 { font-size: 1.2rem; font-weight: 700; }
.modal-done p { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.6; }

/* --- Responsive additions --- */
@media (max-width: 900px) {
    .shots-grid { grid-template-columns: repeat(2, 1fr); }
    .download-card { grid-template-columns: 1fr; padding: 36px; }
    .download-visual { order: -1; }
}
@media (max-width: 560px) {
    .shots-grid { grid-template-columns: 1fr; }
    .shot img { height: auto; }
    .pricing-prices { flex-direction: column; gap: 8px; }
    .hero-shot { margin-top: 40px; }
}
/* ============================================================
   Compare (Free vs Pro) + Free→Pro hand-off  — added 1.4.0
   ============================================================ */
.compare { padding: 100px 0; background: var(--color-bg); }
.compare .section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.compare .section-desc { max-width: 60ch; margin-left: auto; margin-right: auto; }

.compare-table-wrap { overflow-x: auto; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-md); }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare-table thead th {
  text-align: center; padding: 18px 20px; border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem; font-weight: 700; background: var(--color-surface-2); }
table.compare-table thead th.cf { text-align: left; width: 56%; color: var(--color-text-secondary);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
table.compare-table thead th.h-free { color: var(--color-success); }
table.compare-table thead th.h-pro  { color: var(--color-warning); }
table.compare-table thead th small { display: block; font-weight: 500; font-size: 0.72rem;
  color: var(--color-text-muted); letter-spacing: 0; text-transform: none; margin-top: 2px; }
table.compare-table tbody td { padding: 14px 20px; border-top: 1px solid var(--color-border);
  font-size: 0.92rem; vertical-align: middle; }
table.compare-table tbody td.cf { color: var(--color-text); }
table.compare-table tbody td.cc { text-align: center; width: 22%; }
table.compare-table tbody tr:hover td { background: color-mix(in srgb, var(--color-accent) 5%, transparent); }
table.compare-table tbody tr.price td { border-top: 2px solid var(--color-border-hover); font-weight: 700; }
table.compare-table tbody tr.price .amt { font-size: 1.15rem; }
table.compare-table tbody tr.price .amt.free { color: var(--color-success); }
table.compare-table tbody tr.price .amt.pro  { color: var(--color-warning); }

.ck { display: inline-flex; align-items: center; justify-content: center; }
.ck.yes { width: 24px; height: 24px; border-radius: 50%;
  background: color-mix(in srgb, var(--color-success) 18%, transparent); color: var(--color-success); }
.ck.yes svg { width: 14px; height: 14px; }
.ck.no { color: var(--color-text-muted); font-weight: 700; font-size: 1.1rem; }
.ck.beta { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-accent); border: 1px solid color-mix(in srgb, var(--color-accent) 45%, transparent);
  padding: 3px 9px; border-radius: 100px; }
.compare-foot { text-align: center; color: var(--color-text-muted); font-size: 0.85rem; margin: 20px auto 0; max-width: 64ch; }

/* Hand-off band */
.handoff { margin-top: 64px; border: 1px solid color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
  border-radius: var(--radius-lg); padding: 40px; background:
  linear-gradient(130deg, color-mix(in srgb, var(--color-accent) 8%, var(--color-surface)), var(--color-surface) 60%); }
.handoff .section-tag { color: var(--color-accent); background: var(--color-accent-glow); }
.handoff h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.handoff > p { color: var(--color-text-secondary); max-width: 74ch; margin: 0; line-height: 1.7; }
.handoff-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 28px; }
.handoff-step { background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 18px 20px; }
.handoff-step .hs-k { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.handoff-step.s1 .hs-k { color: var(--color-success); }
.handoff-step.s2 .hs-k { color: var(--color-accent); }
.handoff-step.s3 .hs-k { color: var(--color-warning); }
.handoff-step h4 { margin: 8px 0 6px; font-size: 1rem; }
.handoff-step p { margin: 0; font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.55; }
.handoff-arrow { display: flex; align-items: center; color: var(--color-text-muted); font-size: 1.4rem; }
@media (max-width: 860px) {
  .handoff-flow { grid-template-columns: 1fr; }
  .handoff-arrow { display: none; }
  .handoff { padding: 28px; }
}

/* Download title: second clause smaller so the line fits (added 1.4.0) */
.download-content .section-title .dl-sub { font-size: 0.62em; font-weight: 700; color: var(--color-text-secondary); }
