/* Anlayan Yazılım — "Sinyal" tasarımı */
:root {
  --bg: #08071A; --bg2: #0E0C26; --surface: #141236; --surface2: #1C1A45; --fg: #ECEBFA; --muted: #A3A1C4;
  --line: rgba(255, 255, 255, .09); --brand: #28166F; --brand-hi: #7B61FF; --cyan: #3FE3D2; --amber: #FFB547;
  --sea: #2FB7E8; --rose: #FF6B8B; --mint: #5BE49B;
  --grad: linear-gradient(100deg, #9D85FF 0%, #3FE3D2 55%, #FFB547 100%);
  --grad-wide: linear-gradient(90deg, #A58DFF, #3FE3D2, #FFB547, #FF7A9A, #A58DFF);
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --logo-dark: none; --logo-light: block;
  color-scheme: dark;
}
:root[data-theme="light"] .proj .btn.primary, :root[data-theme="light"] .soon { color: #fff; }
:root[data-theme="light"] {
  --bg: #F7F6FD; --bg2: #EEECFA; --surface: #FFFFFF; --surface2: #F1EFFC; --fg: #140F33; --muted: #565275;
  --line: rgba(20, 15, 60, .10); --brand-hi: #5B3FE0; --cyan: #0B8F83; --amber: #B86A00; --sea: #0A7FB0;
  --rose: #D23A5C; --mint: #138A4E;
  --grad: linear-gradient(100deg, #5B3FE0 0%, #0B8F83 60%, #B86A00 100%);
  --grad-wide: linear-gradient(90deg, #5B3FE0, #0B8F83, #B86A00, #C42F55, #5B3FE0);
  --shadow: 0 30px 70px rgba(30, 20, 90, .14);
  --logo-dark: block; --logo-light: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden; transition: background .4s, color .4s; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .display { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; letter-spacing: -.025em; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- üst şerit ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 116px; transition: height .35s cubic-bezier(.2, .8, .2, 1); }
.top.scrolled .wrap { height: 78px; }
.brand { position: relative; display: flex; align-items: center; text-decoration: none; }
.brand img { height: 80px; width: auto; transition: height .35s cubic-bezier(.2, .8, .2, 1); }
.top.scrolled .brand img { height: 52px; }
@media (max-width: 560px) { .brand img { height: 54px; } .top.scrolled .brand img { height: 40px; } }
/* açılışta logo yukarı kayarak belirir, ardından üzerinden ışık geçer; ışık logonun şekliyle maskelenir */
.top .brand { animation: logoIn .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(6px); } }
/* renkli ışık şeridi: logonun şekliyle maskelenir */
.top .brand::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 39%, #3FE3D2 45%, #fff 50%, #FFB547 55%, transparent 61%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
  -webkit-mask: url(/assets/img/logo-light.png) left center / contain no-repeat; mask: url(/assets/img/logo-light.png) left center / contain no-repeat;
  animation: shine 5s 1s ease-in-out infinite; }
:root[data-theme="light"] .top .brand::after { background-image: linear-gradient(105deg, transparent 39%, #0B8F83 45%, #7B61FF 50%, #E08A00 55%, transparent 61%); }
@keyframes shine { 0% { background-position: 130% 0; } 24%, 100% { background-position: -30% 0; } }
/* maskesiz renkli hale: ışıkla aynı anda kayar ve logonun dışına, sayfaya taşar */
.top .brand::before { content: ""; position: absolute; inset: -40px -90px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--cyan), color-mix(in srgb, var(--cyan) 70%, transparent) 14%, color-mix(in srgb, var(--brand-hi) 60%, transparent) 42%, transparent) no-repeat;
  background-size: 220px 100%; background-position: -20% 50%; filter: blur(12px); opacity: 0;
  animation: spill 5s 1s ease-in-out infinite; }
:root:not([data-theme="light"]) .top .brand::before { mix-blend-mode: screen; }
@keyframes spill { 0% { background-position: -20% 50%; opacity: 0; } 6% { opacity: 1; } 19% { opacity: .9; } 24%, 100% { background-position: 120% 50%; opacity: 0; } }
.top .brand img { animation: breathe 5s 1s ease-in-out infinite; }
@keyframes breathe { 0%, 30%, 100% { filter: none; } 12% { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--brand-hi) 75%, transparent)) drop-shadow(0 0 3px color-mix(in srgb, var(--cyan) 60%, transparent)); } }
.brand .l-dark { display: var(--logo-dark); } .brand .l-light { display: var(--logo-light); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a.link:hover { color: var(--fg); background: var(--surface2); }
.pill { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pill button { background: none; border: 0; color: var(--muted); padding: 6px 11px; cursor: pointer; font: 600 .8rem "Inter", sans-serif; }
.pill button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav .cta-mini { margin-left: 6px; }
@media (max-width: 880px) { .nav a.link, .nav .cta-mini { display: none; } }

/* ---------- düğmeler ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-hi) 60%, transparent); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn.primary { background: var(--fg); color: var(--bg); border-color: transparent; box-shadow: 0 10px 40px color-mix(in srgb, var(--brand-hi) 35%, transparent); }
.btn.small { padding: 9px 16px; font-size: .88rem; }

/* ---------- giriş ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 150px 0 150px; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 90%; z-index: -2;
  background: radial-gradient(50% 50% at 25% 40%, color-mix(in srgb, var(--brand-hi) 40%, transparent), transparent 70%),
              radial-gradient(40% 45% at 80% 30%, color-mix(in srgb, var(--cyan) 22%, transparent), transparent 70%); filter: blur(20px); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(8px); font-size: .85rem; color: var(--muted); font-weight: 500; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); animation: pulse 2s infinite; margin-left: 4px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { font-size: clamp(2.6rem, 8.2vw, 6.6rem); line-height: .98; font-weight: 700; margin: 26px 0 24px; max-width: 13ch; }
.hero h1 .line { display: block; overflow: hidden; }
/* üç satır tek bir akan renk geçişini paylaşır; satırlar arasında renk kaydırılarak geçiş kesintisiz görünür */
.hero h1 .line > span { display: inline-block; padding-bottom: .06em; background: var(--grad-wide) repeat-x; background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s cubic-bezier(.2, .8, .2, 1) both, flow 14s linear infinite; animation-delay: 0s, 0s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s, -1.6s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s, -3.2s; }
@keyframes flow { to { background-position: 150% 0; } }
@keyframes rise { from { transform: translateY(105%); } }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 38em; margin: 0 0 34px; animation: fade 1s .4s both; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; animation: fade 1s .55s both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.morse-tag { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .82rem; color: var(--muted); animation: fade 1s .7s both; }
.morse-tag span b { color: var(--fg); font-weight: 600; margin-right: 8px; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; border-radius: 2px; background: var(--muted); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 70% { transform: translate(-50%, 12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 700px) { .scroll-hint { display: none; } }

/* giriş: iki sütun ve sağdaki kompozisyon */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-art { display: none; }
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero h1 { font-size: clamp(3.6rem, 6.2vw, 6rem); }
  .hero-art { display: block; position: relative; height: 560px; animation: fade 1.2s .5s both; }
}
.hero-art .layer { position: absolute; transform: translate3d(calc(var(--px, 0) * var(--z) * 1px), calc(var(--py, 0) * var(--z) * 1px), 0);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.art-ring { position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; z-index: -1;
  border: 1px dashed color-mix(in srgb, var(--brand-hi) 40%, transparent); animation: spin 60s linear infinite; }
.art-ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }

.art-editor { left: 0; top: 40px; width: 430px; border-radius: 18px; overflow: hidden; background: color-mix(in srgb, #0E0C26 88%, transparent);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.ed-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ed-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.ed-bar i:nth-child(2) { background: #FEBC2E; } .ed-bar i:nth-child(3) { background: #28C840; }
.ed-bar span { margin-left: 10px; font: 500 .75rem "JetBrains Mono", monospace; color: #8E8BB5; }
.ed-code { margin: 0; padding: 16px 18px 20px; font-size: .8rem; line-height: 1.75; color: #CFCBF0; white-space: pre; }
.ed-code b { font-weight: 500; }
.ed-code .k { color: #FF79C6; } .ed-code .v { color: #9D85FF; } .ed-code .p { color: #7EE3F5; } .ed-code .s { color: #FFC56E; }
.ed-code .f { color: #5BE49B; } .ed-code .c { color: #6C6994; }
/* satırlar sırayla "yazılır" */
.ed-code .ln { display: inline-block; clip-path: inset(0 100% 0 0); animation: type .55s steps(24, end) forwards; }
.ed-code .ln:nth-child(1) { animation-delay: .9s; } .ed-code .ln:nth-child(2) { animation-delay: 1.4s; } .ed-code .ln:nth-child(3) { animation-delay: 1.9s; }
.ed-code .ln:nth-child(4) { animation-delay: 2.4s; } .ed-code .ln:nth-child(5) { animation-delay: 2.9s; } .ed-code .ln:nth-child(6) { animation-delay: 3.4s; }
.ed-code .ln:nth-child(7) { animation-delay: 3.9s; } .ed-code .ln:nth-child(8) { animation-delay: 4.3s; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 3px; vertical-align: -3px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.art-phone { right: 10px; top: 0; }
.art-phone .phone { width: 230px; transform: rotate(6deg); animation: float 7s ease-in-out infinite; --r: 7deg; }
.art-palette { left: 60px; bottom: 30px; width: 250px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.art-palette .sw { display: flex; gap: 6px; }
.art-palette .sw i { flex: 1; height: 38px; border-radius: 10px; }
.art-palette .type { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.art-palette .type b { font: 700 2rem/1 "Space Grotesk", sans-serif; }
.art-palette .type span { font-size: .8rem; font-weight: 600; line-height: 1.3; }
.art-palette .type small { font: 500 .68rem "JetBrains Mono", monospace; color: var(--muted); }
.art-toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px); font-size: .82rem; white-space: nowrap; }
.art-toast b { display: block; font-weight: 700; }
.art-toast small { color: var(--muted); font-size: .74rem; }
.art-toast .tf { width: 42px; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; flex: none; }
.art-toast .tf svg { width: 100%; height: 100%; display: block; }
.art-toast .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--mint) 22%, transparent); color: var(--mint); font-weight: 800; }
.art-toast.t1 { right: 150px; top: 320px; animation: pop .6s 2.2s cubic-bezier(.2, 1.4, .4, 1) both; }
.art-toast.t2 { right: -10px; bottom: 40px; animation: pop .6s 3.4s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { opacity: 0; scale: .7; } }
@media (max-width: 1279px) { .art-phone .phone { width: 196px; } .ed-code { font-size: .74rem; } }

/* ---------- kayan şerit ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg2); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font: 600 clamp(1.3rem, 2.6vw, 2rem) "Space Grotesk", sans-serif; white-space: nowrap; color: var(--muted); display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "·−"; color: var(--brand-hi); font-family: "JetBrains Mono", monospace; font-size: .8em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- bölüm başlıkları ---------- */
section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.kicker { font: 600 .8rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .16em; color: var(--brand-hi); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.sec-head h2 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.04; margin: 0; font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 40em; }

/* ---------- hizmetler ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.svc { position: relative; padding: 30px 26px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c, var(--brand-hi)) 22%, transparent), transparent 60%); }
.svc:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c, var(--brand-hi)) 45%, transparent); }
.svc:hover::before { opacity: 1; }
.svc .num { font: 500 .8rem "JetBrains Mono", monospace; color: var(--muted); }
.svc .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 22px 0 20px;
  background: color-mix(in srgb, var(--c, var(--brand-hi)) 16%, transparent); color: var(--c, var(--brand-hi)); }
.svc .ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1.35rem; margin: 0 0 8px; }
.svc p { color: var(--muted); margin: 0 0 16px; font-size: .97rem; }
.svc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- projeler ---------- */
.projects { display: grid; gap: clamp(28px, 4vw, 40px); }
.proj { --c: var(--brand-hi); position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 56px); border-radius: 36px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.proj::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 65%),
              radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%); }
.proj:nth-child(even) .proj-visual { order: -1; }
.proj > * { min-width: 0; }
@media (max-width: 920px) { .proj { grid-template-columns: 1fr; } .proj:nth-child(even) .proj-visual { order: 0; } }
.proj .tagline { display: inline-flex; gap: 8px; align-items: center; font: 600 .78rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--c); }
.proj h3 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 14px 0 14px; line-height: 1; }
.proj p.desc { color: var(--muted); font-size: 1.06rem; margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips span { font-size: .8rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--fg); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; padding: 18px 0; border-block: 1px solid var(--line); }
.stats b { display: block; font: 700 clamp(1.4rem, 3vw, 2rem) "Space Grotesk", sans-serif; color: var(--fg); line-height: 1.1; }
.stats small { color: var(--muted); font-size: .8rem; }
.proj .links { display: flex; flex-wrap: wrap; gap: 10px; }
.proj .btn.primary { background: var(--c); color: #0A0920; box-shadow: 0 10px 40px color-mix(in srgb, var(--c) 35%, transparent); }
@media (max-width: 560px) { .soon { position: static !important; display: inline-block; margin-bottom: 14px; } }
.soon { position: absolute; top: 24px; right: 24px; font: 700 .72rem "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; background: var(--c); color: #0A0920; }

.proj-visual { position: relative; min-height: 420px; display: grid; place-items: center; perspective: 1400px; }
@media (max-width: 560px) { .proj-visual { min-height: 340px; } }

/* telefon çerçevesi */
.phone { position: relative; width: 210px; aspect-ratio: 1 / 2; border-radius: 34px; padding: 7px; background: #05040F;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow); }
.phone > img, .phone > .screen { width: 100%; height: 100%; border-radius: 28px; object-fit: cover; overflow: hidden; }
.phone::after { content: ""; position: absolute; top: 14px; left: 50%; width: 56px; height: 14px; transform: translateX(-50%); border-radius: 10px; background: #05040F; }
.fan { position: relative; width: 100%; height: 440px; }
.fan .phone { position: absolute; left: 50%; top: 50%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.fan .phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-58%) rotate(-9deg) scale(.86); z-index: 1; }
.fan .phone:nth-child(2) { transform: translate(-50%, -50%) translateY(-2%); z-index: 3; }
.fan .phone:nth-child(3) { transform: translate(-50%, -50%) translateX(58%) rotate(9deg) scale(.86); z-index: 2; }
.proj:hover .fan .phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-72%) rotate(-12deg) scale(.88); }
.proj:hover .fan .phone:nth-child(3) { transform: translate(-50%, -50%) translateX(72%) rotate(12deg) scale(.88); }
@media (max-width: 560px) { .fan { height: 380px; } .fan .phone { width: 170px; } }

/* tarayıcı çerçevesi */
.browser { width: 100%; max-width: 560px; border-radius: 18px; overflow: hidden; background: #0B1B26; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow);
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.proj:hover .browser { transform: none; }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #10252F; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.browser .bar i:nth-child(2) { background: #FEBC2E; } .browser .bar i:nth-child(3) { background: #28C840; }
.browser .url { flex: 1; margin-left: 10px; padding: 5px 12px; border-radius: 8px; background: #081820; color: #8FB8C9; font: 500 .78rem "JetBrains Mono", monospace; }
.browser .page { position: relative; aspect-ratio: 16 / 11; background: linear-gradient(180deg, #0F3446, #0B2230); color: #E6F6FF; overflow: hidden; }
.browser svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.browser .ui { position: absolute; left: 4%; top: 6%; width: 46%; display: grid; gap: 8px; }
.browser .ui .h { font: 700 clamp(.9rem, 2.2vw, 1.3rem)/1.1 "Space Grotesk", sans-serif; }
.browser .ui .s { font-size: clamp(.55rem, 1.2vw, .72rem); opacity: .75; }
.browser .ui .search { margin-top: 4px; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: clamp(.55rem, 1.2vw, .72rem); opacity: .9; backdrop-filter: blur(4px); }
.browser .cards { position: absolute; left: 4%; right: 4%; bottom: 5%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.browser .cards div { padding: 7px 8px; border-radius: 9px; background: rgba(8, 24, 32, .78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .08);
  font-size: clamp(.5rem, 1.1vw, .68rem); line-height: 1.3; }
.browser .cards b { display: block; font-size: 1.15em; color: #7EE3F5; }
.pin { transform-box: fill-box; transform-origin: 50% 100%; animation: drop .9s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }

/* bayrak oyunu ekranı */
.quiz { background: linear-gradient(180deg, #1B2B6B, #0E1640); color: #fff; display: flex; flex-direction: column; padding: 34px 14px 16px; gap: 12px; font-family: "Inter", sans-serif; }
.quiz .q-top { display: flex; justify-content: space-between; font-size: .66rem; font-weight: 600; opacity: .85; }
.quiz .q-top b { color: #FFD24A; }
.quiz .timer { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.quiz .timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #5BE49B, #FFD24A); transform-origin: left; animation: timer 3.2s linear infinite; }
@keyframes timer { to { transform: scaleX(0); } }
.quiz .flag { margin: 10px auto 4px; width: 88%; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.quiz .flag svg { width: 100%; height: auto; display: block; }
.quiz .ask { text-align: center; font-size: .78rem; font-weight: 600; }
.quiz .opts { display: grid; gap: 7px; margin-top: auto; }
.quiz .opts span { padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); font-size: .74rem; font-weight: 600; text-align: center; transition: background .3s, transform .3s; }
.quiz .opts span.ok { background: #22B566; transform: scale(1.03); }
.flag-float { position: absolute; width: 74px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.flag-float svg { width: 100%; height: auto; display: block; }
@keyframes float { 50% { transform: translateY(-14px) rotate(var(--r, 4deg)); } }

/* adisyon ekranı */
.tablet { width: min(100%, 520px); aspect-ratio: 4 / 3; border-radius: 26px; padding: 10px; background: #05040F; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow);
  transform: rotate(-3deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.proj:hover .tablet { transform: rotate(0); }
.pos { width: 100%; height: 100%; border-radius: 18px; background: #12101F; display: grid; grid-template-columns: 1.5fr 1fr; overflow: hidden; color: #EDEBFA; font-size: clamp(.5rem, 1.3vw, .72rem); }
.pos .tables { padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 7px; }
.pos .tables div { border-radius: 10px; background: #1F1C33; display: grid; place-content: center; text-align: center; gap: 2px; font-weight: 700; }
.pos .tables div small { font-weight: 500; opacity: .7; font-size: .85em; }
.pos .tables .busy { background: color-mix(in srgb, #FF6B8B 30%, #1F1C33); box-shadow: inset 0 0 0 1px #FF6B8B; }
.pos .tables .ready { background: color-mix(in srgb, #5BE49B 26%, #1F1C33); box-shadow: inset 0 0 0 1px #5BE49B; }
.pos .tables .sel { background: #FF6B8B; color: #1A0A10; animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(255, 107, 139, .35); } }
.pos .slip { background: #F5F2E8; color: #1A1830; padding: 12px 12px 10px; display: flex; flex-direction: column; font-family: "JetBrains Mono", monospace; }
.pos .slip h5 { margin: 0 0 6px; font-size: 1.05em; display: flex; justify-content: space-between; }
.pos .slip .row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed #C9C3B3; }
.pos .slip .row.new { animation: fade .6s both; }
.pos .slip .tot { margin-top: auto; display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1em; padding-top: 6px; }
.pos .slip .pay { margin-top: 8px; padding: 7px; text-align: center; border-radius: 8px; background: #1A1830; color: #fff; font-weight: 700; }

/* ---------- süreç ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 1060px) { .step, .step + .step { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); } }
.step .n { font: 700 3.4rem/1 "Space Grotesk", sans-serif; color: transparent; -webkit-text-stroke: 1.5px var(--muted); opacity: .55; }
.step h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
.step .morse { font: 500 .8rem "JetBrains Mono", monospace; color: var(--brand-hi); letter-spacing: .2em; margin-top: 16px; }

/* ---------- vurgu bandı ---------- */
.band { padding: 0; }
.band .inner { position: relative; border-radius: 40px; padding: clamp(40px, 7vw, 90px); overflow: hidden; isolation: isolate; text-align: center;
  background: linear-gradient(135deg, #28166F, #4A2BC2 55%, #127A86); color: #fff; }
.band .inner::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.4px); background-size: 22px 22px; mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent); }
.band h2 { font-size: clamp(2rem, 5.5vw, 4.2rem); margin: 0 auto 18px; max-width: 16ch; line-height: 1.02; }
.band p { margin: 0 auto 32px; max-width: 36em; opacity: .85; font-size: 1.1rem; }
.band .btn.primary { background: #fff; color: #1B0F4D; }

/* ---------- iletişim ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }
.contact > * { min-width: 0; }
.c-list { display: grid; gap: 12px; margin-top: 8px; }
.c-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
a.c-item:hover { border-color: var(--brand-hi); transform: translateX(4px); }
.c-item .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-hi) 16%, transparent); color: var(--brand-hi); flex: none; }
.c-item .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-item small { display: block; color: var(--muted); font-size: .8rem; }
.c-item b { font-weight: 600; overflow-wrap: anywhere; }
form.cform { padding: clamp(22px, 4vw, 40px); border-radius: 30px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form.cform { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-hi); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-hi) 20%, transparent); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; cursor: pointer; }
/* gizli seçim kutusu etiketin içinde kalır; yoksa sayfayı sağa taşırıp telefonda yatay kaydırma yaratıyordu */
.topics input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.topics span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--fg); transition: all .2s; }
.topics input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.topics input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--muted); font-size: .82rem; max-width: 30em; }
.status { grid-column: 1 / -1; padding: 12px 16px; border-radius: 14px; font-size: .93rem; font-weight: 500; }
.status.ok { background: color-mix(in srgb, var(--mint) 16%, transparent); color: var(--mint); }
.status.err { background: color-mix(in srgb, var(--rose) 16%, transparent); color: var(--rose); }

/* ---------- alt bilgi ---------- */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(60px, 8vw, 100px); }
footer .grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
@media (max-width: 720px) { footer .grid { grid-template-columns: 1fr 1fr; } footer .grid > :first-child { grid-column: 1 / -1; } }
footer .brand img { height: 48px; }
footer p { color: var(--muted); font-size: .92rem; max-width: 26em; }
footer h4 { font: 600 .78rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 6px 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer ul a { text-decoration: none; color: var(--fg); opacity: .85; font-size: .95rem; }
footer ul a:hover { opacity: 1; color: var(--brand-hi); }
footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------- kaydırınca beliren ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee .track { animation: none; }
}

/* ---------- çerez şeridi ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center;
  padding: 16px 18px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.consent p { margin: 0; flex: 1 1 300px; font-size: .9rem; color: var(--muted); }
.consent a { color: var(--brand-hi); }
.consent-btns { display: flex; gap: 8px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--fg); opacity: .85; cursor: pointer; font-size: .95rem; text-align: left; }
.linkbtn:hover { opacity: 1; color: var(--brand-hi); }
.form-foot small a { color: var(--brand-hi); }

/* uzun metinler dile göre gösterilir: data-lang-only="tr" / "en" */
:root[lang="en"] [data-lang-only="tr"], :root[lang="tr"] [data-lang-only="en"] { display: none !important; }

/* ---------- alt sayfalar ---------- */
.page-hero { position: relative; padding: 170px 0 70px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1; filter: blur(20px);
  background: radial-gradient(45% 50% at 20% 40%, color-mix(in srgb, var(--c, var(--brand-hi)) 32%, transparent), transparent 70%),
              radial-gradient(35% 45% at 85% 30%, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 70%); }
.page-hero .grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero .grid2 > * { min-width: 0; }
@media (max-width: 920px) { .page-hero .grid2 { grid-template-columns: 1fr; } }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1; margin: 22px 0 18px; }
.page-hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; margin: 0 0 28px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--c, var(--brand-hi)); }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.feat .svc h3 { font-size: 1.15rem; }
.prose > * { max-width: 780px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--brand-hi); }
.prose .meta { font-size: .9rem; }
.prose .box { padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 16px 60px; }
.notfound .code { font: 700 clamp(6rem, 22vw, 14rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.05em; background: var(--grad-wide); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 14s linear infinite; }
.notfound .morse { font: 500 1rem "JetBrains Mono", monospace; color: var(--muted); letter-spacing: .3em; margin: 8px 0 24px; }

/* ---------- mobil menü ---------- */
.menu-btn { display: none; }
.menu-btn svg path { transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .m1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .m2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .m3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 880px) { .menu-btn { display: grid; } }
.mobile-menu { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px) saturate(1.4);
  max-height: calc(100svh - 72px); overflow-y: auto; animation: menuIn .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu nav { display: grid; gap: 2px; max-width: 1200px; margin: 0 auto; padding: 10px 16px 22px; }
.mobile-menu nav > a:not(.btn) { padding: 13px 4px; font: 600 1.35rem "Space Grotesk", sans-serif; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-products { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 4px 18px; }
.mobile-menu .mm-products span { width: 100%; font: 600 .75rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.mobile-menu .mm-products a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .92rem; }
.mobile-menu .btn { justify-content: center; }
.top.menu-open { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); border-color: var(--line); }
@media (min-width: 881px) { .mobile-menu { display: none !important; } }

/* ---------- hizmet kartı çizimleri ---------- */
.svc-art { position: relative; height: 150px; margin: 18px 0 22px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c, var(--brand-hi)) 18%, transparent), transparent 60%), var(--bg); }
.svc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-art .k-a { fill: var(--c, var(--brand-hi)); }
.svc-art .k-as { stroke: var(--c, var(--brand-hi)); fill: none; }
.svc-art .k-n { fill: var(--surface2); }
.svc-art .k-b { fill: var(--surface); }
.svc-art .k-l { stroke: var(--line); stroke-width: 1.5; }
.svc-art rect.k-b.k-l, .svc-art circle.k-b.k-l { fill: var(--surface); }
.svc-art .k-soft { fill: color-mix(in srgb, var(--c, var(--brand-hi)) 24%, transparent); }
.svc-art .k-t { fill: var(--muted); font: 600 10px "JetBrains Mono", monospace; }
.svc-art .mv { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.svc:hover .svc-art .mv-r { transform: translateX(-8px); }
.svc:hover .svc-art .mv-l { transform: translateX(8px); }
.svc:hover .svc-art .mv-u { transform: translateY(-6px); }
.svc:hover .svc-art .mv-cursor { transform: translate(-46px, -20px); }
.svc-art .draw { stroke-dasharray: 260; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease; }
.svc:hover .svc-art .draw { animation: drawIn 1.1s ease; }
@keyframes drawIn { from { stroke-dashoffset: 260; } }
.svc-art .flow { stroke-dasharray: 4 6; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.svc-art .blink { animation: blink2 1.6s ease-in-out infinite; }
.svc-art .b2 { animation-delay: .4s; } .svc-art .b3 { animation-delay: .8s; }
@keyframes blink2 { 50% { opacity: .25; } }
.svc-art .bars rect { transform-box: fill-box; transform-origin: bottom; }
.svc:hover .svc-art .bars rect { animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; }
.svc:hover .svc-art .bars rect:nth-child(2) { animation-delay: .06s; } .svc:hover .svc-art .bars rect:nth-child(3) { animation-delay: .12s; }
.svc:hover .svc-art .bars rect:nth-child(4) { animation-delay: .18s; } .svc:hover .svc-art .bars rect:nth-child(5) { animation-delay: .24s; }
@keyframes grow { from { transform: scaleY(.2); } }
