:root {
  color-scheme: dark;
  --bg: #071712;
  --bg-soft: #0d241d;
  --card: rgba(11, 44, 35, 0.9);
  --card-strong: linear-gradient(160deg, rgba(16, 94, 73, 0.96), rgba(7, 38, 31, 0.96));
  --border: rgba(145, 219, 193, 0.18);
  --text: #f3f1e5;
  --muted: #c5d8cf;
  --accent: #f2cf83;
  --accent-strong: #ebba57;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(33, 129, 103, 0.22), transparent 26rem),
    radial-gradient(circle at top right, rgba(242, 207, 131, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.4rem 0 3.5rem;
}

[data-language-panel] {
  display: contents;
}

[data-language-panel][hidden] {
  display: none !important;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switcher button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher button.active {
  background: var(--accent);
  color: #071712;
}

.hero,
.site-nav,
.legal-card,
.site-footer {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero {
  background: linear-gradient(180deg, rgba(7, 34, 28, 0.95), rgba(9, 26, 22, 0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 2vw, 2rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(242, 207, 131, 0.14);
  border: 1px solid rgba(242, 207, 131, 0.22);
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  max-width: 12ch;
}

.hero-summary {
  margin: 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.hero-meta,
.hero-actions,
.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 1rem;
  color: rgba(243, 241, 229, 0.76);
  font-size: 0.92rem;
}

.hero-actions {
  margin-top: 1.15rem;
}

.hero-link,
.site-nav a,
.mini-link {
  text-decoration: none;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 207, 131, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.hero-link-primary {
  background: linear-gradient(180deg, rgba(242, 207, 131, 0.98), rgba(232, 182, 88, 0.98));
  color: #1f281f;
  font-weight: 700;
}

.site-nav {
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(9, 32, 26, 0.86);
}

.site-nav a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(242, 207, 131, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.legal-card {
  grid-column: span 6;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.legal-card-emphasis {
  background: var(--card-strong);
}

.legal-card h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.legal-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.inline-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(242, 207, 131, 0.11);
  border: 1px solid rgba(242, 207, 131, 0.16);
  color: #f1dcaa;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.mini-link {
  display: block;
  min-height: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(145, 219, 193, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.mini-link strong,
.mini-link span {
  display: block;
}

.mini-link strong {
  margin-bottom: 0.55rem;
}

.mini-link span {
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(9, 24, 20, 0.9);
}

.footer-brand {
  display: grid;
  gap: 0.2rem;
}

.footer-links {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .legal-card {
    grid-column: span 12;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max));
    padding-top: 0.75rem;
  }

  .hero,
  .legal-card {
    padding: 1rem;
  }

  .site-nav {
    border-radius: 28px;
    padding: 0.55rem;
  }

  .site-nav a,
  .hero-link {
    width: 100%;
    justify-content: center;
  }
}

/* Fable-inspired editorial layer: calm canvas, one reading column, restrained surfaces. */
:root {
  color-scheme: light dark;
  --bg: #F7F6F1;
  --bg-soft: #EFEFE9;
  --card: #FFFFFF;
  --card-strong: #DCEFE9;
  --border: rgba(20, 28, 24, 0.10);
  --text: #171A18;
  --muted: #69716C;
  --tertiary: #8B928E;
  --accent: #147D68;
  --accent-strong: #0E6857;
  --gold: #A56D19;
  --shadow: 0 18px 55px rgba(28, 35, 31, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 920px;
}

html[lang="en"] [data-lang="tr"],
html[lang="tr"] [data-lang="en"],
html[lang="en"] [data-language-panel="tr"],
html[lang="tr"] [data-language-panel="en"] {
  display: none !important;
}

html[lang="en"] [data-language-panel="en"],
html[lang="tr"] [data-language-panel="tr"] {
  display: contents;
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% -6%, rgba(20, 125, 104, 0.10), transparent 28rem),
    linear-gradient(180deg, #FBFAF6 0, var(--bg) 30rem);
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max));
  padding: 1rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  margin-bottom: 1rem;
}

.display-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent);
  color: #fffdf7;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(23, 100, 72, 0.2);
}

.brand > span:last-child {
  display: grid;
  gap: 0.1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.language-switcher,
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
}

.language-switcher button,
.theme-switcher button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.theme-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 72px;
}

.theme-switcher button > span:first-child {
  font-size: 0.92rem;
  line-height: 1;
}

.language-switcher button.active,
.theme-switcher button.active {
  background: var(--card);
  color: var(--accent-strong);
  box-shadow: 0 2px 8px var(--shadow);
}

.hero,
.site-nav,
.legal-card,
.site-footer {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 3.1rem);
  border: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #DCEFE9 0%, #EDF3EF 62%, #F8F1DB 100%);
  box-shadow: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  border: 1px solid rgba(23, 100, 72, 0.12);
  box-shadow: 0 0 0 2.5rem rgba(23, 100, 72, 0.03), 0 0 0 5rem rgba(23, 100, 72, 0.025);
  pointer-events: none;
}

.eyebrow {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 15ch;
  margin: 0.85rem 0 0.75rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-summary {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  line-height: 1.65;
}

.hero-meta {
  position: relative;
  z-index: 1;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-link {
  min-height: 44px;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-weight: 650;
}

.hero-link-primary {
  border-color: transparent;
  background: var(--accent);
  color: #fffdf8;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  overflow-x: auto;
  margin: 0.8rem 0 1rem;
  padding: 0.35rem;
  border-color: var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 252, 0.76);
  box-shadow: none;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 620;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--bg-soft);
  color: var(--text);
  transform: none;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.legal-card,
.legal-card-emphasis {
  grid-column: 1;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-card:last-child {
  border-bottom: 0;
}

.legal-card-emphasis {
  background: var(--card-strong);
}

.legal-card h2 {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: clamp(1.12rem, 3vw, 1.38rem);
  letter-spacing: -0.015em;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.legal-card li + li {
  margin-top: 0.45rem;
}

.legal-card a,
.site-footer a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

.inline-note {
  padding: 0.9rem 1rem;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  background: rgba(23, 100, 72, 0.07);
  color: var(--text);
}

.mini-grid {
  gap: 0.65rem;
}

.mini-link {
  padding: 1rem;
  border-color: var(--border);
  background: rgba(244, 242, 234, 0.62);
  transition: background 180ms ease, transform 180ms ease;
}

.mini-link:hover {
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.copyright-statement {
  margin: 0.15rem 0 1rem;
  color: var(--text) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 3.8rem) !important;
  line-height: 1;
  letter-spacing: -0.04em;
}

.site-footer {
  margin-top: 0.85rem;
  padding: 1rem 0.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F0D;
    --bg-soft: #1B2420;
    --card: #131A17;
    --card-strong: #173C32;
    --border: rgba(255, 255, 255, 0.10);
    --text: #F4F7F4;
    --muted: #A7B0AB;
    --tertiary: #7E8983;
    --accent: #61D0AF;
    --accent-strong: #79DFC0;
    --gold: #E5C374;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  }

  html,
  body {
    background:
      radial-gradient(circle at 12% -6%, rgba(97, 208, 175, 0.10), transparent 30rem),
      linear-gradient(180deg, #101713 0, var(--bg) 30rem);
  }

  .language-switcher,
  .theme-switcher,
  .site-nav {
    background: rgba(19, 26, 23, 0.88);
  }

  .language-switcher button.active,
  .theme-switcher button.active {
    background: var(--bg-soft);
    color: var(--accent-strong);
  }

  .hero {
    background: linear-gradient(145deg, #173C32 0%, #131A17 64%, #211D14 100%);
  }

  .hero-link {
    background: rgba(255, 255, 255, 0.045);
  }

  .hero-link-primary {
    background: #d4b76d;
    color: #172018;
  }

  .inline-note {
    background: rgba(128, 198, 166, 0.08);
  }

  .mini-link {
    background: rgba(255, 255, 255, 0.025);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F6F1;
  --bg-soft: #EFEFE9;
  --card: #FFFFFF;
  --card-strong: #DCEFE9;
  --border: rgba(20, 28, 24, 0.10);
  --text: #171A18;
  --muted: #69716C;
  --tertiary: #8B928E;
  --accent: #147D68;
  --accent-strong: #0E6857;
  --gold: #A56D19;
  --shadow: 0 18px 55px rgba(28, 35, 31, 0.08);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% -6%, rgba(20, 125, 104, 0.10), transparent 28rem),
    linear-gradient(180deg, #FBFAF6 0, var(--bg) 30rem);
}

html[data-theme="light"] .language-switcher,
html[data-theme="light"] .theme-switcher,
html[data-theme="light"] .site-nav {
  background: rgba(255, 255, 255, 0.84);
}

html[data-theme="light"] .language-switcher button.active,
html[data-theme="light"] .theme-switcher button.active {
  background: var(--card);
  color: var(--accent-strong);
}

html[data-theme="light"] .hero {
  background: linear-gradient(145deg, #DCEFE9 0%, #EDF3EF 62%, #F8F1DB 100%);
}

html[data-theme="light"] .hero-link {
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .hero-link-primary {
  background: var(--accent);
  color: #fffdf8;
}

html[data-theme="light"] .inline-note {
  background: rgba(23, 100, 72, 0.07);
}

html[data-theme="light"] .mini-link {
  background: rgba(244, 242, 234, 0.62);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0F0D;
  --bg-soft: #1B2420;
  --card: #131A17;
  --card-strong: #173C32;
  --border: rgba(255, 255, 255, 0.10);
  --text: #F4F7F4;
  --muted: #A7B0AB;
  --tertiary: #7E8983;
  --accent: #61D0AF;
  --accent-strong: #79DFC0;
  --gold: #E5C374;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% -6%, rgba(97, 208, 175, 0.10), transparent 30rem),
    linear-gradient(180deg, #101713 0, var(--bg) 30rem);
}

html[data-theme="dark"] .language-switcher,
html[data-theme="dark"] .theme-switcher,
html[data-theme="dark"] .site-nav {
  background: rgba(19, 26, 23, 0.88);
}

html[data-theme="dark"] .language-switcher button.active,
html[data-theme="dark"] .theme-switcher button.active {
  background: var(--bg-soft);
  color: var(--accent-strong);
}

html[data-theme="dark"] .hero {
  background: linear-gradient(145deg, #173C32 0%, #131A17 64%, #211D14 100%);
}

html[data-theme="dark"] .hero-link {
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .hero-link-primary {
  background: #E5C374;
  color: #171A18;
}

html[data-theme="dark"] .inline-note {
  background: rgba(97, 208, 175, 0.08);
}

html[data-theme="dark"] .mini-link {
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max));
  }

  .hero {
    padding: 1.35rem 1.1rem 1.5rem;
  }

  .site-nav {
    border-radius: 16px;
    padding: 0.3rem;
  }

  .site-nav a,
  .hero-link {
    width: auto;
  }

  .hero-link {
    flex: 1 1 100%;
  }

  .site-footer,
  .footer-links {
    justify-content: flex-start;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .display-controls {
    width: 100%;
    justify-content: space-between;
  }

  .theme-switcher {
    flex: 1 1 auto;
  }

  .theme-switcher button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
  }
}

@media (max-width: 390px) {
  .theme-switcher button > span:not(:first-child) {
    display: none;
  }

  .theme-switcher button {
    min-width: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
