/* HiFolks — tek koyu tema, uygulamanın teal → lacivert → mor arka planından türetildi.
   Düzen: üstte sade bar, ortada tek sütun içerik (metin ~68ch), altta yasal bağlantılar. */
:root {
  --ink: #0b0a2a;          /* en koyu zemin (uygulamadaki lacivert) */
  --ink-2: #131247;        /* yükseltilmiş yüzey */
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef0fb;
  --muted: #b6b9d8;
  --teal: #22d6b9;         /* uygulamadaki turkuaz */
  --teal-deep: #0f9c8c;
  --indigo: #4b4dff;
  --mauve: #8a4f8f;        /* sağdaki mor ton */
  --warn: #ffcf6b;
  --danger: #ff8a8a;
  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --measure: 68ch;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at -10% 110%, rgba(34, 214, 185, 0.55), transparent 60%),
    radial-gradient(50rem 40rem at 110% 30%, rgba(138, 79, 143, 0.55), transparent 60%),
    radial-gradient(40rem 30rem at 40% 0%, rgba(30, 28, 150, 0.7), transparent 70%);
}
.hp:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: 0.5rem 1rem; background: var(--ink-2); z-index: 20; border-radius: 8px; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #6ff0d9; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }

/* Üst bar */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 10, 42, 0.55);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--glass); border: 1px solid var(--line); display: grid; place-items: center; }
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 9px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--glass); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.1); }

main { flex: 1; padding-block: 3rem 4rem; }

/* Tipografi */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.4rem; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #05201c; }
.btn-primary:hover { color: #05201c; transform: translateY(-1px); }
.btn-ghost { background: var(--glass); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Ana sayfa */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 1rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(34, 214, 185, 0.12); color: var(--teal); border: 1px solid rgba(34, 214, 185, 0.35); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(34, 214, 185, 0.2); }
.meta-row { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.meta-row strong { color: var(--text); font-weight: 600; }

.panel {
  background: rgba(19, 18, 71, 0.6);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.panel h2 { font-size: 1.5rem; }
.panel > p { color: var(--muted); margin-top: 0.4rem; }

/* Form */
form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.35rem; }
label { font-weight: 600; font-size: 0.92rem; }
.hint { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
textarea { min-height: 5.5rem; resize: vertical; }
select option { background: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(34, 214, 185, 0.25); }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; font-weight: 400; font-size: 0.92rem; color: var(--muted); }
.check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 0.95rem; padding: 0.8rem 1rem; border-radius: 10px; border: 1px solid var(--line); }
.status.ok { background: rgba(34, 214, 185, 0.12); border-color: rgba(34, 214, 185, 0.4); color: #bdfbef; }
.status.err { background: rgba(255, 138, 138, 0.1); border-color: rgba(255, 138, 138, 0.4); color: #ffd3d3; }

/* Bölümler */
.section { margin-top: 5rem; display: grid; gap: 1.75rem; }
.section-head { display: grid; gap: 0.5rem; max-width: var(--measure); }
.section-head p { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.25rem; border-top: 2px solid var(--line); display: grid; gap: 0.4rem; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--teal); }
.steps li:nth-child(4) { border-top-color: var(--teal); }
.steps p { color: var(--muted); font-size: 0.97rem; }

.download { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.download .specs { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.8rem; color: var(--muted); font-size: 0.92rem; }
.download .specs strong { display: block; color: var(--text); font-weight: 600; }

/* Metin sayfaları (yasal, yardım) */
.doc { max-width: var(--measure); }
.doc-head { display: grid; gap: 0.75rem; margin-bottom: 2.5rem; }
.doc-head .updated { color: var(--muted); font-size: 0.92rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 0.75rem; scroll-margin-top: 6rem; }
.doc h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.doc p + p, .doc p + ul, .doc ul + p, .doc p + ol, .doc ol + p { margin-top: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.3rem; margin: 0.6rem 0 0; display: grid; gap: 0.4rem; }
.doc li::marker { color: var(--teal); }
.toc { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.95rem; }
.toc strong { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.2rem; }
.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 34rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: rgba(255, 255, 255, 0.04); }
tr:last-child td { border-bottom: 0; }
.ph { background: rgba(255, 207, 107, 0.15); color: var(--warn); border-radius: 4px; padding: 0 0.25rem; font-weight: 600; }
.note { border: 1px solid var(--line); background: var(--glass); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--muted); }

/* Yardım */
.faq-group { margin-top: 2.5rem; display: grid; gap: 0.6rem; }
.faq-group h2 { margin: 0 0 0.4rem; }
details { border: 1px solid var(--line); border-radius: 12px; background: rgba(19, 18, 71, 0.45); }
summary { cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 1.25rem 1.1rem; color: var(--muted); display: grid; gap: 0.6rem; }
details ul, details ol { margin: 0; padding-left: 1.2rem; }

/* İletişim */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.contact-card { border: 1px solid var(--line); background: rgba(19, 18, 71, 0.5); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.contact-card p { color: var(--muted); font-size: 0.95rem; }
.addr { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.addr a { font-weight: 600; word-break: break-all; }
.copy { font: inherit; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.copy:hover { color: var(--text); }

/* Alt bilgi */
.site-foot { border-top: 1px solid var(--line); background: rgba(11, 10, 42, 0.6); font-size: 0.92rem; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-block: 2.5rem; }
.site-foot h3 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 0.7rem; font-family: var(--font-body); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.site-foot .copy-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.center-page { text-align: center; display: grid; gap: 1rem; justify-items: center; padding-block: 4rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-foot .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  main { padding-block: 2rem 3rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .download { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 1.25rem; }
  .nav a { padding: 0.35rem 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
