/* nivor.com.tr: the umbrella site. Plain CSS, no framework, no external requests (fonts, icons and scripts are all local).
   Colours are the Nivor design tokens (same values as ai/resources/scss/_tokens.scss); do not add colours outside this list. */
:root {
    --nivor-primary: #7c3aed;
    --nivor-primary-hover: #6d28d9;
    --nivor-accent: #06b6d4;
    --nivor-sidebar: #111827;
    --nivor-sidebar-hover: #1f2937;
    --nivor-sidebar-text: #d1d5db;
    --nivor-background: #f5f7fb;
    --nivor-surface: #ffffff;
    --nivor-text: #111827;
    --nivor-muted: #6b7280;
    --nivor-border: #e5e7eb;
    --nivor-success: #16a34a;
    --nivor-danger: #dc2626;
    --nivor-info: #0284c7;
    --nivor-warning: #d97706;
    --nivor-customer: #eef2ff;
    --nivor-whatsapp: #25d366;
    --radius: 1rem;
    --shadow: 0 1px 2px rgb(17 24 39 / 6%), 0 1px 3px rgb(17 24 39 / 8%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 1.0625rem; line-height: 1.65; color: var(--nivor-text); background: var(--nivor-surface); }
img, svg { max-width: 100%; }
a { color: var(--nivor-primary); }
a:hover { color: var(--nivor-primary-hover); }
:focus-visible { outline: 3px solid var(--nivor-primary); outline-offset: 2px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .cta :focus-visible { outline-color: var(--nivor-accent); }
.skip { position: absolute; left: -999px; top: 0; background: var(--nivor-surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.narrow { max-width: 44rem; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -0.15em; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--nivor-sidebar); color: var(--nivor-sidebar-text); border-bottom: 1px solid var(--nivor-sidebar-hover); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--nivor-surface); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; text-decoration: none; }
.brand img { display: block; }
.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--nivor-sidebar-text); text-decoration: none; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--nivor-surface); }
.nav a[aria-current='page'] { border-bottom: 2px solid var(--nivor-accent); }
.nav-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.2rem; border-radius: 0.65rem; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--nivor-primary); color: var(--nivor-surface); }
.btn-primary:hover { background: var(--nivor-primary-hover); color: var(--nivor-surface); }
.btn-light { background: var(--nivor-surface); color: var(--nivor-text); }
.btn-light:hover { background: var(--nivor-background); color: var(--nivor-text); }
.btn-ghost { border-color: rgb(255 255 255 / 45%); color: var(--nivor-surface); }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); color: var(--nivor-surface); }
.btn-outline { border-color: var(--nivor-primary); color: var(--nivor-primary); }
.btn-whatsapp { background: var(--nivor-whatsapp); color: var(--nivor-text); }
.btn-whatsapp:hover { background: color-mix(in srgb, var(--nivor-whatsapp), black 8%); color: var(--nivor-text); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.8rem; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.kicker { color: var(--nivor-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; margin-bottom: 0.5rem; }
.dark .kicker, .hero .kicker { color: var(--nivor-accent); }
.lead { font-size: 1.2rem; max-width: 38rem; }
.muted { color: var(--nivor-muted); }
.dark .muted, .hero .muted { color: var(--nivor-sidebar-text); }

/* Bands */
.hero { position: relative; overflow: hidden; background: var(--nivor-sidebar); color: var(--nivor-surface); padding: 5rem 0 4rem; }
.hero::before { content: ''; position: absolute; width: 44rem; height: 44rem; right: -10rem; top: -10rem; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--nivor-primary) 35%, transparent), transparent); pointer-events: none; }
.hero > .wrap { position: relative; }
.hero .lead { color: var(--nivor-sidebar-text); }
.hero .lead strong { color: var(--nivor-surface); }
.section { padding: 4.5rem 0; }
.alt { background: var(--nivor-background); }
.dark { background: var(--nivor-sidebar); color: var(--nivor-sidebar-text); }
.dark h2, .dark h3 { color: var(--nivor-surface); }
.head { max-width: 46rem; margin-bottom: 2.5rem; }
.head p { margin-bottom: 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.split { display: grid; gap: 3rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.card { background: var(--nivor-surface); border: 1px solid var(--nivor-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.dark .card { background: var(--nivor-sidebar-hover); border-color: rgb(255 255 255 / 8%); box-shadow: none; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.7rem; white-space: nowrap; }
.badge-live { background: color-mix(in srgb, var(--nivor-success) 15%, transparent); color: var(--nivor-success); }
.badge-dev { background: color-mix(in srgb, var(--nivor-warning) 18%, transparent); color: var(--nivor-warning); }
.badge-beta { background: color-mix(in srgb, var(--nivor-info) 15%, transparent); color: var(--nivor-info); }
.dark .badge-live { color: #86efac; }
.dark .badge-dev { color: #fcd34d; }

/* Product cards */
.product { display: flex; flex-direction: column; gap: 0.6rem; }
.product h3 { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.product p { margin: 0; }
.product .more { margin-top: auto; padding-top: 0.6rem; font-weight: 600; text-decoration: none; }
.product-lead { border-color: var(--nivor-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nivor-primary) 14%, transparent); }
.ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 0.75rem; background: color-mix(in srgb, var(--nivor-primary) 12%, transparent); color: var(--nivor-primary); font-size: 1.25rem; flex: none; }
.dark .ico { background: color-mix(in srgb, var(--nivor-accent) 16%, transparent); color: var(--nivor-accent); }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.55rem; }
.ticks li::before { content: ''; position: absolute; left: 0.2rem; top: 0.6em; width: 0.55rem; height: 0.3rem; border-left: 2px solid var(--nivor-success); border-bottom: 2px solid var(--nivor-success); transform: rotate(-45deg); }
.dark .ticks li::before { border-color: var(--nivor-accent); }
.not-yet li::before { border: 0; width: 0.5rem; height: 2px; background: var(--nivor-muted); transform: none; top: 0.9em; }
.items { display: grid; gap: 1.6rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.items li { display: flex; gap: 1rem; align-items: flex-start; }
.items h3 { margin: 0 0 0.2rem; }
.items p { margin: 0; color: var(--nivor-muted); }
.dark .items p { color: var(--nivor-sidebar-text); }

/* Tables (status, facts) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 1rem; border-top: 1px solid var(--nivor-border); vertical-align: top; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--nivor-muted); font-weight: 600; border-top: 0; }

/* Flow figure (home) */
.flow { width: 100%; height: auto; }
.flow text { font: 600 14px system-ui, sans-serif; fill: var(--nivor-text); }
.flow .small { font-weight: 400; font-size: 12px; fill: var(--nivor-muted); }
.flow .box { fill: var(--nivor-surface); stroke: var(--nivor-border); stroke-width: 1.5; }
.flow .line { stroke: var(--nivor-primary); stroke-width: 2.5; fill: none; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
.flow .dot { fill: var(--nivor-accent); }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* FAQ */
.faq details { background: var(--nivor-surface); border: 1px solid var(--nivor-border); border-radius: 0.8rem; margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--nivor-primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--nivor-muted); }

/* Call to action */
.cta { background: var(--nivor-primary); color: var(--nivor-surface); padding: 4.5rem 0; }
.cta h2 { color: var(--nivor-surface); }
.cta .kicker { color: var(--nivor-surface); opacity: 0.85; }
.cta a:not(.btn) { color: var(--nivor-surface); }

/* Footer */
.site-footer { background: var(--nivor-sidebar); color: var(--nivor-sidebar-text); padding: 3rem 0 5rem; font-size: 0.95rem; }
.site-footer a { color: var(--nivor-sidebar-text); text-decoration: none; }
.site-footer a:hover { color: var(--nivor-surface); text-decoration: underline; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nivor-surface); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; border-top: 1px solid var(--nivor-sidebar-hover); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.85rem; }
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 6; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-radius: 999px; background: var(--nivor-whatsapp); color: var(--nivor-text); text-decoration: none; font-weight: 600; box-shadow: 0 0.5rem 1.5rem rgb(17 24 39 / 30%); }
.wa-float:hover { background: color-mix(in srgb, var(--nivor-whatsapp), black 8%); color: var(--nivor-text); }
.wa-float .icon { font-size: 1.4rem; }

/* Small helpers (no inline styles on the site: the Content-Security-Policy forbids them) */
.mw-18 { max-width: 18ch; }
.mw-20 { max-width: 20ch; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.m-0 { margin: 0; }
.steps { padding-left: 1.4rem; margin: 0 0 1rem; }
.steps li { padding-left: 0.3rem; margin-bottom: 0.6rem; }

/* Prose pages (KVKK, security notes) */
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }

.note { border-left: 4px solid var(--nivor-warning); background: color-mix(in srgb, var(--nivor-warning) 10%, transparent); padding: 0.9rem 1.1rem; border-radius: 0.5rem; }
.note-info { border-left-color: var(--nivor-info); background: color-mix(in srgb, var(--nivor-info) 10%, transparent); }

@media (max-width: 47.99rem) {
    .nav-toggle { display: inline-flex; background: none; border: 1px solid rgb(255 255 255 / 40%); color: var(--nivor-surface); border-radius: 0.5rem; padding: 0.4rem 0.7rem; font: inherit; cursor: pointer; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 0.8rem 1rem 1rem; background: var(--nivor-sidebar); border-bottom: 1px solid var(--nivor-sidebar-hover); }
    .nav.is-open { display: flex; }
    .nav a { padding: 0.4rem 0; }
    .hero { padding: 3.5rem 0 3rem; }
    .section, .cta { padding: 3rem 0; }
    .wa-float span { display: none; }
    .wa-float { padding: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
