:root {
  --bg: #0b0b0b;
  --fg: #f2f2f2;
  --g1: #a3a3a3;
  --g2: #5c5c5c;
  --g3: #262626;
  --display: "Anton", Impact, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--fg); color: var(--bg); }
body.loading { overflow: hidden; }

/* ---------- Yükleniyor ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--fg); color: var(--bg);
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: var(--pad); font-family: var(--mono);
}
.loader-name { font-size: 14px; }
.loader-count { font-family: var(--display); font-size: clamp(80px, 18vw, 240px); line-height: .8; }

/* ---------- 3D tuval ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    border: 1px solid #fff; mix-blend-mode: difference; opacity: 0;
    transition: width .25s, height .25s, margin .25s, background-color .25s, opacity .2s;
  }
  .cursor.big { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; }
}

/* ---------- Header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad); mix-blend-mode: difference; color: #fff;
  font-family: var(--mono); font-size: 14px; transition: transform .4s ease;
}
.top.hide { transform: translateY(-100%); }
.top nav { display: flex; gap: 24px; }
.top nav a { position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: currentColor; transition: right .25s; }
.top nav a:hover::after { right: 0; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Bölümler ---------- */
main { position: relative; z-index: 1; }
.s {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad);
}
.s[data-side="left"] .content { max-width: min(560px, 48%); }
.s[data-side="right"] .content { max-width: min(560px, 48%); margin-left: auto; }
.label { font-family: var(--mono); font-size: 13px; color: var(--g1); margin-bottom: 24px; }
.body { color: var(--g1); font-size: 18px; margin-top: 28px; max-width: 46ch; }
h2.big { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; text-shadow: 0 2px 30px rgba(0,0,0,.8); }

/* kelime / harf sarmalayıcıları */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.wi { display: inline-block; will-change: transform; }
.char { display: inline-block; will-change: transform; }
.split-chars { perspective: 600px; }

/* ---------- Hero ---------- */
.hero { position: relative; justify-content: flex-end; padding-bottom: clamp(48px, 9vh, 96px); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--g1); margin-bottom: 18px; }
.kicker b { color: var(--fg); font-weight: 500; }
.kicker .sep { color: var(--g2); margin: 0 6px; }
.live { font-size: 9px; vertical-align: 2px; }
.hero-name {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, min(16vw, 25vh), 260px); line-height: .9; letter-spacing: -.005em;
}
.hero-name .line { display: block; overflow: hidden; padding-top: .04em; }
.lead { margin-top: 24px; font-size: clamp(18px, 2vw, 26px); max-width: 30ch; line-height: 1.3; }
.lead em { font-style: normal; color: var(--g1); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.scroll-cue {
  position: absolute; right: var(--pad); bottom: clamp(48px, 9vh, 96px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--g1);
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 60px; background: var(--g2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg); animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Butonlar ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 99px; border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg); font: inherit; font-weight: 500; font-size: 16px;
  cursor: pointer; overflow: hidden; isolation: isolate; will-change: transform;
}
.btn span { position: relative; z-index: 1; display: inline-block; transition: color .35s; }
.btn::before {
  content: ""; position: absolute; left: 50%; top: 100%; width: 140%; aspect-ratio: 1; border-radius: 50%;
  background: var(--bg); transform: translate(-50%, 0) scale(0); transition: transform .5s cubic-bezier(.7,0,.2,1);
}
.btn:hover::before { transform: translate(-50%, -55%) scale(1); }
.btn:hover span { color: var(--fg); }
.btn-ghost { background: rgba(11,11,11,.4); color: var(--fg); backdrop-filter: blur(6px); }
.btn-ghost::before { background: var(--fg); }
.btn-ghost:hover span { color: var(--bg); }
.btn-sm { padding: 12px 22px; font-size: 14px; }

/* ---------- İşler ---------- */
.ptitle {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 8.5vw, 150px); line-height: .88; margin-bottom: 28px;
  white-space: nowrap; text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.card {
  background: rgba(18,18,18,.55); border: 1px solid var(--g3); backdrop-filter: blur(10px);
  padding: 28px; border-radius: 18px; transform-style: preserve-3d; will-change: transform;
}
.card p { color: var(--g1); font-size: 17px; }
.depth { transform: translateZ(30px); }
.card .btn { margin-top: 22px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.tags span { font-family: var(--mono); font-size: 12px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--g2); color: var(--fg); }
.stats { list-style: none; display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1; }
.stats span { font-family: var(--mono); font-size: 12px; color: var(--g1); }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 1; padding: 80px 0; overflow: hidden; }
.mq-row { background: var(--fg); color: var(--bg); padding: 16px 0; transform: rotate(-3deg) scale(1.1); }
.mq-alt { background: transparent; color: var(--fg); border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); transform: rotate(2deg) scale(1.1); margin-top: -10px; }
.mq-track { display: flex; gap: 32px; width: max-content; will-change: transform; }
.mq-track span { font-family: var(--display); font-size: clamp(28px, 4vw, 56px); text-transform: uppercase; line-height: 1; white-space: nowrap; }

/* ---------- Hizmetler ---------- */
.svc { list-style: none; counter-reset: s; }
.svc li {
  counter-increment: s; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; border-bottom: 1px solid var(--g3); transition: padding .3s;
}
.svc li::before { content: "0" counter(s); font-family: var(--mono); font-size: 13px; color: var(--g2); width: 34px; }
.svc span { font-size: clamp(24px, 3vw, 40px); letter-spacing: -.03em; font-weight: 500; }
.svc small { font-family: var(--mono); font-size: 12px; color: var(--g1); margin-left: auto; }
.svc li:hover { padding-left: 14px; }

/* ---------- İletişim ---------- */
.contact { align-items: center; text-align: center; }
.say-hi { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(80px, 17vw, 300px); line-height: .85; text-shadow: 0 6px 60px rgba(0,0,0,.7); }
.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }

.foot {
  position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 24px var(--pad); border-top: 1px solid var(--g3);
  font-family: var(--mono); font-size: 12px; color: var(--g2); background: var(--bg);
}
.foot a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .s[data-side="left"] .content, .s[data-side="right"] .content { max-width: 100%; margin-left: 0; }
  .s { padding: 96px var(--pad); }
  .scroll-cue { display: none; }
  .ptitle { white-space: normal; }
  .card { padding: 22px; }
  .stats { gap: 24px; }
  .svc small { margin-left: 50px; width: 100%; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .top nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .blink, .scroll-cue i::after { animation: none; }
}

/* ---------- Terminal (kadirk.blog'dan) ---------- */
.term { border: 1px solid var(--g2); background: #0e0e0e; max-width: 900px; font-family: var(--mono); font-size: 14px; }
.term-bar { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--g3); color: var(--g1); font-size: 12px; }
.term-body { padding: 16px; height: 340px; overflow-y: auto; }
.term-out div { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.term-out .cmd { color: var(--g1); }
.term-out .dim { color: var(--g2); }
.term-out a { text-decoration: underline; text-underline-offset: 3px; }
.term-out .died { font-family: Georgia, serif; font-size: clamp(32px, 6vw, 56px); letter-spacing: .15em; line-height: 1.3; animation: fadein 2s ease; }
@keyframes fadein { from { opacity: 0; letter-spacing: .5em; } }
.term-line { display: flex; gap: 10px; align-items: center; }
.prompt { color: var(--g1); white-space: nowrap; }
.term-line input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; caret-color: var(--fg); }
.snake { font-family: var(--mono); font-size: 13px; color: var(--fg); user-select: none; }
.snake-head { white-space: pre; }
.snake-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.snake-x { background: none; border: 1px solid var(--g2); color: var(--fg); font: inherit; font-size: 12px; padding: 2px 10px; cursor: pointer; }
.snake-x:hover { background: var(--fg); color: var(--bg); }
.snake canvas { display: block; border: 1px solid var(--g2); touch-action: none; }
.snake-hint { margin-top: 10px; color: var(--g1); font-size: 12px; }
.term-hint { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--g2); }
.term-hint code { color: var(--g1); }
@keyframes fadein { from { opacity: 0; letter-spacing: .5em; } }
.term-section .content { max-width: 900px; margin: 0 auto; width: 100%; }
.term { border-radius: 14px; overflow: hidden; background: rgba(14,14,14,.82); backdrop-filter: blur(10px); box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); }
.term-bar i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--g2); margin-right: 6px; }
@media (max-width: 760px) { .term-body { height: 300px; font-size: 13px; } .prompt { font-size: 12px; } }

/* ---------- Yayın hazırlığı: erişilebilirlik ve yedekler ---------- */
.no-js .loader { display: none; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px;
  background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 14px; border-radius: 8px;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.btn:focus-visible { outline-offset: 5px; }
.term-line input:focus-visible { outline: none; }
.term { margin-top: 32px; }
body.no-gl { background: radial-gradient(1200px 600px at 70% 20%, #1a1a1a, var(--bg) 70%) fixed; }
body.no-gl #gl { display: none; }

/* ---------- Bölüm göstergesi ---------- */
.dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 10px; mix-blend-mode: difference;
}
.dots a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 14px; color: #fff; }
.dots a i { display: block; width: 14px; height: 1px; background: #fff; opacity: .35; transition: width .3s, opacity .3s; }
.dots a span { font-family: var(--mono); font-size: 11px; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.dots a:hover span, .dots a.on span { opacity: 1; transform: none; }
.dots a.on i { width: 32px; opacity: 1; }
.dots a:hover i { opacity: 1; }

/* ---------- Süreç adımları ---------- */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.steps li { font-family: var(--mono); font-size: 12px; padding: 8px 14px; border: 1px solid var(--g3); border-radius: 99px; color: var(--g1); background: rgba(11,11,11,.5); }
.steps b { color: var(--fg); font-weight: 500; margin-right: 6px; }

/* ---------- Hızlı teklif formu ---------- */
.quote {
  width: 100%; max-width: 760px; margin-top: 48px; text-align: left;
  background: rgba(18,18,18,.6); border: 1px solid var(--g3); border-radius: 20px;
  padding: clamp(20px, 3vw, 32px); backdrop-filter: blur(12px);
}
.quote fieldset { border: 0; margin-bottom: 20px; }
.quote legend { font-family: var(--mono); font-size: 12px; color: var(--g1); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--g2);
  font-size: 14px; transition: background .2s, color .2s, border-color .2s;
}
.chips label:hover span { border-color: var(--fg); }
.chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-wide { grid-column: 1 / -1; }
.field input::placeholder, .field textarea::placeholder { color: var(--g2); }
.field.bad input, .field.bad textarea { border-color: #ff8a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-status { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--g1); min-height: 1.2em; }
.quote-status.err { color: #ff8a8a; }
.quote-status a { color: var(--fg); text-decoration: underline; }
.quote button[disabled] { opacity: .6; cursor: progress; }
.quote-done {
  width: 100%; max-width: 760px; margin-top: 48px; padding: 40px 28px; text-align: center;
  background: rgba(18,18,18,.6); border: 1px solid var(--g3); border-radius: 20px; backdrop-filter: blur(12px);
}
.quote-done p { color: var(--g1); }
.quote-done b { color: var(--fg); font-weight: 500; }
.quote-done-big { font-family: var(--display); text-transform: uppercase; font-size: clamp(36px, 5vw, 64px); color: var(--fg) !important; line-height: 1; margin-bottom: 14px; }
.quote-done .btn { margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-family: var(--mono); font-size: 12px; color: var(--g1); }
.field input, .field textarea {
  width: 100%; background: rgba(11,11,11,.7); border: 1px solid var(--g3); border-radius: 12px;
  color: var(--fg); font: inherit; font-size: 15px; padding: 12px 14px; resize: vertical; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.quote-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.quote-foot small { color: var(--g2); font-family: var(--mono); font-size: 11px; max-width: 34ch; }
.quote.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.contact-btns { margin-top: 28px; }

.to-top { color: var(--fg); }
.foot { align-items: center; }

@media (max-width: 760px) {
  .dots { display: none; }
  .fields { grid-template-columns: 1fr; }
}
