:root {
  --bg-dark: #0f1419;
  --bg-panel: #1a2332;
  --bg-hover: #243044;
  --border: #2d3a4f;
  --text: #e8edf4;
  --text-muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --success: #22c55e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.landing-body {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 620px at 15% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(34, 197, 94, 0.1), transparent 55%),
    var(--bg-dark);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
}

.site-name-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.site-name {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.site-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.brand-logo {
  height: 68px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 2px 4px;
}

.landing-brand-icon {
  color: var(--accent);
  font-size: 1.3rem;
}

.landing-version {
  margin-left: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.version-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
}

.version-links a {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.version-links a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.85rem;
}

.landing-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.landing-nav a:hover {
  color: var(--text);
}

.landing-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.75rem;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.landing-home .landing-header {
  grid-column: 1;
  grid-row: 1;
  position: relative;
}

.landing-scroll {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow-y: auto;
}

.landing-rail {
  grid-column: 2;
  grid-row: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.7rem 0.45rem;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
  min-height: 0;
}

.landing-home .landing-overlay {
  grid-column: 1;
  grid-row: 1;
}

.landing-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  line-height: 1.15;
  padding: 0.55rem 0.35rem;
}

.landing-rail-btn span {
  display: block;
}

.landing-main {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.landing-hero {
  min-width: 0;
}

.landing-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.landing-hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.landing-lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62ch;
  text-align: justify;
  hyphens: auto;
}

.landing-lead code {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-size: 0.85em;
  color: var(--text);
}

.landing-lead-sm {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  text-align: justify;
  hyphens: auto;
}

.landing-features {
  list-style: none;
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.landing-features li {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(26, 35, 50, 0.75);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.lf-icon {
  font-size: 1.25rem;
  line-height: 1.4;
}

.landing-features h3 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.landing-features p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
}

.landing-auth-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 92px;
}

.landing-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.landing-tab {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
}

.landing-tab.active {
  color: var(--text);
  background: var(--bg-hover);
  border-color: var(--accent);
}

.landing-auth-title {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.landing-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.landing-form label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.landing-form input[type="text"],
.landing-form input[type="email"],
.landing-form input[type="password"] {
  padding: 0.55rem 0.65rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.landing-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.landing-consents {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.landing-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text);
}

.landing-check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.landing-check a {
  color: var(--accent);
}

.landing-check em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.landing-btn {
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
}

.landing-btn.primary {
  background: var(--accent);
  color: #fff;
}

.landing-btn.primary:hover {
  background: var(--accent-hover);
}

.landing-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.landing-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

.landing-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.landing-note {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(59, 130, 246, 0.09);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 7px;
  padding: 0.55rem 0.65rem;
  text-align: justify;
  hyphens: auto;
}

.landing-error {
  font-size: 0.8rem;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 7px;
  padding: 0.45rem 0.6rem;
}

.landing-levels,
.landing-kvkk {
  grid-column: 1 / -1;
}

.landing-levels h2,
.landing-kvkk h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.level-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.level-card {
  background: rgba(26, 35, 50, 0.75);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.level-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin-bottom: 0.55rem;
}

.level-card h3 {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.level-card p {
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: justify;
  hyphens: auto;
}

.landing-kvkk > p:not(.landing-legal-links) {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 80ch;
  text-align: justify;
  hyphens: auto;
}

.landing-gml > p.landing-trademark {
  font-size: 0.75rem;
}

.landing-legal-links {
  margin-top: 0.6rem;
}

.landing-legal-links a {
  color: var(--accent);
  font-size: 0.82rem;
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.landing-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.landing-footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .landing-footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

.landing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
}

.landing-modal {
  width: min(760px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1.35rem;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.landing-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.landing-modal-head h2 {
  font-size: 1.02rem;
}

.landing-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.landing-legal-body {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
  overflow: auto;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .landing-home {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .landing-home .landing-header {
    position: sticky;
  }

  .landing-scroll {
    overflow: visible;
  }

  .landing-rail {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0.55rem 1rem;
    border-left: none;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
  }

  .landing-rail-btn {
    width: auto;
  }

  .landing-main {
    grid-template-columns: 1fr;
  }

  .landing-auth-card {
    position: static;
  }
}

.landing-ok {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #16a34a;
  border-radius: 4px;
  background: rgba(22, 163, 74, 0.09);
  font-size: 0.88rem;
}
.landing-ok.hidden { display: none; }

/* --- Kayıtta SMS doğrulama --- */
.landing-otp {
  margin: 10px 0 4px;
  padding: 12px;
  border: 1px dashed var(--border, #d0d5dd);
  border-radius: 8px;
}
.landing-otp label { display: block; }
.landing-otp .landing-btn { margin-top: 8px; }
.landing-otp .hidden { display: none; }

/* --- Cloudflare Turnstile --- */
.turnstile-box { margin: 10px 0 4px; min-height: 0; }
.turnstile-box:empty { display: none; }
