/* ==========================================================================
   NETO — netoerp.com · tasarım sistemi
   Token'lar ÜRÜNÜN kendi marka temasından (app/ui/theme.py::_NETO) alınmıştır;
   burada hiçbir renk İCAT EDİLMEZ (tek-kaynak disiplininin site karşılığı).

   ⚠ KRİTİK KONTRAST KURALI (ürün dersi 47): marka turuncusu üzerinde BEYAZ metin
     3,12:1 ile WCAG AA'dan KALIR. Turuncu zemine YALNIZ marka siyahı (--on-brand)
     metin gelir. Bu dosyada beyaz-üstü-turuncu hiçbir yerde kullanılmaz.
   ========================================================================== */

:root {
  /* Yüzeyler — kademeli (bg < surface < surface-2 < surface-3) */
  --bg:          #141414;
  --surface:     #1E1E1E;
  --surface-2:   #252525;
  --surface-3:   #2E2E2E;

  /* Metin */
  --text:        #FFFFFF;
  --text-2:      #D8D8D8;
  --text-3:      #A8A8A8;
  --text-4:      #7A7A7A;

  /* Marka */
  --brand:       #ED6B1D;
  --brand-dark:  #C4550F;
  --brand-light: #F59A5E;
  --on-brand:    #1E1E1E;   /* ⚠ turuncu zemin üzerindeki metin — BEYAZ DEĞİL */

  /* Durum renkleri (üründen) */
  --ok:          #4CC26A;
  --warn:        #F0C05B;
  --err:         #F2695C;

  /* Kenarlıklar */
  --b-subtle:   rgba(255,255,255,.10);
  --b-default:  rgba(255,255,255,.16);
  --b-strong:   rgba(255,255,255,.26);

  /* Ölçek — kısıtlı skala, ara değer üretilmez */
  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 3rem;   --s8: 4rem;  --s9: 6rem;

  --r1: 6px; --r2: 10px; --r3: 16px; --r4: 24px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,.45);
  --shadow-3: 0 24px 64px rgba(0,0,0,.55);

  /* Hareket — apple-design: kritik sönümlü varsayılan, momentumda hafif sıçrama */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in:  cubic-bezier(.64,.39,.78,0);   /* geri dönüş: ters kontrol noktaları */
  --dur-1: .18s; --dur-2: .3s; --dur-3: .45s;

  --font-display: 'Orbitron', 'Segoe UI Semibold', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;

  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Tipografi: tracking BOYUTA GÖRE (apple-design §15) ------------------ */
h1, h2, h3, h4 { color: var(--text); font-family: var(--font-display); margin: 0 0 var(--s4); }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem);   line-height: 1.04; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em;  font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem);line-height: 1.25; letter-spacing: -.01em;  font-weight: 700; }
h4 { font-size: 1.02rem; line-height: 1.35; letter-spacing: 0; font-weight: 700; }
p  { margin: 0 0 var(--s4); }
a  { color: var(--brand-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-3); }
.small { font-size: .88rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- Yerleşim ------------------------------------------------------------ */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
section { padding: var(--s9) 0; position: relative; }
.section-head { max-width: 62ch; margin-bottom: var(--s7); }

.grid { display: grid; gap: var(--s5); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---- Etiket / rozet ------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-light); margin-bottom: var(--s3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px;
}

.badge {
  display: inline-block; padding: .28em .7em; border-radius: 999px;
  font: 600 .78rem/1.4 var(--font-body);
  background: rgba(237,107,29,.14); color: var(--brand-light);
  border: 1px solid rgba(237,107,29,.32);
}

/* ---- Cetvel motifi (logodan) — bölüm ayracı ------------------------------ */
.ruler {
  height: 14px; width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--brand) 0 2px, transparent 2px 22px);
  opacity: .5; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

/* ---- Üst çubuk: translucent katman (apple-design §12) -------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,20,20,.72);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--b-subtle);
}
.nav-in { display: flex; align-items: center; gap: var(--s5); height: 66px; }
.nav-logo { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: var(--s5); margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: .4rem 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-1) var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---- Düğmeler ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: .78rem 1.4rem; border-radius: var(--r2);
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.btn-primary { background: var(--brand); color: var(--on-brand); }  /* ⚠ siyah metin */
.btn-primary:hover { background: var(--brand-light); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--b-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--text); background: rgba(237,107,29,.08); }
/* Geri bildirim BASILDIĞI AN (apple-design §1) — bırakışta değil */
.btn:active { transform: scale(.975); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-light); outline-offset: 3px; border-radius: var(--r1);
}

/* ---- Kart ---------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--b-subtle);
  border-radius: var(--r3); padding: var(--s5);
  transition: transform var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.card-hover:hover { transform: translateY(-4px); border-color: var(--b-strong); box-shadow: var(--shadow-2); }
.card h3 { margin-bottom: var(--s2); }
.card p:last-child { margin-bottom: 0; }

.card-num {
  font: 800 .95rem/1 var(--font-display); color: var(--on-brand);
  background: var(--brand); width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s3);
}

/* ---- Ekran okuyucuya özel ------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: var(--s9) 0 var(--s8); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 40% 40% -20%;
  background: radial-gradient(closest-side, rgba(237,107,29,.16), transparent 72%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; gap: var(--s7); }
.hero-copy { max-width: 62ch; }
.hero h1 span { color: var(--brand); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-note { margin-top: var(--s5); font-size: .9rem; color: var(--text-4); }

/* ---- Ekran görüntüsü çerçevesi ------------------------------------------ */
.shot {
  border-radius: var(--r3); overflow: hidden; border: 1px solid var(--b-default);
  background: var(--surface-2); box-shadow: var(--shadow-3);
}
.shot img { width: 100%; height: auto; display: block; }
.shot-bar {
  display: flex; align-items: center; gap: 7px; padding: .6rem .85rem;
  background: var(--surface-3); border-bottom: 1px solid var(--b-subtle);
}
.shot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--b-strong); }
.shot-title { margin-left: var(--s2); font: 600 .8rem/1 var(--font-body); color: var(--text-3); }
.shot-cap { margin-top: var(--s3); font-size: .88rem; color: var(--text-3); }

.shot-block { display: grid; gap: var(--s4); }
.shot-block .shot-text { max-width: 78ch; }

/* ---- İstatistik ---------------------------------------------------------- */
.stat { text-align: left; }
.stat-v {
  font: 800 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--font-display);
  color: var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stat-l { color: var(--text-3); font-size: .9rem; margin-top: var(--s2); }

/* ---- Hesap örneği tablosu ------------------------------------------------ */
.tbl-wrap { overflow-x: auto; border-radius: var(--r2); border: 1px solid var(--b-subtle); }
table.calc { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
table.calc th, table.calc td { padding: .72rem .9rem; text-align: right; border-bottom: 1px solid var(--b-subtle); }
table.calc th:first-child, table.calc td:first-child { text-align: left; }
table.calc thead th { background: var(--surface-2); color: var(--text); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .06em; }
table.calc tbody tr:hover { background: rgba(255,255,255,.03); }
table.calc td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
table.calc tfoot td { background: var(--surface-2); font-weight: 700; color: var(--text); border-bottom: none; }
.hl { color: var(--brand-light); font-weight: 700; }

/* ---- Adım listesi -------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--s4); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); align-items: start; }
.step-n {
  counter-increment: step; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--b-default);
  display: grid; place-items: center; color: var(--brand);
  font: 800 1rem/1 var(--font-display);
}
.step-n::before { content: counter(step); }
.step h4 { margin-bottom: var(--s1); }
.step p { margin-bottom: 0; color: var(--text-3); font-size: .95rem; }

/* ---- SSS ----------------------------------------------------------------- */
details.faq {
  border: 1px solid var(--b-subtle); border-radius: var(--r2);
  background: var(--surface); padding: 0 var(--s5); margin-bottom: var(--s3);
}
details.faq summary {
  cursor: pointer; padding: var(--s4) 0; font-weight: 600; color: var(--text);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; color: var(--brand); font: 700 1.3rem/1 var(--font-display); flex: none;
  transition: transform var(--dur-2) var(--ease-out);
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--text-3); padding-bottom: var(--s4); margin: 0; }

/* ---- Form ---------------------------------------------------------------- */
.form { display: grid; gap: var(--s4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s2); }
.field label { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--brand); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .95rem; border-radius: var(--r2);
  background: var(--surface-2); border: 1px solid var(--b-default);
  color: var(--text); font: 400 .97rem/1.5 var(--font-body);
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); background: var(--surface-3);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .84rem; color: var(--text-4); }

/* ---- Alt bilgi ----------------------------------------------------------- */
.foot { border-top: 1px solid var(--b-subtle); padding: var(--s7) 0 var(--s5); background: var(--surface); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); }
@media (max-width: 780px) { .foot-in { grid-template-columns: 1fr; } }
.foot h4 { color: var(--text); font-family: var(--font-body); font-size: .84rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-4); margin-bottom: var(--s3); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.foot a { color: var(--text-3); text-decoration: none; font-size: .92rem; }
.foot a:hover { color: var(--brand-light); }
.foot-legal {
  margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--b-subtle);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-size: .85rem; color: var(--text-4);
}

/* ---- Şema (SVG) ---------------------------------------------------------- */
.diagram { width: 100%; height: auto; display: block; }
.diagram text { font-family: var(--font-body); }

/* ==========================================================================
   HAREKET — görünüme girince ortaya çık.
   apple-design §14: azaltılmış hareket "hareketsiz" demek değil; yumuşak bir
   çapraz geçiş demek. Aşağıdaki blok dönüşümü kaldırır, opaklığı korur.
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity .2s linear; }
  .card-hover:hover { transform: none; }
  .btn:active { transform: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --b-subtle: rgba(255,255,255,.34); --b-default: rgba(255,255,255,.5); --text-3: #CFCFCF; }
  .card { background: #000; }
}

/* ---- Form: honeypot · onay · durum ---------------------------------------
   ⚠ Honeypot `display:none` DEĞİL: bazı botlar gizli alanları atlar. Ekran
   dışına alınır ve ekran okuyuculardan `aria-hidden` ile saklanır. */
.hp {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}
.onay { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; }
.onay input[type="checkbox"] {
  width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer;
}
.onay label { font-size: .88rem; color: var(--text-3); line-height: 1.5; cursor: pointer; }
.form-durum {
  margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r2);
  font-size: .92rem; font-weight: 600;
}
.form-durum[data-durum="ok"]  { background: rgba(76,194,106,.12); color: var(--ok);
                                border: 1px solid rgba(76,194,106,.35); }
.form-durum[data-durum="err"] { background: rgba(242,105,92,.12); color: var(--err);
                                border: 1px solid rgba(242,105,92,.35); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
