:root {
  --ground: #edeeee;
  --paper: #f8f9f9;
  --ink: #1b1a17;
  --muted: #55524d;
  --line: #d3d6d7;
  --shot: #e1e3e4;
  --accent: #c2410c;
  --accent-hover: #a8380a;
  --radius: 8px;
  --radius-lg: 12px;
  --f: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-weight: 500; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }

/* ---- ust cubuk ---- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: 1px solid var(--line); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; min-height: 44px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a, .foot a, .direct a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; padding: 10px 0; }
.nav-links a:hover, .foot a:hover, .direct a:hover { background-size: 100% 1px; }
.nav-links a { font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* ---- dugmeler ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: 500 16px var(--f); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.nav .btn-sm { margin-left: 0; }

/* ---- giris ---- */
.hero { min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 56px 0; }
.hero .grid { align-items: center; width: 100%; }
.hero-text { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 24px; animation: enter .6s ease both; }
.hero h1 { font-size: clamp(38px, 4.3vw, 58px); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.fact { font-size: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.fact .mono { font-size: 18px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shot { grid-column: 6 / 13; margin: 0; animation: enter .6s .08s ease both; }
.shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(27,26,23,.18); box-shadow: 0 24px 48px -28px rgba(27,26,23,.45); background: #0f0e14; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

/* ---- bolumler ---- */
.sec { padding: 96px 0; border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(30px, 3.4vw, 44px); }
.sec-title { grid-column: 1 / 5; }

/* hizmetler: cizgili satirlar */
.rows { grid-column: 5 / 13; list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows b { font-weight: 500; font-size: 18px; }
.rows span { color: var(--muted); }
.rows em { font: 400 13px var(--mono); color: var(--muted); text-align: right; white-space: nowrap; }

/* uygulamalar: liste + secilenin ekrani */
.works-list { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 28px; }
.tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tabs button { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0 12px 16px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; position: relative; transition: color .2s ease; }
.tabs button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--ink); transform: scaleY(0); transition: transform .25s ease; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::before { transform: none; }
.tabs b { font-weight: 500; font-size: 18px; }
.tabs em { font: 400 13px var(--mono); font-style: normal; }
.works-view { grid-column: 6 / 13; }
.work { display: flex; flex-direction: column; gap: 14px; }
.work-img { border-radius: var(--radius-lg); background: var(--shot); display: grid; place-items: center; padding: 20px; overflow: hidden; border: 1px solid var(--line); }
.work-img img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.work-img-dark { background: #17161c; border-color: #17161c; }
#p-voidpanel .work-img { padding: 0; background: #0f0e14; border-color: rgba(27,26,23,.18); }
.work h3 { font-size: 24px; margin-top: 10px; }
.work p { color: var(--muted); max-width: 40em; }

/* calisma sekli: dort adim */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps .mono { font-size: 14px; color: var(--muted); }
.steps b { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.steps p { color: var(--muted); }

/* iletisim */
.contact-text { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 20px; }
.contact-text > p { color: var(--muted); max-width: 30em; }
.direct { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.direct li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.direct li:last-child { border-bottom: 1px solid var(--line); }
.direct span { color: var(--muted); }
.direct a { font-family: var(--mono); font-size: 15px; color: var(--accent); padding: 0; }
.form { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--f); transition: border-color .2s ease; }
.form textarea { resize: vertical; min-height: 150px; }
.form input:hover, .form textarea:hover { border-color: #aeb2b4; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form input::placeholder, .form textarea::placeholder { color: #6d6a65; }
.form [aria-invalid="true"] { border-color: #b42318; }
.form .btn { align-self: flex-start; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.6em; font-size: 15px; }
.form-msg.ok { color: #1f6b3a; }
.form-msg.err { color: #b42318; }

/* alt */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- tablet ---- */
@media (max-width: 1000px) {
  .hero-text { grid-column: 1 / 13; }
  .hero-shot { grid-column: 1 / 13; }
  .hero { min-height: 0; }
  .sec-title, .rows, .works-list, .works-view, .contact-text, .form { grid-column: 1 / 13; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}

/* ---- telefon ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid { gap: 20px; }
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding: 36px 0 48px; }
  .lead { font-size: 17px; }
  .hero-btns .btn, .form .btn { width: 100%; }
  .sec { padding: 64px 0; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows span { grid-column: 1 / 3; grid-row: 2; }
  .steps { grid-template-columns: 1fr; }
  .work-img { padding: 14px; }
  .direct li { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
