@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --primary: #FF9F1C;
    --primary-hover: #E88D0C;
    --secondary: #2EC4B6;
    --bg-body: #050505;
    --bg-surface: #121212;
    --bg-card: #1A1A1A;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 159, 28, 0.3);
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --success: #2EC4B6;
    --error: #E71D36;
    --gradient-main: linear-gradient(135deg, #FF9F1C 0%, #FF5F1F 100%);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.08), transparent 60%);
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(46, 196, 182, 0.05), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-primary { background: rgba(255, 159, 28, 0.15); color: var(--primary); border: 1px solid rgba(255, 159, 28, 0.2); }
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.logo img { height: 32px; width: auto; }
.logo .d { color: var(--primary); }
.logo-icon { width: 32px; height: 32px; background: var(--gradient-main); border-radius: 8px; display: grid; place-items: center; color: black; font-weight: 900; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.nav-link:hover, .nav-link.active { color: var(--text-main); }
.btn-nav {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border);
}
.btn-nav:hover { border-color: var(--text-muted); }
.btn-nav.primary { background: var(--text-main); color: black; border: none; }
.btn-nav.primary:hover { background: #e0e0e0; transform: translateY(-1px); }

/* Hero */
.hero { padding: 120px 0 80px; text-align: center; position: relative; }
.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { font-size: 20px; color: var(--text-muted); max-width: 640px; margin: 0 auto 48px; font-weight: 300; }
.hero-cta { display: flex; gap: 16px; justify-content: center; }
.btn-lg {
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--primary); color: #000; box-shadow: 0 4px 20px rgba(255, 159, 28, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 159, 28, 0.5); background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }

/* Features Grid & Roadmap */
.features-section { padding: 80px 0; overflow: hidden; }

.roadmap-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 0;
}

/* The Central "Road" Line */
.road-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(to bottom, var(--border) 0, var(--border) 10px, transparent 10px, transparent 20px);
    transform: translateX(-50%);
    z-index: 0;
}
.road-line::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%;
    width: 12px; height: 12px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary);
}

.roadmap-step {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
    z-index: 1;
}
.roadmap-step:last-child { margin-bottom: 0; }

/* Alternating Layout */
.roadmap-step.left { justify-content: flex-start; padding-right: 50%; }
.roadmap-step.right { justify-content: flex-end; padding-left: 50%; }

.roadmap-step.left .step-content { margin-left: auto; margin-right: 40px; text-align: right; }
.roadmap-step.right .step-content { margin-right: auto; margin-left: 40px; text-align: left; }

/* The Marker (Pin) on the Road */
.step-marker {
    position: absolute;
    left: 50%;
    width: 56px; height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 20px;
    box-shadow: 0 0 0 8px var(--bg-body); /* Creates a gap around the line */
    z-index: 2;
}

/* Connecting Curves */
.roadmap-step::before {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    width: 40px;
    background: var(--primary);
    opacity: 0.5;
    z-index: 0;
}
.roadmap-step.left::before { right: 50%; }
.roadmap-step.right::before { left: 50%; }

/* The Content Box (Bookmark Style) */
.step-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.step-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Triangle indicator for the box */
.step-content::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px; height: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transform: translateY(-50%) rotate(45deg);
}
.roadmap-step.left .step-content::after { right: -7px; border-left: none; border-bottom: none; }
.roadmap-step.right .step-content::after { left: -7px; border-right: none; border-top: none; }

.step-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--primary);
    background: rgba(255, 159, 28, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.step-content h3 { font-size: 20px; margin-bottom: 12px; color: var(--text-main); }
.step-content p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
    .road-line { left: 24px; transform: none; }
    .roadmap-step { flex-direction: column; align-items: flex-start; margin-bottom: 60px; }
    .roadmap-step.left, .roadmap-step.right { justify-content: flex-start; padding: 0 0 0 60px; }
    
    .step-marker { left: 24px; width: 40px; height: 40px; font-size: 16px; }
    .roadmap-step::before { display: none; } /* Hide connectors on mobile */
    
    .roadmap-step.left .step-content, .roadmap-step.right .step-content { 
        margin: 0; text-align: left; max-width: 100%; 
    }
    .step-content::after {
        top: 20px; left: -7px; right: auto;
        border-right: none !important; border-top: none !important;
        border-left: 1px solid var(--border) !important; 
        border-bottom: 1px solid var(--border) !important;
    }
}


/* Comparison */
.comparison { padding: 100px 0; background: linear-gradient(to bottom, var(--bg-body), var(--bg-surface)); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 42px; margin-bottom: 16px; font-weight: 700; }
.comp-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}
.comp-vs { font-size: 24px; font-weight: 800; color: var(--text-muted); background: var(--bg-card); padding: 10px; border-radius: 50%; }
.comp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.comp-card.winner { border-color: var(--primary); box-shadow: 0 0 40px rgba(255, 159, 28, 0.15); }
.comp-card.winner::before {
    content: 'Önerilen';
    position: absolute; top: 20px; right: 20px;
    background: var(--primary); color: #000;
    font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.img-container {
    height: 180px; /* Sabit yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
}
.comp-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Görseli bozmadan sığdır */
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s;
}
.comp-card.winner img { filter: none; }
.comp-stats { margin-top: 24px; text-align: left; }
.stat-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.stat-row:last-child { border: none; }
.stat-val { font-weight: 600; }
.stat-val.good { color: var(--success); }
.stat-val.bad { color: var(--error); }

/* Dashboard - Advanced */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0; /* Sidebar ile content'i birleştiriyoruz */
    min-height: calc(100vh - 80px); /* Navbar düşüldü */
}
.dash-sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
}
.dash-menu { display: flex; flex-direction: column; gap: 8px; }
.dash-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.dash-item i { width: 20px; text-align: center; font-size: 16px; }
.dash-item:hover, .dash-item.active { background: rgba(255, 159, 28, 0.1); color: var(--primary); }
.dash-content { padding: 40px; background: var(--bg-body); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.kpi-card { background: var(--bg-card); padding: 24px; border-radius: 16px; border: 1px solid var(--border); }
.kpi-title { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--text-main); }
.kpi-trend { font-size: 12px; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.trend-up { color: var(--success); }

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    height: 400px;
    position: relative;
}

/* API Management Styles */
.api-box-wrapper {
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.api-key-display { font-family: var(--font-mono); font-size: 16px; letter-spacing: 1px; color: var(--secondary); }

/* Billing Styles */
.billing-alert {
    background: rgba(231, 29, 54, 0.1);
    border: 1px solid var(--error);
    color: #ff8a8a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.billing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
}
.balance-title { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.balance-amount { font-size: 42px; font-weight: 700; color: var(--text-main); margin-bottom: 24px; }
.balance-amount span { font-size: 18px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.credit-card-row {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    align-items: center;
}
.cc-icon { color: var(--text-muted); font-size: 24px; }

/* Docs - Detailed */
.docs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 60px; padding: 60px 0; }
.docs-nav { position: sticky; top: 100px; max-height: 80vh; overflow-y: auto; border-right: 1px solid var(--border); padding-right: 20px; }
.docs-nav h4 { color: var(--text-main); margin: 24px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.docs-nav a { display: block; padding: 8px 0; color: var(--text-muted); font-size: 14px; border-left: 2px solid transparent; padding-left: 12px; }
.docs-nav a:hover, .docs-nav a.active { color: var(--primary); border-left-color: var(--primary); }

.docs-main h1 { font-size: 36px; margin-bottom: 20px; }
.docs-main h2 { font-size: 24px; margin: 40px 0 20px; color: var(--text-main); border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.docs-main p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.endpoint-badge {
    display: inline-block; padding: 4px 8px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700; margin-right: 10px;
}
.badge-post { background: rgba(46, 196, 182, 0.2); color: var(--secondary); }
.badge-get { background: rgba(61, 90, 254, 0.2); color: #536dfe; }

.code-window {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}
.code-header {
    background: rgba(255,255,255,0.03);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.code-lang { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.code-content {
    padding: 20px;
    color: #e0e0e0;
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.6;
}
.token-key { color: #ff79c6; }
.token-str { color: #f1fa8c; }
.token-num { color: #bd93f9; }

/* Footer */
.footer { background: #000; border-top: 1px solid var(--border); padding: 80px 0 40px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-muted); margin-top: 16px; font-size: 14px; max-width: 300px; }
.footer-col h4 { font-size: 16px; font-weight: 600; margin-bottom: 24px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); color: #555; font-size: 13px; }

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.price-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(255, 159, 28, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    transform: scale(1.05);
    z-index: 10;
}
.price-card:hover { border-color: var(--primary); transform: translateY(-10px); }
.price-card h3 { font-size: 20px; margin-bottom: 12px; font-weight: 700; }
.price-amount { font-size: 48px; font-weight: 800; color: var(--text-main); margin-bottom: 8px; }
.price-amount span { font-size: 16px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.price-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.price-features { margin-bottom: 40px; flex-grow: 1; }
.price-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-muted);
}
.price-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 900;
}
.price-card .btn-lg { width: 100%; justify-content: center; }

@media (max-width: 768px) {
    .hero h1 { font-size: 42px; }
    .comp-wrapper { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
}