body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    background-color: #0b0b0d;
    color: #f1f5f9;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

.landing-container {
    width: 100%;
    max-width: 1060px;

    padding: 40px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    color: inherit;
}

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

a.brand:hover .brand-name {
    opacity: 0.75;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav-link {
    color: #8e8e93;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.header-nav-link:hover {
    color: #f0f0f0;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: 1px solid #333340;
    border-radius: 20px;
    background: #18181e;
    color: #c0c0cc;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.github-btn:hover {
    background: #252530;
    border-color: #4a4a5a;
    color: #f0f0f5;
}



.settings-link {
    color: #8e8e93;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.settings-link:hover {
    color: #ffffff;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Intro Section */
.intro {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.8px;
    color: #ffffff;
}

.subtitle {
    font-size: 17px;
    color: #a0a0a8;
    line-height: 1.6;
    margin: 0;
}

/* Visual Mockup Section */
.mockup-section {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar on Firefox */
}

.mockup-section::-webkit-scrollbar {
    display: none; /* Hide scrollbar on Chrome/Safari */
}

.mockup-browser {
    width: 100%;
    max-width: 100%;
    min-width: 680px; /* Prevent layout squishing on mobile */
    background-color: #121214;
    border: 1px solid #252526;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    flex-shrink: 0;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-dots .dot.red { background-color: #ff5f56; }
.mockup-dots .dot.yellow { background-color: #ffbd2e; }
.mockup-dots .dot.green { background-color: #27c93f; }

.mockup-mode-toggle {
    display: flex;
    background-color: #1a1a1c;
    border: 1px solid #2d2d30;
    border-radius: 6px;
    padding: 2px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: #8e8e93;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.toggle-btn:hover {
    color: #ffffff;
}

.toggle-btn.active {
    background-color: #2e2e34;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-btn.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-btn.disabled-btn:hover {
    color: #8e8e93;
}

.badge-soon {
    font-size: 8px;
    vertical-align: middle;
    background-color: #5c7cfa;
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

/* CSS simulated overlay tab switcher */
.mockup-overlay-container {
    width: 975px;
    height: 314px;
    align-self: center;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    align-items: stretch;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    margin: 20px auto;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-overlay-container.list-mode {
    width: 480px;
    height: 314px;
}

.mockup-overlay-container.list-mode .mockup-preview-panel {
    display: none;
}

.mockup-preview-panel {
    width: 483px;
    height: 100%;
    border-radius: 6px;
    background: #101011;
    border: 1px solid #3c3c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.mockup-preview-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mockup-preview-favicon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4c6ef5, #5c7cfa);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.mockup-list-panel {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
}

.mockup-tab-row {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 4px;
    gap: 10px;
    box-sizing: border-box;
    color: #cccccc;
    font-size: 13px;
    cursor: default;
    user-select: none;
    position: relative;
    transition: background-color 50ms ease;
}

.mockup-tab-row.active-tab {
    background: #5c7cfa;
    color: #ffffff;
}

.mockup-tab-row.selected {
    background: #5c7cfa;
    color: #ffffff;
}

.mockup-tab-row.selected .mockup-tab-title {
    font-weight: 500;
}

.mockup-tab-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.mockup-favicon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.mockup-preview-favicon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.mockup-tab-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-grid-thumb {
    display: none;
}

/* Close Button Styles in Mockup */
.mockup-close-tab-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: #ff5f56;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 150ms, transform 150ms;
}

.mockup-close-tab-btn:hover {
    background-color: #ff3b30;
    transform: scale(1.1);
}

.mockup-close-tab-btn svg {
    width: 8px;
    height: 8px;
}

.mockup-tab-row.active-tab .mockup-close-tab-btn,
.mockup-tab-row:hover .mockup-close-tab-btn {
    display: flex;
}

/* Hide list close button in Grid Mode */
.mockup-overlay-container.grid-mode .mockup-close-tab-btn {
    display: none !important;
}

/* Grid Mode Mockup Styles */
.mockup-overlay-container.grid-mode {
    width: 598px;
    height: 142px;
    padding: 16px 20px;
    border-radius: 20px;
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.mockup-overlay-container.grid-mode .mockup-preview-panel {
    display: none;
}

.mockup-overlay-container.grid-mode .mockup-list-panel {
    display: grid;
    grid-template-columns: repeat(4, 130px);
    gap: 12px;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Hide tabs 5 through 8 in Grid mode so it stays strictly at 4 tabs */
.mockup-overlay-container.grid-mode .mockup-tab-row:nth-child(n+5) {
    display: none;
}

.mockup-overlay-container.grid-mode .mockup-tab-row {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 0;
    background: transparent;
    gap: 0;
    cursor: pointer;
    align-items: stretch;
    width: 130px;
    min-width: 0;
    color: #cccccc;
    transition: transform 120ms ease;
    position: relative;
}

.mockup-overlay-container.grid-mode .mockup-tab-row:hover {
    transform: translateY(-2px);
}

.mockup-overlay-container.grid-mode .mockup-tab-row.active-tab {
    background: transparent;
    color: inherit;
}

.mockup-overlay-container.grid-mode .mockup-grid-thumb {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
}

.mockup-overlay-container.grid-mode .mockup-tab-row.active-tab .mockup-grid-thumb {
    border-color: #5c7cfa;
    box-shadow: 0 0 0 2px rgba(92, 124, 250, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mockup-overlay-container.grid-mode .mockup-grid-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-overlay-container.grid-mode .mockup-tab-content {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0 4px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mockup-overlay-container.grid-mode .mockup-favicon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.mockup-overlay-container.grid-mode .mockup-tab-title {
    font-size: 11px;
    font-weight: 500;
    color: #aaaaaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 150ms ease;
}

.mockup-overlay-container.grid-mode .mockup-tab-row.active-tab .mockup-tab-title,
.mockup-overlay-container.grid-mode .mockup-tab-row:hover .mockup-tab-title {
    color: #ffffff;
}

/* Grid Close Button Styles in Mockup */
.mockup-grid-close-btn-wrapper {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 10;
}

.mockup-grid-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: #ff5f56;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    transition: background-color 150ms, transform 150ms;
}

.mockup-grid-close-btn:hover {
    background-color: #ff3b30;
    transform: scale(1.1);
}

.mockup-grid-close-btn svg {
    width: 8px;
    height: 8px;
}

.mockup-overlay-container.grid-mode .mockup-tab-row.active-tab .mockup-grid-close-btn-wrapper,
.mockup-overlay-container.grid-mode .mockup-tab-row:hover .mockup-grid-close-btn-wrapper {
    display: flex;
}

/* Details Section */
.details-section {
    border-top: 1px solid #222225;
    padding-top: 24px;
}

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

.details-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-column h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clean-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.6;
}

.list-bullet {
    color: #5c7cfa;
    font-weight: 600;
    flex-shrink: 0;
}

.list-text {
    color: #c0c0c8;
}

.text-link {
    color: #5c7cfa;
    text-decoration: none;
    transition: color 0.15s ease;
}

.text-link:hover {
    color: #74c0fc;
    text-decoration: underline;
}

kbd {
    background-color: #252530;
    border: 1px solid #4a4a56;
    border-bottom: 2px solid #4a4a56;
    border-radius: 5px;
    color: #f0f0f5;
    display: inline-block;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    padding: 2px 7px;
    vertical-align: middle;
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: flex-start;
    border-top: 1px solid #222225;
    padding-top: 40px;
}

.link-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: #5c7cfa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease;
}

.link-btn:hover {
    color: #74c0fc;
    text-decoration: underline;
}

.intro-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f1f5f9;
    color: #0b0b0d;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: #ffffff;
}

.version-badge {
    display: inline-block;
    background-color: #1e1e24;
    border: 1px solid #333340;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #8e8e93;
    margin-left: 6px;
    vertical-align: middle;
}

/* Secondary Links (replacing traditional footer) */
.secondary-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    padding-top: 20px;
    margin-top: auto;
    font-size: 13px;
}

.secondary-link {
    color: #8e8e93;
    text-decoration: none;
    transition: color 0.15s ease;
}

.secondary-link:hover {
    color: #ffffff;
}

.divider {
    color: #2c2c2e;
}

/* Confirmation Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Box */
.modal-box {
    background-color: #121214;
    border: 1px solid #222225;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.modal-text {
    font-size: 14px;
    color: #8e8e93;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.modal-text:last-of-type {
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
    background: transparent;
    border: 1px solid #222225;
    color: #8e8e93;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: #48484a;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
}

/* Copy URL Button (Manual Install Guide) */
.btn-copy {
    background-color: #1e1e24;
    border: 1px solid #3a3a42;
    border-radius: 4px;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 11px;
    padding: 3px 8px;
    margin-left: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-copy:hover {
    background-color: #2a2a32;
    border-color: #5c7cfa;
}

.btn-copy.copied {
    background-color: #2b8a3e;
    border-color: #40c057;
    color: #ffffff;
}

.instruction-muted {
    font-size: 12px;
    color: #48484a;
    margin-left: 8px;
    display: inline-block;
}

/* Sub-steps in manual installation list */
.sub-step-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 6px;
    padding-left: 14px;
    border-left: 2px solid #222225;
}

.sub-step {
    font-size: 13.5px;
    color: #8e8e93;
    line-height: 1.5;
}

/* New layout elements for simplified release/distribution model */
.version-display {
    font-size: 13.5px;
    color: #8e8e93;
    margin-top: 12px;
    margin-bottom: 0;
}

.version-number {
    color: #f1f5f9;
    font-weight: 600;
}

.browser-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.browser-info-card {
    background-color: #121214;
    border: 1px solid #222225;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s ease;
}

.browser-info-card:hover {
    border-color: #333338;
}

.browser-info-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.browser-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.browser-info-card li {
    font-size: 13.5px;
    color: #8e8e93;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-info-card li .check {
    color: #5c7cfa;
    font-weight: bold;
}

/* Install Page cards */
.browser-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 40px;
}

.browser-card {
    background-color: #121214;
    border: 1px solid #222225;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.browser-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.browser-card p {
    margin: 0;
    font-size: 14px;
    color: #8e8e93;
    line-height: 1.5;
    flex-grow: 1;
}

/* Advanced Collapsible Section styling */
.advanced-section {
    background-color: #121214;
    border: 1px solid #222225;
    border-radius: 8px;
    margin-top: 32px;
    padding: 20px;
    transition: border-color 0.2s ease;
}

.advanced-section[open] {
    border-color: #333338;
}

.advanced-section summary {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.advanced-section summary:hover {
    color: #5c7cfa;
}

.advanced-section .advanced-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222225;
}

/* Small badge to denote awaiting review / coming soon */
.badge-status {
    display: inline-block;
    background-color: #1e1e24;
    border: 1px solid #333340;
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 500;
    color: #8e8e93;
    margin-left: 6px;
    vertical-align: middle;
}

/* Mobile Responsiveness Media Queries */
@media (max-width: 1060px) {
    .mockup-section {
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    
    .subtitle {
        font-size: 15px;
    }
    
    .intro-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .intro-actions a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .secondary-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }
    
    .secondary-links .divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 30px 16px;
        gap: 40px;
    }
    
    .main-content {
        gap: 40px;
    }
}

/* ─── Mobile Mockup Fix ───────────────────────────────────────────────── */
@media (max-width: 720px) {
    .mockup-section {
        overflow-x: hidden;
        padding: 10px 0;
    }

    .mockup-browser {
        min-width: 0;      /* drop the 680px floor */
        width: 100%;
    }

    /* Collapse to list-only — preview is a hover feature, useless on touch */
    .mockup-overlay-container,
    .mockup-overlay-container.list-mode {
        width: 100% !important;
        height: auto !important;
        margin: 0;
    }

    .mockup-preview-panel {
        display: none !important;
    }

    .mockup-list-panel {
        height: auto;
        max-height: 280px;
    }

    /* Grid mode: 2-col instead of 4 so cards aren't tiny slivers */
    .mockup-overlay-container.grid-mode {
        width: 100% !important;
        height: auto !important;
        padding: 12px;
    }

    .mockup-overlay-container.grid-mode .mockup-list-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .mockup-overlay-container.grid-mode .mockup-tab-row {
        width: 100%;
    }

    /* Hide tabs 3 through 8 in Grid mode on mobile so it stays strictly at 2 tabs */
    .mockup-overlay-container.grid-mode .mockup-tab-row:nth-child(n+3) {
        display: none !important;
    }

    /* Tighten toggle buttons so the header row doesn't overflow */
    .toggle-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* ─── Minor text tightening below 600px ──────────────────────────────── */
@media (max-width: 600px) {
    .clean-list li {
        font-size: 14px;
    }

    .details-grid {
        gap: 28px;
    }
}


