/* Qubyt Core — ana sayfa stilleri (statik, koyu tema) */

:root {
  --bg-deep: #07080c;
  --bg: #0c0e14;
  --bg-elevated: #12151e;
  --bg-card: #151926;
  --text: #eef0f6;
  --text-muted: #9aa3b5;
  --accent: #a78bfa;
  --accent-dim: rgba(167, 139, 250, 0.14);
  --accent-strong: #c4b5fd;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --header-bg: rgba(3, 4, 8, 0.94);
  --header-border: rgba(255, 255, 255, 0.05);
  --nav-btn-face: linear-gradient(165deg,
      rgba(52, 56, 78, 0.55) 0%,
      rgba(22, 24, 36, 0.92) 42%,
      rgba(8, 9, 14, 0.98) 100%);
  --nav-btn-hover-face: linear-gradient(165deg,
      rgba(72, 64, 110, 0.45) 0%,
      rgba(35, 32, 58, 0.88) 45%,
      rgba(14, 12, 26, 0.96) 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --scrollbar-track: #07080c;
  --scrollbar-thumb: rgba(167, 139, 250, 0.42);
  --scrollbar-thumb-hover: rgba(196, 181, 253, 0.62);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
      rgba(196, 181, 253, 0.5),
      rgba(139, 92, 246, 0.38));
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.15);
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
      rgba(226, 223, 255, 0.65),
      rgba(167, 139, 250, 0.55));
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.28);
}

html::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

html::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image: radial-gradient(ellipse 110% 65% at 50% -18%,
      rgba(167, 139, 250, 0.045),
      transparent 58%);
}

/* Tam sayfa: canvas + ızgara — içerik üstte */
.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dna-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.32;
}

.dna-canvas--idle {
  opacity: 0;
  visibility: hidden;
}

.page-grid {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 96% 88% at 50% 44%, black 8%, transparent 78%);
  pointer-events: none;
}

main#main,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid rgba(167, 139, 250, 0.09);
  background: linear-gradient(180deg, rgba(10, 11, 18, 0.92) 0%, rgba(6, 7, 11, 0.88) 100%);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Masaüstü: sol marka | ortada menü | sağda denge (simetrik ortalama) */
@media (min-width: 960px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }

  .site-header__left {
    grid-column: 1;
    justify-self: start;
  }

  .site-nav--desktop {
    grid-column: 2;
    justify-self: center;
  }

  .site-header__balance {
    display: block;
    grid-column: 3;
    min-width: 0;
  }
}

/* Sol: tetikleyici + logo */
.site-header__left {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  min-width: 0;
}

/* Ortalamayı simetrik yapmak için sağda görünmez denge sütunu (yalnızca ≥960px) */
.site-header__balance {
  display: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-logo__mark {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-strong);
}

.site-logo__text {
  font-size: 1.05rem;
}

.site-nav--desktop {
  display: none;
}

@media (min-width: 960px) {
  .site-nav--desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: 0;
  }
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 960px) {
  .site-nav__list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.12rem;
    padding: 0.22rem;
    border-radius: 999px;
    background:
      linear-gradient(165deg, rgba(167, 139, 250, 0.06) 0%, transparent 48%),
      rgba(12, 14, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 4px 24px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(167, 139, 250, 0.06);
    position: relative;
  }

  /* Kayan section gostergesi (scrollspy):
     "Ana sayfa" pill'i mor kalir (sayfa kimligi);
     anchor section'a girildiginde altta cyan->mor ince bir cizgi
     yumusakca ilgili linkin altina kayar. */
  .site-nav__list::after {
    content: "";
    position: absolute;
    bottom: 0.18rem;
    left: 0;
    height: 2px;
    width: var(--nav-ind-w, 0px);
    transform: translate3d(var(--nav-ind-x, 0px), 0, 0);
    background: linear-gradient(90deg,
      rgba(125, 211, 252, 0) 0%,
      rgba(125, 211, 252, 0.85) 35%,
      rgba(167, 139, 250, 0.9) 100%);
    border-radius: 2px;
    opacity: var(--nav-ind-o, 0);
    pointer-events: none;
    will-change: transform, width, opacity;
    transition:
      transform 0.42s cubic-bezier(0.34, 1.2, 0.64, 1),
      width 0.42s cubic-bezier(0.34, 1.2, 0.64, 1),
      opacity 0.22s ease;
    box-shadow: 0 0 8px rgba(125, 211, 252, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__list::after {
    transition: opacity 0.15s ease;
  }
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.85rem 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(154, 163, 181, 0.98);
  text-decoration: none;
  transition:
    color 0.22s var(--ease-out),
    background 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.site-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.72;
  color: rgba(196, 181, 253, 0.75);
  transition:
    opacity 0.22s var(--ease-out),
    color 0.22s var(--ease-out);
}

.site-nav__icon svg {
  display: block;
}

.site-nav__label {
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(167, 139, 250, 0.1);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.15);
}

.site-nav__link:hover .site-nav__icon {
  opacity: 1;
  color: rgba(226, 223, 255, 0.95);
}

.site-nav__link:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.55);
  outline-offset: 2px;
}

.site-nav__link[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(
    165deg,
    rgba(167, 139, 250, 0.26) 0%,
    rgba(99, 102, 241, 0.14) 55%,
    rgba(124, 58, 237, 0.1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(196, 181, 253, 0.28);
}

.site-nav__link[aria-current="page"] .site-nav__icon {
  opacity: 1;
  color: var(--accent-strong);
}

@media (prefers-reduced-motion: reduce) {

  .site-nav__link {
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }
}

/* Menü tetikleyici: solda logo yanı (Holodepth düzeni). Panel yine sağdan açılır */

.nav-toggle {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--nav-btn-face);
  color: rgba(245, 246, 250, 0.94);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -2px 5px rgba(0, 0, 0, 0.35) inset,
    0 4px 11px rgba(0, 0, 0, 0.45),
    0 10px 26px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    color 0.22s var(--ease-out),
    background 0.28s var(--ease-out);
}

.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(130% 85% at 35% 5%,
      rgba(255, 255, 255, 0.22),
      transparent 58%);
  opacity: 0.55;
  pointer-events: none;
}

.nav-toggle::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  z-index: 0;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset;
  pointer-events: none;
}

.nav-toggle:hover {
  background: var(--nav-btn-hover-face);
  color: var(--accent-strong);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -2px 6px rgba(0, 0, 0, 0.4) inset,
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 14px 36px rgba(99, 102, 241, 0.16),
    0 0 0 1px rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.nav-toggle:active {
  transform: translateY(0);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55) inset,
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-toggle:focus-visible {
  outline-offset: 3px;
}

.nav-toggle__arrow {
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
  transition: transform 0.38s var(--ease-out);
  transform-origin: 50% 50%;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--nav-btn-hover-face);
  color: var(--accent-strong);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -2px 8px rgba(0, 0, 0, 0.45) inset,
    0 4px 13px rgba(99, 102, 241, 0.22),
    0 0 0 1px rgba(167, 139, 250, 0.4);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__arrow {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {

  .nav-toggle:hover,
  .nav-toggle:active {
    transform: none;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    margin-left: 0;
  }
}

/* Mobile drawer — premium omurga + kök ikonlar (satır içi SVG, harici telif yok) */

.mobile-drawer {
  --drawer-bg: #090b10;
  /* Yüzey: hafif soğuk; hover/active: gri yerine viyole–indigo (sitenin --accent ailesi) */
  --drawer-surface: rgba(167, 139, 250, 0.05);
  --drawer-surface-hover: rgba(139, 92, 246, 0.12);
  --drawer-surface-active: rgba(124, 58, 237, 0.16);
  --drawer-line: rgba(167, 139, 250, 0.22);
  --drawer-line-muted: rgba(255, 255, 255, 0.06);
  --drawer-mark: rgba(196, 181, 253, 0.85);
  --drawer-icon-well: rgba(167, 139, 250, 0.11);
  --drawer-icon-well-border: rgba(167, 139, 250, 0.22);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
}

.mobile-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  animation: scrim-in 0.35s var(--ease-out) both;
}

@keyframes scrim-in {
  from {
    opacity: 0;
  }
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(432px, 92vw);
  height: 100%;
  padding: 1.2rem 1rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.35) var(--drawer-bg);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.03) 0%, transparent 42%),
    linear-gradient(180deg, var(--drawer-bg) 0%, #07080d 100%);
  border-left: 1px solid var(--drawer-line-muted);
  box-shadow: -24px 0 72px rgba(0, 0, 0, 0.58);
  animation: panel-in 0.4s var(--ease-out) both;
}

.mobile-drawer__panel::-webkit-scrollbar {
  width: 8px;
}

.mobile-drawer__panel::-webkit-scrollbar-track {
  background: var(--drawer-bg);
}

.mobile-drawer__panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.38), rgba(139, 92, 246, 0.28));
  border-radius: 999px;
  border: 2px solid var(--drawer-bg);
}

.mobile-drawer__panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(226, 223, 255, 0.45), rgba(167, 139, 250, 0.38));
}

@keyframes panel-in {
  from {
    transform: translateX(100%);
    opacity: 0.9;
  }
}

.mobile-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--drawer-line-muted);
}

.mobile-drawer__brand-wrap {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167, 139, 250, 0.14);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.07) 0%, transparent 52%),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 28px rgba(0, 0, 0, 0.28);
}

.mobile-drawer__brand-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.mobile-drawer__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.35))
    drop-shadow(0 0 22px rgba(139, 92, 246, 0.18));
}

.mobile-drawer__titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mobile-drawer__brand-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.15;
}

.mobile-drawer__version {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(154, 163, 181, 0.92);
}

.mobile-drawer__brand-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-drawer__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ede9fe;
  background: linear-gradient(165deg, rgba(167, 139, 250, 0.22), rgba(91, 33, 182, 0.12));
  box-shadow:
    0 0 18px rgba(167, 139, 250, 0.28),
    0 0 42px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mobile-drawer__hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(154, 163, 181, 0.88);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer__badge {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 0 1px rgba(167, 139, 250, 0.2);
  }

  .mobile-drawer__mark {
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.25));
  }
}

.mobile-drawer__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-drawer__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--drawer-line-muted);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.mobile-drawer__close:hover {
  background: var(--drawer-surface-hover);
  border-color: rgba(167, 139, 250, 0.22);
  color: var(--text);
}

.mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.mobile-drawer__link {
  display: block;
  padding: 0.68rem 0.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(238, 240, 246, 0.94);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.mobile-drawer__link:hover,
.mobile-drawer__link:focus-visible {
  background: var(--drawer-surface-hover);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.1);
}

.mobile-drawer__section {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  padding-bottom: 0.38rem;
  border-top: 1px solid var(--drawer-line-muted);
}

.mobile-drawer__section + li > .mobile-drawer__link {
  margin-top: 0.28rem;
}

.mobile-drawer__nest {
  list-style: none;
  margin: 0;
}

.mobile-drawer__nest > .mobile-drawer__branch {
  margin-top: 0.1rem;
}

.mobile-drawer__branch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.65rem;
  padding: 0.65rem 0.72rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(238, 240, 246, 0.96);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.mobile-drawer__branch:hover,
.mobile-drawer__branch:focus-visible {
  background: var(--drawer-surface-hover);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.12);
  outline: none;
}

.mobile-drawer__branch-leading {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 0.08rem;
  border-radius: 8px;
  border: 1px solid var(--drawer-icon-well-border);
  background: linear-gradient(145deg, var(--drawer-icon-well), rgba(255, 255, 255, 0.02));
  color: var(--drawer-mark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mobile-drawer__icon {
  display: block;
  flex-shrink: 0;
}

.mobile-drawer__branch--root .mobile-drawer__icon {
  width: 17px;
  height: 17px;
}

.mobile-drawer__branch--root {
  gap: 0.5rem;
  padding: 0.5rem 0.72rem;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 1px solid rgba(167, 139, 250, 0.15);
  background: rgba(167, 139, 250, 0.045);
  border-radius: 9px;
}

.mobile-drawer__branch--root:hover,
.mobile-drawer__branch--root:focus-visible {
  background: rgba(139, 92, 246, 0.11);
  border-color: rgba(196, 181, 253, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(167, 139, 250, 0.1),
    0 0 0 1px rgba(124, 58, 237, 0.08);
}

.mobile-drawer__branch--depth2 {
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.62rem 0.75rem;
}

.mobile-drawer__branch--depth3 {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.52rem 0.65rem;
  color: rgba(238, 240, 246, 0.92);
}

.mobile-drawer__branch-text {
  flex: 1;
  min-width: 0;
}

.mobile-drawer__chev {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid rgba(196, 181, 253, 0.5);
  border-bottom: 1.5px solid rgba(196, 181, 253, 0.5);
  opacity: 0.9;
  transform: rotate(45deg) translateY(-0.1rem);
  transition: transform 0.2s var(--ease-out);
}

.mobile-drawer__branch--depth3 .mobile-drawer__chev {
  width: 0.42rem;
  height: 0.42rem;
  opacity: 0.75;
}

.mobile-drawer__branch[aria-expanded="true"] .mobile-drawer__chev {
  transform: rotate(225deg) translateY(0.08rem);
}

.mobile-drawer__branch[aria-expanded="true"] {
  background: var(--drawer-surface-active);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.15);
}

.mobile-drawer__branch--root[aria-expanded="true"] {
  border-color: rgba(196, 181, 253, 0.32);
  box-shadow:
    inset 2px 0 0 rgba(196, 181, 253, 0.5),
    inset 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.mobile-drawer__branch--root[aria-expanded="true"] .mobile-drawer__branch-leading {
  border-color: rgba(196, 181, 253, 0.38);
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.16), rgba(255, 255, 255, 0.03));
  color: #e9e4ff;
}

.mobile-drawer__sub {
  list-style: none;
  margin: 0.2rem 0 0.35rem;
  padding: 0.3rem 0 0.35rem 0.75rem;
  border-left: 1px solid var(--drawer-line-muted);
}

.mobile-drawer__sub--depth1 {
  margin-left: 0;
  padding-left: 0.85rem;
  border-radius: 0;
  background: transparent;
}

.mobile-drawer__sub--depth2 {
  border-left-color: var(--drawer-line-muted);
  padding-left: 0.7rem;
  margin-left: 0;
}

.mobile-drawer__sub--depth3 {
  border-left-color: var(--drawer-line-muted);
  padding-left: 0.6rem;
  margin-top: 0.12rem;
  margin-bottom: 0.4rem;
}

.mobile-drawer__leaf {
  position: relative;
  display: block;
  padding: 0.42rem 0.5rem 0.42rem 1.05rem;
  margin-bottom: 0.12rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(154, 163, 181, 0.98);
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}

.mobile-drawer__leaf::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  border-radius: 1px;
  background: rgba(196, 181, 253, 0.45);
  opacity: 0.9;
}

.mobile-drawer__leaf:hover,
.mobile-drawer__leaf:focus-visible {
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.08);
}

.mobile-drawer__leaf--solo::before {
  opacity: 0.55;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(4rem, 12vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
  }
}

.hero__col--copy {
  position: relative;
  min-width: 0;
}

.hero__col--viz {
  min-width: 0;
}

/* Banner devre önizlemesi — circuit-viz.js ile SVG üretilir */

.circuit-showcase {
  margin: 0;
  padding: 0;
}

.circuit-showcase__caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.circuit-showcase__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.circuit-showcase__hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(154, 163, 181, 0.85);
}

.circuit-showcase__frame {
  --circuit-wire: #7dd3fc;
  --circuit-muted: #94a3b8;
  --circuit-gate-text: #fca5a5;
  --circuit-control: #fb923c;
  --circuit-classical: #6ee7b7;

  padding: 1rem 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.14);
  background:
    linear-gradient(155deg, rgba(167, 139, 250, 0.06) 0%, transparent 55%),
    rgba(12, 14, 22, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 56px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.circuit-showcase__frame .circuit-viz {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
}

.circuit-showcase__err {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__title {
  margin: 0 0 1.25rem;
  max-width: 22ch;
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

@media (min-width: 960px) {
  .hero__col--copy .hero__title {
    max-width: 17ch;
  }
}

.hero__title-accent {
  display: inline;
  background: linear-gradient(105deg, var(--accent-strong), #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 52ch;
  font-size: 1.12rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.45);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(167, 139, 250, 0.08);
}

/* Sections */

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--rule {
  position: relative;
  padding-top: clamp(3.35rem, 8.5vw, 5.35rem);
}

.section--rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 2.5rem));
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(167, 139, 250, 0.42) 42%,
      rgba(56, 189, 248, 0.28) 58%,
      transparent 100%);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.12);
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0 0 1.75rem;
  max-width: 62ch;
  color: var(--text-muted);
}

.pill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pill-list__item {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 0.98rem;
}

.pill-list__item::before {
  content: "◆";
  margin-right: 0.65rem;
  font-size: 0.65rem;
  color: var(--accent);
  vertical-align: middle;
}

.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cards:not(.cards--stretch) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.08), transparent 40%),
    var(--bg-card);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.card__step {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  opacity: 0.9;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.eco-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eco-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

@media (min-width: 600px) {
  .eco-list__item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
}

.eco-list__name {
  font-weight: 600;
}

.eco-list__meta {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.95);
}

.section-footnote {
  margin: 1.25rem 0 0;
  max-width: 62ch;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.section--panel {
  background:
    radial-gradient(ellipse 90% 55% at 18% 20%, rgba(167, 139, 250, 0.07), transparent 52%),
    radial-gradient(ellipse 70% 45% at 88% 72%, rgba(56, 189, 248, 0.06), transparent 50%);
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.45);
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.inline-link:hover {
  color: #e2e8ff;
  text-decoration-color: rgba(56, 189, 248, 0.65);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin: 0 0 1.85rem;
}

.hero__stat {
  display: grid;
  gap: 0.2rem;
  min-width: min(100%, 11rem);
}

.hero__stat dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(105deg, var(--accent-strong), #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stat dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 14rem;
}

.pill-list--spaced {
  margin-top: 2rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-tile {
  padding: 1.2rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(168deg, rgba(56, 189, 248, 0.07) 0%, transparent 42%),
    linear-gradient(210deg, rgba(167, 139, 250, 0.06) 0%, transparent 55%),
    var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.feature-tile:hover {
  border-color: rgba(167, 139, 250, 0.28);
  transform: translateY(-2px);
}

.feature-tile__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature-tile__text {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.58;
}

.cards--stretch {
  gap: 1.05rem;
}

@media (min-width: 640px) {
  .cards--stretch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .cards--stretch {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card--accent {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    linear-gradient(155deg, rgba(56, 189, 248, 0.12), transparent 48%),
    linear-gradient(200deg, rgba(167, 139, 250, 0.07), transparent 55%),
    var(--bg-card);
}

.card__meta {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(154, 163, 181, 0.92);
}

.card__cta {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.split-panel {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .split-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.25rem;
  }
}

.diagram-caption {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.split-panel__diagram {
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.16);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.07), transparent 50%),
    rgba(12, 14, 22, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 56px rgba(0, 0, 0, 0.38);
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  counter-reset: flow;
}

.flow-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.05rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background:
    linear-gradient(155deg, rgba(167, 139, 250, 0.16) 0%, rgba(56, 189, 248, 0.08) 100%),
    rgba(12, 14, 22, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

.flow-node + .flow-node::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: -0.65rem;
  width: 1px;
  height: 0.65rem;
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.55));
}

.flow-node + .flow-node::after {
  content: "";
  position: absolute;
  left: calc(1.55rem - 3px);
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1.25px solid rgba(167, 139, 250, 0.75);
  border-bottom: 1.25px solid rgba(167, 139, 250, 0.75);
  transform: rotate(45deg);
}

.flow-node__index {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.flow-node__title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.flow-node__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.flow-node--accent {
  border-color: rgba(56, 189, 248, 0.45);
  background:
    linear-gradient(150deg, rgba(56, 189, 248, 0.18) 0%, rgba(167, 139, 250, 0.1) 100%),
    rgba(12, 14, 22, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(56, 189, 248, 0.18),
    0 16px 36px rgba(56, 189, 248, 0.18);
}

.flow-node--accent .flow-node__title {
  color: #bae6fd;
}

.flow-node--accent .flow-node__index {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
}

.flow-node__play {
  margin-right: 0.2em;
  color: #38bdf8;
}

@media (min-width: 720px) {
  .flow-list {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.4rem;
  }

  .flow-node {
    flex: 1 1 0;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    text-align: center;
    row-gap: 0.3rem;
    padding: 0.85rem 0.6rem 0.95rem;
  }

  .flow-node__index {
    grid-row: auto;
    min-width: 1.65rem;
    height: 1.55rem;
    font-size: 0.72rem;
  }

  .flow-node__title {
    font-size: 0.92rem;
  }

  .flow-node__meta {
    font-size: 0.72rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .flow-node + .flow-node::before {
    left: auto;
    right: calc(100% + 0.15rem);
    top: 50%;
    width: 1.1rem;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.55));
  }

  .flow-node + .flow-node::after {
    left: auto;
    right: calc(100% + 0.05rem);
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.25px solid rgba(167, 139, 250, 0.75);
    border-bottom: 1.25px solid rgba(167, 139, 250, 0.75);
    border-top: none;
    border-left: none;
    transform: translateY(-50%) rotate(-45deg);
  }
}

@media (min-width: 880px) {
  .flow-list {
    gap: 1.15rem;
  }

  .flow-node {
    padding: 0.8rem 0.55rem 0.9rem;
  }

  .flow-node + .flow-node::before {
    width: 0.9rem;
  }
}

.panel-heading {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.panel-text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.doc-table-wrap {
  overflow-x: auto;
  margin-top: 0.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.14);
  background: rgba(12, 14, 22, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.32);
  scrollbar-width: thin;
}

.doc-table-wrap:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.doc-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.doc-table th,
.doc-table td {
  padding: 0.88rem 1.05rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.doc-table tbody tr:last-child td {
  border-bottom: none;
}

.doc-table th {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(154, 163, 181, 0.95);
  background: rgba(167, 139, 250, 0.07);
}

.doc-table tbody tr:hover td {
  background: rgba(167, 139, 250, 0.04);
}

.doc-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.doc-code {
  padding: 0.12em 0.38em;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.84em;
  font-weight: 500;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  white-space: nowrap;
}

.eco-list__item--highlight {
  border-color: rgba(167, 139, 250, 0.35);
  background:
    linear-gradient(130deg, rgba(167, 139, 250, 0.1), transparent 55%),
    var(--bg-card);
}

/* Site footer stilleri css/footer.css içine taşındı. */

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}