:root {
    --bg:           #0F0F0F;
    --card-bg:      #181818;
    --border:       rgba(255, 255, 255, 0.08);
    --text:         #F1F1F1;
    --muted:        #AAAAAA;
    --accent:       #F1F1F1;
    --navbar-bg:    rgba(15, 15, 15, 0.82);
    --theme-toggle-bg: rgba(255,255,255,0.08);
    --theme-toggle-color: #AAAAAA;
}

/* ── Light mode ──────────────────────────────────────────────── */
body.light-mode {
    --bg:           #F7F7F8;
    --card-bg:      #FFFFFF;
    --border:       rgba(0, 0, 0, 0.09);
    --text:         #111111;
    --muted:        #666666;
    --accent:       #111111;
    --navbar-bg:    rgba(255, 255, 255, 0.92);
    --theme-toggle-bg: rgba(0,0,0,0.06);
    --theme-toggle-color: #555555;
}

/* Light mode specific overrides */
body.light-mode .hero::before { background: radial-gradient(circle, rgba(0,0,0,0.025) 0%, transparent 65%); }
body.light-mode .btn-primary { background: #111111; color: #FFFFFF; }
body.light-mode .btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
body.light-mode .btn-secondary { border-color: rgba(0,0,0,0.15); }
body.light-mode .btn-secondary:hover { background: rgba(0,0,0,0.04); }
body.light-mode .badge { background: rgba(0,0,0,0.04); }
body.light-mode .highlight { background: linear-gradient(130deg, #111 0%, #555 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode .feature-card .icon { background: rgba(0,0,0,0.04); }
body.light-mode .copyright { color: #999; border-top-color: rgba(0,0,0,0.06); }
body.light-mode .trusted-by { color: #888; }
body.light-mode .step-number { background: #111111; color: #FFFFFF; }

/* ── Theme toggle button ─────────────────────────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.theme-toggle {
    background: var(--theme-toggle-bg);
    border: 1px solid var(--border);
    color: var(--theme-toggle-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.theme-toggle:hover { background: var(--border); color: var(--text); }

/* Early flash prevention — applied before CSS loads */
html.light-mode-early body { background: #F7F7F8 !important; }

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Glass card ──────────────────────────────────────────── */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}
.btn-sm  { padding: 8px 18px;  font-size: 14px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; }

.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 68px;
    border-bottom: 1px solid var(--border);
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
}
.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.4px;
}
.logo img { border-radius: 6px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 148px 0 96px; position: relative; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute;
    top: -10%; left: 50%;
    transform: translateX(-50%);
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(255,255,255,0.035) 0%, transparent 65%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 54px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}
.highlight {
    background: linear-gradient(130deg, #fff 0%, #777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content > p {
    font-size: 17px;
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.trusted-by { font-size: 12px; color: #555; }
.platforms {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

/* ── Mockup — always dark regardless of site theme ──────────── */
.glass-mockup {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0,0,0,0.55);
    background: #0d0d0d;
}
.mockup-header {
    height: 28px;
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    padding: 0 12px;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #2e2e2e; }

.mockup-body {
    height: 300px;
    background: radial-gradient(ellipse at center, #222 0%, #090909 100%);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 32px;
}

.subtitle-bar {
    background: rgba(0,0,0,0.78);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    position: relative;
    z-index: 1;
    color: #ffffff; /* always white — never inherits theme */
}
.subtitle-bar .word { cursor: default; color: #ffffff; }
.subtitle-bar .word[data-word] {
    cursor: pointer;
    border-radius: 4px;
    padding: 0 3px;
    transition: background 0.15s, color 0.15s;
}
.subtitle-bar .word[data-word]:hover {
    background: rgba(255,255,255,0.22);
}
.subtitle-bar .word[data-word]:focus-visible {
    outline: 2px solid rgba(255,255,255,0.75);
    outline-offset: 1px;
}
.subtitle-bar .highlight-word {
    border-bottom: 1.5px dashed rgba(255,255,255,0.55);
    position: relative;
    color: #ffffff;
}
.subtitle-bar .highlight-word::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
}

.sm-popup-mockup {
    position: absolute;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    width: 230px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.65);
    z-index: 2;
    color: #ffffff; /* always white */
}
.sm-header-m {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sm-word-m  { font-weight: 700; font-size: 16px; color: #ffffff; }
.sm-tr-m   { font-size: 12px; color: #aaa; margin-top: 2px; }
.close-m   { color: #555; font-size: 12px; cursor: default; }
.sm-body-m { padding: 12px; }
.sm-sentence-m {
    font-size: 11px;
    color: #777;
    background: #111;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}
.sm-sentence-tr-m {
    font-size: 10px;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
    padding: 0 2px;
}
.sm-btn-m {
    background: #f1f1f1;
    color: #111;
    border: none;
    text-align: center;
    padding: 7px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* ── Features ────────────────────────────────────────────── */
.features { padding: 96px 0; }

.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}
.section-title p { color: var(--muted); font-size: 17px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card { padding: 28px 28px 32px; }

.feature-card .icon {
    font-size: 28px;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-card p  { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { padding: 0 0 96px; }

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.step { flex: 1; text-align: center; padding: 0 16px; }
.step-number {
    width: 46px; height: 46px;
    background: var(--text);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 18px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step p  { color: var(--muted); font-size: 14px; }

.step-line {
    flex: 0 0 60px;
    height: 1px;
    background: var(--border);
    margin-top: 23px;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta { padding: 0 0 110px; text-align: center; }
.cta-box { padding: 72px 40px; max-width: 740px; margin: 0 auto; }
.cta-box h2 { font-size: 38px; font-weight: 700; letter-spacing: -1px; margin-bottom: 14px; }
.cta-box p  { color: var(--muted); font-size: 17px; margin-bottom: 32px; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 52px 0 36px;
}
.footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.footer-brand img { border-radius: 5px; }
.footer-brand span { font-size: 18px; font-weight: 700; }
.footer-logo p { color: var(--muted); font-size: 13px; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }

.copyright {
    text-align: center;
    color: #444;
    font-size: 13px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content > p { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .trusted-by, .platforms { text-align: center; }
    .hero-image { max-width: 520px; margin: 0 auto; }
    .hero-content h1 { font-size: 42px; }
}

@media (max-width: 640px) {
    .hero { padding: 120px 0 72px; }
    .hero-content h1 { font-size: 34px; letter-spacing: -1px; }
    .hero-content > p { font-size: 15px; }
    .btn-lg { padding: 12px 22px; font-size: 15px; }
    .mockup-body { height: 360px; }
    .sm-popup-mockup { width: 190px; font-size: 11px; bottom: 100px; }
    .steps-container { flex-direction: column; align-items: center; gap: 36px; }
    .step-line { display: none; }
    .cta-box { padding: 48px 24px; }
    .cta-box h2 { font-size: 28px; }
    .section-title h2 { font-size: 26px; }
    .footer-container { flex-direction: column; gap: 28px; }
    .nav-right { gap: 8px; }
    .to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* ═══════════════════════════════════════════════════════════
   ENHANCEMENTS — 3D mockup, ambient glow, scroll reveal, hovers
   (Monokrom siyah-beyaz palet. Reduced-motion güvenli.)
   ═══════════════════════════════════════════════════════════ */

/* Scroll reveal — sadece JS <html>'e .reveal-ready eklediğinde gizli */
.reveal-ready .section-title,
.reveal-ready .feature-card,
.reveal-ready .step,
.reveal-ready .cta-box {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal-ready .section-title.visible,
.reveal-ready .feature-card.visible,
.reveal-ready .step.visible,
.reveal-ready .cta-box.visible { opacity: 1; transform: none; }

/* 3B hero mockup */
.hero-image { perspective: 1200px; }
.glass-mockup {
    transform: rotateY(-9deg) rotateX(4deg);
    transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
    will-change: transform;
    animation: sm-float 8s ease-in-out infinite;
}
.glass-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-6px);
    box-shadow: 0 44px 120px rgba(0,0,0,.72), 0 0 0 1px rgba(255,255,255,.22);
}
@keyframes sm-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Hero başlığında hafif shimmer (koyu tema) */
.hero-content h1 .highlight {
    background: linear-gradient(130deg, #ffffff 0%, #c9c9c9 48%, #ffffff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: sm-shine 7s ease-in-out infinite;
}
@keyframes sm-shine { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Açık temada: düz koyu metin, gradient/animasyon YOK (en güvenli, blok sorunu olmaz) */
body.light-mode .hero-content h1 .highlight {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #111111;
    color: #111111;
    background-size: auto;
    animation: none;
}

/* Ortam ışığı (hero + CTA) — nötr beyaz */
.hero::after {
    content: ''; position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
    width: 640px; height: 430px; pointer-events: none;
    background: radial-gradient(ellipse, rgba(255,255,255,.06) 0%, transparent 70%);
}
body.light-mode .hero::after { background: radial-gradient(ellipse, rgba(0,0,0,.05) 0%, transparent 70%); }
.cta-box { box-shadow: 0 0 90px -24px rgba(255,255,255,.10); }

/* Özellik kartı hover kaldırma + nötr kenar */
.feature-card { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.feature-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255,255,255,.24);
    box-shadow: 0 20px 54px rgba(0,0,0,.42);
}
body.light-mode .feature-card:hover { box-shadow: 0 20px 46px rgba(20,22,40,.12); border-color: rgba(0,0,0,.2); }

/* Birincil butonda parlaklık geçişi */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
    transform: translateX(-130%);
    transition: transform .65s ease;
}
.btn-primary:hover::after { transform: translateX(130%); }
body.light-mode .btn-primary::after { background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); }

/* Küçük kontrast düzeltmeleri */
.copyright { color: #666; }
body.light-mode .copyright { border-top-color: rgba(0,0,0,.06); }
.trusted-by { color: #666; }

/* Küçük ekranda hareket ağırlıklı efektleri kapat */
@media (max-width: 960px) {
    .glass-mockup { transform: none; animation: none; }
    .hero::after { width: 420px; }
}

/* Hareket azaltma tercihine saygı */
@media (prefers-reduced-motion: reduce) {
    .reveal-ready .section-title, .reveal-ready .feature-card, .reveal-ready .step, .reveal-ready .cta-box {
        opacity: 1 !important; transform: none !important; transition: none;
    }
    .glass-mockup { animation: none; transform: rotateY(-4deg); }
    .hero-content h1 .highlight { animation: none; }
    .btn-primary::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   INTERACTIONS 2 — kart 3B tilt, cursor spotlight, navbar, to-top
   (Monokrom. Reduced-motion + dokunmatik güvenli.)
   ═══════════════════════════════════════════════════════════ */

/* Özellik kartı 3B tilt hazırlığı */
.feature-card { transform-style: preserve-3d; will-change: transform; }
.feature-card .tilt-inner { transform: translateZ(0); }
.feature-card.tilting { transition: none; }

/* Kart üstünde mouse'u takip eden hafif spotlight */
.feature-card { position: relative; }
.feature-card .spotlight {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255,255,255,.10), transparent 60%);
}
body.light-mode .feature-card .spotlight {
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
                rgba(0,0,0,.05), transparent 60%);
}
.feature-card:hover .spotlight { opacity: 1; }

/* Navbar — aşağı kaydırınca hafifçe derinleşir */
.navbar { transition: box-shadow .3s ease, background .3s ease; }
.navbar.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.35); }
body.light-mode .navbar.scrolled { box-shadow: 0 8px 30px rgba(20,22,40,.10); }

/* Yukarı çık butonu */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--card-bg); color: var(--text);
    border: 1px solid var(--border); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, border-color .2s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
body.light-mode .to-top:hover { border-color: rgba(0,0,0,.22); }
.to-top svg { width: 18px; height: 18px; }

/* Dokunmatik / reduced-motion: tilt ve spotlight kapalı */
@media (hover: none), (prefers-reduced-motion: reduce) {
    .feature-card .spotlight { display: none; }
    .feature-card.tilting { transform: none !important; }
    .to-top { transition: opacity .2s ease, visibility .2s; }
}



/* ═══════════════════════════════════════════════════════════
   DİL SEÇİCİ (TR / EN)
   ═══════════════════════════════════════════════════════════ */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--theme-toggle-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}
.lang-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--theme-toggle-color);
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    line-height: 1;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
    background: var(--text);
    color: var(--bg);
}
body.light-mode .lang-btn.active {
    background: #111111;
    color: #ffffff;
}

/* Küçük ekranda dil seçiciyi koru ama butonu gizle */
@media (max-width: 560px) {
    .lang-btn { padding: 5px 9px; font-size: 11px; }
}

/* Çok küçük telefonlar (≤480px): navbar'daki "Add to Chrome" gizlenir
   (hero ve CTA'da büyük butonu zaten var, böylece navbar sığar) */
@media (max-width: 480px) {
    .nav-right .btn-primary { display: none; }
    .hero-content h1 { font-size: 30px; }
    .badge { font-size: 12px; }
    .platforms { font-size: 13px; }
}

