/* m4chanical.com — site stili
   Renkler GES dashboard temasıyla (.streamlit/config.toml, app.py THEME) uyumludur. */

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-alt: #0e1628;
  --surface: #111a2e;
  --surface-2: #16223b;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #e6edf7;
  --muted: #9aa9c1;
  --accent: #f5b301;
  --accent-hover: #ffc629;
  --accent-ink: #0b1220;
  --ok: #22c55e;
  --warn: #f97316;
  --crit: #ef4444;
  --info: #38bdf8;
  --pilot: #a78bfa;
  --service: #2dd4bf;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 650; }
h3, .h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #c8d3e4; max-width: 62ch; }
.lead-sm { font-size: 1.05rem; color: #c8d3e4; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow-brand { text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }

/* ---------- Logo ---------- */
.logo { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.logo:hover { color: var(--text); }
.logo-word { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo-4 {
  font-family: var(--mono); color: var(--accent);
  display: inline-block; padding: 0 1px; transform: translateY(-1px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Status badges ---------- */
.status {
  --c: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px; border-radius: 999px; font: 600 .74rem/1.4 var(--font);
  letter-spacing: .02em; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  white-space: nowrap;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.st-active { --c: var(--ok); }
.st-early { --c: var(--info); }
.st-pilot { --c: var(--pilot); }
.st-soon { --c: #b4c0d3; }
.st-service { --c: var(--service); }
.pill { display: inline-block; padding: 1px 8px; margin-left: 4px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; color: var(--accent); border: 1px solid rgba(245, 179, 1, .5); background: rgba(245, 179, 1, .12); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .86); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 16px; }
.nav-list { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px;
  color: #cbd5e4; text-decoration: none; font: 500 .95rem/1.2 var(--font);
  background: none; border: 0; cursor: pointer;
}
.nav-link svg { width: 14px; height: 14px; transition: transform .15s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-lang { font: 600 .82rem/1 var(--mono); color: var(--muted); text-decoration: none; padding: 8px; border-radius: 6px; }
.nav-lang:hover { color: var(--text); }

.has-menu { position: relative; }
.nav-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; width: min(560px, 90vw);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px;
}
.nav-menu.is-open { display: block; }
.nav-menu ul { display: grid; gap: 2px; }
.nav-menu a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 10px;
  color: var(--text); text-decoration: none;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--surface-2); }
.nav-menu-name { font-weight: 650; }
.nav-menu-desc { grid-column: 1 / -1; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.nav-menu-foot a { display: block; color: var(--accent); font-weight: 600; font-size: .9rem; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  /* backdrop-filter, sabit konumlu menü için kapsayıcı blok oluşturur; mobilde kapat */
  .site-header { backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: fixed; inset: 68px 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px;
    background: var(--bg); overflow-y: auto; border-top: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; margin: 0; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .nav-menu { position: static; width: 100%; box-shadow: none; margin: 4px 0 8px; }
  .nav-actions { flex-direction: column; align-items: stretch; margin: 20px 0 0; gap: 10px; }
  .nav-actions .btn { min-height: 48px; }
  .nav-lang { align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 24px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 2rem; }

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
  background:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(1000px 500px at 85% -10%, #15233f 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 400px at 90% -20%, #15233f 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-form { align-items: start; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }

@media (max-width: 1099px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 22ch; }
}
@media (max-width: 899px) {
  .split, .split-form, .two-col { grid-template-columns: 1fr; }
}

/* ---------- Screenshot ---------- */
.shot { margin: 0; }
.shot-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(148,163,184,.3); }
.shot-bar code { margin-left: 10px; font-size: .74rem; color: var(--muted); }
.shot figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 16px; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) { .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .card-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .card-grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.card p { color: #c3cedf; font-size: .95rem; }
.card > :last-child { margin-bottom: 0; }
.card .text-link, .card-more { margin-top: auto; padding-top: 8px; }
.card-dashed { border-style: dashed; background: transparent; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-code { font-size: .75rem; letter-spacing: .1em; color: var(--muted); }
.card-more { color: var(--accent); font-weight: 600; font-size: .9rem; }
.product-card { transition: border-color .15s, transform .15s; }
.product-card:hover, .product-card:focus-within { border-color: rgba(245,179,1,.5); transform: translateY(-2px); }
.card-link { color: var(--text); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.feature-card h3 { font-size: 1.02rem; }

.plan-card { gap: 8px; }
.plan-card .btn { margin-top: auto; }
.plan-card .check-list { margin: 8px 0 20px; }
.plan-card-hl { border-color: rgba(245,179,1,.45); }
.plans { margin-bottom: 1.4rem; }

/* ---------- Lists ---------- */
.check-list, .dot-list, .dash-list { display: grid; gap: 10px; margin: 1rem 0; }
.check-list li, .dot-list li, .dash-list li { position: relative; padding-left: 28px; color: #c8d3e4; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.dot-list li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.dash-list li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 12px; height: 2px; background: var(--muted); }
.status-table { display: grid; gap: 8px; }
.status-table li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }

/* ---------- How it works ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.flow-step { position: relative; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -17px; width: 18px; height: 2px; background: var(--accent); z-index: 1;
}
.flow-tag { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; color: var(--accent); border: 1px solid rgba(245,179,1,.45); background: rgba(245,179,1,.08); font-weight: 700; }
.flow-step p { color: #c3cedf; font-size: .95rem; }
.flow-meta { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-size: .78rem; color: var(--muted); }
@media (max-width: 1023px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(2)::after { display: none; }
}
@media (max-width: 599px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { display: block; top: auto; bottom: -17px; left: 41px; right: auto; width: 2px; height: 18px; }
}

/* ---------- Resources ---------- */
.toc ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .88rem; }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.term { padding: 28px 0; border-bottom: 1px solid var(--border); }
.term:first-child { padding-top: 0; }
.term p { color: #c8d3e4; }
.formula { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); overflow-x: auto; font-size: .9rem; color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid rgba(245,179,1,.35); background: rgba(245,179,1,.06); }
.cta-band p { margin: 0; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 1.4rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-body { padding: 0 18px 16px; color: #c8d3e4; }
.faq-body p { margin: 0; }

/* ---------- Form ---------- */
.form { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.hint { color: var(--muted); font-weight: 400; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: 400 1rem/1.4 var(--font);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #7e8ca3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,179,1,.2); }
.field [aria-invalid="true"] { border-color: var(--crit); }
.field-err { margin: 0; min-height: 0; font-size: .84rem; color: #fca5a5; }
.field-err:empty { display: none; }
.field-check { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; font-size: .9rem; color: #c8d3e4; }
.field-check .field-err { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.form-req { margin: 0; font-size: .82rem; color: var(--muted); }
.form-status { margin-top: 16px; }
.form-status:focus { outline: none; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; }
.alert p { margin: 4px 0 0; }
.alert-ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.1); color: #bbf7d0; }
.alert-err { border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.1); color: #fecaca; }
.alert-warn { border-color: rgba(245,179,1,.45); background: rgba(245,179,1,.08); color: #fde68a; }
.alert a { color: inherit; font-weight: 600; }

.contact-aside .h3 { margin-top: 0; }
.contact-aside .company-dl { margin-bottom: 1.8rem; }

/* ---------- Placeholders (yayın öncesi doldurulacak) ---------- */
.todo { display: inline-block; padding: 0 6px; border: 1px dashed rgba(245,179,1,.6); border-radius: 4px; color: #fcd34d; font-size: .85em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #09101d; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-h { font: 600 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #cbd5e4; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col .mono { font-size: .75rem; }
.company-dl { display: grid; gap: 8px; margin: 16px 0 0; font-size: .9rem; }
.company-dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.company-dl-lg div { grid-template-columns: 150px 1fr; padding: 10px 0; border-bottom: 1px solid var(--border); }
.company-dl dt { color: var(--muted); }
.company-dl dd { margin: 0; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
