:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #f7f9fa;
  --surface-hover: #f1f5f6;
  --line: #e3e9ec;
  --line-strong: #cdd6da;
  --text: #0b1416;
  --text-muted: #5f6b70;
  --text-faint: #6c7679;
  --brand: #0d7691;
  --brand-contrast: #ffffff;
  --brand-soft: rgba(18, 132, 159, 0.09);
  --accent: #c77a00;
  --invert: #0b1416;
  --invert-contrast: #ffffff;
  --header-h: 60px;
  --shell: 1320px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e10;
    --bg-elevated: #0f1417;
    --surface: #131a1d;
    --surface-hover: #182023;
    --line: #222b2f;
    --line-strong: #33403f;
    --text: #eef3f4;
    --text-muted: #96a3a8;
    --text-faint: #8d999e;
    --brand: #2ab2d0;
    --brand-contrast: #04191f;
    --brand-soft: rgba(42, 178, 208, 0.13);
    --accent: #ffb539;
    --invert: #ffffff;
    --invert-contrast: #0a0e10;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0e10;
  --bg-elevated: #0f1417;
  --surface: #131a1d;
  --surface-hover: #182023;
  --line: #222b2f;
  --line-strong: #33403f;
  --text: #eef3f4;
  --text-muted: #96a3a8;
  --text-faint: #8d999e;
  --brand: #2ab2d0;
  --brand-contrast: #04191f;
  --brand-soft: rgba(42, 178, 208, 0.13);
  --accent: #ffb539;
  --invert: #ffffff;
  --invert-contrast: #0a0e10;
  color-scheme: dark;
}

/* Her iki temada da koyu kalan bölümler (hero perdesi, video kartları vb). */
.on-dark {
  --bg: #08090a;
  --bg-elevated: #0e1012;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f1f4f5;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.4);
  --brand: #1ca8cb;
  --brand-contrast: #04191f;
  --invert: #ffffff;
  --invert-contrast: #08090a;
  color-scheme: dark;
}

* {
  min-width: 0;
  border-color: var(--line);
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 6rem;
}
@media (min-width: 1024px) {
  html {
    scroll-padding-bottom: 0;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--brand);
  color: var(--brand-contrast);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

@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;
  }
}

/* ---------------------------------------------------------- ızgara kabuğu */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .shell {
    padding-inline: 2.5rem;
  }
}

.hairline {
  border-top: 1px dashed var(--line);
}

/* ------------------------------------------------------------- tipografi */

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.688rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.display {
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

/* ------------------------------------------------------ zengin metin (CMS) */

.prose-gbb {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.975rem;
}
.prose-gbb > * + * {
  margin-top: 1.1rem;
}
.prose-gbb h3 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.prose-gbb h4 {
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.prose-gbb ul,
.prose-gbb ol {
  padding-left: 1.15rem;
  list-style: disc;
}
.prose-gbb ol {
  list-style: decimal;
}
.prose-gbb li + li {
  margin-top: 0.5rem;
}
.prose-gbb strong {
  color: var(--text);
  font-weight: 500;
}
.prose-gbb a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-gbb table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.prose-gbb td,
.prose-gbb th {
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
  text-align: left;
}
.prose-gbb tr td:first-child {
  color: var(--text);
  background: var(--surface);
  width: 34%;
}

/* ------------------------------------------------------------ animasyonlar */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.animate-rise {
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.animate-marquee {
  animation: marquee 42s linear infinite;
}
.marquee-mask {
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* Logo dosyası beyaz; açık zeminde koyuya çevrilir. */
.dark-logo {
  filter: brightness(0);
}
:root[data-theme="dark"] .invert-on-dark,
:root[data-theme="dark"] .invert-on-dark img {
  filter: invert(1) grayscale(1) contrast(0.9) brightness(1.1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .invert-on-dark,
  :root:not([data-theme="light"]) .invert-on-dark img {
    filter: invert(1) grayscale(1) contrast(0.9) brightness(1.1);
  }
}
.on-dark .dark-logo,
:root[data-theme="dark"] .dark-logo {
  filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dark-logo {
    filter: none;
  }
}

/* ------------------------------------------------- hero arka plan katmanları */

.dot-grid {
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -1px -1px;
  mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 72%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 72%);
}

.column-lines {
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 1px,
    transparent 1px calc(100% / 6)
  );
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-in {
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
.pulse-dot {
  animation: pulseDot 2.2s ease-in-out infinite;
}

/* --------------------------------------------------- açılır menü animasyonu */

@keyframes panelReveal {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes panelColumn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.panel-reveal {
  animation: panelReveal 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.panel-col {
  animation: panelColumn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.panel-col:nth-child(1) { animation-delay: 0.1s; }
.panel-col:nth-child(2) { animation-delay: 0.16s; }
.panel-col:nth-child(3) { animation-delay: 0.22s; }
.panel-col:nth-child(4) { animation-delay: 0.28s; }
.panel-col:nth-child(5) { animation-delay: 0.34s; }

/* ----------------------------------------------------------- özel imleç */

.has-custom-cursor,
.has-custom-cursor *:not(input):not(textarea):not(select) {
  cursor: none;
}
.has-custom-cursor input,
.has-custom-cursor textarea {
  cursor: text;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--brand);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    opacity 0.2s ease,
    width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    margin 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.28s ease,
    border-color 0.28s ease;
}

.cursor-ring.is-active {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.cursor-ring.is-down {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}

/* ---------------------------------------------------------------- diğer */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.is-open {
  display: flex;
}

.theme-toggle-btn {
  color: var(--text-faint);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.theme-toggle-btn.is-active {
  background: var(--surface-hover);
  color: var(--text);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
