/* Selçuk Üniversitesi | Trafik Kameraları ve Aktüeryal Modelleme Projesi */

:root{
  --paper:#EEF1F4;
  --paper-2:#E2E7ED;
  --ink:#14212F;
  --muted:#56657A;
  --line:#C8D1DB;
  --brand:#F9C931;          /* Selçuk Üniversitesi amblem sarısı */
  --detect:#16A7BA;
  --footer-bg:#14212F;
  --footer-ink:#D9E1EA;
  --footer-muted:#8C9CB0;
  --font:"Archivo","Helvetica Neue",Arial,"Segoe UI",system-ui,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root{
    --paper:#0F1822;
    --paper-2:#16212E;
    --ink:#E5EBF1;
    --muted:#93A3B6;
    --line:#26374A;
    --footer-bg:#0A1119;
  }
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--font);font-size:17px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,canvas{max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--detect);outline-offset:3px;border-radius:3px}

.wrap{width:min(1180px,100% - 48px);margin-inline:auto}

/* ---------- Üst bant ---------- */
.topbar{border-bottom:1px solid var(--line)}
.topbar-in{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}
.inst{display:flex;align-items:center;gap:14px;min-width:0;text-decoration:none}
.inst img{flex:none;width:58px;height:auto}
.inst-text{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.inst-text strong{font-size:1.05rem;font-weight:700}
.inst-text span{font-size:.88rem;color:var(--muted)}
.pill{
  flex:none;display:inline-flex;align-items:center;gap:9px;
  padding:7px 14px 7px 12px;border-radius:999px;
  border:1px solid var(--line);background:var(--paper-2);
  font-size:.86rem;font-weight:600;white-space:nowrap;
}
.pill i{width:9px;height:9px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 4px rgba(249,201,49,.25)}

/* ---------- Hero ---------- */
.hero{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);
  gap:clamp(32px,5vw,72px);align-items:center;
  padding:clamp(40px,7vw,88px) 0 clamp(48px,7vw,96px);
}
.proj-no{margin:0 0 18px;font-size:.92rem;color:var(--muted);font-weight:500}
.proj-no b{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
h1{
  margin:0;font-size:clamp(1.85rem,1.1rem + 2.5vw,3.2rem);line-height:1.08;
  font-weight:750;font-variation-settings:"wdth" 84;letter-spacing:-.012em;text-wrap:balance;
}
.en-title{margin:14px 0 0;color:var(--muted);font-size:.98rem;font-style:italic;max-width:56ch}
.status{display:flex;margin-top:clamp(28px,4vw,40px);background:var(--paper-2);border-radius:6px;overflow:hidden}
.hazard{flex:none;width:14px;background:repeating-linear-gradient(-45deg,var(--brand) 0 9px,#14212F 9px 18px)}
.status-body{padding:20px 24px 22px}
.status h2{
  margin:0 0 6px;font-size:clamp(1.25rem,1rem + .8vw,1.6rem);line-height:1.2;
  font-weight:700;font-variation-settings:"wdth" 92;
}
.status p{margin:0;color:var(--muted);max-width:52ch}

/* ---------- Kamera görüntüsü ---------- */
.feed-fig{margin:0}
.feed{
  position:relative;border-radius:8px;overflow:hidden;background:#0C141C;
  box-shadow:0 40px 70px -40px rgba(10,22,38,.7),0 0 0 1px rgba(20,33,47,.08);
}
.feed canvas{display:block;width:100%;aspect-ratio:4/3}
.feed::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    repeating-linear-gradient(to bottom,rgba(255,255,255,.028) 0 1px,transparent 1px 3px),
    radial-gradient(120% 90% at 50% 45%,transparent 55%,rgba(0,0,0,.45) 100%);
}
.hud{
  position:absolute;left:0;right:0;z-index:2;
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  padding:14px 16px;color:#E8EEF3;
  font-variation-settings:"wdth" 78;font-size:.82rem;font-weight:600;
  text-shadow:0 1px 2px rgba(0,0,0,.6);font-variant-numeric:tabular-nums;
}
.hud-top{top:0;background:linear-gradient(to bottom,rgba(8,14,20,.6),transparent)}
.hud-bottom{bottom:0;align-items:flex-end;background:linear-gradient(to top,rgba(8,14,20,.7),transparent);padding-top:28px}
.rec{display:inline-flex;align-items:center;gap:8px}
.rec::before{content:"";width:8px;height:8px;border-radius:50%;background:#FF4747;animation:blink 1.6s steps(1) infinite}
@keyframes blink{50%{opacity:.25}}
.stat{display:flex;flex-direction:column;line-height:1.15}
.stat b{font-size:1.55rem;font-weight:700;font-variation-settings:"wdth" 90}
.stat span{font-weight:500;opacity:.8}
.stat.r{text-align:right}
.legend{display:flex;gap:14px;font-weight:500}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend span::before{content:"";width:10px;height:10px;border:2px solid currentColor;border-radius:2px}
.lg-l{color:#3FD2E4}.lg-h{color:#FFC233}
.feed-fig figcaption{margin-top:12px;font-size:.86rem;color:var(--muted)}

/* ---------- Ortak bölüm ---------- */
.section{padding:clamp(48px,7vw,88px) 0;border-top:1px solid var(--line)}
.sec-head{
  margin:0 0 clamp(24px,3.5vw,40px);
  font-size:clamp(1.4rem,1.1rem + 1vw,2rem);line-height:1.15;
  font-weight:700;font-variation-settings:"wdth" 90;
}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:clamp(28px,5vw,80px)}

/* ---------- Proje hakkında ---------- */
.question{margin:0;align-self:start;padding-left:22px;border-left:4px solid var(--brand)}
.question p{
  margin:0;font-size:clamp(1.15rem,1rem + .6vw,1.45rem);line-height:1.4;
  font-weight:600;font-variation-settings:"wdth" 92;text-wrap:pretty;
}
.question cite{display:block;margin-top:12px;font-style:normal;font-size:.9rem;color:var(--muted)}
.prose p{margin:0 0 1.1em;max-width:64ch}
.prose p:last-child{margin-bottom:0}
.prose strong{font-weight:650}

/* ---------- Proje akışı ---------- */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(22px,2.6vw,36px)}
.step-num{
  display:flex;align-items:center;gap:14px;margin-bottom:14px;
  font-size:2.4rem;line-height:1;font-weight:800;font-variation-settings:"wdth" 125;
  font-variant-numeric:tabular-nums;
}
.step-num::after{content:"";flex:1;height:3px;background:repeating-linear-gradient(to right,var(--line) 0 16px,transparent 16px 27px)}
.steps h3{margin:0 0 8px;font-size:1.12rem;line-height:1.3;font-weight:700}
.steps p{margin:0;color:var(--muted);font-size:.97rem}

.index-band{
  margin-top:clamp(36px,5vw,56px);
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(18px,3vw,36px);align-items:center;
  padding:clamp(22px,3vw,32px) clamp(22px,3vw,36px);
  background:var(--ink);color:var(--paper);border-radius:8px;
}
.index-band .mark{
  width:64px;height:64px;border-radius:50%;
  background:conic-gradient(var(--brand) 0 38%,#3FD2E4 38% 70%,rgba(255,255,255,.18) 70% 100%);
  -webkit-mask:radial-gradient(circle,transparent 46%,#000 47%);mask:radial-gradient(circle,transparent 46%,#000 47%);
}
.index-band h3{margin:0 0 4px;font-size:clamp(1.15rem,1rem + .6vw,1.45rem);font-weight:700;font-variation-settings:"wdth" 92}
.index-band p{margin:0;opacity:.82;max-width:78ch}
@media (prefers-color-scheme: dark){ .index-band{background:var(--paper-2);color:var(--ink)} }

/* ---------- Portal tamamlandığında ---------- */
.features{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(24px,4vw,56px)}
.features li{padding:18px 0;border-top:1px solid var(--line)}
.features li:nth-last-child(-n+2){border-bottom:1px solid var(--line)}
.features h3{margin:0 0 4px;font-size:1.06rem;font-weight:700}
.features p{margin:0;color:var(--muted);font-size:.97rem}

/* ---------- Ekip ---------- */
.people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,3vw,40px)}
.person{padding-top:16px;border-top:3px solid var(--ink)}
.person .role{display:block;font-size:.92rem;color:var(--muted);font-weight:500;margin-bottom:4px}
.person .name{margin:0;font-size:clamp(1.2rem,1rem + .7vw,1.55rem);line-height:1.25;font-weight:700;font-variation-settings:"wdth" 92}
.person .title{margin:4px 0 0;color:var(--muted);font-size:.95rem}
.dept{margin:clamp(28px,4vw,40px) 0 0;color:var(--muted)}
.dept strong{color:var(--ink);font-weight:600}

/* ---------- Alt bilgi ---------- */
footer{background:var(--footer-bg);color:var(--footer-ink)}
.foot{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:24px clamp(28px,4vw,56px);align-items:center;
  padding:clamp(36px,5vw,56px) 0;
}
.foot-logo{width:150px;height:auto;display:block}
.foot p{margin:0;max-width:60ch;line-height:1.65}
.foot-no{text-align:right}
.foot-no span{display:block;font-size:.88rem;color:var(--footer-muted)}
.foot-no b{font-size:1.9rem;font-weight:800;font-variation-settings:"wdth" 110;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.copy{border-top:1px solid rgba(255,255,255,.1);padding:16px 0 22px;font-size:.84rem;color:var(--footer-muted)}

/* ---------- Duyarlı yerleşim ---------- */
@media (max-width:1020px){
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps li:nth-child(2) .step-num::after{display:none}
}
@media (max-width:960px){
  .hero,.split{grid-template-columns:1fr}
  .foot{grid-template-columns:auto minmax(0,1fr)}
  .foot-no{grid-column:1 / -1;text-align:left}
}
@media (max-width:760px){
  .steps{grid-template-columns:1fr}
  .step-num::after{display:none}
  .features{grid-template-columns:1fr}
  .features li:nth-last-child(2){border-bottom:0}
  .people{grid-template-columns:1fr}
  .legend{display:none}
  .index-band{grid-template-columns:1fr}
  .index-band .mark{width:48px;height:48px}
}
@media (max-width:560px){
  .wrap{width:min(1180px,100% - 32px)}
  .inst img{width:46px}
  .pill{font-size:0;padding:8px;gap:0}
  .pill i{width:10px;height:10px}
  .inst-text span{font-size:.8rem}
  .hud{font-size:.74rem;padding:10px 12px}
  .stat b{font-size:1.2rem}
  .status-body{padding:16px 18px 18px}
  .foot{grid-template-columns:1fr}
  .foot-logo{width:120px}
}
@media (prefers-reduced-motion:reduce){ .rec::before{animation:none} }

/* ---------- Ön çalışma ---------- */
.lede{margin:-8px 0 clamp(24px,3.5vw,36px);color:var(--muted);max-width:68ch}
.demo{margin:0}
.demo-frame{border-radius:8px;overflow:hidden;background:#0C141C;box-shadow:0 40px 70px -40px rgba(10,22,38,.7)}
.demo video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#0C141C}
.demo figcaption{margin-top:12px;font-size:.88rem;color:var(--muted);max-width:90ch}
.read-guide{margin-top:clamp(28px,4vw,44px)}
.read-guide h3,.sub-head{margin:0 0 14px;font-size:1.15rem;font-weight:700}
.read-guide dl{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px clamp(20px,3vw,40px)}
.read-guide dl div{padding-left:14px;border-left:3px solid var(--brand)}
.read-guide dt{font-weight:650}
.read-guide dd{margin:2px 0 0;color:var(--muted);font-size:.95rem}
.sub-head{margin-top:clamp(36px,5vw,56px)}
.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.metrics li:nth-last-child(-n+2){border-bottom:0}
.metrics li:nth-last-child(-n+3){border-bottom:1px solid var(--line)}
.features h4{margin:0 0 4px;font-size:1.06rem;font-weight:700}
.model-note{margin:clamp(24px,3vw,32px) 0 0;color:var(--muted);max-width:80ch;font-size:.97rem}
@media (max-width:960px){
  .read-guide dl,.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metrics li:nth-last-child(-n+3){border-bottom:0}
  .metrics li:nth-last-child(-n+2){border-bottom:1px solid var(--line)}
}
@media (max-width:760px){
  .read-guide dl,.metrics{grid-template-columns:1fr}
  .metrics li:nth-last-child(2){border-bottom:0}
}
