/* ============================================================
   FabriqSuite — Liquid Glass Edition · v3.1
   Light · cool grey-blue · Satoshi · minimal
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900,400i,500i&display=swap');

:root {
    /* Surface — soğuk gri inci tonu */
    --bg:            #f5f6f9;
    --bg-soft:       #fafbfd;
    --bg-tint:       #eef0f5;
    --surface:       rgba(255,255,255,0.62);
    --surface-hi:    rgba(255,255,255,0.85);
    --surface-dim:   rgba(255,255,255,0.45);
    --line:          rgba(20,28,46,0.10);
    --line-soft:     rgba(20,28,46,0.06);
    --line-strong:   rgba(20,28,46,0.18);

    /* Type */
    --ink:           #0e1320;
    --ink-soft:      #2d3344;
    --ink-mute:      #5a6178;
    --ink-faint:     #8a92a8;

    /* Accents — slate / steel blue (ince ve premium) */
    --steel:         #2b4e72;
    --steel-deep:    #1a3556;
    --azure:         #4a78a8;
    --mist:          #c5d1e2;
    --silver:        #d4dae4;

    /* Type stacks — tek family: Satoshi (Fontshare) */
    --display:       "Satoshi", "Inter", system-ui, -apple-system, sans-serif;
    --serif:         "Satoshi", "Inter", system-ui, sans-serif;  /* geriye dönük uyum */
    --body:          "Satoshi", "Inter", system-ui, -apple-system, sans-serif;
    --mono:          "JetBrains Mono", ui-monospace, monospace;

    /* Layout */
    --maxw:          1320px;
    --gutter:        28px;
    --radius:        18px;
    --radius-lg:     24px;
    --radius-xl:     32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }

::selection { background: var(--steel); color: #fff; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.full { padding: 0; max-width: 100%; }

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4 {
    font-family: var(--display);
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1.02;
    font-weight: 700;
}
h1 { font-size: clamp(48px, 8vw, 132px); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 5vw, 72px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 17px; letter-spacing: -0.005em; font-weight: 600; }

/* Başlık içi vurgular: tek font, tek renk (sade akış) — sayfa override'larını ezer */
h1 em, h2 em, h3 em, h4 em {
    font-family: inherit !important;
    font-style: normal !important;
    font-weight: inherit !important;
    color: inherit !important;
    letter-spacing: inherit !important;
}

p { font-size: 16px; color: var(--ink-mute); line-height: 1.6; }
p em { color: inherit !important; font-family: inherit !important; }

.serif-italic {
    font-family: inherit !important;
    font-style: normal !important;
    font-weight: 500 !important;
    color: inherit !important;
}

.eyebrow {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 10px;
    color: var(--steel);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.eyebrow::before {
    content: ""; width: 22px; height: 1px; background: var(--steel);
}

/* =================== NAV (liquid glass) =================== */
.nav {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 60;
    width: calc(100% - 32px); max-width: 1280px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 14px 40px -20px rgba(20,28,46,0.18),
        0 1px 2px rgba(20,28,46,0.04);
}
.nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    height: 60px;
    padding: 0 22px;
}
.brand {
    display: inline-flex; align-items: baseline; gap: 10px;
    font-family: var(--display); font-weight: 600; font-size: 18px;
    letter-spacing: -0.025em;
    color: var(--ink);
    font-variation-settings: "wdth" 95;
}
.brand-mark {
    width: 26px; height: 26px;
    position: relative; flex-shrink: 0; align-self: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand sup {
    font-family: var(--mono); font-size: 9px; text-transform: uppercase;
    letter-spacing: 0.16em; color: var(--steel); margin-left: 4px;
    font-weight: 500;
}

.nav-links {
    display: flex; gap: 24px; justify-self: center; list-style: none;
}
.nav-links a {
    font-family: var(--body); font-size: 13px; font-weight: 500;
    color: var(--ink-mute);
    position: relative; padding: 6px 0;
    transition: color 0.25s;
    letter-spacing: -0.005em;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--steel);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--ink); color: #fff;
    padding: 10px 18px; border-radius: 999px;
    font-family: var(--body); font-size: 13px; font-weight: 600;
    transition: background 0.25s, transform 0.25s;
    letter-spacing: -0.005em;
}
.nav-cta:hover { background: var(--steel); transform: translateY(-1px); }
.nav-cta i { font-size: 13px; }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; font-size: 20px; color: var(--ink); }

/* =================== BUTTONS =================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px;
    font-family: var(--body); font-weight: 600; font-size: 14px;
    border: 1px solid transparent; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.6, 0.2, 1);
    text-decoration: none; letter-spacing: -0.005em;
    white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--steel); transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(43,78,114,0.5); }

.btn-ghost {
    background: var(--surface); color: var(--ink); border-color: var(--line);
    backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: var(--surface-hi); border-color: var(--line-strong); }

.btn-light {
    background: rgba(255,255,255,0.85); color: var(--ink); border-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
}
.btn-light:hover { background: #fff; transform: translateY(-2px); }

.btn i { font-size: 15px; }

/* =================== UTILITIES =================== */
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--ink-mute);
    padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); backdrop-filter: blur(10px);
}
.tag.live::before {
    content: ""; width: 6px; height: 6px; background: #4ec9b0; border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% {opacity:1;} 50% {opacity:0.3;} }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2,0.6,0.2,1), transform 0.9s cubic-bezier(0.2,0.6,0.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Glass card */
.glass {
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 12px 32px -16px rgba(20,28,46,0.12);
}

/* =================== FOOTER =================== */
.footer {
    margin-top: 120px;
    background: var(--ink);
    color: rgba(255,255,255,0.9);
    padding: 100px 0 32px;
    position: relative;
    overflow: hidden;
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px;
    position: relative; z-index: 1;
}
.footer h5 {
    font-family: var(--mono); font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.18em; color: rgba(255,255,255,0.45); margin-bottom: 16px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand sup { color: var(--mist); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; max-width: 320px; margin-top: 16px; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: rgba(255,255,255,0.7); font-size: 14px;
    border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s;
}
.footer-col a:hover { border-color: var(--mist); color: #fff; }
.footer-tagline {
    margin-top: 64px; padding: 48px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-tagline span {
    font-family: var(--display); font-size: clamp(40px, 8vw, 96px);
    color: #fff; font-weight: 500; letter-spacing: -0.04em;
    font-variation-settings: "wdth" 90;
    display: block; line-height: 0.95;
}
.footer-tagline em {
    font-family: var(--serif); font-style: italic; color: var(--mist); font-weight: 400;
}
.footer-bottom {
    margin-top: 28px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-size: 11px; color: rgba(255,255,255,0.45);
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
}
.footer-bottom a { color: rgba(255,255,255,0.7); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.footer-bottom a:hover { border-color: var(--mist); color: #fff; }

/* =================== DEMO FAB + MODAL =================== */
.demo-fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 80;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: #fff;
    border: 0; cursor: pointer;
    padding: 14px 22px; border-radius: 999px;
    font-family: var(--body); font-weight: 600; font-size: 14px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.1) inset,
        0 18px 40px -14px rgba(20,28,46,0.4);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.demo-fab:hover { transform: translateY(-3px); background: var(--steel); box-shadow: 0 24px 50px -14px rgba(43,78,114,0.6); }
.demo-fab i { font-size: 15px; }

.modal-veil {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(14,19,32,0.4);
    backdrop-filter: blur(12px);
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-veil.open { display: flex; opacity: 1; }
.modal-card {
    width: min(560px, 100% - 32px);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative; overflow: hidden;
    box-shadow: 0 1px 0 #fff inset, 0 40px 80px -20px rgba(20,28,46,0.3);
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); cursor: pointer;
    display: grid; place-items: center;
    transition: background 0.2s, transform 0.2s;
}
.modal-close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal-card h3 {
    font-size: 28px; margin-bottom: 8px;
    font-variation-settings: "wdth" 92;
}
.modal-card h3 em { color: var(--steel); font-family: var(--serif); font-style: italic; }
.modal-card .lede { color: var(--ink-mute); font-size: 15px; margin-bottom: 24px; }

.fg { margin-bottom: 14px; }
.fg label {
    display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px;
}
.fg input, .fg textarea {
    width: 100%; padding: 12px 14px;
    background: rgba(255,255,255,0.6); color: var(--ink);
    border: 1px solid var(--line); border-radius: 10px;
    font-family: var(--body); font-size: 14px; outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.fg input:focus, .fg textarea:focus {
    border-color: var(--steel); background: #fff;
}
.fg textarea { resize: vertical; min-height: 80px; }
.modal-card .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
    .nav { top: 8px; width: calc(100% - 16px); }
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: rgba(255,255,255,0.95);
        padding: 12px 22px; backdrop-filter: blur(20px);
        border-radius: var(--radius);
        border: 1px solid var(--line);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
    .nav-links a:last-child { border-bottom: 0; }
    .menu-btn { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer { margin-top: 80px; padding-top: 64px; }
    .demo-fab { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 13px; }
    .modal-card { padding: 24px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .nav-inner { gap: 12px; padding: 0 14px; }
    .nav-cta { padding: 9px 14px; font-size: 12px; }
    .brand { font-size: 16px; }
}
