/*
 * Bemo Labs — site stylesheet
 *
 * Brand kit specifies the palette (Ink #0A0A0B, Paper #FAFAF7,
 * Muted #6B6B6E, Faint #D8D5CB, Accent #3D7BFF) and typography
 * (Inter Tight for everything readable, JetBrains Mono for small
 * captions / labels). Light + dark mode follow prefers-color-scheme.
 */

/* ---------- design tokens ---------- */

:root {
    --ink: #0A0A0B;
    --paper: #FAFAF7;
    --muted: #6B6B6E;
    --faint: #D8D5CB;
    --accent: #3D7BFF;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

    --bg: var(--paper);
    --fg: var(--ink);
    --secondary: var(--muted);
    --divider: var(--faint);
    --card-bg: #ffffff;

    --max-width: 1100px;
    --gutter: clamp(20px, 5vw, 48px);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0A0A0B;
        --fg: #FAFAF7;
        --secondary: #98989D;
        --divider: #2A2A2D;
        --card-bg: #1A1A1C;
    }
}

/* ---------- reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, system-ui, sans-serif;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- layout primitives ---------- */

.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 8vw, 96px); }

.eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin: 0 0 12px;
}

h1, h2, h3 {
    font-family: 'Inter Tight', sans-serif;
    letter-spacing: -0.02em;
    margin: 0;
}

h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 600; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

p { margin: 0 0 16px; color: var(--secondary); max-width: 60ch; }
p strong { color: var(--fg); font-weight: 500; }

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--divider);
    z-index: 50;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
}

.site-header__brand img {
    height: 28px;
    width: auto;
}

.site-header__brand--dark { display: none; }
@media (prefers-color-scheme: dark) {
    .site-header__brand--light { display: none; }
    .site-header__brand--dark { display: block; }
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: var(--card-bg);
    border: 1px solid var(--divider);
    border-radius: 999px;
}

.lang-switch button {
    background: transparent;
    border: 0;
    color: var(--secondary);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.lang-switch button:hover { color: var(--fg); }

.lang-switch button.is-active {
    background: var(--fg);
    color: var(--bg);
}

/* ---------- hero ---------- */

.hero {
    padding-block: clamp(64px, 10vw, 120px);
    text-align: center;
}

.hero__icon {
    width: 96px;
    height: 96px;
    margin-inline: auto;
    margin-bottom: 28px;
    border-radius: 22%;
    box-shadow: var(--shadow);
}

.hero h1 {
    max-width: 18ch;
    margin-inline: auto;
}

.hero p.lead {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--secondary);
    max-width: 50ch;
    margin: 20px auto 0;
}

/* ---------- app grid ---------- */

.apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--divider));
}

.app-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 20%;
    overflow: hidden;
}

.app-card__icon img { width: 100%; height: 100%; }

.app-card__title { font-size: 22px; }

.app-card__tagline {
    color: var(--secondary);
    font-size: 15px;
    margin: 0;
}

.app-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: color-mix(in srgb, var(--fg) 6%, transparent);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--secondary);
    letter-spacing: 0.04em;
}

.badge--coming {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.app-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--accent);
    font-weight: 500;
    font-size: 15px;
}

.app-card__cta::after { content: '→'; transition: transform .2s ease; }
.app-card:hover .app-card__cta::after { transform: translateX(4px); }

/* ---------- product page ---------- */

.product-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    padding-block: clamp(48px, 8vw, 96px);
}

@media (min-width: 800px) {
    .product-hero { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.product-hero__art {
    display: flex;
    justify-content: center;
}

.product-hero__art img {
    width: 240px;
    height: 240px;
    border-radius: 22%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-hero__copy h1 { font-size: clamp(36px, 5vw, 56px); }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    transition: opacity .15s ease, transform .15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }

.btn--primary {
    background: var(--fg);
    color: var(--bg);
}

.btn--secondary {
    background: transparent;
    color: var(--fg);
    border-color: var(--divider);
}

.btn--disabled {
    background: color-mix(in srgb, var(--secondary) 18%, transparent);
    color: var(--secondary);
    cursor: not-allowed;
}

.qr-card {
    display: inline-block;
    background: white;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.qr-card img { width: 140px; height: 140px; }

.qr-caption {
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--secondary);
    letter-spacing: 0.04em;
    text-align: center;
}

/* ---------- feature grid ---------- */

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

.feature {
    padding: 20px;
    border-left: 2px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 4%, transparent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.feature h3 { margin-bottom: 6px; }
.feature p { font-size: 14px; margin: 0; }

/* ---------- legal page (privacy / support) ---------- */

.legal {
    max-width: 720px;
    margin-inline: auto;
    padding-block: clamp(40px, 6vw, 72px);
}

.legal h1 { margin-bottom: 8px; }
.legal p.updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 32px;
}

.legal h2 { margin-top: 40px; margin-bottom: 12px; }
.legal h3 { margin-top: 24px; margin-bottom: 8px; }

.legal p, .legal li {
    color: var(--fg);
    font-size: 16px;
    line-height: 1.65;
    max-width: none;
}

.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--divider);
    padding-block: 40px;
    color: var(--secondary);
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__wordmark img { height: 18px; opacity: .65; }

/* ---------- language visibility ---------- */

/* Default: English visible, Turkish hidden until JS flips */
[data-lang="tr"] { display: none; }
html[lang="tr"] [data-lang="en"] { display: none; }
html[lang="tr"] [data-lang="tr"] { display: revert; }
