/* ──────────────────────────────────────────────
   LiveScoreJSON — Landing Page
   NEDEN: api-guide.html ile tutarlı tasarım dili.
   Accent #059669, Inter font, minimal profesyonel.
   ────────────────────────────────────────────── */

:root {
    --bg: #fff;
    --bg-alt: #f7f8fa;
    --bg-dark: #0f172a;
    --text: #1a1a1a;
    --text-light: #555;
    --text-muted: #94a3b8;
    --border: #e0e0e0;
    --accent: #059669;
    --accent-hover: #047857;
    --accent-light: #d1fae5;
    --accent-glow: rgba(5,150,105,0.15);
    --blue: #2563eb;
    --purple: #7c3aed;
    --orange: #d97706;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    background: var(--bg);
    overflow-x: hidden;
}

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.nav .logo {
    font-weight: 700; font-size: 17px; color: var(--text);
    text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.nav .version { font-size: 11px; color: var(--accent); border: 1px solid var(--border); padding: 1px 8px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-size: 13px; color: var(--text-light); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links .cta {
    background: var(--accent); color: #fff !important; padding: 7px 18px;
    border-radius: 6px; font-weight: 600; transition: background 0.2s;
}
.nav-links .cta:hover { background: var(--accent-hover); }
.lang-switch {
    background: none; border: 1px solid var(--border); border-radius: 4px;
    padding: 3px 10px; font-family: inherit; font-size: 12px; font-weight: 600;
    color: var(--text-light); cursor: pointer; transition: border-color 0.2s;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO ── */
.hero {
    padding: 140px 32px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    position: relative;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hero h1 {
    font-size: clamp(28px, 5vw, 44px); font-weight: 800;
    line-height: 1.2; max-width: 700px; margin: 0 auto 16px;
    letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--accent); }
.hero .sub {
    font-size: clamp(15px, 2vw, 18px); color: var(--text-light);
    max-width: 560px; margin: 0 auto 32px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px;
    text-decoration: none; transition: all 0.2s; border: none; cursor: pointer;
    font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 12px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── STATS ── */
.stats {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    padding: 48px 32px; background: var(--bg);
}
.stat-item { text-align: center; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── SECTION ── */
.section { padding: 72px 32px; max-width: 1080px; margin: 0 auto; }
.section-tag {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent); margin-bottom: 8px;
}
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.section-desc { color: var(--text-light); max-width: 600px; margin-bottom: 36px; }

/* ── FEATURES ── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px;
    padding: 24px; transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px var(--accent-glow); }
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ── CODE PREVIEW ── */
.code-section {
    background: var(--bg-dark); padding: 72px 32px; margin: 0; color: #e2e8f0;
}
.code-section .section-tag { color: #7dd3fc; }
.code-section .section-title { color: #fff; }
.code-section .section-desc { color: var(--text-muted); }
.code-block {
    background: #1e293b; border-radius: 8px; padding: 20px 24px;
    font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7;
    overflow-x: auto; max-width: 680px; border: 1px solid #334155;
}
.code-block .c { color: #64748b; }
.code-block .k { color: #7dd3fc; }
.code-block .s { color: #86efac; }
.code-block .n { color: #fbbf24; }

/* ── PRICING ── */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; max-width: 900px; margin: 0 auto;
}
.price-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 28px 24px; text-align: center; transition: border-color 0.2s, transform 0.2s;
    position: relative;
}
.price-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.price-card.featured { border: 2px solid var(--accent); }
.price-card.featured::before {
    content: attr(data-badge); position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 14px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.price-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.price-amount { font-size: 36px; font-weight: 800; color: var(--accent); margin: 12px 0 4px; }
.price-amount .currency { font-size: 18px; font-weight: 600; vertical-align: super; }
.price-amount .period { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.price-desc { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.price-features { list-style: none; text-align: left; margin-bottom: 24px; }
.price-features li {
    font-size: 13px; padding: 5px 0; border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 8px;
}
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 12px; }
.price-btn { width: 100%; }

/* ── FOOTER ── */
.footer {
    background: var(--bg-alt); border-top: 1px solid var(--border);
    padding: 40px 32px; text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-light); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--border); border-radius: 4px;
    padding: 5px 10px; font-size: 18px; cursor: pointer; color: var(--text);
    line-height: 1;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .nav { padding: 0 16px; }
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 56px; left: 0; right: 0;
        background: #fff; flex-direction: column; gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 16px; border-top: 1px solid var(--border);
        font-size: 14px;
    }
    .nav-links .lang-switch { margin: 0 16px 12px; align-self: flex-start; }
    .hero { padding: 120px 16px 60px; }
    .stats { gap: 24px; padding: 32px 16px; }
    .stat-value { font-size: 24px; }
    .section { padding: 48px 16px; }
    .pricing-grid { grid-template-columns: 1fr; }
}
