/* ============================================
   OpenSpeedy Landing Page – Light SaaS Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F8FC;
    --bg-card: #FFFFFF;
    --bg-card-alt: #F1F4FB;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: rgba(56, 79, 150, 0.1);
    --border-hover: rgba(56, 79, 150, 0.2);

    --text-primary: #1A1F36;
    --text-secondary: #525F7F;
    --text-muted: #8898AA;

    --accent-blue: #4F6AFF;
    --accent-cyan: #00B4D8;
    --accent-purple: #7C5CFC;
    --accent-green: #10B981;
    --accent-orange: #F59E0B;
    --accent-pink: #EC4899;
    --accent-red: #EF4444;

    --gradient-hero: linear-gradient(135deg, #4F6AFF 0%, #00B4D8 50%, #7C5CFC 100%);
    --gradient-btn: linear-gradient(135deg, #4F6AFF 0%, #6C8AFF 100%);
    --gradient-btn-hover: linear-gradient(135deg, #3D56E0 0%, #5A78FF 100%);
    --gradient-card: linear-gradient(160deg, rgba(79, 106, 255, 0.04) 0%, rgba(0, 180, 216, 0.02) 100%);
    --gradient-glow: radial-gradient(ellipse 700px 500px at 50% 0%, rgba(79, 106, 255, 0.08) 0%, transparent 70%);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--border-color);
    --shadow-card-hover: 0 8px 28px rgba(79, 106, 255, 0.1), 0 0 0 1px var(--border-hover);
    --shadow-btn: 0 4px 14px rgba(79, 106, 255, 0.25);
    --shadow-btn-hover: 0 6px 20px rgba(79, 106, 255, 0.35);
    --shadow-img: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--border-color);

    --font-main: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-purple);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 8px 20px;
    background: var(--gradient-btn);
    color: #fff !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow-btn);
    transition: box-shadow 0.25s, opacity 0.25s;
}

.nav-cta:hover {
    box-shadow: var(--shadow-btn-hover);
    opacity: 0.95;
    color: #fff !important;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    overflow: hidden;
    background: var(--bg-secondary);
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(79, 106, 255, 0.08);
    border: 1px solid rgba(79, 106, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: 28px;
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero h1 .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: box-shadow 0.25s, opacity 0.25s;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--gradient-btn-hover);
    box-shadow: var(--shadow-btn-hover);
    color: #fff;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
    color: var(--accent-blue);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Hero screenshot */
.hero-screenshot {
    margin-top: 56px;
    position: relative;
}

.hero-screenshot img {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-img);
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
}

.hero-screenshot::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80px;
    background: radial-gradient(ellipse, rgba(79, 106, 255, 0.06), transparent 70%);
    pointer-events: none;
}

/* ---------- Section Commons ---------- */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(79, 106, 255, 0.07);
    border: 1px solid rgba(79, 106, 255, 0.12);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.feature-icon.blue {
    background: rgba(79, 106, 255, 0.08);
    color: var(--accent-blue);
}

.feature-icon.cyan {
    background: rgba(0, 180, 216, 0.08);
    color: var(--accent-cyan);
}

.feature-icon.purple {
    background: rgba(124, 92, 252, 0.08);
    color: var(--accent-purple);
}

.feature-icon.green {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-green);
}

.feature-icon.orange {
    background: rgba(245, 158, 11, 0.08);
    color: var(--accent-orange);
}

.feature-icon.pink {
    background: rgba(236, 72, 153, 0.08);
    color: var(--accent-pink);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ---------- How It Works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(79, 106, 255, 0.2);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------- Compatibility ---------- */
.compat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.compat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.compat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.compat-card .compat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.compat-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.compat-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Download CTA ---------- */
.download-cta {
    background: linear-gradient(135deg, #4F6AFF 0%, #7C5CFC 100%);
    border-radius: var(--radius-2xl);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
}

.download-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 14px;
    position: relative;
    color: #fff;
}

.download-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 28px;
    position: relative;
}

.download-cta .btn-primary {
    position: relative;
    background: #fff;
    color: var(--accent-blue);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.download-cta .btn-primary:hover {
    background: #f0f2ff;
    color: var(--accent-blue);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* ---------- SEO Content ---------- */
.seo-section {
    padding: 60px 0;
}

.seo-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.seo-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-xs);
}

.seo-block h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.seo-block h3 .seo-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: rgba(79, 106, 255, 0.07);
    flex-shrink: 0;
}

.seo-block p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
}

.seo-block ul {
    list-style: none;
    padding: 0;
}

.seo-block ul li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(56, 79, 150, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.seo-block ul li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-main);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-question .faq-toggle {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0 24px;
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .compat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .compat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-meta {
        flex-direction: column;
        gap: 8px;
    }

    .download-cta {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .section {
        padding: 60px 0;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .compat-grid {
        grid-template-columns: 1fr;
    }
}