/* Dostlar Community tanitim sayfasi - Dostlar STUDIO tasarim dili: krem / murekkep / tarla yesili, sifir kose,
   Bricolage Grotesque + Instrument Sans (kendi sunucumuzdan). Discord ornegi (.win) Discord'un kendi olculeriyle cizilir. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/instrument-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/instrument-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fbfaf7; --surface: #ffffff; --surface2: #eef3e6; --line: #e3e0d7;
  --text: #1c231c; --muted: #5f645a; --primary: #2f6b3a; --sprout: #78b783; --amber: #c9a13b;
  --ink: #1c231c; --ink2: #232b23; --ink-line: #2c352c; --ink-text: #b8bdb2; --ink-muted: #8f968a; --cream: #fbfaf7;
  --blurple: #5865f2; --blurple-d: #4752c4;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font);
  --font-mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --pad: clamp(16px, 5vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--cream); padding: 8px 14px; }
.skip:focus { top: 8px; }

/* ---------- dugmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; font: 600 15px/1.2 var(--font); white-space: nowrap; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-discord { background: var(--blurple); color: #fff; }
.btn-discord:hover { background: var(--blurple-d); }
.btn-line { background: transparent; color: var(--text); border-color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--cream); }
/* davet baglantisi panelden girilmemisse sunucu bos yazar: dugmeler gorunmez */
a[data-invite][href=""] { display: none; }

/* ---------- ust cubuk ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 14px; }
.top-nav .quiet { color: var(--muted); text-decoration: none; }
.top-nav .quiet:hover { color: var(--text); text-decoration: underline; }
.top-nav .btn { padding: 8px 14px; font-size: 14px; }

/* dil secici: secili dil koyu */
.langs { display: inline-flex; flex: none; border: 1px solid var(--line); }
.langs a { padding: 5px 8px; font: 600 12px/1 var(--font); letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.langs a + a { border-left: 1px solid var(--line); }
.langs a:hover { color: var(--text); background: var(--surface2); }
.langs a[aria-current] { background: var(--text); color: var(--cream); }

/* ---------- giris: baslik + Discord ornegi ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 78% 50%, #000 15%, transparent 68%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
/* baslik sutun genisligine gore olceklenir: "Dostlar Community" tek satirda kalir, "botu" altina iner */
.hero-text { container-type: inline-size; }
.hero h1 { font-size: clamp(32px, 10cqi, 68px); font-weight: 800; }
.hero h1 .nb { white-space: nowrap; }
.hero .lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; max-width: 46ch; font-size: 14px; color: var(--muted); }

.demo { margin: 0 12px 0 0; }
.win { background: var(--ink); color: var(--ink-text); border: 1px solid var(--ink-line); box-shadow: 12px 12px 0 var(--primary); font-size: 14px; line-height: 1.45; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--ink-line); color: var(--cream); font-weight: 600; }
.win-bar .hash { color: var(--ink-muted); font-size: 20px; font-weight: 400; }
.win-bar .sample { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--amber); border: 1px solid var(--amber); padding: 1px 8px; }
/* sabit yukseklik: konusma uzayinca eski mesajlar Discord'daki gibi yukari kayar */
.win-body { position: relative; height: 440px; overflow: hidden; padding: 16px 16px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.intro { flex: none; padding-bottom: 14px; border-bottom: 1px solid var(--ink-line); }
.intro-hash { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink-line); color: var(--cream); font: 400 32px/1 var(--font); }
.intro b { display: block; margin-top: 10px; color: var(--cream); font: 800 22px/1.15 var(--font-display); }
.intro p { margin-top: 4px; font-size: 13px; color: var(--ink-muted); }
.msg, .modal { flex: none; }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--font-display); }
.av-staff { background: var(--amber); color: var(--ink); }
.msg-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.msg-head b { color: var(--cream); font-weight: 600; }
.msg-head time { color: var(--ink-muted); font-size: 12px; }
.bot-tag { align-self: center; background: var(--blurple); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.4; padding: 1px 4px; border-radius: 3px; }
.msg-main > p { margin-top: 2px; }
.mention { background: rgba(88, 101, 242, .3); color: #dee0fc; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.embed { margin-top: 6px; max-width: 420px; background: var(--ink2); border-left: 4px solid var(--primary); border-radius: 4px; padding: 10px 14px 12px; }
.embed b { display: block; color: var(--cream); font-size: 15px; font-weight: 600; }
.embed p { margin-top: 4px; }
.embed small { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-muted); }
.dbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dbtn { border: 0; border-radius: 3px; padding: 7px 14px; font: 500 14px var(--font); color: #fff; background: #4e5058; cursor: pointer; }
.dbtn:hover { background: #6d6f78; }
.dbtn.primary { background: var(--blurple); }
.dbtn.primary:hover { background: var(--blurple-d); }
.dbtn.danger { background: #da373c; }
.dbtn.danger:hover { background: #a12828; }
.dbtn:disabled { opacity: .5; cursor: default; }
.dbtn:disabled:hover { background: #4e5058; }
.dbtn.primary:disabled:hover { background: var(--blurple); }
.modal { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 10, .72); }
.modal-card { width: min(360px, 100%); background: #262e26; border-radius: 6px; padding: 18px; }
.modal-title { color: var(--cream); font: 700 17px var(--font-display); }
.modal-card label { display: block; margin-top: 14px; font-size: 12px; font-weight: 600; }
.modal-card textarea { width: 100%; margin-top: 6px; background: var(--ink); color: var(--cream); border: 1px solid var(--ink-line); border-radius: 3px; padding: 8px 10px; font: 14px/1.45 var(--font); resize: none; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 14px; }
.dlink { background: none; border: 0; padding: 6px 4px; color: var(--cream); font: 500 14px var(--font); cursor: pointer; }
.dlink:hover { text-decoration: underline; }
.demo-cap { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.demo-cap button { background: none; border: 0; padding: 0; font: 600 14px var(--font); color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.new { animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- ozellik bolumleri ---------- */
.feature { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.feature.alt { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.feature h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
.mark { display: inline-block; flex: none; width: 16px; height: 16px; }
.mark-green { background: var(--primary); }
.mark-amber { background: var(--amber); }
.mark-ink { border: 2px solid var(--text); }
.feature-lead { margin-top: 18px; max-width: 46ch; font-size: 18px; color: var(--muted); }
.feature-note { margin-top: 16px; max-width: 46ch; font-size: 15px; color: var(--muted); }
.feature-note .more { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { position: relative; counter-increment: step; background: var(--surface); padding: 20px 22px 20px 72px; }
.steps li::before { content: counter(step); position: absolute; left: 24px; top: 16px; font: 800 34px/1 var(--font-display); color: var(--primary); }
.steps b { display: block; font-size: 17px; font-weight: 600; }
.steps span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* her kart kendi sag/alt cizgisini cizer: son satir eksik kalsa da bos hucre gri gorunmez */
.others { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.other { background: var(--bg); padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.other h3 { font-size: 20px; font-weight: 700; }
.other p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.others-note { margin-top: 20px; max-width: 70ch; font-size: 15px; color: var(--muted); }
.cmd { font: 500 14px var(--font-mono); background: var(--surface2); color: var(--primary); padding: 1px 7px; white-space: nowrap; }

.terms { margin: 0; border-top: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- son cagri ---------- */
.band { background: var(--surface2); border-bottom: 1px solid var(--line); }
.band-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 48px; padding-bottom: 48px; }
.band h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.band p { margin-top: 6px; color: var(--muted); }
.band .actions { margin-top: 0; }

/* ---------- alt bilgi ---------- */
.foot { background: var(--ink); color: var(--ink-text); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; padding-top: 48px; padding-bottom: 40px; }
.foot .brand { color: var(--cream); }
.foot-grid > div p { margin-top: 12px; max-width: 36ch; }
.foot nav { display: grid; gap: 6px; align-content: start; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--cream); text-decoration: underline; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--ink-line); padding-top: 18px; font-size: 13px; }
.legal a:hover { color: var(--cream); }

/* ---------- yasal sayfa (/legal): govde web/legal/<dil>.html ---------- */
.legal-hero { background: var(--ink); color: var(--cream); }
.legal-hero .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 64px); }
.legal-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sprout); }
.legal-hero .eyebrow::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.legal-hero h1 { margin-top: 10px; font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.legal-hero p { margin-top: 14px; max-width: 62ch; color: var(--ink-text); }
.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 28px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.toc a { background: var(--ink2); color: var(--cream); padding: 14px 16px; font-size: 15px; font-weight: 600; text-decoration: none; }
.toc a:hover { background: var(--ink-line); }
.toc small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-muted); }
/* metin sutunu dar, sol kenari ust bolumle hizali */
.doc { padding-top: 48px; padding-bottom: 72px; }
.doc section { max-width: 860px; padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.doc section:first-child { padding-top: 0; border-top: 0; }
.doc h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; }
.doc h3 { margin: 26px 0 0; font-size: 18px; font-weight: 700; }
.doc p, .doc li { font-size: 15.5px; color: #3a3f38; }
.doc p { margin-top: 10px; }
.doc ul { margin: 8px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--primary); }
.doc .meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.doc code { font: 500 13px var(--font-mono); background: var(--surface2); padding: 1px 6px; }
.tbl-scroll { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); }
.doc table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface2); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.doc td { color: #3a3f38; }
.note { margin-top: 18px; padding: 12px 16px; background: var(--surface2); border-left: 4px solid var(--amber); }
/* davet yoksa ayiraciyla birlikte gizlenir */
.opt:has(a[data-invite][href=""]) { display: none; }

/* ust cubuk dar ekranda sadelesir: once bolum baglantilari, sonra panel baglantisi, en son ust dugme gizlenir
   (ayni dugme hemen altta, girisin icinde de var); marka ve dil secici hep kalir */
@media (max-width: 1100px) {
  .top-nav .anchor { display: none; }
}
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .demo { max-width: 520px; }
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top-nav .panel-link { display: none; }
  .toc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .top .wrap { gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .top-nav .quiet, .top-nav .top-add { display: none; }
  .langs a { padding: 5px 7px; font-size: 11.5px; }
  .demo { margin-right: 8px; }
  .win { box-shadow: 8px 8px 0 var(--primary); }
  .win-body { height: 470px; padding: 14px 12px 16px; }
  .steps li { padding-left: 62px; }
  .steps li::before { left: 20px; }
  .others { grid-template-columns: minmax(0, 1fr); }
  .terms > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .new { animation: none; }
}
