:root {
    --primary: #3584e4;
    --primary-dark: #1c71d8;
    --bg: #ffffff;
    --surface: #f8f9fa;
    --surface-hover: #f0f0f0;
    --text: #2c3e50;
    --text-secondary: #5e6c79;
    --border: #e9ecef;
    --success: #2ec27e;
    --accent: #78aeed;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #78aeed;
        --primary-dark: #3584e4;
        --bg: #1e1e1e;
        --surface: #2d2d2d;
        --surface-hover: #383838;
        --text: #e0e0e0;
        --text-secondary: #a0a0a0;
        --border: #404040;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Gradient Mesh Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80vh;
    background: radial-gradient(circle at 15% 50%, rgba(53, 132, 228, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(46, 194, 126, 0.08) 0%, transparent 25%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    padding: 24px 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

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

.logo svg {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(53, 132, 228, 0.3), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(53, 132, 228, 0.3), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(53, 132, 228, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(53, 132, 228, 0.3), transparent),
        radial-gradient(2px 2px at 90px 10px, rgba(53, 132, 228, 0.3), transparent);
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bracket-demo {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    font-size: 16px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(53, 132, 228, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(53, 132, 228, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

/* Stats */
.stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Demo Section */
.demo-section {
    padding: 60px 0;
    background: var(--surface);
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.browser-mockup {
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.browser-header {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    align-items: center;
}

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

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) {
    background: #ff5f56;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #27c93f;
}

.browser-url {
    flex: 1;
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.browser-content {
    padding: 32px;
    min-height: 200px;
}

.demo-text {
    text-align: center;
}

.demo-text p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 20px;
}

.demo-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.bracket-highlight {
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    background: rgba(53, 132, 228, 0.1);
    border: 1px dashed rgba(53, 132, 228, 0.3);
    font-weight: 500;
    display: inline-block;
}

.bracket-highlight:hover {
    background: rgba(53, 132, 228, 0.2);
    transform: translateY(-2px);
}

.bracket-highlight.copied {
    background: var(--success);
    color: white;
    border-color: transparent;
    animation: flash 2s forwards;
}

@keyframes flash {
    0% {
        background: var(--success);
    }

    50% {
        background: var(--success);
    }

    100% {
        background: rgba(53, 132, 228, 0.1);
        color: var(--text);
    }
}

.copy-feedback {
    margin-top: 20px;
    padding: 12px 24px;
    background: rgba(46, 194, 126, 0.2);
    color: var(--success);
    border-radius: 8px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}

/* Features Grid */
.features {
    padding: 80px 0;
}

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

.feature-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

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

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--surface);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(53, 132, 228, 0.3);
}

.step-content h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

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

.step-connector {
    width: 64px;
    height: 2px;
    background: var(--border);
}

/* Installation */
.installation {
    padding: 80px 0;
}

.installation-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.installation-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.installation-content>p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.installation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    text-align: left;
}

.method {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.method h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.method ol {
    padding-left: 24px;
}

.method li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.method code {
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary);
    border: 1px solid var(--border);
}

.method a {
    color: var(--primary);
    text-decoration: none;
}

.method a:hover {
    text-decoration: underline;
}

/* Release History */
.releases {
    padding: 80px 0;
    background: var(--surface);
}

.timeline {
    position: relative;
    padding-left: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.release-item {
    margin-bottom: 40px;
    position: relative;
}

.release-dot {
    position: absolute;
    left: -37px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg);
}

.release-version {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.latest-badge {
    font-size: 12px;
    font-weight: 600;
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
}

.release-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.release-content {
    background: var(--bg);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.release-content.loading,
.release-content.error {
    text-align: center;
}

.release-content ul {
    list-style: none;
}

.release-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.release-content li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.release-content a {
    color: var(--primary);
    text-decoration: none;
}

.release-content a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

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

.faq-item {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item a {
    color: var(--primary);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    background: var(--surface);
}

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

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 13px;
    }

    .hero-title {
        font-size: 36px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .stats {
        gap: 32px;
    }

    .step-connector {
        display: none;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .installation-content h2 {
        font-size: 28px;
    }
}