html[data-user-scheme="light"] {
  color-scheme: light;
}

html[data-user-scheme="dark"] {
  color-scheme: dark;
}

html[data-user-scheme="light"] body.site-corporate {
  --surface: color-mix(in srgb, var(--primary, #2563eb) 4%, #fbfdff 96%);
  --surface-2: color-mix(in srgb, var(--accent, #7dd3fc) 8%, #f1f6ff 92%);
  --surface-3: #ffffff;
  --surface-dark: color-mix(in srgb, var(--primary-strong, #1d4ed8) 18%, #111827 82%);
  --text-1: #101827;
  --text-2: color-mix(in srgb, var(--primary-strong, #1d4ed8) 18%, #475569 82%);
  --text-3: #64748b;
  --border-1: rgba(148, 163, 184, 0.24);
  --card-bg: rgba(255, 255, 255, 0.9);
  --bg-3: color-mix(in srgb, var(--primary, #2563eb) 12%, #dbeafe 88%);
  --surface-rgb: 248, 251, 255;
  --surface-2-rgb: 237, 244, 255;
  --surface-3-rgb: 255, 255, 255;
}

html[data-user-scheme="dark"] body.site-corporate {
  --surface: color-mix(in srgb, var(--primary, #2563eb) 8%, #0b111c 92%);
  --surface-2: color-mix(in srgb, var(--primary, #2563eb) 10%, #121a27 90%);
  --surface-3: color-mix(in srgb, var(--accent, #7dd3fc) 7%, #172131 93%);
  --surface-dark: #060a12;
  --text-1: #eef4ff;
  --text-2: #c2cedf;
  --text-3: #94a3b8;
  --border-1: rgba(148, 163, 184, 0.18);
  --card-bg: rgba(23, 33, 49, 0.9);
  --bg-3: color-mix(in srgb, var(--primary, #2563eb) 14%, #0f172a 86%);
  --surface-rgb: 11, 17, 28;
  --surface-2-rgb: 18, 26, 39;
  --surface-3-rgb: 23, 33, 49;
}

html[data-user-scheme] body.site-corporate {
  --corp-bg: var(--surface, #f4f7fb);
  --corp-surface: var(--surface-3, #ffffff);
  --corp-surface-soft: var(--surface-2, #f8fafc);
  --corp-panel: var(--surface-dark, #0f172a);
  --corp-panel-soft: color-mix(in srgb, var(--surface-dark, #0f172a) 88%, #ffffff 12%);
  --corp-border: var(--border-1, #dbe4ee);
  --corp-border-strong: color-mix(in srgb, var(--border-1, #dbe4ee) 78%, var(--text-2, #475569) 22%);
  --corp-text: var(--text-1, #0f172a);
  --corp-muted: var(--text-2, #475569);
  --corp-title: color-mix(in srgb, var(--text-1, #0f172a) 92%, #000000 8%);
  background:
    radial-gradient(circle at top left, rgba(var(--primary-rgb, 59, 130, 246), 0.14), transparent 20%),
    linear-gradient(180deg, var(--corp-bg) 0%, var(--corp-surface-soft) 42%, var(--corp-bg) 100%);
  color: var(--corp-text);
  transition: background-color 0.24s ease, color 0.24s ease;
}

html[data-user-scheme="dark"] body.site-corporate {
  background:
    radial-gradient(circle at top left, rgba(var(--primary-rgb, 59, 130, 246), 0.22), transparent 22%),
    radial-gradient(circle at 84% 8%, rgba(var(--accent-rgb, 125, 211, 252), 0.14), transparent 24%),
    linear-gradient(180deg, #070b12 0%, var(--corp-bg) 42%, #060a12 100%);
}

html[data-user-scheme] body.site-corporate.theme-desenli,
html[data-user-scheme] body.site-corporate.theme-petekli,
html[data-user-scheme] body.site-corporate.theme-siyah-fon,
html[data-user-scheme] body.site-corporate.theme-teknolojik {
  background-size: auto, auto, auto;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

html[data-user-scheme="light"] body.site-corporate .public-hero .public-kicker,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .d-flex .public-kicker,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .public-section__head .public-kicker {
  background: color-mix(in srgb, var(--corp-surface) 94%, transparent) !important;
  border-color: color-mix(in srgb, var(--corp-brand) 14%, var(--corp-border)) !important;
  color: var(--corp-brand-strong) !important;
}

html[data-user-scheme="light"] body.site-corporate .public-hero .public-title,
html[data-user-scheme="light"] body.site-corporate .public-hero .public-copy strong,
html[data-user-scheme="light"] body.site-corporate .public-hero .public-chip-list li,
html[data-user-scheme="light"] body.site-corporate .public-hero .public-chip-list span,
html[data-user-scheme="light"] body.site-corporate .public-hero .public-chip-list i,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .d-flex .public-title,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .d-flex .public-title--md,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .d-flex .public-copy strong,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .public-section__head .public-title,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .public-section__head .public-title--md,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .public-section__head .public-copy strong {
  color: var(--corp-title) !important;
}

html[data-user-scheme="light"] body.site-corporate .public-hero .public-copy,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .d-flex .public-copy,
html[data-user-scheme="light"] body.site-corporate .public-section > .container > .public-section__head .public-copy {
  color: var(--corp-muted) !important;
}

html[data-user-scheme="light"] body.site-corporate .public-hero .public-chip-list li {
  background: color-mix(in srgb, var(--corp-surface) 96%, transparent) !important;
  border-color: color-mix(in srgb, var(--corp-brand) 12%, var(--corp-border)) !important;
}

html[data-user-scheme="dark"] body.site-corporate .public-hero .public-kicker,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .d-flex .public-kicker,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .public-section__head .public-kicker {
  background: color-mix(in srgb, var(--corp-inverse) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--corp-inverse) 16%, transparent) !important;
  color: var(--corp-inverse) !important;
}

html[data-user-scheme="dark"] body.site-corporate .public-hero .public-title,
html[data-user-scheme="dark"] body.site-corporate .public-hero .public-copy strong,
html[data-user-scheme="dark"] body.site-corporate .public-hero .public-chip-list li,
html[data-user-scheme="dark"] body.site-corporate .public-hero .public-chip-list span,
html[data-user-scheme="dark"] body.site-corporate .public-hero .public-chip-list i,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .d-flex .public-title,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .d-flex .public-title--md,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .d-flex .public-copy strong,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .public-section__head .public-title,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .public-section__head .public-title--md,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .public-section__head .public-copy strong {
  color: var(--corp-inverse) !important;
}

html[data-user-scheme="dark"] body.site-corporate .public-hero .public-copy,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .d-flex .public-copy,
html[data-user-scheme="dark"] body.site-corporate .public-section > .container > .public-section__head .public-copy {
  color: color-mix(in srgb, var(--corp-inverse) 82%, transparent) !important;
}

html[data-user-scheme="dark"] body.site-corporate .shell-header {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--corp-brand) 10%, transparent), transparent 38%),
    linear-gradient(180deg, #171719 0%, #201d1d 58%, #252322 100%) !important;
  border-bottom-color: color-mix(in srgb, var(--corp-brand) 18%, rgba(255, 255, 255, 0.06)) !important;
}

html[data-user-scheme="dark"] body.site-corporate .corp-header__bar {
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--corp-brand) 16%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--corp-surface) 88%, #000000 12%), color-mix(in srgb, var(--corp-title) 12%, #050914 88%)) !important;
  border-color: color-mix(in srgb, var(--corp-brand) 24%, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--corp-inverse) 8%, transparent), 0 18px 48px rgba(0, 0, 0, 0.28);
}

html[data-user-scheme="dark"] body.site-corporate .corp-nav__link,
html[data-user-scheme="dark"] body.site-corporate .corp-nav__dropdown-trigger,
html[data-user-scheme="dark"] body.site-corporate .corp-member-nav__trigger,
html[data-user-scheme="dark"] body.site-corporate .theme-toggle {
  background: transparent;
  color: color-mix(in srgb, var(--corp-inverse) 78%, transparent) !important;
  border-color: transparent;
}

html[data-user-scheme="dark"] body.site-corporate .corp-nav__link i,
html[data-user-scheme="dark"] body.site-corporate .corp-nav__dropdown-trigger i,
html[data-user-scheme="dark"] body.site-corporate .corp-member-nav__trigger i,
html[data-user-scheme="dark"] body.site-corporate .theme-toggle i {
  color: inherit !important;
}

html[data-user-scheme="dark"] body.site-corporate .corp-nav__link:hover,
html[data-user-scheme="dark"] body.site-corporate .corp-nav__link.is-active,
html[data-user-scheme="dark"] body.site-corporate .corp-nav__dropdown-trigger:hover,
html[data-user-scheme="dark"] body.site-corporate .corp-nav__dropdown-trigger.is-active,
html[data-user-scheme="dark"] body.site-corporate .corp-member-nav__trigger:hover,
html[data-user-scheme="dark"] body.site-corporate .corp-member-nav__dropdown:focus-within .corp-member-nav__trigger,
html[data-user-scheme="dark"] body.site-corporate .theme-toggle:hover,
html[data-user-scheme="dark"] body.site-corporate .theme-toggle:focus-visible {
  background: color-mix(in srgb, var(--corp-brand) 22%, rgba(255, 255, 255, 0.08)) !important;
  color: var(--corp-inverse) !important;
  border-color: color-mix(in srgb, var(--corp-brand) 42%, rgba(255, 255, 255, 0.12)) !important;
}

html[data-user-scheme="dark"] body.site-corporate .corp-nav__dropdown-menu,
html[data-user-scheme="dark"] body.site-corporate .corp-member-nav__menu {
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--corp-brand) 14%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--corp-surface) 90%, #000000 10%), color-mix(in srgb, var(--corp-title) 10%, #050914 90%)) !important;
  border-color: color-mix(in srgb, var(--corp-brand) 24%, rgba(255, 255, 255, 0.1)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

html[data-user-scheme="dark"] body.site-corporate .corp-nav__dropdown-menu a,
html[data-user-scheme="dark"] body.site-corporate .corp-member-nav__menu a {
  color: color-mix(in srgb, var(--corp-inverse) 86%, transparent) !important;
}

html[data-user-scheme="dark"] body.site-corporate .corp-nav__dropdown-menu a:hover,
html[data-user-scheme="dark"] body.site-corporate .corp-nav__dropdown-menu a:focus-visible,
html[data-user-scheme="dark"] body.site-corporate .corp-member-nav__menu a:hover {
  background: color-mix(in srgb, var(--corp-brand) 18%, transparent) !important;
  color: var(--corp-inverse) !important;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--corp-title) 10%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--corp-surface) 88%, transparent);
  color: var(--corp-title);
  box-shadow: var(--corp-shadow-soft);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--corp-brand-strong);
  border-color: color-mix(in srgb, var(--corp-brand) 28%, transparent);
  background: color-mix(in srgb, var(--corp-brand) 10%, var(--corp-surface));
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--corp-brand) 28%, transparent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  grid-area: 1 / 1;
  font-size: 1rem;
  line-height: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.theme-toggle__icon--dark,
html[data-user-scheme="dark"] .theme-toggle__icon--light {
  opacity: 0;
  transform: scale(0.72) rotate(-20deg);
}

html[data-user-scheme="dark"] .theme-toggle__icon--dark {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 992px) {
  .corp-nav__cta--stacked {
    align-items: center;
  }
}

@media (max-width: 991.98px) {
  .theme-toggle {
    width: 100%;
    min-height: 46px;
    grid-template-columns: auto 1fr;
    justify-content: center;
    gap: 10px;
  }

  .theme-toggle__icon {
    position: static;
    grid-area: auto;
  }

  .theme-toggle__icon--dark,
  html[data-user-scheme="dark"] .theme-toggle__icon--light {
    display: none;
  }

  html[data-user-scheme="dark"] .theme-toggle__icon--dark {
    display: inline-block;
  }

  .theme-toggle__text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: currentColor;
    font-weight: 800;
  }
}
