/* ============================================================
   LogicSnare / Akıl Kapanı — landing page styles
   Modern dark theme matching the in-game palette.
   Mobile-first, RTL-aware (`.rtl` class set by i18n.js).
   ============================================================ */

:root {
    --bg-0: #060810;
    --bg-1: #0a0e1a;
    --bg-2: #131a2a;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --text: #e8ecf5;
    --text-muted: #97a0b5;
    --accent: #FFD700;       /* gold — same as app combo highlight */
    --accent-2: #00E676;     /* green — correct */
    --accent-3: #FF4081;     /* pink — combo */
    --primary: #6A1B9A;      /* deep purple */
    --primary-2: #8E24AA;
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --container-max: 1180px;
    --radius: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-0);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 800px 600px at 20% 0%, rgba(106,27,154,0.18), transparent 60%),
        radial-gradient(ellipse 700px 500px at 80% 30%, rgba(0,230,118,0.08), transparent 60%),
        var(--bg-0);
}

body.rtl {
    font-family: 'Cairo', 'Inter', sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========== HEADER =========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6,8,16,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    min-height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.brand-name {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent) 0%, #ffec80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}
.nav a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.lang-switch { position: relative; }
.lang-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s;
}
.lang-button:hover { background: var(--bg-card-hover); }
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
}
.rtl .lang-menu { right: auto; left: 0; }
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: start;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    transition: background 0.15s;
}
.lang-menu li button:hover { background: var(--bg-card-hover); }

/* =========== HERO =========== */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
}
.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero-title .accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, #ff9800 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle {
    font-size: clamp(16px, 1.4vw, 20px);
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 540px;
}
.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.tag {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-cta.center { justify-content: center; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(106,27,154,0.4);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(106,27,154,0.55); }
.btn-store { padding: 12px 20px; }
.btn-store small {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    margin-bottom: 2px;
}
.btn-store strong { font-size: 16px; font-weight: 700; }
.btn-store > span { display: flex; flex-direction: column; align-items: flex-start; }
.rtl .btn-store > span { align-items: flex-end; }
.badge-soon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: #1a1300;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rtl .badge-soon { right: auto; left: -8px; }
.hero-platforms {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

/* phone mockup */
.phone-mockup {
    --w: min(320px, 90%);
    width: var(--w);
    height: calc(var(--w) * 2.05);
    margin: 0 auto;
    background: linear-gradient(145deg, #1a1f2e 0%, #0d111a 100%);
    border: 8px solid #1a1f2e;
    border-radius: 42px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    padding: 4px;
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
}
.phone-mockup:hover { transform: rotate(0deg); }
.phone-mockup.small { --w: min(260px, 90%); }
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #060810;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}
.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #060810;
    position: relative;
}
.phone-screen-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(106,27,154,0.2) 0%, rgba(0,230,118,0.15) 100%),
        repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,0.02) 8px 16px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* =========== STATS BAR =========== */
.stats-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    padding: 32px 0;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-num {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.stat-label {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========== SECTIONS =========== */
.section {
    padding: 100px 0;
}
.section-alt {
    background: linear-gradient(180deg, transparent 0%, rgba(106,27,154,0.04) 50%, transparent 100%);
}
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-head h2,
.two-col h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.section-sub,
.two-col p {
    color: var(--text-muted);
    font-size: 17px;
}
.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.feature-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: rgba(255,215,0,0.3);
}
.feature-card.highlight {
    background: linear-gradient(135deg, rgba(255,215,0,0.08) 0%, rgba(0,230,118,0.05) 100%);
    border-color: rgba(255,215,0,0.25);
}
.feature-icon {
    font-size: 36px;
    margin-bottom: 14px;
    line-height: 1;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.benefit {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.benefit-num {
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 56px;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    letter-spacing: -0.05em;
    line-height: 1;
}
.rtl .benefit-num { right: auto; left: 22px; }
.benefit h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}
.benefit p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    position: relative;
}

/* two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.two-col.reverse { direction: ltr; }
.rtl .two-col { direction: rtl; }
.two-col p {
    margin: 14px 0 24px;
    font-size: 17px;
    line-height: 1.7;
}
.check-list li {
    padding: 10px 0 10px 32px;
    position: relative;
    color: var(--text);
    font-size: 15px;
    border-top: 1px solid var(--border);
}
.rtl .check-list li { padding: 10px 32px 10px 0; }
.check-list li:first-child { border-top: 0; }
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    background: var(--accent-2);
    color: #001a08;
    border-radius: 50%;
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rtl .check-list li::before { left: auto; right: 0; }

/* card stack */
.cards-preview {
    display: flex;
    justify-content: center;
}
.card-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 360px;
}
.card-tile {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-2) 50%, #4a148c 100%);
    border: 2px solid rgba(255,215,0,0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.3s;
    transform: rotate(calc(-2deg + var(--i) * 0.8deg)) translateY(calc(var(--i) * 2px));
}
.card-tile:hover { transform: rotate(0) translateY(-6px); }

/* screenshots */
.screenshots-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 16px 24px;
    margin: 0 -24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.screenshots-strip::-webkit-scrollbar { display: none; }
.screenshots-strip { scrollbar-width: none; }
.screenshot-frame {
    flex: 0 0 auto;
    width: 220px;
    aspect-ratio: 9/19;
    background: linear-gradient(145deg, #1a1f2e 0%, #0d111a 100%);
    border: 6px solid #1a1f2e;
    border-radius: 28px;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
}
.screenshot-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 14px;
    background: #060810;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}
.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(106,27,154,0.25) 0%, rgba(255,215,0,0.1) 100%),
        repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,0.02) 6px 12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.screenshot-placeholder small {
    color: var(--accent);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}
.screenshots-note {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

/* CTA */
.section-cta {
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(255,215,0,0.1) 0%, transparent 70%),
        linear-gradient(180deg, transparent 0%, rgba(106,27,154,0.1) 100%);
}
.cta-row { max-width: 720px; margin: 0 auto; }
.cta-row h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.cta-sub { color: var(--text-muted); font-size: 18px; margin-bottom: 32px; }

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.4);
    padding: 40px 0;
}
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 24px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 900px) {
    .nav { display: none; }
    .hero-row,
    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-text { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-tags,
    .hero-cta { justify-content: center; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
    .section { padding: 70px 0; }
    .hero { padding: 60px 0 70px; }
    .footer-row { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .header-row { padding: 12px 16px; gap: 12px; }
    .nav, .brand-name { font-size: 14px; }
    .hero-cta .btn { padding: 12px 16px; font-size: 14px; }
    .features-grid,
    .benefits-grid { grid-template-columns: 1fr; }
}

/* RTL adjustments */
.rtl .nav,
.rtl .hero-cta,
.rtl .footer-links { direction: rtl; }
.rtl .hero-text { text-align: right; }
@media (max-width: 900px) {
    .rtl .hero-text { text-align: center; }
}
