/* 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%);
}

/* Mobil menü açıkken arka plan kayması (iOS uyumlu kilit) */
body.is-nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* 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;
  z-index: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-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;
  z-index: 1;
  width: min(432px, 92vw);
  height: 100%;
  max-height: 100dvh;
  padding: 1.2rem 1rem 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  pointer-events: auto;
  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__branch,
.mobile-drawer__link,
.mobile-drawer__leaf,
.mobile-drawer__close {
  touch-action: manipulation;
}

.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: none;
  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;
}

/* Ana sayfa — algoritma okuma yolları (tek sütun: liste uzunlukları dengesiz) */
.home-algo-routes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 2rem;
}

.home-algo-routes__col {
  margin: 0;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.home-algo-routes__col--live {
  border-color: rgba(167, 139, 250, 0.28);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.08), transparent 52%),
    var(--bg-card);
}

.home-algo-routes__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.home-algo-routes__note {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.home-algo-routes__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.home-algo-routes__list--plain {
  list-style: none;
  padding-left: 0;
}

.home-algo-routes__list--plain li {
  margin-bottom: 0.35rem;
}

.home-algo-routes__list a {
  color: var(--accent-strong);
  text-decoration: none;
}

.home-algo-routes__list a:hover {
  text-decoration: underline;
}

.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;
}

/* ──────────────────────────────────────────────────────────────────────
   Ekosistem — premium proje kartı sistemi
   Her kart kendi accent rengini taşır (--eco-color); orb glow ve hover
   lift ile derinlik kazandırılır. Qubit Sense flagship olarak full-width
   feature varyantında üstte; diğerleri 3 sütun grid'inde sıralanır.
   ────────────────────────────────────────────────────────────────────── */

.eco-grid {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 880px) {
  .eco-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem;
  }
}

.eco-card {
  --eco-color: #a78bfa;
  --eco-soft: rgba(167, 139, 250, 0.14);
  --eco-line: rgba(167, 139, 250, 0.32);
  --eco-glow: rgba(167, 139, 250, 0.22);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, var(--eco-soft), transparent 55%),
    var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

/* Yumuşak yarıçaplı glow orb — kartın üst-sağ köşesinden gelir */
.eco-card::before {
  content: "";
  position: absolute;
  top: -55%;
  right: -25%;
  width: 70%;
  height: 130%;
  background: radial-gradient(closest-side, var(--eco-glow), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
  filter: blur(6px);
  transition: opacity 0.35s var(--ease-out);
}

.eco-card:hover {
  transform: translateY(-3px);
  border-color: var(--eco-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.4);
}

.eco-card:hover::before {
  opacity: 0.95;
}

.eco-card[data-eco="qubyt-studio"] {
  --eco-color: #a78bfa;
  --eco-soft: rgba(167, 139, 250, 0.14);
  --eco-line: rgba(167, 139, 250, 0.36);
  --eco-glow: rgba(167, 139, 250, 0.28);
}

.eco-card[data-eco="softyla"] {
  --eco-color: #fbbf24;
  --eco-soft: rgba(251, 191, 36, 0.11);
  --eco-line: rgba(251, 191, 36, 0.32);
  --eco-glow: rgba(251, 191, 36, 0.22);
}

.eco-card[data-eco="byteomi"] {
  --eco-color: #34d399;
  --eco-soft: rgba(52, 211, 153, 0.1);
  --eco-line: rgba(52, 211, 153, 0.3);
  --eco-glow: rgba(52, 211, 153, 0.2);
}

.eco-card[data-eco="holodepth"] {
  --eco-color: #f472b6;
  --eco-soft: rgba(244, 114, 182, 0.1);
  --eco-line: rgba(244, 114, 182, 0.28);
  --eco-glow: rgba(244, 114, 182, 0.2);
}

@media (min-width: 880px) {
  .eco-card--feature {
    grid-column: 1 / -1;
    padding: 1.5rem 1.7rem 1.7rem;
  }
}

.eco-card__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1;
}

.eco-card__mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--eco-line);
  background: linear-gradient(145deg, var(--eco-soft), rgba(255, 255, 255, 0.02));
  color: var(--eco-color);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 22px var(--eco-glow);
}

.eco-card__mark svg {
  display: block;
  width: 22px;
  height: 22px;
}

.eco-card--feature .eco-card__mark {
  width: 52px;
  height: 52px;
}

.eco-card--feature .eco-card__mark svg {
  width: 26px;
  height: 26px;
}

.eco-card--feature .eco-card__head {
  flex-wrap: wrap;
}

.eco-card--feature .eco-card__id {
  flex: 1 1 calc(100% - 4rem);
}

.eco-card--feature .eco-card__status {
  margin-top: 0.55rem;
  margin-left: 0;
}

@media (min-width: 560px) {
  .eco-card--feature .eco-card__head {
    flex-wrap: nowrap;
  }

  .eco-card--feature .eco-card__id {
    flex: 1 1 0;
  }

  .eco-card--feature .eco-card__status {
    margin-top: 0;
    margin-left: 0;
  }
}

.eco-card__id {
  flex: 1;
  min-width: 0;
}

.eco-card__name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.eco-card--feature .eco-card__name {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.eco-card__role {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 163, 181, 0.85);
}

.eco-card__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(154, 163, 181, 0.82);
}

.eco-card__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(154, 163, 181, 0.5);
}

.eco-card__status--live {
  border-color: var(--eco-line);
  background: linear-gradient(145deg, var(--eco-soft), rgba(20, 22, 32, 0.4));
  color: var(--eco-color);
  box-shadow: 0 0 14px var(--eco-glow);
}

.eco-card__status--live::before {
  background: var(--eco-color);
  box-shadow: 0 0 8px var(--eco-color);
}

.eco-card__lead {
  position: relative;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--text-muted);
  z-index: 1;
}

.eco-card--feature .eco-card__lead {
  max-width: none;
  font-size: 0.96rem;
}

.eco-card__chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 1;
}

.eco-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(214, 218, 230, 0.92);
}

.eco-card__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: auto;
  padding-top: 0.45rem;
  z-index: 1;
}

.eco-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--eco-line);
  background: linear-gradient(145deg, var(--eco-soft), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.eco-card__cta:hover {
  border-color: var(--eco-color);
  background: linear-gradient(145deg, var(--eco-glow), var(--eco-soft));
  color: #fff;
}

.eco-card__cta:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.eco-card__cta svg {
  display: block;
  width: 12px;
  height: 12px;
  transition: transform 0.22s;
}

.eco-card__cta:hover svg {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {

  .eco-card,
  .eco-card::before,
  .eco-card__cta,
  .eco-card__cta svg {
    transition: none;
  }

  .eco-card:hover {
    transform: none;
  }
}

.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: none;
  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));
  }
}

.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;
  }
}

/* Kütüphane üniteleri — giriş metni ve alt not (ana sayfa) */
.lib-unit {
  margin-top: 2.25rem;
  padding-top: 0.15rem;
}

.lib-unit__title.panel-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.95rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lib-unit__title.panel-heading::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 1.15em;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.9), rgba(56, 189, 248, 0.65));
}

.lib-unit--qiskit .lib-unit__title.panel-heading::before {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.95), rgba(167, 139, 250, 0.55));
}

.copy-lead {
  margin: 0 0 1.35rem;
  max-width: none;
  padding: 1.05rem 1.15rem 1.1rem 1.2rem;
  font-size: 0.97rem;
  line-height: 1.68;
  color: color-mix(in srgb, var(--text) 88%, var(--text-muted));
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-left: 3px solid rgba(167, 139, 250, 0.55);
  background:
    linear-gradient(128deg, rgba(167, 139, 250, 0.07), transparent 58%),
    linear-gradient(215deg, rgba(56, 189, 248, 0.05), transparent 52%),
    rgba(10, 12, 20, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.22);
}

.lib-unit--qiskit .copy-lead {
  border-left-color: rgba(56, 189, 248, 0.55);
  border-color: rgba(56, 189, 248, 0.14);
  background:
    linear-gradient(128deg, rgba(56, 189, 248, 0.07), transparent 58%),
    linear-gradient(215deg, rgba(167, 139, 250, 0.04), transparent 52%),
    rgba(10, 12, 20, 0.52);
}

.copy-lead strong {
  color: var(--text);
  font-weight: 600;
}

.copy-lead em {
  color: color-mix(in srgb, var(--accent-strong) 75%, var(--text-muted));
  font-style: normal;
  font-weight: 500;
}

.copy-aside {
  margin: 1.35rem 0 0;
  max-width: none;
  padding: 0.9rem 1rem 0.95rem;
  font-size: 0.86rem;
  line-height: 1.58;
  color: var(--text-muted);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line);
  background: rgba(8, 10, 16, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.copy-aside__label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(154, 163, 181, 0.95);
}

.copy-aside .doc-path {
  display: block;
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-all;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.14);
}

.copy-aside .doc-code:not(.doc-path) {
  font-size: 0.82em;
}

.copy-aside em {
  font-style: normal;
  color: color-mix(in srgb, var(--text) 72%, var(--text-muted));
}

.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;
}

.circuit-models {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.circuit-models--embedded {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

@media (min-width: 720px) {
  .circuit-models .circuit-models__list.pill-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   Hızlı başlangıç — üç çerçeve kod karşılaştırması
   Qiskit / Cirq / PennyLane için sekmeli kod kartı + yan akış paneli.
   Token renkleri code-editor modülünden devralınır; bağımsız çalışır.
   ────────────────────────────────────────────────────────────────────── */

.quick-start {
  --qs-tab-color: var(--accent);
  margin-top: 1.4rem;
}

/* Sekme şeridi: 3 çerçeve için pill'li bir tab bar */

.quick-start__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding: 0.38rem;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.16);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.06), transparent 55%),
    rgba(12, 14, 22, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.32);
}

.qs-tab {
  flex: 1 1 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

@media (min-width: 560px) {
  .qs-tab {
    flex: 1 1 9rem;
  }
}

.qs-tab--qiskit {
  --qs-tab-color: #a78bfa;
}

.qs-tab--cirq {
  --qs-tab-color: #7dd3fc;
}

.qs-tab--pennylane {
  --qs-tab-color: #fcd34d;
}

.qs-tab__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qs-tab-color);
  box-shadow: 0 0 8px var(--qs-tab-color);
}

.qs-tab__name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.qs-tab__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 163, 181, 0.7);
  white-space: nowrap;
}

.qs-tab:hover {
  background: rgba(167, 139, 250, 0.07);
  border-color: rgba(167, 139, 250, 0.16);
  color: var(--text);
}

.qs-tab[aria-selected="true"] {
  color: var(--text);
  border-color: rgba(196, 181, 253, 0.32);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.18), rgba(99, 102, 241, 0.06) 65%),
    rgba(20, 22, 32, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(196, 181, 253, 0.18),
    0 8px 24px rgba(167, 139, 250, 0.18);
}

.qs-tab[aria-selected="true"] .qs-tab__dot {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.06),
    0 0 12px var(--qs-tab-color);
}

.qs-tab:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Kod + yan panel grid — masaüstünde iki sütun aynı yükseklikte biter.
   Kod editörünün pre alanı esnek büyüyerek yan paneldeki kutuların
   toplam yüksekliğine hizalanır; mobilde her sütun doğal yüksekliğine
   geri döner. */

.quick-start__grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 960px) {
  .quick-start__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: stretch;
  }
}

/* Kod kartı: VS Code benzeri başlık çubuğu + tokenize edilmiş gövde */

.qs-code {
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.22);
  background:
    radial-gradient(ellipse 70% 110% at 0% 0%, rgba(167, 139, 250, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 90% at 100% 100%, rgba(56, 189, 248, 0.05), transparent 55%),
    #0c0d14;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.qs-code::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(167, 139, 250, 0.5) 0%,
      rgba(56, 189, 248, 0.16) 40%,
      transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.qs-code__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(20, 22, 30, 0.92), rgba(14, 15, 23, 0.96));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.qs-code__dots {
  display: inline-flex;
  gap: 0.42rem;
  flex-shrink: 0;
}

.qs-code__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 0 7px var(--glow);
}

.qs-code__dots span:nth-child(1) {
  --dot: #c084fc;
  --glow: rgba(192, 132, 252, 0.5);
}

.qs-code__dots span:nth-child(2) {
  --dot: #7dd3fc;
  --glow: rgba(125, 211, 252, 0.5);
}

.qs-code__dots span:nth-child(3) {
  --dot: #86efac;
  --glow: rgba(134, 239, 172, 0.45);
}

.qs-code__file {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: #d6dae6;
  min-width: 0;
}

.qs-code__file svg {
  display: block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: rgba(196, 181, 253, 0.85);
}

.qs-code__filename {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-code__lang {
  flex: 1;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(154, 163, 181, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-code__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.08);
  color: var(--text);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.qs-code__copy svg {
  display: block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.qs-code__copy:hover {
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(196, 181, 253, 0.4);
}

.qs-code__copy:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.qs-code__copy[data-state="copied"] {
  background: rgba(134, 239, 172, 0.14);
  border-color: rgba(134, 239, 172, 0.4);
  color: #86efac;
}

.qs-code__pre {
  margin: 0;
  padding: 1.05rem 1.15rem 1.2rem;
  max-height: 420px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
}

/* Masaüstü: qs-code kendi içinde dikey flex; pre alanı tüm boşluğu doldurur
   ki yan panelin alt kenarı ile kod editörünün alt kenarı aynı satırda bitsin. */
@media (min-width: 960px) {
  .qs-code {
    display: flex;
    flex-direction: column;
  }

  .qs-code__pre {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  /* Yan panel — esnek dikey kolon; bloklar yukarıdan aşağıya
     doğal yüksekliklerinde sıralanır. Toplam yükseklik kod editörünü
     yönlendirir (stretch ile her iki sütun da aynı satırda biter). */
  .qs-side {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
  }
}

.qs-code__pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.qs-code__pre::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
  border-radius: 999px;
}

.qs-code__code {
  display: block;
  font: inherit;
  color: #d6dae6;
  white-space: pre;
  tab-size: 2;
}

/* Token paleti — code-editor modülüyle aynı; renkler özgün, telifsiz */
.qs-code__code .tk-com {
  color: #5e6580;
  font-style: italic;
}

.qs-code__code .tk-str {
  color: #fcd093;
}

.qs-code__code .tk-num {
  color: #86efac;
}

.qs-code__code .tk-kw {
  color: #c084fc;
}

.qs-code__code .tk-bi {
  color: #7dd3fc;
}

.qs-code__code .tk-fn {
  color: #fde68a;
}

.qs-code__code .tk-dec {
  color: #f87171;
}

/* Yan panel: akış adımları + beklenen ölçüm dağılımı */

.qs-side {
  display: grid;
  gap: 0.95rem;
  min-width: 0;
}

.qs-side__block {
  padding: 1rem 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.06), transparent 55%),
    var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 36px rgba(0, 0, 0, 0.28);
}

.qs-side__label {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.9);
}

.qs-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.qs-steps__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text);
}

.qs-steps__index {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.26);
}

.qs-steps__op {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(125, 211, 252, 0.92);
  letter-spacing: 0.02em;
}

.qs-output__row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.qs-output__row:last-of-type {
  margin-bottom: 0.45rem;
}

.qs-output__key {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text);
}

.qs-output__bar {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.qs-output__bar>span {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.95), rgba(125, 211, 252, 0.95));
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
  transform-origin: left center;
  transition: width 0.45s var(--ease-out);
}

.qs-output__val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.qs-output__note {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* "Bu çerçevede" — quick-start__grid'in altında tam genişlikte
   bir kimlik kartı bölümü. Sekme değiştirince chip rengi, sahip
   rozeti, kurulum komutu, cihaz, kapı çağrısı, print çıktısı,
   açıklama ve dokümantasyon linki anlık güncellenir. */

.qs-framework {
  --qs-fw-color: var(--accent);
  position: relative;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.06), transparent 55%),
    var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 36px rgba(0, 0, 0, 0.28);
  transition: border-color 0.3s var(--ease-out);
}

.qs-framework[data-qs-fw="qiskit"] {
  --qs-fw-color: #a78bfa;
}

.qs-framework[data-qs-fw="cirq"] {
  --qs-fw-color: #7dd3fc;
}

.qs-framework[data-qs-fw="pennylane"] {
  --qs-fw-color: #fcd34d;
}

.qs-framework__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.qs-framework__label {
  margin: 0;
  flex-shrink: 0;
}

.qs-framework__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.16), rgba(99, 102, 241, 0.04) 65%),
    rgba(20, 22, 32, 0.6);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s var(--ease-out);
}

.qs-framework__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qs-fw-color);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.05),
    0 0 10px var(--qs-fw-color);
}

.qs-framework__name {
  white-space: nowrap;
}

.qs-framework__owner {
  margin-left: 0.32rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 163, 181, 0.92);
}

.qs-framework__docs {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.07);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.qs-framework__docs:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(125, 211, 252, 0.45);
  color: #e0f2fe;
}

.qs-framework__docs:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.qs-framework__docs svg {
  display: block;
  flex-shrink: 0;
}

.qs-framework__cells {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.05rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .qs-framework__cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .qs-framework__cells {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.qs-framework__cell {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.72rem 0.85rem 0.78rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.04), transparent 55%),
    rgba(20, 22, 32, 0.55);
  min-width: 0;
  transition: border-color 0.25s var(--ease-out);
}

.qs-framework__cell:hover {
  border-color: rgba(167, 139, 250, 0.25);
}

.qs-framework__cell-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.qs-framework__cell-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #bae6fd;
  word-break: break-word;
  white-space: pre-wrap;
}

.qs-framework__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 80ch;
}

.quick-start__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.15rem;
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {

  .qs-tab,
  .qs-output__bar>span {
    transition: none;
  }
}

/* Site footer stilleri css/footer.css içine taşındı. */

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}