/* =========================================================================
   BulBeni — Tanıtım sitesi tasarım sistemi
   Marka: güvenilir, sade, panik oluşturmayan. Mobil öncelikli.
   Renkler mobil app_theme.dart ile aynı.
   ========================================================================= */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-soft: #EFF4FF;
    --emergency: #DC2626;
    --success: #16A34A;
    --purple: #7C3AED;

    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;

    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
    --shadow-lg: 0 12px 40px rgba(37, 99, 235, .18);
    --container: 1120px;
    --space: clamp(3.5rem, 8vw, 6rem);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--primary); color: #fff; padding: .75rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
section { padding: var(--space) 0; }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Tipografi ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--primary); margin-bottom: .75rem;
}

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
    padding: .95rem 1.6rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-emergency { background: var(--emergency); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand-name { font-size: 1.2rem; letter-spacing: -.02em; }

.primary-nav ul { display: flex; align-items: center; gap: .35rem; }
.primary-nav a {
    color: var(--text); font-weight: 500; font-size: .95rem;
    padding: .5rem .8rem; border-radius: 8px;
}
.primary-nav a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.primary-nav a.active { color: var(--primary); font-weight: 600; }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    cursor: pointer; padding: .5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(120% 120% at 80% -10%, #DBEAFE 0%, var(--bg) 55%);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 100px; padding: .4rem .9rem;
    font-size: .85rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow);
}
.hero h1 { margin: 1.1rem 0 1rem; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; color: var(--muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust strong { color: var(--text); }

.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: min(340px, 80%); filter: drop-shadow(0 24px 48px rgba(37, 99, 235, .25)); border-radius: 32px; }

/* ---------- Kategoriler ---------- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CBD5E1; }
.card-icon { font-size: 2rem; line-height: 1; margin-bottom: .9rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .tag-sensitive {
    display: inline-block; margin-top: .8rem; font-size: .72rem; font-weight: 700;
    color: var(--emergency); background: #FEF2F2; border-radius: 6px; padding: .2rem .5rem;
}

/* ---------- Adımlar ---------- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
    background: var(--primary); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Özellik / güvenlik şeritleri ---------- */
.feature-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature {
    display: flex; gap: 1rem; padding: 1.4rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.feature .ic {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--primary-soft); color: var(--primary); font-size: 1.4rem;
}
.feature h3 { margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- Bantlar (alternatif arka plan) ---------- */
.band-soft { background: var(--primary-soft); }
.band-dark { background: var(--text); color: #fff; }
/* Sadece bölüm başlığı beyaz; kartların (beyaz zeminli .feature) içindeki başlıklar koyu kalır. */
.band-dark .section-head h2, .band-dark .section-head h3, .band-dark > .container > h2 { color: #fff; }
.band-dark .lead { color: #CBD5E1; }

/* ---------- İndirme alanı ---------- */
.download-inner { text-align: center; }
.store-badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.8rem; }
.store-badge {
    display: inline-flex; align-items: center; gap: .75rem; background: var(--text); color: #fff;
    padding: .8rem 1.4rem; border-radius: var(--radius-sm); font-weight: 600; min-width: 200px;
}
.store-badge:hover { text-decoration: none; opacity: .92; }
.store-badge.disabled { opacity: .55; cursor: default; }
.store-badge .store-ic { font-size: 1.7rem; }
.store-badge small { display: block; font-size: .72rem; font-weight: 500; opacity: .8; }
.store-badge b { font-size: 1.05rem; }

/* ---------- SSS / accordion ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    font-family: inherit; font-size: 1.02rem; font-weight: 600; color: var(--text);
    padding: 1.15rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .chev { transition: transform .2s ease; color: var(--primary); flex: 0 0 auto; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a > div { padding: 0 1.25rem 1.25rem; color: var(--muted); }

/* ---------- CTA kapanış ---------- */
.cta-final { text-align: center; }
.cta-final .btn { margin-top: 1.5rem; }

/* ---------- İçerik sayfaları (gizlilik/şartlar vb.) ---------- */
.page-hero { background: var(--primary-soft); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.page-hero h1 { margin-bottom: .6rem; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: #334155; margin-bottom: .8rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .4rem; }
.prose strong { color: var(--text); }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* ---------- Uyarı kutusu ---------- */
.callout {
    border-left: 4px solid var(--emergency); background: #FEF2F2; border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem; margin: 1.5rem 0; color: #7F1D1D;
}
.callout.info { border-left-color: var(--primary); background: var(--primary-soft); color: #1E3A8A; }
.callout strong { color: inherit; }

/* ---------- İletişim formu ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.form-field input, .form-field textarea {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
    padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); transition: border-color .15s ease;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 500; }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #CBD5E1; margin-top: var(--space); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding: 3.5rem 1.25rem 2.5rem; }
.site-footer .brand-name { color: #fff; }
.footer-tagline { font-size: .92rem; margin: 1rem 0; max-width: 38ch; }
.footer-emergency { font-size: .88rem; color: #FCA5A5; }
.footer-col h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { color: #CBD5E1; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1E293B; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.footer-bottom p { font-size: .85rem; color: #94A3B8; }
.footer-note { color: var(--success) !important; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .hero-grid { grid-template-columns: 1.1fr .9fr; }
    .contact-grid { grid-template-columns: 1.2fr .8fr; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 68px 0 auto 0; background: var(--surface);
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
    }
    .primary-nav.open { transform: translateY(0); visibility: visible; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
    .primary-nav a { padding: .85rem .5rem; border-radius: 0; border-bottom: 1px solid var(--border); }
    .nav-cta { margin: .75rem 0 0; }
    .nav-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
