/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --accent-cyan: #00d2e6;
    --accent-red: #ff4757;
    --accent-green: #10b981;
    --border-color: #30363d;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-snappy: 0.2s ease-out;
}

/* ============================================
   Page Loader
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d1117;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background-color: #21262d;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d2e6, #ff4757);
    border-radius: 3px;
    animation: loaderFill 1.5s ease-out forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loader-text {
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 12px;
    color: #8b949e;
    letter-spacing: 1px;
}

/* ============================================
   Accessibility - Skip to Content
   ============================================ */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cyan);
    color: #000;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.3px;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

a:hover {
    color: #00b8cc;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-smooth);
}

.logo:hover {
    color: var(--accent-cyan);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo-wipe {
    color: var(--accent-cyan);
}

.logo svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-cyan);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-smooth);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-snappy);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-snappy);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #00b8cc 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 210, 230, 0.4);
}

.btn-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 230, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Logo */
.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 24px;
    animation: logoFloat 3s ease-in-out infinite, fadeInUp 0.8s ease-out;
    filter: drop-shadow(0 8px 24px rgba(0, 210, 230, 0.3));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-gradient-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-red) 100%);
    border-radius: 2px;
    margin-bottom: 24px;
    animation: slideInLeft 0.6s ease-out;
}

/* Browser Mockup */
.hero-visual {
    animation: fadeInRight 0.8s ease-out;
}

.browser-mockup {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.browser-header {
    background-color: var(--bg-tertiary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.browser-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.browser-buttons div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-red { background-color: #ff5f57; }
.btn-yellow { background-color: #ffbd2e; }
.btn-green { background-color: #28c940; }

.browser-tabs {
    display: flex;
    gap: 0;
}

.browser-tabs .tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
}

.browser-tabs .tab.active {
    color: var(--accent-cyan);
    background-color: var(--bg-secondary);
}

.browser-content {
    padding: 24px;
    height: 240px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.content-placeholder {
    height: 16px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
    border-radius: 4px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.content-placeholder.short {
    width: 60%;
}

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

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.features h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 210, 230, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 210, 230, 0.2) 0%, rgba(255, 71, 87, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--accent-cyan);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* ============================================
   Download Section
   ============================================ */
.download {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.download h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.download-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.download-card {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.download-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 210, 230, 0.15);
}

.download-card.primary-os {
    border-color: var(--accent-cyan);
    background: linear-gradient(135deg, rgba(0, 210, 230, 0.05) 0%, transparent 100%);
}

.os-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 210, 230, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 12px;
    color: var(--accent-cyan);
}

.download-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.download-card .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.download-card .btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.download-card .btn-secondary:hover {
    background: rgba(0, 210, 230, 0.1);
}

.version-text {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.shortcuts-pdf-link {
    display: inline-block;
    font-size: 13px;
    color: var(--accent-cyan);
    margin-top: 16px;
    padding: 6px 14px;
    border: 1px solid var(--accent-cyan);
    border-radius: 6px;
    opacity: 1;
    transition: all var(--transition-smooth);
}

.shortcuts-pdf-link:hover {
    background: rgba(0, 210, 230, 0.1);
    color: var(--accent-cyan);
}

.download-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   Shortcuts Section
   ============================================ */
.shortcuts {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.shortcuts h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

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

.shortcut-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all var(--transition-smooth);
}

.shortcut-item:hover {
    border-color: var(--accent-cyan);
    background-color: var(--bg-tertiary);
}

.shortcut-item kbd {
    display: inline-block;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-right: 4px;
}

.shortcut-item span {
    color: var(--text-secondary);
    font-size: 14px;
}

.shortcuts-os-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    margin-top: 48px;
    text-align: center;
}

.shortcuts-os-title:first-of-type {
    margin-top: 0;
}

/* ============================================
   Screenshots Section
   ============================================ */
.screenshots {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.screenshots h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.screenshot-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.screenshot-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 210, 230, 0.12);
    border-color: var(--accent-cyan);
}

.screenshot-frame {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: #000;
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.screenshot-item:hover .screenshot-frame img {
    transform: scale(1.03);
}

.screenshot-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 24px 8px;
}

.screenshot-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 24px 20px;
}

@media (max-width: 768px) {
    .screenshot-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================
   Tech Specs Section
   ============================================ */
.specs {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.specs h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.spec-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.spec-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 210, 230, 0.1);
}

.spec-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.spec-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--accent-cyan);
}

.social-links {
    display: flex;
    gap: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

.footer-bottom a {
    color: var(--text-secondary);
    transition: color var(--transition-smooth);
}

.footer-bottom a:hover {
    color: var(--accent-cyan);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* ============================================
   Scroll Animations
   ============================================ */
.feature-card,
.spec-card,
.download-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.6s; }
.features-grid .feature-card:nth-child(7) { animation-delay: 0.7s; }
.features-grid .feature-card:nth-child(8) { animation-delay: 0.8s; }
.features-grid .feature-card:nth-child(9) { animation-delay: 0.9s; }
.features-grid .feature-card:nth-child(10) { animation-delay: 1s; }

.specs-grid .spec-card:nth-child(1) { animation-delay: 0.1s; }
.specs-grid .spec-card:nth-child(2) { animation-delay: 0.2s; }
.specs-grid .spec-card:nth-child(3) { animation-delay: 0.3s; }
.specs-grid .spec-card:nth-child(4) { animation-delay: 0.4s; }
.specs-grid .spec-card:nth-child(5) { animation-delay: 0.5s; }
.specs-grid .spec-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   Mobile Responsive
   ============================================ */
/* ============================================
   Responsive Design — All Screen Types
   ============================================ */

/* Large tablets & small desktops */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 44px;
    }

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

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

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

/* Tablets */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        z-index: 99;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

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

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

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

    .hero {
        padding: 60px 0;
    }

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

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-gradient-line {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
    }

    .features,
    .download,
    .shortcuts,
    .specs,
    .tutorials {
        padding: 60px 0;
    }

    .features h2,
    .download h2,
    .shortcuts h2,
    .specs h2,
    .tutorials h2 {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .browser-mockup {
        max-width: 100%;
    }

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

    /* Advanced section ribbon fix */
    .feature-card.featured::before {
        font-size: 8px;
        right: -30px;
        top: 10px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .hero-content h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .features h2,
    .download h2,
    .shortcuts h2,
    .specs h2,
    .tutorials h2 {
        font-size: 24px;
    }

    .feature-card,
    .spec-card,
    .download-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 13px;
    }

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

    .shortcut-item {
        padding: 14px;
    }

    .shortcut-item kbd {
        padding: 3px 6px;
        font-size: 11px;
    }

    .browser-mockup {
        margin-top: 24px;
    }

    .browser-content {
        height: 160px;
    }

    .nav-menu {
        gap: 0;
    }

    .tutorial-thumbnail {
        height: 140px;
    }

    .tutorial-card h3 {
        font-size: 0.9rem;
    }

    .tutorial-card p {
        font-size: 0.8rem;
    }

    .download-card h3 {
        font-size: 20px;
    }

    .os-icon {
        width: 60px;
        height: 60px;
    }

    .os-icon svg {
        width: 36px;
        height: 36px;
    }

    /* Advanced ribbon smaller on mobile */
    .feature-card.featured::before {
        font-size: 7px;
        right: -32px;
        top: 8px;
        padding: 2px 30px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .features h2,
    .download h2,
    .shortcuts h2,
    .specs h2,
    .tutorials h2 {
        font-size: 22px;
    }

    .hero-cta .btn-large {
        padding: 12px 20px;
        font-size: 14px;
    }

    .nav-wrapper {
        padding: 12px 0;
    }

    .logo {
        font-size: 18px;
    }
}

/* ============================================
   Advanced Tools Section
   ============================================ */
.advanced-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0f18 50%, var(--bg-primary) 100%);
}

.advanced-section h2 {
    background: linear-gradient(135deg, var(--accent-cyan), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card.featured {
    border: 1px solid rgba(0, 210, 230, 0.25);
    background: linear-gradient(145deg, var(--bg-tertiary), rgba(0, 210, 230, 0.05));
    position: relative;
    overflow: hidden;
}

.feature-card.featured::before {
    content: "ADVANCED";
    position: absolute;
    top: 12px;
    right: -28px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000;
    background: var(--accent-cyan);
    padding: 2px 32px;
    transform: rotate(45deg);
}

.feature-card.featured:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 210, 230, 0.15);
}

/* ============================================
   Tutorials Section
   ============================================ */
.tutorials {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.tutorials h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.tutorial-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow);
}

.tutorial-thumbnail {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a2332 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tutorial-thumbnail .play-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 210, 230, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #000;
    z-index: 2;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 210, 230, 0.4);
}

.tutorial-card:hover .play-icon {
    transform: scale(1.1);
    background: rgba(0, 210, 230, 1);
}

.tutorial-thumbnail .tutorial-preview {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 36px;
    font-weight: 800;
    color: rgba(0, 210, 230, 0.15);
    letter-spacing: 4px;
    position: absolute;
}

.tutorial-card h3 {
    padding: 16px 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tutorial-card p {
    padding: 8px 16px 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* tutorial-duration removed — not used */

/* Tutorials responsive handled in main responsive section */

/* ============================================
   Tutorial Animated Demos (Infinite Looping)
   ============================================ */

/* --- API Testing Demo --- */
.demo-api {
    width: 100%;
    height: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-terminal {
    width: 100%;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    color: #c9d1d9;
    line-height: 1.4;
    animation: apiLoop 5s ease-in-out infinite;
}

@keyframes apiLoop {
    0% { opacity: 0; }
    8% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.api-line {
    display: flex;
    gap: 6px;
    animation: apiTypeIn 5s ease-out infinite;
}

.api-url { animation-delay: 0s; }
.api-method { animation-delay: 0.3s; }
.api-button { animation-delay: 0.6s; }
.api-response:nth-child(4) { animation-delay: 1.2s; }
.api-response:nth-child(5) { animation-delay: 1.5s; }
.api-response:nth-child(6) { animation-delay: 1.8s; }
.api-response:nth-child(7) { animation-delay: 2.1s; }

@keyframes apiTypeIn {
    0% { opacity: 0; transform: translateY(4px); }
    15% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-2px); }
}

.api-label {
    color: #00d2e6;
    font-weight: 600;
}

.api-text {
    color: #c9d1d9;
}

.api-indent {
    margin-left: 10px;
    color: #8b949e;
}

.api-button {
    padding: 4px 0;
}

.api-button button {
    padding: 2px 8px;
    background: #00d2e6;
    color: #0d1117;
    border: none;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    cursor: default;
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { background: #00d2e6; box-shadow: none; }
    50% { background: #00e8ff; box-shadow: 0 0 8px rgba(0, 210, 230, 0.5); }
}

/* --- SEO Audit Demo --- */
.demo-seo {
    width: 100%;
    height: 100%;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-scanner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.seo-progress {
    width: 100%;
    height: 6px;
    background: #21262d;
    border-radius: 3px;
    overflow: hidden;
}

.seo-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d2e6, #10b981);
    animation: seoScanLoop 4s ease-in-out infinite;
}

@keyframes seoScanLoop {
    0% { width: 0%; }
    50% { width: 100%; }
    70% { width: 100%; }
    100% { width: 0%; }
}

.seo-score {
    text-align: center;
    animation: seoFadeLoop 4s ease-in-out infinite;
}

@keyframes seoFadeLoop {
    0%, 35% { opacity: 0; transform: translateY(4px); }
    50% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(4px); }
}

.seo-number {
    font-size: 28px;
    font-weight: 700;
    color: #00d2e6;
}

.seo-label {
    font-size: 10px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seo-stats {
    display: flex;
    gap: 12px;
    animation: seoStatLoop 4s ease-in-out infinite;
}

@keyframes seoStatLoop {
    0%, 45% { opacity: 0; transform: scale(0.8); }
    55% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

.seo-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.seo-stat.passes .stat-icon { color: #10b981; }
.seo-stat.warnings .stat-icon { color: #ff9800; }
.seo-stat.issues .stat-icon { color: #ff4757; }

.stat-icon {
    font-size: 14px;
    font-weight: 700;
}

.stat-count {
    font-size: 12px;
    font-weight: 700;
    color: #c9d1d9;
}

/* --- Accessibility Demo --- */
.demo-a11y {
    width: 100%;
    height: 100%;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a11y-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.a11y-element {
    height: 24px;
    border: 2px dashed #00d2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: a11yScan 4s ease-in-out infinite;
}

.a11y-heading { animation-delay: 0s; }
.a11y-link { animation-delay: 0.4s; }
.a11y-image { animation-delay: 0.8s; border-color: #ff4757; }
.a11y-button { animation-delay: 1.2s; }

@keyframes a11yScan {
    0% { opacity: 0; transform: translateX(-6px); }
    15% { opacity: 1; transform: translateX(0); }
    75% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(6px); }
}

.a11y-check {
    color: #10b981;
    font-weight: 700;
    font-size: 14px;
}

.a11y-cross {
    color: #ff4757;
    font-weight: 700;
    font-size: 14px;
}

/* --- Performance Gauge Demo --- */
.demo-perf {
    width: 100%;
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.perf-gauge {
    position: relative;
    width: 70px;
    height: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.gauge-background {
    position: absolute;
    width: 70px;
    height: 50px;
    border: 2px solid #00d2e6;
    border-top: none;
    border-radius: 0 0 35px 35px;
    opacity: 0.3;
}

.gauge-needle {
    position: absolute;
    width: 2px;
    height: 35px;
    background: linear-gradient(180deg, #00d2e6, transparent);
    bottom: 6px;
    transform-origin: bottom center;
    animation: gaugeSwing 3.5s ease-in-out infinite;
}

@keyframes gaugeSwing {
    0% { transform: rotateZ(60deg); }
    30% { transform: rotateZ(-115deg); }
    60% { transform: rotateZ(-80deg); }
    80% { transform: rotateZ(-115deg); }
    100% { transform: rotateZ(60deg); }
}

.gauge-score {
    position: absolute;
    bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #00d2e6;
    animation: perfScorePulse 3.5s ease-in-out infinite;
}

@keyframes perfScorePulse {
    0%, 100% { opacity: 0; }
    25% { opacity: 1; }
    85% { opacity: 1; }
}

.perf-metrics {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    animation: metricFade 3.5s ease-in-out infinite;
}

.metric-1 { animation-delay: 0.5s; }
.metric-2 { animation-delay: 0.8s; }
.metric-3 { animation-delay: 1.1s; }

@keyframes metricFade {
    0%, 15% { opacity: 0; transform: translateY(4px); }
    30% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-2px); }
}

.metric-label {
    color: #8b949e;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.metric-value {
    color: #c9d1d9;
    font-weight: 700;
}

/* --- CSS Debug Demo --- */
.demo-css {
    width: 100%;
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.css-debug {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.css-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    animation: cssPulseGrid 3s ease-in-out infinite;
}

@keyframes cssPulseGrid {
    0%, 100% { opacity: 0.4; transform: scale(0.97); }
    50% { opacity: 1; transform: scale(1); }
}

.css-flex {
    display: flex;
    gap: 4px;
    animation: cssPulseFlex 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes cssPulseFlex {
    0%, 100% { opacity: 0.4; transform: scale(0.97); }
    50% { opacity: 1; transform: scale(1); }
}

.grid-item {
    height: 18px;
    border: 2px dashed #00d2e6;
    border-radius: 2px;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(0, 210, 230, 0.4); }
    50% { border-color: rgba(0, 210, 230, 1); box-shadow: inset 0 0 6px rgba(0, 210, 230, 0.15); }
}

.flex-item {
    flex: 1;
    height: 18px;
    border: 2px dashed #ff9800;
    border-radius: 2px;
    animation: borderGlowOrange 2s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes borderGlowOrange {
    0%, 100% { border-color: rgba(255, 152, 0, 0.4); }
    50% { border-color: rgba(255, 152, 0, 1); box-shadow: inset 0 0 6px rgba(255, 152, 0, 0.15); }
}

.css-labels {
    display: flex;
    gap: 24px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-grid {
    color: #00d2e6;
    animation: labelPulse 3s ease-in-out infinite;
}

.label-flex {
    color: #ff9800;
    animation: labelPulse 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

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

/* --- Password Save Demo --- */
.demo-password {
    width: 100%;
    height: 100%;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.pwd-notification {
    width: 100%;
    background: linear-gradient(135deg, #21262d, #161b22);
    border: 1px solid rgba(0, 210, 230, 0.3);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pwdSlide 4s ease-in-out infinite;
}

@keyframes pwdSlide {
    0% { opacity: 0; transform: translateY(-20px); }
    15% { opacity: 1; transform: translateY(0); }
    75% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.pwd-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.pwd-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.pwd-title {
    font-size: 11px;
    font-weight: 700;
    color: #c9d1d9;
}

.pwd-subtitle {
    font-size: 9px;
    color: #8b949e;
}

.pwd-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.pwd-btn {
    padding: 4px 8px;
    font-size: 8px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: default;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pwd-btn.save {
    background: #00d2e6;
    color: #0d1117;
    animation: saveBtnPulse 4s ease-in-out infinite;
}

@keyframes saveBtnPulse {
    0%, 20% { opacity: 0; }
    30% { opacity: 1; }
    50% { box-shadow: 0 0 8px rgba(0, 210, 230, 0.5); }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

.pwd-btn.dismiss {
    background: transparent;
    color: #8b949e;
    border: 1px solid #30363d;
    animation: dismissBtnFade 4s ease-in-out infinite;
}

@keyframes dismissBtnFade {
    0%, 25% { opacity: 0; }
    35% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: 100px 0;
    background: var(--bg-primary);
}

.faq h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--transition-smooth);
}

.faq-item[open] {
    border-color: rgba(0, 210, 230, 0.3);
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-smooth);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 20px;
    color: var(--accent-cyan);
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover {
    background: var(--bg-tertiary);
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    .faq h2 {
        font-size: 36px;
    }
    .faq-item summary {
        padding: 16px 20px;
        font-size: 15px;
    }
    .faq-item p {
        padding: 0 20px 16px;
    }
}

@media (max-width: 480px) {
    .faq h2 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
