/* ══════════════════════════════════════════
   LOAN TRACK — style.css  (thème sombre)
   INRACI 2026 · Enes Atmaç
══════════════════════════════════════════ */

:root {
    --bg:      #0b0c10;
    --surface: #13151c;
    --border:  rgba(255, 255, 255, 0.07);
    --accent:  #3b6fff;
    --accent2: #ff4d1c;
    --text:    #e8eaf0;
    --muted:   #5a5d72;
    --mid:     #8a8da8;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── NOISE ─── */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9000;
}

/* ─── NAV ─── */
nav {
    position: fixed; top: 0; width: 100%;
    z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 6%;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow 0.3s;
}

nav::after {
    content: '';
    position: absolute; bottom: 0; left: 6%; right: 6%;
    height: 1px; background: var(--border);
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.05rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text); text-decoration: none;
}

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-links a {
    text-decoration: none;
    color: var(--mid);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute; bottom: -3px; left: 0; right: 0;
    height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 9px 22px;
    border-radius: 100px;
    font-size: 0.85rem !important;
    font-weight: 500;
    transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.85 !important; transform: translateY(-1px) !important; }

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 140px 6% 80px;
    position: relative;
    overflow: hidden;
}

/* Radial glow behind hero text */
.hero::before {
    content: '';
    position: absolute;
    top: 30%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse at center, rgba(59,111,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.75rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 28px;
    opacity: 0; animation: fadeUp 0.7s 0.15s forwards;
}
.hero-tag span { width: 24px; height: 1px; background: var(--muted); display: block; }

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    opacity: 0; animation: fadeUp 0.8s 0.28s forwards;
    max-width: 800px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1rem;
    color: var(--mid);
    line-height: 1.75;
    max-width: 520px;
    font-weight: 300;
    margin-bottom: 44px;
    opacity: 0; animation: fadeUp 0.8s 0.42s forwards;
}

.hero-actions {
    display: flex; align-items: center; gap: 24px;
    opacity: 0; animation: fadeUp 0.8s 0.56s forwards;
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s;
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(59,111,255,0.35); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-ghost {
    font-size: 0.9rem; color: var(--mid);
    text-decoration: none; font-weight: 400;
    display: flex; align-items: center; gap: 8px;
    transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* Scroll hint arrow */
.hero-scroll-hint {
    position: absolute; bottom: 36px; left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    opacity: 0; animation: fadeIn 1s 1.2s forwards;
    animation-name: fadeInBounce;
}

/* ─── MARQUEE ─── */
.marquee-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden; padding: 16px 0;
    background: var(--surface);
}

.marquee-track {
    display: flex; gap: 56px;
    animation: marquee 22s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem; letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.marquee-item .dot {
    width: 5px; height: 5px;
    border-radius: 50%; background: var(--accent);
    opacity: 0.6;
}

/* ─── SECTIONS ─── */
section {
    padding: 110px 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-full {
    max-width: 100% !important;
    padding-left: 6% !important;
    padding-right: 6% !important;
}

.section-label {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.72rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 20px;
}
.section-label::before {
    content: '';
    width: 22px; height: 1px;
    background: var(--accent); display: block;
}

h2.section-h {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 56px;
    color: var(--text);
}

/* ─── CONTEXT ─── */
#context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
}

#context .left { position: sticky; top: 110px; }

#context .left p {
    color: var(--mid);
    font-size: 0.97rem;
    line-height: 1.8; font-weight: 300;
}

.mt { margin-top: 16px; }

.problem-solution { display: flex; flex-direction: column; gap: 20px; }

.ps-card {
    border-radius: 18px;
    padding: 32px;
    position: relative; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ps-card-problem {
    background: rgba(255, 77, 28, 0.04);
    border: 1px solid rgba(255, 77, 28, 0.15);
}

.ps-card-solution {
    background: rgba(34, 197, 94, 0.04);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.ps-card-label {
    font-size: 0.68rem; letter-spacing: 0.12em;
    text-transform: uppercase; font-weight: 600;
    margin-bottom: 12px;
}
.ps-card-problem .ps-card-label { color: var(--accent2); }
.ps-card-solution .ps-card-label { color: #22c55e; }

.ps-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem; font-weight: 700;
    margin-bottom: 10px; color: var(--text);
}

.ps-card p {
    font-size: 0.92rem; line-height: 1.7;
    color: var(--mid); font-weight: 300;
}

.ps-number {
    position: absolute; top: -16px; right: -8px;
    font-family: 'Syne', sans-serif;
    font-size: 6rem; font-weight: 800;
    opacity: 0.04; line-height: 1; color: var(--text);
}

/* ─── STEPS ─── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

/* Single grey static line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 36px;
    right: 36px;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.step {
    padding: 0 24px 40px;
    position: relative;
}

.step-num-wrap {
    width: 72px; height: 72px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    position: relative; z-index: 1;
    transition: all 0.3s;
}

.step:hover .step-num-wrap {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(59,111,255,0.25);
}

.step-num {
    font-family: 'Syne', sans-serif;
    font-size: 1rem; font-weight: 800;
    color: var(--muted);
    transition: color 0.3s;
}

.step:hover .step-num { color: white; }

.step h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem; font-weight: 700;
    margin-bottom: 8px; color: var(--text);
    letter-spacing: -0.01em;
}

.step p {
    font-size: 0.88rem; color: var(--mid);
    line-height: 1.65; font-weight: 300;
}

/* ─── FOOTER ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 52px 6%;
    display: flex; justify-content: space-between; align-items: center;
}

.footer-brand {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem; font-weight: 800;
    letter-spacing: -0.01em; color: var(--text);
}
.footer-brand span { color: var(--accent); }

.footer-info { text-align: right; }
.footer-info strong { font-size: 0.92rem; font-weight: 500; color: var(--text); display: block; }
.footer-info p { font-size: 0.85rem; color: var(--muted); font-weight: 300; margin-top: 3px; }

/* ─── CHAT FAB ─── */
.chat-fab {
    position: fixed; bottom: 28px; right: 28px;
    width: 52px; height: 52px;
    background: var(--accent);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 8px 28px rgba(59,111,255,0.35);
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(59,111,255,0.45); }
.chat-fab svg { color: white; }

.chat-notify {
    position: absolute; top: -4px; right: -4px;
    width: 11px; height: 11px;
    background: var(--accent2);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

/* ─── CHAT PANEL ─── */
.chat-panel {
    position: fixed; bottom: 92px; right: 28px;
    width: 350px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    display: none; flex-direction: column;
    z-index: 1000;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    overflow: hidden;
}
.chat-panel.open { display: flex; animation: slideUp 0.28s ease; }

.chat-head {
    padding: 18px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}

.chat-head-avatar {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}

.chat-head-info strong {
    display: block; font-family: 'Syne', sans-serif;
    font-size: 0.87rem; color: var(--text);
}
.chat-head-info span { font-size: 0.7rem; color: var(--muted); }

.chat-head-close {
    margin-left: auto; background: none; border: none;
    color: var(--muted); cursor: pointer;
    font-size: 1.1rem; padding: 4px;
    transition: color 0.2s;
}
.chat-head-close:hover { color: var(--text); }

.chat-body {
    flex: 1; overflow-y: auto;
    padding: 18px;
    display: flex; flex-direction: column; gap: 10px;
    height: 270px;
    background: var(--bg);
}

.msg { max-width: 85%; font-size: 0.83rem; line-height: 1.55; animation: msgPop 0.2s ease; }

.msg-ai {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 11px 14px;
    border-radius: 4px 14px 14px 14px;
    color: var(--text); align-self: flex-start;
}

.msg-user {
    background: var(--accent);
    color: white;
    padding: 11px 14px;
    border-radius: 14px 4px 14px 14px;
    align-self: flex-end;
}

.chat-foot {
    padding: 12px 14px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex; gap: 8px; align-items: center;
}

.chat-foot input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 13px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.83rem;
    color: var(--text);
    outline: none;
    background: var(--bg);
    transition: border-color 0.2s;
}
.chat-foot input:focus { border-color: var(--accent); }
.chat-foot input::placeholder { color: var(--muted); }

.chat-send {
    width: 36px; height: 36px;
    background: var(--accent);
    border: none; border-radius: 9px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.2s; flex-shrink: 0;
}
.chat-send:hover { opacity: 0.8; }
.chat-send svg { color: white; }

.typing { display: flex; gap: 4px; align-items: center; padding: 8px 14px; }
.typing span {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--muted);
    animation: bounce 1s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

/* ─── REVEAL ─── */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes fadeInBounce {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    60%  { opacity: 1; transform: translateX(-50%) translateY(3px); }
    100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-5px); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes msgPop {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    #context { grid-template-columns: 1fr; }
    #context .left { position: static; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    footer { flex-direction: column; gap: 18px; text-align: center; }
    .footer-info { text-align: center; }
}
@media (max-width: 600px) {
    nav { padding: 18px 5%; }
    section { padding: 80px 5%; }
    .hero { padding: 120px 5% 70px; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .hero-actions { flex-direction: column; align-items: center; }
}