/* Ana sayfa hero — "kendini koda yazan geliştirici" (sadece ana sayfada yüklenir) */
.is-home .nav { background: transparent; }
.is-home .nav .status-pill { display: none; }
.is-home .nav.is-scrolled { background: rgba(248, 250, 252, .8); }
.hx { position: relative; min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); padding: clamp(24px, 4vh, 48px) var(--gutter) clamp(20px, 3vh, 32px); isolation: isolate; }

/* Arka plan: nokta ızgarası + yavaş akan mavi aurora + imleci izleyen ışık */
.hx-bg { position: absolute; inset: -64px 0 0; z-index: -1; overflow: hidden; pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, .09) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 40%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 40%, transparent 100%); }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: hxDrift 22s ease-in-out infinite alternate; }
.hx-blob.b1 { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; right: -6%; top: -12%; background: radial-gradient(circle, #7dd3fc, transparent 65%); }
.hx-blob.b2 { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; right: 22%; bottom: -18%; background: radial-gradient(circle, #93c5fd, transparent 65%); animation-delay: -7s; }
.hx-blob.b3 { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: -8%; top: 10%; background: radial-gradient(circle, #bae6fd, transparent 65%); animation-delay: -13s; opacity: .45; }
@keyframes hxDrift { 50% { transform: translate(-4%, 6%) scale(1.08); } 100% { transform: translate(5%, -3%) scale(.95); } }
.hx-spot { position: absolute; width: 420px; height: 420px; left: var(--mx, 70%); top: var(--my, 40%); translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(14, 165, 233, .16), transparent 60%); transition: left .5s var(--ease), top .5s var(--ease); }

.hx-grid { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }

/* Sol: metin */
.hx-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 500; color: var(--fg-2); }
.hx-badge-sep { width: 1px; height: 14px; background: var(--line-2); }
.hx-badge .mono { color: var(--fg); font-weight: 500; }
.hx-title { margin: 20px 0 0; font-size: clamp(30px, 3.05vw, 44px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hx-line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hx-line > span { display: inline-block; transform: translateY(105%); animation: hxUp .9s var(--ease) forwards; }
.hx-line:nth-child(2) > span { animation-delay: .08s; }
.hx-line:nth-child(3) > span { animation-delay: .16s; }
@keyframes hxUp { to { transform: none; } }
.hx-word { position: relative; font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; min-width: 1ch; }
.hx-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; border-radius: 99px; background: var(--grad); opacity: .25; transform-origin: left; animation: hxLine 1s .7s var(--ease) both; }
@keyframes hxLine { from { transform: scaleX(0); } }
.hx-word.typing::before { content: ""; position: absolute; right: -.08em; top: .12em; bottom: .12em; width: .06em; background: var(--sky); animation: hxBlink 1s steps(1) infinite; }
@keyframes hxBlink { 50% { opacity: 0; } }

.hx-who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.hx-avatar { position: relative; width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.hx-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hx-avatar i { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 3px solid var(--bg); }
.hx-who p { display: flex; flex-direction: column; line-height: 1.35; }
.hx-who strong { font-size: 16.5px; letter-spacing: -.01em; }
.hx-roles { display: inline-grid; overflow: hidden; height: 1.4em; color: var(--fg-2); font-size: 15px; }
.hx-roles span { grid-area: 1 / 1; transform: translateY(110%); transition: transform .6s var(--ease); white-space: nowrap; }
.hx-roles span.is-on { transform: none; }
.hx-roles span.is-out { transform: translateY(-110%); }
.hx-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hx-stats { display: flex; gap: clamp(20px, 3vw, 36px); margin: 32px 0 0; padding-top: 22px; border-top: 1px dashed var(--line-2); max-width: 520px; }
.hx-stats div { display: flex; flex-direction: column; }
.hx-stats dt { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.03em; }
.hx-stats dd { margin: 0; font-size: 13.5px; color: var(--fg-2); }

/* Sağ: kod penceresi */
.hx-stage { position: relative; perspective: 1400px; margin-top: -56px; }
.hx-window { position: relative; z-index: 1; border-radius: 20px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(226, 232, 240, .9); box-shadow: 0 1px 0 #fff inset, 0 30px 60px -20px rgba(2, 132, 199, .28), 0 12px 24px -12px rgba(15, 23, 42, .12);
  transform: rotateY(-7deg) rotateX(4deg); transition: transform .6s var(--ease); animation: hxIn 1s .25s var(--ease) both; overflow: hidden; }
@keyframes hxIn { from { opacity: 0; transform: rotateY(-18deg) rotateX(10deg) translateY(30px); } }
.hx-stage:hover .hx-window { transform: rotateY(-2deg) rotateX(1deg); }
.hx-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); background: linear-gradient(#fff, rgba(248, 250, 252, .9)); }
.hx-dots { display: flex; gap: 6px; padding-bottom: 10px; }
.hx-dots i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.hx-dots i:nth-child(2) { background: #93c5fd; }
.hx-dots i:nth-child(3) { background: #38bdf8; }
.hx-grid > * { min-width: 0; }
.hx-tabs { min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.hx-tabs::-webkit-scrollbar { display: none; }
.hx-tabs button { font: 500 12.5px var(--mono); color: var(--fg-3); padding: 8px 12px; border-radius: 9px 9px 0 0; border: 1px solid transparent; border-bottom: 0; white-space: nowrap; transition: color .2s, background .2s; margin-bottom: -1px; }
.hx-tabs button:hover { color: var(--fg-2); }
.hx-tabs button.on { color: var(--sky-deep); background: #fff; border-color: var(--line); }
.hx-code { display: grid; grid-template-columns: auto 1fr; height: clamp(250px, 32vh, 320px); overflow: hidden; font: 13.5px/1.75 var(--mono); background: #fff; }
.hx-gutter { list-style: none; margin: 0; padding: 16px 12px 16px 16px; color: #cbd5e1; text-align: right; user-select: none; counter-reset: ln; }
.hx-gutter li::before { counter-increment: ln; content: counter(ln); }
.hx-code pre { margin: 0; padding: 16px 18px 16px 4px; overflow: hidden; white-space: pre-wrap; word-break: break-word; color: #334155; font: inherit; }
.hx-caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--sky); border-radius: 1px; animation: hxBlink 1s steps(1) infinite; }
.tk-k { color: #2563eb; font-weight: 500; }
.tk-s { color: #0284c7; }
.tk-n { color: #7c3aed; }
.tk-p { color: #0f172a; font-weight: 500; }
.tk-h { color: #0f172a; font-weight: 700; }
.tk-c { color: #94a3b8; }
.tk-l { color: #0ea5e9; }
.hx-status { display: flex; gap: 16px; padding: 7px 14px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--fg-3); font-size: 11.5px; }
.hx-status span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--sky-deep); }
.hx-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.hx-status span:last-child { margin-left: auto; }

/* Yüzen kartlar */
.hx-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 16px 32px -14px rgba(15, 23, 42, .25); font-size: 13px; line-height: 1.3; white-space: nowrap; animation: hxPop .7s var(--ease) both, hxBob 6s ease-in-out infinite; }
.hx-float b { display: block; font-weight: 600; }
.hx-float small { color: var(--fg-3); font-size: 12px; }
.hx-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; flex: none; }
.hx-ico.ok { background: #dcfce7; color: #16a34a; }
.hx-ico.ai { background: var(--tint-2); color: var(--sky-deep); }
.hx-float.f1 { right: -18px; top: -26px; animation-delay: .9s, 0s; }
.hx-float.f2 { left: -40px; bottom: -34px; animation-delay: 1.15s, -2s; }
.hx-float.f3 { right: 28px; bottom: -30px; gap: 6px; padding: 8px; animation-delay: 1.4s, -4s; }
.hx-float.f3 span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 9px; background: var(--tint); color: var(--sky-deep); }
@keyframes hxPop { from { opacity: 0; scale: .85; } }
@keyframes hxBob { 50% { translate: 0 -8px; } }

/* Dock */
.hx-dock { position: relative; z-index: 3; align-self: center; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 12px 30px -14px rgba(15, 23, 42, .22); max-width: 100%; animation: hxPop .8s 1s var(--ease) both; }
.hx-dock > a { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--fg-2); transition: background .25s, color .25s, transform .25s var(--ease); }
.hx-dock > a:hover { background: #fff; color: var(--fg); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.di { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--sky-deep); transition: background .25s, color .25s; }
.di svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hx-dock > a:hover .di { background: var(--grad); color: #fff; }
.dock-sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.hx-dock > .dock-latest { flex-direction: column; align-items: start; gap: 0; padding: 6px 14px; max-width: 260px; }
.dock-latest small { font-size: 11px; font-weight: 600; color: var(--sky-deep); text-transform: uppercase; letter-spacing: .05em; }
.dock-latest span { font-size: 13px; font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }

@media (max-width: 1100px) {
  .hx-float.f2 { left: -12px; bottom: -30px; }
  .hx-dock > .dock-latest { display: none; }
}
@media (max-width: 900px) {
  .hx { min-height: 0; padding-top: 28px; gap: 40px; }
  .hx-grid { grid-template-columns: 1fr; gap: 52px; }
  .hx-window, .hx-stage:hover .hx-window { transform: none; }
  .hx-stage { margin: 0 6px; }
  .hx-line { white-space: normal; }
}
@media (max-width: 640px) {
  .hx-title { font-size: clamp(30px, 8.6vw, 40px); }
  .hx-badge { font-size: 12.5px; }
  .hx-cta .btn { flex: 1 1 100%; }
  .hx-stats { gap: 18px; justify-content: space-between; }
  .hx-code { height: 230px; font-size: 12px; }
  .hx-gutter { padding-left: 10px; padding-right: 8px; }
  .hx-float { font-size: 12px; padding: 8px 10px 8px 8px; }
  .hx-ico { width: 26px; height: 26px; }
  .hx-float.f1 { right: -4px; top: -26px; }
  .hx-float.f2 { display: none; }
  .hx-float.f3 { right: 8px; top: auto; bottom: -22px; }
  .hx-status span:nth-child(3) { display: none; }
  .hx-dock { position: sticky; bottom: 12px; width: 100%; justify-content: space-between; }
  .hx-dock > a { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 11px; flex: 1; }
  .hx-dock > a:hover { transform: none; }
  .dock-sep { display: none; }
  .di { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-line > span, .hx-window, .hx-float, .hx-dock, .hx-blob { animation: none !important; transform: none; opacity: 1; }
}
