/* ============================================
   WxPusher Portal Styles
   Primary Color: #B300B3
   ============================================ */

/* CSS Variables */
:root {
    --primary: #B300B3;
    --primary-light: #D933D9;
    --primary-dark: #8A008A;
    --primary-subtle: #FCE0FC;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6b6b8a;
    --text-light: #9a9ab0;

    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f0f2f8;
    --bg-dark: #1a1a2e;

    --border-color: #e2e5ef;
    --border-light: #eef0f7;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 16px rgba(179,0,179,0.24);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.35s ease;

    --header-height: 70px;
    --container-max: 1280px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

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

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Section */
.section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(179, 0, 179, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(179, 0, 179, 0.3);
}

.logo-text {
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Header Slogan */
/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

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

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

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(179,0,179,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.hero-content {
    max-width: 600px;
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: 100%;
    }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    display: block;
    color: var(--primary);
    margin-top: 8px;
}

.hero-open-source {
    margin-bottom: 24px;
}

.hero-os-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(179,0,179,0.08) 0%, rgba(217,51,217,0.08) 100%);
    border: 1px solid rgba(179,0,179,0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.hero-os-badge:hover {
    background: linear-gradient(135deg, rgba(179,0,179,0.15) 0%, rgba(217,51,217,0.15) 100%);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.hero-os-badge svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1024px) {
    .hero-open-source {
        display: flex;
        justify-content: center;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Workflow */
.workflow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .workflow {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .workflow {
        gap: 12px;
    }
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    min-width: 100px;
    transition: var(--transition-base);
}

.workflow-step.highlight-step {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-primary);
}

.workflow-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.workflow-text {
    font-weight: 600;
    font-size: 0.875rem;
}

.workflow-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 640px) {
    .workflow-step {
        padding: 12px 16px;
        min-width: 80px;
    }

    .workflow-icon {
        font-size: 1.5rem;
    }

    .workflow-text {
        font-size: 0.8rem;
    }

    .workflow-arrow {
        font-size: 1.25rem;
    }
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.btn span {
    font-size: 1.1em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179,0,179,0.35);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

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

.btn-outline:hover {
    background: var(--primary-subtle);
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-visual {
        order: -1;
    }
}

.notification-preview {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    max-width: 380px;
    width: 100%;
    border: 1px solid var(--border-light);
    animation: float 6s ease-in-out infinite;
}

.notification-preview.notification-2 {
    animation-delay: -3s;
    opacity: 0.85;
    transform: scale(0.95) translateX(20px);
}

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

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.notification-time {
    margin-left: auto;
    font-size: 0.8rem;
}

.notification-content {
    padding-left: 18px;
    border-left: 3px solid var(--primary);
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.3; top: 20px; }
}

/* Section Titles */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Channels Section */
.channels {
    background: var(--bg-secondary);
}

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

@media (max-width: 1024px) {
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }
}

.channel-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

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

.channel-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.channel-icon svg {
    width: 28px;
    height: 28px;
}

.app-icon {
    background: var(--primary-subtle);
    color: var(--primary);
}

.wechat-icon {
    background: #e8f5e9;
    color: #07c160;
}

.chrome-icon {
    background: #fff3e0;
    color: #f57c00;
}

.channel-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.channel-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.channel-preview {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Mock Phone */
.mock-phone {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mock-phone-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
}

.mock-phone-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-message {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.mock-msg-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.mock-msg-body {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.mock-msg-time {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Mock WeChat */
.mock-wechat {
    background: #f5f5f5;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.wechat-header {
    background: #ededed;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wechat-chat {
    padding: 16px;
}

.wechat-msg {
    display: flex;
    gap: 10px;
}

.wechat-avatar {
    width: 36px;
    height: 36px;
    background: #07c160;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.wechat-bubble {
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex: 1;
    box-shadow: var(--shadow-sm);
}

.wechat-bubble-title {
    background: #fafafa;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid #f0f0f0;
}

.wechat-bubble-content {
    padding: 12px;
}

.wechat-bubble-text {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.wechat-bubble-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Mock Chrome */
.mock-chrome {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.chrome-header {
    background: #f1f3f4;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.chrome-notification {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.chrome-notification:last-child {
    border-bottom: none;
}

.chrome-icon-small {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chrome-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.chrome-body {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Channel Platforms */
.channel-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* SPT Section */
.spt-section {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    color: white;
}

.spt-section .section-title {
    color: white;
    text-align: left;
}

.spt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    min-width: 0;
}

.spt-grid > * {
    min-width: 0;
}

@media (max-width: 1024px) {
    .spt-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .spt-section .section-title {
        text-align: center;
    }
}

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

.spt-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .spt-desc {
        text-align: center;
    }
}

.spt-features {
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .spt-features {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.spt-features li {
    padding: 8px 0;
    color: rgba(255,255,255,0.9);
}

.spt-code {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.copy-btn {
    color: var(--primary-light);
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(179,0,179,0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: rgba(179,0,179,0.3);
}

.spt-code pre {
    padding: 16px;
    overflow-x: auto;
}

/* Slim scrollbar for spt-code pre */
.spt-code pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.spt-code pre::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.spt-code pre::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.spt-code pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.spt-code code {
    font-family: 'SF Mono', Monaco, Inconsolata, monospace;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.code-highlight {
    color: #ff79c6;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .spt-actions {
        text-align: center;
    }
}

.spt-qr {
    display: flex;
    justify-content: center;
}

.qr-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    max-width: 320px;
}

.qr-card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.qr-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-tip {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.qr-download-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
}

.qr-download-btn svg {
    width: 20px;
    height: 20px;
}

.qr-warning {
    color: #e53935;
    font-size: 0.8rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition-base);
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

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

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

.feature-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

/* App Download Section */
.app-download {
    background: var(--bg-secondary);
}

.app-download-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 1024px) {
    .app-download-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .app-download-content {
        text-align: center;
    }
}

.open-source-notice {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(179,0,179,0.05) 0%, rgba(217,51,217,0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(179,0,179,0.15);
}

.open-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.open-source-badge svg {
    width: 16px;
    height: 16px;
}

.open-source-notice p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.open-source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(179,0,179,0.2);
    transition: var(--transition-fast);
}

.open-source-link:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.open-source-link svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1024px) {
    .open-source-notice {
        text-align: left;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

.oem-support {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.oem-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.oem-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.oem-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(179,0,179,0.06) 0%, rgba(217,51,217,0.06) 100%);
    border: 1px solid rgba(179,0,179,0.12);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.oem-badge:hover {
    background: linear-gradient(135deg, rgba(179,0,179,0.1) 0%, rgba(217,51,217,0.1) 100%);
    border-color: rgba(179,0,179,0.2);
    transform: translateY(-1px);
}

.oem-badge i {
    font-style: normal;
    font-size: 0.9rem;
}

.oem-ios {
    background: linear-gradient(135deg, rgba(26,26,46,0.06) 0%, rgba(74,74,104,0.06) 100%);
    border-color: rgba(26,26,46,0.12);
}

.oem-ios:hover {
    background: linear-gradient(135deg, rgba(26,26,46,0.1) 0%, rgba(74,74,104,0.1) 100%);
    border-color: rgba(26,26,46,0.2);
}

@media (max-width: 1024px) {
    .oem-support {
        text-align: left;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .oem-badges {
        justify-content: flex-start;
    }
}

.app-stats {
    display: flex;
    gap: 40px;
    margin: 32px 0;
}

@media (max-width: 1024px) {
    .app-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-stats {
        gap: 24px;
    }
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.app-download-qr {
    display: flex;
    justify-content: center;
}

.download-qr-card {
    box-shadow: var(--shadow-lg);
}

/* Quick Start Section */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: 0;
    }
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: var(--shadow-primary);
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }
}

.quick-start-cta {
    text-align: center;
    margin-top: 48px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
    text-align: center;
    color: white;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 300px;
}

.footer-social {
    margin-top: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-links span {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

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

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

/* Selection */
::selection {
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ============================================
   Code Tabs Styles (for Standard Section)
   ============================================ */

.code-tabs {
    margin-bottom: 24px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.code-tabs-header {
    display: flex;
    gap: 0;
    padding: 8px 8px 0;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.code-tab {
    padding: 10px 20px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.code-tab:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.code-tab.active {
    background: rgba(0,0,0,0.3);
    color: white;
    border-bottom-color: var(--primary);
}

.code-tab-content {
    display: none;
}

.code-tab-content.active {
    display: block;
}

/* For card tabs, use absolute positioning to maintain height */
.code-tabs-card .code-tab-content {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.code-tabs-card .code-tab-content.active {
    display: block;
    opacity: 1;
    position: relative;
}

/* Code block inside tabs */
.code-tab-content .spt-code {
    margin: 0;
    border: none;
    border-radius: 0;
    background: rgba(0,0,0,0.2);
}

.code-tab-content .spt-code pre {
    max-height: 200px;
    overflow-y: auto;
    padding: 16px;
}

.code-tab-content .spt-code code {
    font-size: 0.8rem;
    line-height: 1.6;
}

.code-tab-content .code-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Code Tabs Card - Fixed dimensions to prevent jumping */
.code-tabs-card {
    width: 100%;
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-sizing: border-box;
}

.code-tabs-card .code-tabs-header {
    flex-shrink: 0;
    height: 48px;
    padding: 0 8px;
    display: flex;
    align-items: center;
}

.code-tabs-card .code-tab-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.code-tabs-card .code-tab-content.active {
    display: block;
}

.code-tabs-card .spt-code {
    height: calc(380px - 48px - 44px) !important;
    min-height: calc(380px - 48px - 44px) !important;
    max-height: calc(380px - 48px - 44px) !important;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.2);
    border-radius: 0 !important;
    border: none !important;
    overflow: hidden;
    margin: 0 !important;
}

.code-tabs-card .code-header {
    flex-shrink: 0;
    height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-tabs-card .spt-code pre {
    height: 100% !important;
    max-height: none !important;
    overflow: auto;
    padding: 16px;
    margin: 0;
    box-sizing: border-box;
}

.code-tabs-card .spt-code code {
    font-size: 0.8rem;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
}

/* Scrollbar styling for code area */
.code-tabs-card .spt-code pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.code-tabs-card .spt-code pre::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.code-tabs-card .spt-code pre::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.code-tabs-card .spt-code pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* Standard section code card in right column */
#standard .spt-qr {
    width: 100%;
    min-width: 0;
}

/* Ensure spt-actions aligns with SPT section */
.spt-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .spt-actions {
        flex-direction: column;
    }

    .spt-actions .btn {
        justify-content: center;
    }
}
