/* ==========================================================
   YILDIZ PROJECT — Kurumsal tokenlar
   ========================================================== */
:root {
  --navy: #0B1528;
  --navy-2: #111E36;
  --navy-3: #1A2A47;
  --ice: #2FB4F0;
  --ember: #FF7A2F;
  --steel: #8A97AB;
  --paper: #F4F6FA;
  --white: #FFFFFF;
  --line: rgba(255, 255, 255, .09);
  --accent: var(--ice);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 18px;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  transition: color .6s;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; margin: 14px 0 18px; }
.lead { color: #B9C5D6; font-size: 1.08rem; max-width: 620px; }
section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; transition: transform .2s, background .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(11, 21, 40, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.brand:hover img { transform: rotate(360deg); }
.brand b { font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; display: block; line-height: 1; }
.brand small { font-family: var(--mono); font-size: .62rem; letter-spacing: .3em; color: var(--steel); }
.nav-links { display: flex; gap: 30px; font-size: .94rem; color: #C8D2E0; }
.nav-links a:hover { color: var(--white); }
.nav-cta { padding: 11px 20px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; color: var(--white); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 60px; overflow: hidden; }
#flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(11,21,40,.9), transparent 60%),
    linear-gradient(to top, var(--navy), transparent 30%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.6rem); font-weight: 800; margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); transition: color .6s; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.dial {
  background: rgba(17, 30, 54, .72); border: 1px solid var(--line);
  border-radius: 28px; padding: 30px; backdrop-filter: blur(10px);
}
.dial-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .75rem; color: var(--steel); letter-spacing: .12em; }
.dial-temp { font-size: 5rem; font-weight: 800; line-height: 1; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.dial-temp sup { font-size: 1.8rem; color: var(--accent); transition: color .6s; }
.dial-mode { font-weight: 700; color: var(--accent); transition: color .6s; }
.dial-note { color: var(--steel); font-size: .9rem; min-height: 3em; margin: 6px 0 22px; }
.dial input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--ice), #7fd3a8 45%, var(--ember));
}
.dial input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 5px solid var(--navy); box-shadow: 0 0 0 2px var(--white);
}
.dial input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 5px solid var(--navy); }
.dial-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--steel); margin-top: 10px; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: .7rem; letter-spacing: .3em; color: var(--steel); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--navy-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 40s linear infinite; }
.marquee span { font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 700; white-space: nowrap; color: #6F7F98; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: .9em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.svc-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc {
  background: var(--navy); padding: 34px 28px 30px; min-height: 290px;
  display: flex; flex-direction: column; position: relative; overflow: hidden; transition: background .4s;
}
.svc::before {
  content: ""; position: absolute; inset: auto -40% -60% -40%; height: 120%;
  background: radial-gradient(circle at 50% 0%, var(--glow, var(--ice)), transparent 60%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.svc:hover { background: var(--navy-2); }
.svc:hover::before { opacity: .16; }
.svc .num { font-family: var(--mono); font-size: .75rem; color: var(--steel); }
.svc svg { width: 46px; height: 46px; margin: 26px 0 22px; stroke: var(--glow, var(--ice)); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1.22rem; margin-bottom: 10px; }
.svc p { color: #A9B6C9; font-size: .93rem; }

/* ---------- Building (interactive) ---------- */
.building { background: var(--navy-2); }
.building .wrap { display: grid; grid-template-columns: 1.35fr .85fr; gap: 50px; align-items: center; }
.bld-svg { width: 100%; height: auto; }
.bld-svg .duct { stroke-dasharray: 6 10; animation: dash 1.2s linear infinite; }
.bld-svg .water { stroke-dasharray: 2 8; animation: dash 1.6s linear infinite reverse; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.hot { cursor: pointer; }
.hot circle.ring { fill: none; stroke: var(--white); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
.hot circle.dot { fill: var(--white); transition: r .2s; }
.hot.active circle.dot, .hot:hover circle.dot { fill: var(--accent); }
.hot:focus { outline: none; }
.hot:focus-visible circle.dot { stroke: var(--accent); stroke-width: 3; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.bld-info { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--navy); min-height: 300px; }
.bld-info .tag { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; color: var(--accent); }
.bld-info h3 { font-size: 1.6rem; margin: 10px 0 12px; }
.bld-info p { color: #B0BDD0; }
.bld-info ul { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.bld-info li { padding-left: 22px; position: relative; color: #D5DDE8; font-size: .94rem; }
.bld-info li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.bld-hint { font-family: var(--mono); font-size: .74rem; color: var(--steel); margin-top: 14px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; counter-reset: s; }
.step { border-top: 2px solid var(--line); padding-top: 22px; position: relative; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 1s ease; }
.step.in::after { width: 100%; }
.step h3 { font-size: 1.08rem; margin: 10px 0 8px; }
.step p { font-size: .88rem; color: #A9B6C9; }

/* ---------- Stats ---------- */
.stats { padding: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 40px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; color: var(--accent); }
.stat > span { color: var(--steel); font-size: .92rem; }

/* ---------- References ---------- */
.ref-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 30px; }
.chip { padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: #C8D2E0; font-size: .88rem; transition: all .25s; }
.chip:hover { border-color: var(--steel); }
.chip.on { background: var(--white); color: var(--navy); border-color: var(--white); }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref {
  border-radius: var(--radius); overflow: hidden; background: var(--navy-2); border: 1px solid var(--line);
  transition: transform .35s, border-color .35s;
}
.ref:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); }
.ref-img { aspect-ratio: 16/10; background: var(--navy-3) center/cover no-repeat; position: relative; display: grid; place-items: center; }
.ref-img.photo { transition: transform .6s; }
.ref-img.logo { background: var(--paper); }
.ref-img.logo img { height: 58%; width: auto; max-width: 70%; object-fit: contain; transition: transform .4s; }
.ref:hover .ref-img.logo img { transform: scale(1.06); }
.ref-img.ill {
  color: var(--c);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 18px 18px;
}
.ref-img.ill svg { width: 62%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease; }
.ref:hover .ref-img.ill svg { animation: draw 1.6s ease; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.ref-credit { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: .62rem; color: #fff; background: rgba(11,21,40,.7); padding: 4px 8px; border-radius: 6px; }
.ref-credit:hover { text-decoration: underline; }
.ref-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ref-cities span { font-size: .8rem; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: #D5DDE8; }
.ref.wide { grid-column: span 2; display: flex; flex-direction: column; }
.ref.wide .ref-img { flex: 1; aspect-ratio: auto; min-height: 220px; }
.ref.wide .ref-img.ill svg { width: 34%; }
.ref.full { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.ref.full .ref-img { aspect-ratio: auto; min-height: 280px; }
.ref.full .ref-body { padding: 34px; align-self: center; }
.ref.full .ref-body h3 { font-size: 1.5rem; }
.chip small { font-family: var(--mono); font-size: .7rem; opacity: .6; margin-left: 4px; }

/* Proje haritası */
.ref-top { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.ref-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; font-size: .85rem; color: #C8D2E0; }
.ref-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 8px; }
.ref-map { position: relative; aspect-ratio: 1000 / 430; }
.ref-map-land {
  position: absolute; inset: 0; background: var(--navy-3);
  -webkit-mask: url("assets/turkiye.svg") center / 100% 100% no-repeat; mask: url("assets/turkiye.svg") center / 100% 100% no-repeat;
}
.ref-map-land::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 9px 9px;
}
.pin {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--c); border: 2px solid var(--navy); padding: 0; z-index: 1; transition: opacity .3s, transform .2s;
}
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--c); animation: pulse 2.4s ease-out infinite; }
.pin:hover, .pin:focus-visible { transform: scale(1.35); z-index: 3; outline: none; }
.pin span {
  position: absolute; bottom: 160%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--white); color: var(--navy); font-size: .74rem; font-weight: 700; padding: 6px 10px; border-radius: 8px;
  display: none; pointer-events: none;
}
.pin:hover span, .pin:focus-visible span { display: block; }
.pin.dim { opacity: .15; }
.pin.dim::after { animation: none; }
.ref-sector { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; background: rgba(11,21,40,.8); padding: 6px 10px; border-radius: 99px; }
.ref-body { padding: 20px 22px 24px; }
.ref-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.ref-body p { color: #A9B6C9; font-size: .88rem; }
.ref-meta { display: flex; gap: 14px; margin-top: 12px; font-family: var(--mono); font-size: .72rem; color: var(--steel); }

/* ---------- Why ---------- */
.why { background: var(--paper); color: var(--navy); }
.why .lead { color: #4A5A72; }
.why .eyebrow { color: var(--ember); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.why-card { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid #E2E7EF; }
.why-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--white); font-family: var(--mono); font-weight: 700; margin-bottom: 20px; }
.why-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-card p { color: #4A5A72; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-list { list-style: none; margin-top: 34px; display: grid; gap: 20px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.contact-list small { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--steel); padding-top: 4px; }
.contact-list a:hover { color: var(--accent); }
form { background: var(--navy-2); border: 1px solid var(--line); border-radius: 24px; padding: 34px; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .82rem; color: var(--steel); display: grid; gap: 7px; }
input, select, textarea {
  font: inherit; color: var(--white); background: var(--navy); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--steel); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0 36px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer img { height: 44px; width: auto; }
footer p { color: var(--steel); font-size: .85rem; }
footer nav { display: flex; gap: 22px; font-size: .88rem; color: #C8D2E0; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .building .wrap, .hero .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-top { grid-template-columns: 1fr; }
  .ref.full { grid-template-columns: 1fr; }
  .ref.full .ref-body { padding: 20px 22px 24px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: grid; place-items: center; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--navy); padding: 24px 16px 30px; gap: 18px; border-bottom: 1px solid var(--line); font-size: 1.1rem;
  }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc-grid, .ref-grid { grid-template-columns: 1fr; }
  .ref.wide, .ref.full { grid-column: auto; }
  .pin { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; }
  .dial-temp { font-size: 3.8rem; }
  form, .dial, .bld-info { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
