@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Noto+Sans+SC:wght@400;500;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg: #0A0F1A;
    --surface: #0F1826;
    --text: #E8EEF5;
    --muted: #8B98AC;
    --primary: #35E3C5;
    --secondary: #5B9DFF;
    --hairline: rgba(139,152,172,0.18);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.code, .data, .label {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    color: var(--text);
}

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

.nav-menu a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
}

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

.hero {
    text-align: center;
    padding: 80px 20px 100px;
    background-color: var(--bg);
    background-image: 
        linear-gradient(var(--hairline) 1px, transparent 1px),
        linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
    background-size: 26px 26px;
    border-bottom: 1px solid var(--hairline);
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero p.intro {
    font-size: 18px;
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto 40px;
}

.code-snippet {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 7px;
    padding: 24px;
    text-align: left;
    max-width: 540px;
    margin: 0 auto 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
    border: 1px solid var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    box-shadow: 0 0 0 1px var(--primary);
    outline: none;
    background: transparent;
    color: var(--primary);
}

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

.btn-secondary:hover, .btn-secondary:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    outline: none;
    color: var(--primary);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid var(--hairline);
    padding-top: 30px;
    color: var(--muted);
}

section {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
}

.grid {
    display: grid;
    gap: 30px;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 7px;
    padding: 40px 30px;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

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

.card p {
    color: var(--muted);
    font-size: 15px;
}

.price-card {
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-radius: 7px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.price-card.popular {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--primary);
}

.price-card .label-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.price {
    font-size: 48px;
    margin: 24px 0;
}

.price span {
    font-size: 16px;
    color: var(--muted);
    font-family: 'Noto Sans SC', sans-serif;
}

.price-features {
    list-style: none;
    margin-bottom: 40px;
    color: var(--muted);
    text-align: left;
}

.price-features li {
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li::before {
    content: '>';
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 7px;
    padding: 24px;
    margin-bottom: 20px;
}

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

.faq-item p {
    color: var(--muted);
    font-size: 15px;
}

.footer {
    padding: 60px 0;
    background: var(--surface);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links a {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--muted);
    font-size: 14px;
}

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

.page-content {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.page-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--text);
}

.page-content p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.page-content ul {
    color: var(--muted);
    padding-left: 20px;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 20px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero h1 { font-size: 40px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; }
    .btn { width: 100%; }
    .stats-container { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links { flex-direction: column; gap: 20px; }
    .hero-layout { flex-direction: column; text-align: center; gap: 40px; }
    .hero-image { display: none; }
    .hero-text h1, .hero-text p, .hero-text .code-snippet, .hero-text .btn-group, .hero-text .stats-container { text-align: center !important; justify-content: center !important; margin-left: auto !important; margin-right: auto !important; }
}

/* Hero Image Layout */
.hero-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
}
.hero-text { flex: 1.2; }
.hero-image { flex: 1; position: relative; }
.hero-image img {
    width: 100%;
    border-radius: 7px;
    border: 1px solid var(--hairline);
    box-shadow: 0 0 0 1px var(--hairline), 0 15px 40px rgba(0,0,0,0.4);
    display: block;
    position: relative;
    z-index: 2;
}
.hero-image::after {
    content: '';
    position: absolute;
    top: -15px; left: -15px; right: 15px; bottom: 15px;
    border: 1px solid var(--primary);
    border-radius: 7px;
    z-index: 1;
    opacity: 0.2;
}

/* Floating Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
.floating-btn {
    background: var(--surface);
    border: 1px solid var(--hairline);
    color: var(--muted);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s;
    text-decoration: none;
}
.floating-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Next Article Card */
.next-article-card {
    display: block;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 7px;
    margin-top: 15px;
    text-decoration: none;
    transition: all 0.2s;
}
.next-article-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    background: var(--bg);
}
