:root {
    --bg-dark: #0a0e14;
    --bg-card: #121824;
    --accent-mint: #00ffaa;
    --accent-blue: #00b8ff;
    --accent-purple: #9d4edd;
    --accent-red: #ff4a4a;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --border-color: rgba(0, 255, 170, 0.2);
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.grid-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.text-mint { color: var(--accent-mint); }

.section-subtitle {
    color: var(--text-dim);
    max-width: 750px;
    margin: 10px auto 40px auto;
    font-size: 1.05rem;
}

/* Header & Nav */
header {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 14, 20, 0.9);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--accent-mint); display: flex; align-items: center; gap: 10px; }
.logo span { color: #fff; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-mint); }

.cta-btn {
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid var(--accent-mint);
    color: var(--accent-mint);
    padding: 10px 22px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    background: var(--accent-mint);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
}

/* PASİF / DEVRE DIŞI GITHUB BUTONU STİLLERİ */
.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: var(--text-dim) !important;
    box-shadow: none !important;
    pointer-events: auto; /* Tooltip çıksın diye aktif tutuyoruz */
}

.disabled-btn:hover {
    background: rgba(148, 163, 184, 0.08) !important;
    color: var(--text-dim) !important;
    box-shadow: none !important;
}

.badge-disabled {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}

.disabled-footer-link {
    color: #64748b;
    cursor: not-allowed;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.secondary-btn {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(0, 184, 255, 0.1);
}

.secondary-btn:hover {
    background: var(--accent-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 184, 255, 0.4);
}

/* Hero Section */
.hero { padding: 80px 0 50px 0; text-align: center; }
.badge {
    background: rgba(0, 184, 255, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p { font-size: 1.2rem; color: var(--text-dim); max-width: 780px; margin: 0 auto 35px auto; }
.hero-actions { display: flex; gap: 15px; justify-content: center; margin-bottom: 50px; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
}

.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--accent-mint); }
.stat-label { font-size: 0.85rem; color: var(--text-dim); }

/* PHONE MOCKUPS / APP PREVIEW SECTION */
.app-preview-section { padding: 60px 0 80px 0; }

.phones-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.phone-mockup {
    width: 320px;
    height: 620px;
    background: #000;
    border: 4px solid #1e293b;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 255, 170, 0.15);
    padding: 12px;
}

.phone-notch {
    width: 120px;
    height: 18px;
    background: #1e293b;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #090d16;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px 16px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.phone-status-icons { display: flex; gap: 6px; }

.app-content { display: flex; flex-direction: column; gap: 14px; }
.app-title { font-family: var(--font-mono); font-weight: bold; font-size: 1.1rem; text-align: left; }

.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 12px;
    text-align: left;
}

.status-card { text-align: center; padding: 20px 10px; }
.app-badge { font-size: 0.7rem; font-family: var(--font-mono); padding: 4px 10px; border-radius: 10px; }
.app-badge.active { background: rgba(0, 255, 170, 0.15); color: var(--accent-mint); border: 1px solid var(--accent-mint); }

.node-count { margin-top: 10px; }
.huge-number { font-size: 2.8rem; font-weight: 800; font-family: var(--font-mono); color: #fff; line-height: 1; }
.sub-label { display: block; font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; }
.app-card-title { font-size: 0.85rem; font-weight: 600; color: #fff; }
.app-card-sub { font-size: 0.72rem; color: var(--text-dim); }

/* Switch Toggle CSS */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #334155; transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-mint); }
input:checked + .slider:before { transform: translateX(20px); }

.app-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-mini-stat { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); padding: 10px; border-radius: 8px; text-align: left; }
.stat-title { font-size: 0.7rem; color: var(--text-dim); display: block; }
.stat-val { font-size: 0.95rem; font-family: var(--font-mono); font-weight: bold; color: #fff; }

.app-action-btn {
    background: var(--accent-mint);
    color: var(--bg-dark);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-family: var(--font-mono);
    cursor: pointer;
    margin-top: 5px;
    transition: opacity 0.2s;
}

.app-action-btn:hover { opacity: 0.9; }

/* Phone 2 UI Elements */
.board-card { border-left: 3px solid var(--accent-mint); }
.board-header { display: flex; justify-content: space-between; font-size: 0.7rem; margin-bottom: 6px; }
.master-badge { color: var(--accent-mint); font-weight: bold; }
.node-id { color: var(--accent-blue); font-family: var(--font-mono); }
.time-text { color: var(--text-dim); }
.board-text { font-size: 0.78rem; color: #cbd5e1; line-height: 1.3; }

.packet-flow { background: #000; font-family: var(--font-mono); font-size: 0.7rem; }
.packet-logs { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }

/* Formula Section */
.formula-section {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 70px 0;
    text-align: center;
    margin: 40px 0;
}

.formula-title { font-size: 2.2rem; margin-bottom: 10px; }

.formula-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-mint);
    padding: 18px 28px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: #fff;
    display: inline-block;
    margin: 25px 0;
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.15);
}

.f-var { color: var(--accent-mint); font-weight: 600; }
.formula-explain { color: var(--text-dim); max-width: 720px; margin: 0 auto 40px auto; font-size: 0.98rem; }

.archetype-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: left; }
.arch-card { padding: 30px; border-radius: 12px; background: rgba(255,255,255,0.02); }
.arch-card.otlakci { border-left: 4px solid var(--accent-red); }
.arch-card.paylasan { border-left: 4px solid var(--accent-mint); }

.arch-card h3 { margin-bottom: 20px; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.arch-card.otlakci h3 { color: var(--accent-red); }
.arch-card.paylasan h3 { color: var(--accent-mint); }

.arch-card ul { list-style: none; }
.arch-card ul li { margin-bottom: 12px; color: var(--text-dim); font-size: 0.95rem; display: flex; align-items: flex-start; gap: 10px; }

.trigger-note { background: rgba(255, 74, 74, 0.1); padding: 10px; border-radius: 6px; color: #ff8888 !important; margin-top: 15px; }
.trigger-note-green { background: rgba(0, 255, 170, 0.1); padding: 10px; border-radius: 6px; color: var(--accent-mint) !important; margin-top: 15px; }

/* Tech Architecture Grid */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; margin: 50px 0; }
.tech-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 30px; transition: transform 0.3s, border-color 0.3s; }
.tech-card:hover { transform: translateY(-5px); border-color: var(--accent-mint); }
.tech-icon { font-size: 2rem; color: var(--accent-mint); margin-bottom: 20px; }
.tech-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.tech-card p { color: var(--text-dim); font-size: 0.95rem; }

/* Terminal Display */
.terminal { background: #05080c; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 20px; font-family: var(--font-mono); font-size: 0.88rem; color: #4ade80; box-shadow: inset 0 0 15px rgba(0,0,0,0.9); margin: 40px 0; text-align: left; }
.terminal-header { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-title { color: var(--text-dim); font-size: 0.8rem; margin-left: 10px; }
.terminal-body div { margin-bottom: 6px; }
.terminal-success { color: var(--accent-mint); font-weight: bold; }

/* SSS / FAQ ACCORDION SECTION STYLES */
.faq-section { padding: 70px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.active { border-color: var(--accent-mint); }

.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-sans);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-icon { color: var(--accent-mint); transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Security Section */
.security-section { padding: 60px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 40px; }
.sec-card { background: rgba(18, 24, 36, 0.6); border: 1px solid rgba(0, 184, 255, 0.2); padding: 25px; border-radius: 10px; }
.sec-card h3 { color: var(--accent-blue); font-size: 1.15rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.sec-card p { color: var(--text-dim); font-size: 0.9rem; }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 35px 0; background: #05080c; }
.footer-content { display: flex; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: 0.9rem; }

@media (max-width: 868px) {
    .nav-links { display: none; }
    .archetype-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.3rem; }
    .footer-content { flex-direction: column; gap: 15px; }
}

/* ======================================================
   MOBİL İÇİN EKLENEN EK CSS KURALLARI (HİÇBİR ŞEYİ BOZMADAN)
   ====================================================== */
@media (max-width: 768px) {
    .container {
        width: 92%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero {
        padding: 40px 0 30px 0;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .phones-container {
        gap: 20px;
    }

    .phone-mockup {
        width: 100%;
        max-width: 310px;
        height: auto;
        min-height: 580px;
    }

    .formula-section {
        padding: 40px 0;
    }

    .formula-title {
        font-size: 1.5rem;
    }

    .formula-box {
        width: 100%;
        font-size: 0.88rem;
        padding: 12px 10px;
        word-break: break-all;
    }

    .arch-card {
        padding: 20px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }

    .tech-card {
        padding: 20px;
    }

    .terminal {
        padding: 12px;
        font-size: 0.75rem;
        overflow-x: auto;
    }

    .security-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 15px 15px 15px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.2rem;
    }

    .cta-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}