/* =========================================================
   BWA Digital — Proje Brief (Typeform tarzı)
   ========================================================= */
@font-face { font-family: "Isidora"; src: url("../fonts/Latinotype-Isidora-Light.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Isidora"; src: url("../fonts/Latinotype-Isidora-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Isidora"; src: url("../fonts/Latinotype-Isidora-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
    --ink: #0d0d0f;
    --ink-2: #16161a;
    --fg: #f3f3f1;
    --muted: #96969c;
    --line: rgba(255, 255, 255, .13);
    --line-strong: rgba(255, 255, 255, .3);
    --b-yellow: #fec46e;
    --b-orange: #e4846c;
    --b-red: #db6659;
    --b-magenta: #aa538a;
    --b-indigo: #5252a3;
    --b-cyan: #61bbd4;
    --b-green: #82b66b;
    --grad: linear-gradient(90deg, var(--b-yellow), var(--b-orange) 16%, var(--b-red) 30%, var(--b-magenta) 46%, var(--b-indigo) 62%, var(--b-cyan) 80%, var(--b-green) 100%);
    --accent: var(--b-yellow);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --gutter: clamp(20px, 5vw, 64px);
    --bar-h: 84px;
    --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--fg);
    font-family: "Isidora", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--b-magenta); color: #fff; }

/* ---------- Arka plan ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; }
.grain {
    position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
.cursor-glow {
    position: fixed; left: 0; top: 0; z-index: 1; width: 520px; height: 520px; margin: -260px 0 0 -260px;
    border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s;
    background: radial-gradient(circle, rgba(254, 196, 110, .10), rgba(170, 83, 138, .06) 40%, transparent 70%);
}
@media (hover: hover) { body:hover .cursor-glow { opacity: 1; } }

/* ---------- Üst ---------- */
.top {
    position: fixed; top: 0; left: 0; right: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px var(--gutter);
}
.logo img { display: block; height: 26px; width: auto; }
.section-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px;
    font-size: 13px; letter-spacing: .02em; color: var(--muted);
    background: rgba(13, 13, 15, .5); backdrop-filter: blur(10px);
}
.section-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); background-size: 400% 100%; animation: hue 6s linear infinite; }
@keyframes hue { to { background-position: 400% 0; } }

/* ---------- Sahne ---------- */
.stage {
    position: relative; z-index: 2; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 96px var(--gutter) calc(var(--bar-h) + 32px);
    overflow-y: auto;
}
.slide { width: 100%; max-width: 760px; margin: auto 0; will-change: transform, opacity, filter; }

.q-head { display: flex; gap: 16px; align-items: flex-start; }
.q-num {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    margin-top: .55em; font-size: 15px; font-weight: 500; color: var(--accent);
}
.q-num svg { width: 14px; height: 14px; }
.q-body { flex: 1; min-width: 0; }
.q-title {
    margin: 0; font-weight: 500; line-height: 1.22; letter-spacing: -.01em;
    font-size: clamp(24px, 3.4vw, 38px);
}
.q-title .w { display: inline-block; white-space: pre; }
.q-title .req { color: var(--b-red); margin-left: 4px; }
.q-title .name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; }
.q-hint { margin: 14px 0 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.5; }

.q-tip {
    display: flex; gap: 12px; margin-top: 22px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: rgba(255, 255, 255, .03); color: #cfcfd3; font-size: 14px; line-height: 1.5;
}
.q-tip .ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(254, 196, 110, .14); color: var(--accent); font-size: 12px; }

.q-field { margin-top: 34px; }

/* metin alanları */
.inp {
    width: 100%; border: 0; outline: 0; background: transparent;
    padding: 10px 0 12px; font-size: clamp(20px, 2.6vw, 30px); font-weight: 400;
    border-bottom: 1px solid var(--line-strong); border-radius: 0;
    transition: border-color .3s;
    caret-color: var(--accent);
}
.inp::placeholder { color: rgba(255, 255, 255, .28); }
.inp-wrap { position: relative; }
.inp-wrap::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.inp-wrap:focus-within::after { transform: scaleX(1); }
textarea.inp { resize: none; min-height: 52px; max-height: 40vh; line-height: 1.4; overflow-y: auto; }
.inp-help { margin-top: 10px; font-size: 13px; color: var(--muted); }
.inp-help kbd { font-family: inherit; }

/* seçenekler */
.opts { display: grid; gap: 10px; max-width: 520px; }
.opts.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); max-width: 100%; }
.opt {
    position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 12px 16px 12px 12px; text-align: left; cursor: pointer;
    border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .035);
    font-size: 17px; line-height: 1.3;
    transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.opt:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .06); }
.opt:active { transform: scale(.985); }
.opt .key {
    flex: none; width: 26px; height: 26px; display: grid; place-items: center;
    border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--muted);
    transition: all .25s;
}
.opt .lbl { flex: 1; }
.opt .chk { flex: none; opacity: 0; transform: scale(.5); transition: all .3s var(--ease); color: var(--accent); }
.opt.on { border-color: transparent; background: rgba(254, 196, 110, .09); }
.opt.on::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.opt.on .key { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.opt.on .chk { opacity: 1; transform: scale(1); }
.opt.blink { animation: blink .32s 2; }
@keyframes blink { 50% { background: rgba(254, 196, 110, .22); } }
.other-wrap { margin-top: 14px; max-width: 520px; }
.other-wrap .inp { font-size: 18px; }

/* ayrım ekranı (yeterli / detaylı) */
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gate-opt { align-items: flex-start; padding: 18px 18px 18px 14px; }
.gate-opt .lbl b { display: block; font-weight: 500; font-size: 18px; margin-bottom: 4px; }
.gate-opt .lbl small { display: block; font-size: 14px; color: var(--muted); }
.gate-opt .key { margin-top: 2px; }
@media (max-width: 640px) { .gate { grid-template-columns: 1fr; } }

/* bütçe */
.loading-opts { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; padding: 12px 0; }
.loading-opts .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link-btn { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* yes / no */
.opts.yn { grid-template-columns: 1fr 1fr; max-width: 340px; }

/* scale */
.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale .opt { width: auto; flex: 1 1 0; min-width: 44px; justify-content: center; padding: 14px 0; font-size: 18px; font-weight: 500; }
.scale-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* butonlar */
.actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border: 0; border-radius: 99px; cursor: pointer; overflow: hidden;
    background: var(--fg); color: var(--ink); font-size: 16px; font-weight: 500;
    transition: transform .35s var(--ease), box-shadow .35s;
}
.btn::before {
    content: ""; position: absolute; inset: 0; background: var(--grad); background-size: 200% 100%;
    opacity: 0; transition: opacity .35s; animation: hue 4s linear infinite;
}
.btn > * { position: relative; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(219, 102, 89, .55); }
.btn:hover::before { opacity: 1; }
.btn:hover { color: #0d0d0f; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn.lg { padding: 17px 30px; font-size: 18px; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.enter-hint { font-size: 13px; color: var(--muted); }
.enter-hint b { color: var(--fg); font-weight: 500; }

.err {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 12px;
    border-radius: 8px; background: rgba(219, 102, 89, .14); color: #ffb3aa; font-size: 14px;
}
.shake { animation: shake .45s; }
@keyframes shake { 20%{transform:translateX(-8px)} 40%{transform:translateX(7px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(3px)} }

/* ---------- Karşılama ---------- */
.intro { text-align: left; max-width: 820px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); }
.intro h1, .outro h1 {
    margin: 0; font-weight: 500; letter-spacing: -.025em; line-height: 1.02;
    font-size: clamp(40px, 7.2vw, 92px);
}
.intro h1 .w, .outro h1 .w { display: inline-block; white-space: pre; }
.intro h1 .grad-word, .outro h1 .grad-word {
    background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: hue 8s linear infinite;
}
.intro p { margin: 28px 0 0; max-width: 560px; color: #c4c4c9; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }
.intro .meta { margin-top: 18px; font-size: 13px; color: var(--muted); }
.resume { margin-top: 18px; font-size: 14px; color: var(--muted); }
.resume button { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bitiş ---------- */
.outro { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.outro h1 { font-size: clamp(34px, 5.6vw, 68px); }
.outro p { margin: 24px auto 0; max-width: 540px; color: #c4c4c9; font-size: 18px; line-height: 1.6; }
.outro .actions { justify-content: center; }
.check-badge {
    width: 84px; height: 84px; margin: 0 auto 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--grad); background-size: 200% 100%; animation: hue 6s linear infinite; color: var(--ink);
    box-shadow: 0 20px 60px -14px rgba(170, 83, 138, .7);
}
.check-badge svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .35s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
#confetti { position: fixed; inset: 0; z-index: 9; pointer-events: none; }

/* ---------- Alt bar ---------- */
.bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(13, 13, 15, .96) 40%, rgba(13, 13, 15, 0));
}
.bar-inner { display: flex; align-items: flex-end; gap: 20px; max-width: 1100px; margin: 0 auto; }
.bar-progress { flex: 1; }
.bar-meta { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.track { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fill {
    position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
    background: var(--grad); background-size: 100vw 100%;
    transition: width .8s var(--ease);
    box-shadow: 0 0 18px rgba(254, 196, 110, .5);
}
.bar-nav { display: flex; gap: 6px; }
.nav-btn {
    width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
    border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .05);
    transition: background .2s, border-color .2s, opacity .2s;
}
.nav-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: var(--line-strong); }
.nav-btn:disabled { opacity: .3; cursor: default; }

.noscript { position: relative; z-index: 3; text-align: center; padding: 40vh 20px; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
    :root { --bar-h: 76px; }
    .top { padding: 16px var(--gutter); }
    .logo img { height: 22px; }
    .section-chip { font-size: 12px; padding: 6px 11px; }
    .stage { align-items: flex-start; padding-top: 88px; }
    .slide { margin-top: 4vh; }
    .q-head { flex-direction: column; gap: 10px; }
    .q-num { margin-top: 0; }
    .opt { font-size: 16px; }
    .enter-hint { display: none; }
    .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* alan geri bildirimi (telefon maskesi / e-posta kontrolü) */
.field-note { min-height: 20px; margin-top: 10px; font-size: 14px; color: var(--muted); transition: color .2s; }
.field-note.ok { color: var(--b-green); }
.field-note.warn { color: #ffb3aa; }
.field-note b { color: var(--fg); }
.field-note .link-btn { color: var(--accent); font-size: inherit; }
.inp-wrap.is-valid::before {
    content: "✓"; position: absolute; right: 0; top: 50%; transform: translateY(-60%);
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(130, 182, 107, .18); color: var(--b-green); font-size: 14px;
}
.inp-wrap.is-valid .inp { padding-right: 40px; }

/* ---------- Ana sayfa: form seçimi ---------- */
.mode-home .stage, .mode-notfound .stage { padding-bottom: 48px; }
.form-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 40px; }
.form-card {
    position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 56px 24px 24px;
    border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .04);
    color: var(--fg); text-decoration: none; transition: border-color .3s, background .3s, transform .4s var(--ease);
    animation: cardIn .8s var(--ease) both;
}
.form-card:nth-child(2) { animation-delay: .08s; } .form-card:nth-child(3) { animation-delay: .16s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.form-card b { font-size: 22px; font-weight: 500; }
.form-card span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.form-card i { position: absolute; right: 22px; top: 24px; font-style: normal; font-size: 20px; transition: transform .3s var(--ease); }
.form-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .07); transform: translateY(-3px); }
.form-card:hover i { transform: translateX(4px); color: var(--accent); }
.preview-chip { color: var(--b-yellow); border-color: rgba(254, 196, 110, .4); margin-left: auto; margin-right: 10px; }
