:root {
  --bg: #0b1320;
  --panel: #121c2e;
  --border: #22314a;
  --text: #e8edf6;
  --muted: #9aacc4;
  --accent: #3fa9f5;
  --accent-2: #38d68f;
  --radius: 14px;
  --max-w: 880px;
  /* Marka paleti — uygulama ikonu ve App/DesignSystem ile aynı */
  --brand-indigo: #3346e0;
  --brand-navy: #0f1757;
  --brand-teal: #2fe3d2;
  /* İkon sistemi */
  --ic-color: #dce3ff;
  --ic-accent: var(--brand-teal);
  --ic-soft: rgba(124, 140, 255, 0.16);
  --tile-bg: linear-gradient(150deg, rgba(76, 94, 255, 0.30), rgba(47, 227, 210, 0.08));
  --tile-border: rgba(124, 140, 255, 0.34);
  --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 10px 24px -12px rgba(51, 70, 224, 0.75);
  --ring: rgba(124, 140, 255, 0.22);
  --glow: rgba(63, 90, 245, 0.45);
}

html.theme-light {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --border: #dce3ef;
  --text: #121a2b;
  --muted: #5c6a82;
  --accent: #1f7fd1;
  --accent-2: #1fa868;
  --ic-color: #2b3bc9;
  --ic-accent: #0fae9e;
  --ic-soft: rgba(51, 70, 224, 0.10);
  --tile-bg: linear-gradient(150deg, #e9ecff, #e2faf6);
  --tile-border: #cfd5fb;
  --tile-shadow: inset 0 1px 0 #fff, 0 8px 20px -12px rgba(51, 70, 224, 0.45);
  --ring: rgba(51, 70, 224, 0.16);
  --glow: rgba(70, 95, 245, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background 0.15s ease, color 0.15s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- i18n: show Turkish by default, English when html.lang-en is set --- */
html:not(.lang-en) .i18n-en { display: none; }
html.lang-en .i18n-tr { display: none; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 12px;
  gap: 16px;
  padding: 18px max(16px, calc((100% - var(--max-w)) / 2));
  border-bottom: 1px solid var(--border);
}

header.site .brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

header.site .brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 2px 8px rgba(15, 23, 87, 0.35); }

header.site .right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav.site {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

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

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.icon-btn:hover { background: var(--panel); }
.icon-btn.icon-only {
  width: 34px; height: 34px; padding: 0;
  display: inline-grid; place-items: center;
}
.icon-btn .ic { width: 18px; height: 18px; stroke-width: 1.8; }
html:not(.theme-light) .ic-moon,
html.theme-light .ic-sun { display: none; }

/* ---------- İkon sistemi: 24px grid, 1.6 çizgi, duotone ---------- */
.ic {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic .s { fill: var(--ic-soft); }
.ic .n { stroke: none; }
.ic .a { stroke: var(--ic-accent); }
.ic .af { fill: var(--ic-accent); stroke: none; }
.ic .thin { stroke-width: 1.3; }

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 16px 80px;
}

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.stage {
  position: relative;
  width: 232px; height: 232px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
}
.stage > * { grid-area: 1 / 1; }
.stage-glow {
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(6px);
}
.stage-rings { width: 100%; height: 100%; overflow: visible; }
.stage-rings .ring { fill: none; stroke: var(--ring); stroke-width: 1; }
.stage-rings .ring-dash { stroke-dasharray: 2 6; }
.stage-rings .ring-faint { opacity: 0.7; }
.stage-sweep {
  width: 188px; height: 188px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 280deg, rgba(47, 227, 210, 0.05) 300deg, rgba(47, 227, 210, 0.38) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 69px, #000 70px);
          mask: radial-gradient(circle, transparent 69px, #000 70px);
  animation: sweep 5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stage-sweep { animation: none; } }
.hero img.app-icon {
  position: relative;
  width: 112px; height: 112px;
  filter: drop-shadow(0 14px 22px rgba(8, 12, 50, 0.45));
}

.hero h1 { font-size: clamp(26px, 5vw, 34px); margin: 0 0 10px; }
.hero p.tagline { color: var(--muted); font-size: 17px; margin: 0 auto 28px; max-width: 560px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #2f8ee0);
  color: #06111f;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.meta-line { color: var(--muted); font-size: 13px; margin-top: 14px; }

.chips {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.chips li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 9px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel);
  color: var(--muted); font-size: 13px;
}
.chips .ic { width: 17px; height: 17px; color: var(--ic-color); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 48px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--tile-border); }
.card h3 { margin: 0 0 8px; font-size: 16px; }

.feat-ic, .step-ic {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--tile-bg);
  border: 1px solid var(--tile-border);
  box-shadow: var(--tile-shadow);
  color: var(--ic-color);
  margin-bottom: 14px;
}
.feat-ic .ic { width: 26px; height: 26px; }

ol.steps { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: step; display: grid; gap: 16px; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; color: var(--muted); }
ol.steps li strong, ol.steps li code { color: var(--text); }
ol.steps .step-ic { position: relative; margin: 0; }
ol.steps .step-ic::after {
  content: counter(step);
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 2px var(--panel);
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(24px, 5vw, 32px); }
h2 { font-size: clamp(20px, 4vw, 24px); margin-top: 44px; }

article.legal h2:first-of-type { margin-top: 0; }
article.legal p, article.legal li { color: var(--muted); font-size: 15px; }
article.legal strong { color: var(--text); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }

.about-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}
.about-grid img { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; }

footer.site {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 32px 16px 48px;
  border-top: 1px solid var(--border);
}
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 14px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }

/* ---------- Çerez onayı ---------- */
#consent {
  position: fixed; z-index: 50;
  left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px 14px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
}
#consent p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; }
#consent .consent-actions { display: flex; gap: 8px; flex: none; }
#consent .btn { padding: 9px 18px; font-size: 14px; width: auto; }

@media (max-width: 680px) {
  header.site { justify-content: center; text-align: center; }
  header.site .right { width: 100%; justify-content: center; }
  main { padding: 36px 16px 64px; }
  .panel { padding: 22px 18px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-grid img { margin: 0 auto; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
  #consent { flex-direction: column; align-items: stretch; text-align: left; }
  #consent .consent-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  nav.site { gap: 12px; font-size: 13px; }
}
