.hero-trial-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 32px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    position: relative;
}

.hero-trial-banner .trial-timer {
    position: absolute;
    bottom: -12px;
    right: -12px;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: monospace;
    border: 2px solid var(--bg-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 115px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

.hero-trial-banner:hover {
    background: rgba(88, 166, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.hero-trial-banner:hover .trial-timer {
    transform: scale(1.05);
}

.btn-trial {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-color) !important;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    transition: all 0.2s;
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .btn-trial .trial-timer {
        position: absolute;
        bottom: -10px;
        right: -5px;
        background: #ef4444;
        color: #fff;
        padding: 2px 6px;
        border-radius: 6px;
        font-size: 0.65rem;
        font-weight: 800;
        font-family: monospace;
        border: 2px solid var(--bg-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        z-index: 10;
        min-width: 90px;
        text-align: center;
    }
}

.btn-trial:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: var(--accent-color);
}

.hero-trial-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 32px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.hero-trial-banner:hover {
    background: rgba(88, 166, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.hero-trial-banner .gift-icon {
    font-size: 1.1rem;
}

.hero-trial-banner .arrow {
    opacity: 0.6;
    transition: transform 0.2s;
}

.hero-trial-banner:hover .arrow {
    transform: translateX(4px);
    opacity: 1;
}

:root {
    /* Dark Dev Tool Theme */
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --accent-color: #58a6ff;
    --highlight-purple: #bc8cff;
    --button-bg: #21262d;
    --button-text: #ffffff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --card-bg: #161b22;
    --card-border: #30363d;
}

.git-sha-badge {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace;
    font-size: 10px;
    color: var(--text-color);
    opacity: 0.3;
    z-index: 9999;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Nav */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
    /* subtle border */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    /* Reduced vertical padding slightly for sticky header */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.logo-icon {
    background: #fff;
    color: #000;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.9rem;
}

.logo-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

/* Demo Overlay - Toasts */
.demo-overlay-toast {
    position: absolute;
    z-index: 500;
    pointer-events: none;
}

.demo-overlay-toast.bottom-left {
    bottom: 20px;
    left: 20px;
}

.demo-overlay-toast.top-left {
    top: 20px;
    left: 20px;
}

.key-toast {
    background: #161b22;
    border: 1px solid var(--card-border);
    padding: 8px 12px;
    border-radius: 6px;
    color: #8b949e;
    font-family: 'Menlo', monospace;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;

    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.key-toast.active {
    opacity: 1;
    transform: translateY(0);
}

.key-val {
    color: #58a6ff;
    font-weight: 700;
    background: rgba(88, 166, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.status-toast {
    background: #161b22;
    border: 1px solid var(--card-border);
    padding: 8px 12px;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.status-toast:hover {
    border-color: #58a6ff;
}

.status-toast strong {
    color: #fff;
    font-weight: 600;
}

.status-icon {
    font-size: 1rem;
}

.version-badge {
    background: #30363d;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 12px;
    color: #8b949e;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

@media (min-width: 769px) {
    .navbar.scrolled .nav-link-hide {
        display: none;
    }
    
    .btn-trial .trial-timer {
        display: none !important;
    }
}

.btn-primary,
.store-badge.primary {
    background: var(--button-bg);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid var(--card-border);
    color: var(--button-text);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover,
.store-badge.primary:hover {
    background: #30363d;
    transform: translateY(-1px);
    border-color: var(--accent-color);
}

.btn-secondary,
.store-badge.secondary {
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid var(--card-border);
    color: var(--text-color);
    opacity: 0.7;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-secondary:hover,
.store-badge.secondary:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-color: #8b949e;
}

.store-badge.big {
    font-size: 1.1rem;
    padding: 16px 32px !important;
}

.badges .store-badge.primary {
    padding: 12px 24px;
}

.badges .store-badge.secondary {
    padding: 10px 20px;
}

.pro-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-trial-link {
    color: var(--text-color);
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.hero-trial-link span {
    text-decoration: underline;
    color: var(--accent-color);
    text-underline-offset: 4px;
}

.hero-trial-link:hover {
    opacity: 1;
}

.hero-trial-link:hover span {
    color: #82bfff; /* Slightly lighter blue on hover */
}

/* Hero */
.hero-section {
    text-align: center;
    padding: 80px 20px 40px;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.highlight-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--highlight-purple);
    z-index: -1;
    opacity: 0.8;
}

.badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
}

.badges .store-badge {
    padding: 12px 24px;
}

.featured-badge {
    color: #8b949e;
    font-size: 0.8rem;
    border-left: 1px solid var(--card-border);
    padding-left: 20px;
}

.featured-badge strong {
    color: var(--text-color);
    display: block;
}

/* App Showcase */
.app-showcase {
    max-width: 1000px;
    margin: 0 auto 100px;
    text-align: center;
    perspective: 1000px;
}

.demo-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #c9d1d9;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.demo-section-title .highlight {
    color: #58a6ff;
    padding: 2px 6px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 4px;
}

.app-window {
    background: #0d1117;
    border-radius: 20px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--card-border);
}

.app-window:hover {
    transform: translateY(-5px);
}

.window-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #FF5F56;
}

.yellow {
    background: #FFBD2E;
}

.green {
    background: #27C93F;
}

.app-content-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    background: radial-gradient(circle at center, #161b22 0%, #0d1117 100%);
}

.placeholder-gradient {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #a855f7, #3b82f6);
    filter: blur(80px);
    border-radius: 50%;
    position: absolute;
    opacity: 0.3;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instruction-text {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #8b949e;
    letter-spacing: 1px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.feature-item {
    text-align: center;
    position: relative;
}

.feature-item .pro-badge {
    top: 0;
    right: 50%;
    transform: translateX(45px);
    /* Position it near the top-right of the 96px icon box */
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 16px;
    margin-bottom: 24px;
    background: transparent;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

.highlight-oval {
    border: 2px solid var(--highlight-purple);
    border-radius: 50%;
    padding: 2px 8px;
    white-space: nowrap;
}

/* Footer */
.bottom-cta {
    text-align: center;
    margin-bottom: 150px;
}

.purchase-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: #8b949e;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-align: center;
    opacity: 0.6;
}

.purchase-banner:hover {
    opacity: 1;
}

.purchase-banner strong {
    color: #c9d1d9;
    font-weight: 600;
}

.purchase-banner a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 600;
}

.purchase-banner a:hover {
    text-decoration: underline;
}

.site-footer {
    text-align: center;
    position: relative;
    padding-bottom: 40px;
    overflow: hidden;
}

.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-icons {
        flex-direction: column;
        gap: 12px;
    }
}

.footer-icons .social-icon {
    background: var(--card-bg);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: background 0.2s;
    border: 1px solid var(--card-border);
}

.footer-icons .social-icon:hover {
    background: #30363d;
}

.big-logo-watermark {
    font-size: 15rem;
    font-weight: 800;
    color: #f0ebe4;
    line-height: 0.8;
    user-select: none;
    pointer-events: none;
    margin-bottom: -60px;
}

/* Demo Desktop */
.demo-desktop {
    background: #0d1117;
    border-radius: 20px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--card-border);
    margin: 0 auto;
    max-width: 1000px;
}

/* Demo Windows */
.demo-window {
    position: absolute;
    width: 45%;
    height: 55%;
    background: #161b22;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    /* Optimize transition: Avoid 'all', target specific properties for performance */
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    cursor: default;
    /* Default non-active state */
    opacity: 1;
    transform: scale(0.98);
    z-index: 10;
    overflow: hidden;
    /* Fix broken corners */
    will-change: transform, opacity;
    /* Hint browser */
}

/* ... */

.status-toast {
    background: #161b22;
    border: 1px solid var(--card-border);
    padding: 8px 12px;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    /* Clickable */
    pointer-events: auto;
    /* Enable clicks */
}

.status-toast-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.demo-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(1);
}

.status-toast:hover {
    border-color: #58a6ff;
    color: #fff;
}

.demo-window.active {
    opacity: 1;
    transform: scale(1);
    z-index: 100;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-color: #58a6ff;
}

.window-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
}

.window-controls {
    position: absolute;
    left: 16px;
}

.window-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.7;
}

.window-content {
    flex: 1;
    padding: 20px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.9rem;
    overflow: hidden;
}

/* Code Content - Left Aligned */
.code-content {
    color: #e6edf3;
    padding: 0;
    text-align: left;
    /* Explicitly left aligned */
}

.k {
    color: #ff7b72;
}

/* keyword */
.v {
    color: #79c0ff;
}

/* variable */
.s {
    color: #a5d6ff;
}

/* string */
.indent {
    padding-left: 20px;
}

/* Terminal Content */
.term-content {
    color: #c9d1d9;
}

.prompt {
    color: #7ee787;
    margin-right: 8px;
}

.cmd {
    color: #fff;
}

.success {
    color: #7ee787;
    opacity: 0.8;
    margin-top: 4px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Chat Content - Fixed Alignment */
.chat-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically for demo look */
    padding: 20px;
    gap: 12px;
    align-items: flex-start;
}

.msg {
    padding: 8px 14px;
    border-radius: 18px;
    /* More rounded like standard chat */
    font-size: 0.85rem;
    max-width: 80%;
    line-height: 1.4;
    position: relative;
}

.msg.received {
    background: #21262d;
    color: #e6edf3;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    text-align: left;
    /* Explicitly ensure text is left aligned */
}

.msg.sent {
    background: #1f6feb;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.fake-input {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: default;
}

/* Settings Content */
.settings-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    /* Restore padding */
    gap: 0;
    background: #161b22;
}

.settings-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 8px;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.settings-section-label:first-child {
    margin-top: 0;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #c9d1d9;
}

.settings-item:last-child {
    border-bottom: none;
}

.setting-value {
    color: #58a6ff;
}

/* Toggle Switch */
.toggle-switch {
    width: 32px;
    height: 18px;
    background: #30363d;
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch.active {
    background: #238636;
    /* GitHub green */
}

.toggle-switch.active::after {
    transform: translateX(14px);
}


/* Settings Dark Mode REMOVED OLD CLASSES */

/* Demo Overlay */
.demo-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    text-align: center;
    pointer-events: none;
}

.demo-status {
    background: #0d1117;
    /* Solid color, no blur */
    color: #58a6ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    border: 1px solid #58a6ff;
    display: inline-block;
}

.demo-instruction {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.key-visualizer {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
    height: 80px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.key-visualizer.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Demo Dock */
.demo-dock {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #161b22;
    padding: 8px 12px;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    border: 1px solid var(--card-border);
    z-index: 1000;
}

/* Dock Item - Fixed Container */
.dock-item {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    cursor: pointer;
    z-index: 10;
}

/* Icon handles the movement/scale */
.dock-icon {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    position: relative;
    z-index: 20;
    /* Icon on top */
}

.dock-item:hover .dock-icon {
    transform: scale(1.1) translateY(-10px);
}

.dock-app-icon {
    width: 28px;
    height: 28px;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dock-item.active {
    background: rgba(255, 255, 255, 0.15);
    /* Slightly less bright */
    box-shadow: none;
    /* Remove shadow for performance */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border instead */
}

/* Remove old pseudo-element dot */

/* Dock Dots */
.dock-dots {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    pointer-events: none;
}

.dock-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    /* Gray/Dim */
    border-radius: 50%;
    transition: background 0.2s;
}

.dock-dot.active {
    background: #fff;
    /* White/Active */
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

.dock-tooltip {
    position: absolute;
    top: -35px;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
}

/* Animations for window switching */
@keyframes popIn {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pop Number Animation */
.pop-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    /* Larger */
    font-weight: 800;
    color: #58a6ff;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    /* Behind the icon */
    /* Removed text-shadow for performance */
}

.pop-number.animate {
    animation: popOut 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popOut {
    0% {
        transform: translate(-50%, 0) scale(0.5);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -120%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -150%) scale(1);
        opacity: 0;
    }
}

/* Contact Button */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0;
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0 16px;
    height: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.contact-btn:hover {
    color: #58a6ff;
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

/* Contact Page */
.contact-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-form {
    background: #161b22;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #c9d1d9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0d1117;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: #c9d1d9;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #58a6ff;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #238636;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}

.submit-btn:hover {
    background: #2ea043;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(46, 160, 67, 0.15);
    color: #3fb950;
    border: 1px solid rgba(46, 160, 67, 0.4);
}

.form-status.error {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.4);
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
}

.faq-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    background: #161b22;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 12px;
}

.faq-answer {
    color: #8b949e;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

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

    .navbar {
        padding: 0;
    }

    .nav-content {
        padding: 12px 16px;
    }

    /* Mobile menu styles are handled in output.css - show btn-secondary in mobile menu */
    .nav-links .btn-secondary {
        display: flex;
    }

    .btn-primary,
    .store-badge {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .store-badge.big {
        padding: 10px 20px !important;
        font-size: 0.9rem;
    }

    .badges {
        flex-direction: column;
        gap: 16px;
    }

    .demo-window {
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 12px;
        box-shadow: none;
        border: none;
    }

    .demo-desktop {
        /* Taller on mobile as requested */
        aspect-ratio: 1/1;
        min-height: 400px;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* Hide Toasts on Mobile */
    .demo-overlay-toast,
    .status-toast,
    .key-toast {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .version-badge {
        display: none;
    }

    .logo span:not(.logo-icon) {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }
}

/* Hide FAQs link on very small screens */
@media (max-width: 380px) {
    .logo {
        font-size: 1rem;
    }

    .logo-icon {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.modal-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid var(--card-border);
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
    opacity: 0.9;
}

.modal-action {
    display: inline-block;
}

.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-br {
        display: block;
    }
}

/* Success/Trial Pages */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.success-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 60px 40px;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease-out;
}

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

.success-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    font-weight: 800;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 40px;
}

.success-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 20px auto 0;
    display: block;
}

.home-link {
    margin-top: 32px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-link:hover {
    text-decoration: underline;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.download-link-btn {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--card-border);
    transition: all 0.2s;
    font-size: 0.9rem;
    cursor: pointer;
}

.download-link-btn:hover {
    background: #30363d;
    transform: translateY(-2px);
}

.activation-reminder {
    margin-top: 24px;
    font-size: 0.9rem;
    opacity: 0.6;
    font-style: italic;
}

.trial-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px;
    border-radius: 16px;
    margin: 32px 0;
    font-size: 0.95rem;
    color: #60a5fa;
    text-align: center;
    line-height: 1.5;
}

.trial-banner strong {
    color: #93c5fd;
    display: block;
    margin-bottom: 4px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.countdown-container {
    margin-top: 20px;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #f87171;
}

#countdown {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-top: 8px;
}

.download-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.spam-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 20px;
    border-radius: 16px;
    margin: 32px 0;
    font-size: 0.95rem;
    color: #eab308;
    text-align: left;
    line-height: 1.5;
}

.spam-warning strong {
    color: #facc15;
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

/* Marketing Create Page */
.marketing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.marketing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.marketing-card h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    text-align: center;
    color: #fff;
}

.hint {
    font-size: 0.8rem;
    color: #8b949e;
    margin-top: 4px;
}

.error-msg {
    margin-top: 20px;
    padding: 12px;
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.4);
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.result-container {
    margin-top: 30px;
    padding: 20px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 8px;
    display: none;
}

.key-list {
    background: #0d1117;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid var(--card-border);
}

.form-group select {
    width: 100%;
    padding: 12px;
    background: #0d1117;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: #c9d1d9;
    font-family: inherit;
    font-size: 0.95rem;
}
