:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: rgba(13, 27, 42, 0.82);
  --panel-strong: rgba(9, 20, 32, 0.96);
  --text: #eff8ff;
  --muted: #9fb4c8;
  --line: rgba(148, 194, 255, 0.16);
  --cyan: #4ce4ff;
  --blue: #6d8cff;
  --green: #9cffcb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(76, 228, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 80% 5%, rgba(109, 140, 255, 0.2), transparent 32rem),
    linear-gradient(135deg, #05080d 0%, var(--bg) 46%, #0b1324 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand,
.nav-links a,
.button {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #021018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 26px rgba(76, 228, 255, 0.34);
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 34px;
  min-height: 72vh;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 7vw, 5.6rem);
  line-height: 0.93;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.button.primary {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.status-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.terminal-card,
.card,
.security-box {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.terminal-card {
  overflow: hidden;
  border-radius: 28px;
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: 0.8;
}

.terminal-top span:nth-child(2) { background: var(--green); }
.terminal-top span:nth-child(3) { background: var(--blue); }

pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #c5f8ff;
  font-size: 0.95rem;
  line-height: 1.7;
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.security-box {
  border-radius: 24px;
  padding: 24px;
}

.card p,
.security-box p,
.steps {
  color: var(--muted);
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 32px;
  align-items: start;
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li {
  margin-bottom: 16px;
}

.steps strong {
  color: var(--text);
}

.security-box {
  background: linear-gradient(135deg, rgba(76, 228, 255, 0.12), rgba(156, 255, 203, 0.08)), var(--panel-strong);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .grid.cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 42px 0;
  }
}

/* ============ İki dil (TR/EN) görünürlük ============ */
html[data-lang="tr"] .en { display: none; }
html[data-lang="en"] .tr { display: none; }

/* ============ Dil değiştirici ============ */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 14px;
  cursor: pointer;
}
.lang-btn.is-active {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

/* ============ İstatistik şeridi ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat b {
  color: var(--cyan);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

/* ============ 6'lı kart + mini kart ============ */
.grid.cards-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card.mini h3 { font-size: 1rem; }
.card.mini p { font-size: 0.95rem; }

/* ============ Süreç akış kartları ============ */
.flows { grid-template-columns: 1fr 1fr; }
.flow-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.flow-card h3 { color: var(--green); }
.flow-card .steps { padding-left: 20px; }
.flow-card .steps li { margin-bottom: 12px; }

/* ============ Tikli liste ============ */
.ticks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* ============ CTA kartları (PoC + agent) ============ */
.poc-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
.cta-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.cta-card h3 { margin-bottom: 8px; }
.cta-card p { color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.cta-card .button { width: 100%; }
.cta-card.warn {
  background: linear-gradient(135deg, rgba(109, 140, 255, 0.12), rgba(76, 228, 255, 0.08)), var(--panel-strong);
}
.fineprint { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); opacity: 0.85; }

code {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}
.inline-link { color: var(--cyan); font-weight: 700; }

/* ============ Tarama görselleri (gallery) ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.shot { margin: 0; }
.shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.viz {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  min-height: 220px;
}
.viz-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.viz-eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.viz-note { margin: 14px 0 0; color: var(--muted); font-size: 0.85rem; }

/* faz listesi + ilerleme */
.phase-list { list-style: none; margin: 0 0 14px; padding: 0; }
.phase-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted);
}
.phase-list li b { font-size: 1rem; }
.phase-list li.done { color: var(--text); }
.phase-list li.done b { color: var(--green); }
.phase-list li.active b { color: var(--cyan); }
.progress {
  height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  overflow: hidden; border: 1px solid var(--line);
}
.progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

/* SVG risk göstergesi */
.gauge { width: 150px; height: 150px; }
.gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 10; }
.gauge-fill {
  fill: none; stroke: #ffd479;
  stroke-width: 10; stroke-linecap: round;
}
.gauge-num { fill: var(--text); font: 800 26px Inter, sans-serif; text-anchor: middle; letter-spacing: -1px; }
.gauge-sub { fill: var(--muted); font: 700 12px Inter, sans-serif; text-anchor: middle; }

/* severity barları */
.sev-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sev-label { width: 64px; color: var(--muted); font-size: 0.85rem; }
.sev-row .bar { flex: 1; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.sev-row .bar i { display: block; height: 100%; border-radius: 999px; }
.sev-row b { width: 20px; text-align: right; color: var(--text); }
.b-high { background: #ff8a8a; }
.b-med { background: #ffd479; }
.b-low { background: var(--green); }
.b-info { background: var(--blue); }

/* ============ Resmi bildirim (geliştirme aşaması) ============ */
.dev-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 8px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 212, 121, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 212, 121, 0.10), rgba(76, 228, 255, 0.05)), var(--panel);
}
.dev-badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1206;
  background: #ffd479;
}
.dev-notice p { margin: 0; color: var(--text); line-height: 1.6; font-size: 0.97rem; }
@media (max-width: 560px) { .dev-notice { gap: 10px; } }

/* ============ Ziyaret sayacı (köşe, sade) ============ */
.visit-counter {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 20, 32, 0.7);
  backdrop-filter: blur(8px);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.visit-counter:hover { opacity: 1; }
.visit-counter b { color: var(--cyan); font-weight: 800; }
.vc-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
@media (max-width: 520px) { .visit-counter { font-size: 0.72rem; padding: 5px 9px; } }

/* ============ Sosyal / LinkedIn ============ */
.socials { display: flex; gap: 12px; margin-top: 18px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.social-link:hover { color: var(--cyan); border-color: rgba(76, 228, 255, 0.4); }
.social-link svg { display: block; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.footer-social:hover { color: var(--cyan); }
.footer-social svg { display: block; }

/* ============ Agent gereksinimleri ============ */
.reqs {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  background: var(--panel);
}
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.req-list li:last-child { border-bottom: 0; }
.req-list li b { color: var(--cyan); }

@media (max-width: 820px) {
  .stats,
  .grid.cards-6,
  .flows,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .lang-switch { align-self: flex-end; }
  .req-list li { grid-template-columns: 76px 1fr; }
}
