/* Mercan Bilişim Yazılım — tanıtım sitesi */
:root {
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --wa: #25d366;
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 9px;
  --wrap: 1200px;
}
:root, [data-theme="dark"] {
  --bg: #0e1621;
  --bg-2: #111c29;
  --surface: #152131;
  --surface-2: #1a283a;
  --line: #24354b;
  --line-2: #30445d;
  --text: #e9eff5;
  --muted: #98a7b9;
  --coral: #ff7a66;
  --coral-2: #ff9b7a;
  --coral-ink: #1d0d08;
  --cyan: #52c4e3;
  --vf-bg: radial-gradient(120% 90% at 30% 20%, #1b2b40 0%, #111c2a 55%, #0c141e 100%);
  --vf-ink: rgba(233, 239, 245, .82);
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-2: #edf1f5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #dbe2ea;
  --line-2: #c8d2dd;
  --text: #0f1a27;
  --muted: #536377;
  --coral: #dc4f3a;
  --coral-2: #f07a5f;
  --coral-ink: #ffffff;
  --cyan: #1a7f9e;
  --vf-bg: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, #eef2f7 60%, #e3e9f0 100%);
  --vf-ink: rgba(15, 26, 39, .7);
  --shadow: 0 30px 70px -45px rgba(20, 35, 55, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--coral) 30%, transparent); }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--coral); color: var(--coral-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-primary { background: var(--coral); color: var(--coral-ink); }
.btn-primary:hover { background: var(--coral-2); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: #3be07a; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn svg { width: 20px; height: 20px; }
.wa-i path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.wa-i .fill, .float-wa .fill { fill: currentColor; stroke: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }

/* ---------- üst çubuk ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo img { flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font: 700 17px var(--display); letter-spacing: -.02em; }
.logo-text span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { text-decoration: none; color: var(--muted); padding: 8px 13px; border-radius: 999px; font-size: 15.5px; font-weight: 500; }
.menu a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.top-act { display: flex; align-items: center; gap: 10px; }
.show-sm { display: none; }

/* ---------- açılış: kamera vizörü ---------- */
.hero { padding: 18px 0 40px; }
.viewfinder {
  position: relative; overflow: hidden;
  min-height: min(76vh, 700px);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--vf-bg);
  padding: 30px 40px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
/* tarama çizgileri */
.viewfinder::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--text) 3.5%, transparent) 0 1px, transparent 1px 4px);
}
/* yatay merkez çizgisi ve odak işareti */
.viewfinder::after {
  content: ''; position: absolute; right: 8%; top: 50%; width: 54px; height: 54px; translate: 0 -50%;
  border: 1.5px solid color-mix(in srgb, var(--vf-ink) 45%, transparent); border-radius: 50%;
  pointer-events: none; opacity: .5;
}
.corner { position: absolute; width: 38px; height: 38px; border-color: var(--vf-ink); border-style: solid; border-width: 0; transition: inset .9s cubic-bezier(.2,.7,.2,1), opacity .9s; opacity: 0; }
.corner.tl { top: 44px; left: 44px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 8px; }
.corner.tr { top: 44px; right: 44px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 8px; }
.corner.bl { bottom: 44px; left: 44px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 8px; }
.corner.br { bottom: 44px; right: 44px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 8px; }
.viewfinder.live .corner { opacity: 1; }
.viewfinder.live .corner.tl { top: 16px; left: 16px; }
.viewfinder.live .corner.tr { top: 16px; right: 16px; }
.viewfinder.live .corner.bl { bottom: 16px; left: 16px; }
.viewfinder.live .corner.br { bottom: 16px; right: 16px; }

.vf-top, .vf-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; color: var(--vf-ink); font-size: 14px; gap: 16px; }
.rec { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--mono); letter-spacing: .08em; }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff4b4b; box-shadow: 0 0 0 4px rgba(255, 75, 75, .18); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }

.hero-body { position: relative; margin: auto 0; padding: 40px 0; max-width: 860px; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 86px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em;
  max-width: 14ch; text-wrap: balance;
  filter: blur(10px); opacity: .25; transition: filter 1.1s cubic-bezier(.2,.7,.2,1) .15s, opacity 1.1s ease .15s;
}
.viewfinder.live h1 { filter: none; opacity: 1; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; margin-top: 22px; line-height: 1.6; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- bölümler ---------- */
.section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2, .about h2, .contact h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.1; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }

/* hizmetler */
.services { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.svc h3 { font-size: 20px; font-weight: 600; margin: 18px 0 8px; }
.svc p { color: var(--muted); font-size: 16px; }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--coral) 12%, transparent); color: var(--coral); }
.svc-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-main {
  grid-row: span 2; padding: 32px;
  border-color: color-mix(in srgb, var(--coral) 45%, var(--line));
  background: linear-gradient(170deg, color-mix(in srgb, var(--coral) 9%, var(--surface)) 0%, var(--surface) 55%);
  display: flex; flex-direction: column;
}
.svc-main h3 { font-size: 28px; line-height: 1.15; }
.svc-main .svc-icon { width: 56px; height: 56px; }
.svc-main .svc-icon svg { width: 30px; height: 30px; }
.ticks { list-style: none; margin: 20px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: rotate(-45deg); }
.brands { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.brands span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 14px var(--display); letter-spacing: -.01em; }
.svc-main .btn { margin-top: auto; align-self: flex-start; }

/* keşif adımları */
.kesif { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 26px 22px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font: 600 40px/1 var(--display); color: var(--coral); margin-bottom: 18px; letter-spacing: -.04em; }
.steps b { display: block; font: 600 18px var(--display); margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* projeler */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.proj-wide { grid-column: span 2; padding: 32px; background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 8%, var(--surface)), var(--surface) 60%); }
.proj h3 { font-size: 21px; font-weight: 600; margin: 14px 0 8px; }
.proj-wide h3 { font-size: 30px; }
.proj p { color: var(--muted); font-size: 16px; }
.proj-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag { font-size: 13px; font-weight: 500; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); padding: 3px 11px; border-radius: 999px; }
.ext { font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.ext:hover { color: var(--text); }
.feat { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feat li { font-size: 14.5px; padding: 6px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

/* referanslar */
.refs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.refs li { height: 120px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 18px; text-align: center; }
.ref-name { font: 600 19px/1.15 var(--display); letter-spacing: -.02em; }
.ref-name small { display: block; font: 500 13px var(--font); color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.refs li.has-logo { background: #fff; border-color: #e3e8ee; }
.refs li.has-logo .ref-name { display: none; }
.refs li img { max-height: 64px; max-width: 100%; object-fit: contain; }

/* hakkımızda */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; }
.about-mark { aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--coral) 18%, var(--surface)), var(--surface) 70%); border: 1px solid var(--line); }
.about-mark img { width: 52%; }
.about .lead { margin-top: 16px; color: var(--text); }
.about p:not(.lead):not(.sig) { color: var(--muted); margin-top: 16px; max-width: 62ch; }
.sig { margin-top: 26px; display: flex; flex-direction: column; }
.sig b { font: 600 19px var(--display); }
.sig span { color: var(--muted); font-size: 15px; }

/* iletişim */
.contact-sec { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact .lead { margin-top: 14px; }
.channels { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 12px; }
.channels a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.channels a:hover { border-color: var(--line-2); }
.channels b { display: block; font-weight: 600; font-size: 15px; }
.channels a > span:last-child { color: var(--muted); font-size: 15.5px; overflow-wrap: anywhere; }
.ch-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.ch-i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ch-i .fill { fill: currentColor; stroke: none; }
.ch-wa .ch-i { background: color-mix(in srgb, var(--wa) 16%, transparent); color: var(--wa); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.form h3 { font-size: 22px; font-weight: 600; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 16px var(--font); color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; outline: none; width: 100%;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--coral); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 0; font-size: 15px; }
.form-msg.ok { color: #2fbf71; }
.form-msg.err { color: var(--coral); }
.form .btn { align-self: flex-start; }

/* alt bilgi */
.foot { padding: 44px 0 90px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.foot p { color: var(--muted); font-size: 15px; }
.copy { white-space: nowrap; }

.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
}
.float-wa svg { width: 30px; height: 30px; }
.float-wa path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* ---------- duyarlı ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: 1fr 1fr; }
  .svc-main { grid-row: auto; grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .refs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about { grid-template-columns: 220px 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 10px; font-size: 17px; }
  .show-sm { display: grid; }
  .hide-sm { display: none; }
  .top-act { margin-left: auto; }
  .projects { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 8px; }
  .viewfinder { padding: 22px 22px; min-height: 0; }
  .viewfinder::after { display: none; }
  .hero-body { padding: 44px 0 36px; }
  .lead { font-size: 17px; }
  .cta .btn { width: 100%; }
  .vf-bottom span:first-child { font-size: 13px; }
  .section { padding: 68px 0; }
  .services, .projects { grid-template-columns: 1fr; }
  .svc-main, .proj-wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .refs { grid-template-columns: 1fr 1fr; }
  .refs li { height: 104px; }
  .about { grid-template-columns: 1fr; }
  .about-mark { width: 140px; border-radius: 22px; }
  .row2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form .btn { width: 100%; }
  .foot-in { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 { filter: none; opacity: 1; }
  .corner { opacity: 1; }
}
