:root {
  --ink: #141210;
  --ink-soft: #4a4440;
  --paper: #ffffff;
  --bg-soft: #f7f4ef;
  --accent: #d99a2b;
  --accent-dark: #a86d17;
  --accent-soft: #fbead0;
  --line: #e9e2d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 18, 16, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: 0.3px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 16px;
}
nav.main { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 700; color: var(--ink); text-align: center; }
nav.main a:hover { color: var(--accent-dark); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 26px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  border: 2.5px solid var(--accent); background: #fff; color: var(--ink);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.btn-primary { background: #fff; color: var(--ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: transparent; }

/* ---- Hero (tam genişlik görsel panel + harita dokusu) ---- */
.hero { padding: 0; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch; min-height: 480px; }
.hero .copy { padding: 64px 32px 64px calc((100vw - 1140px) / 2 + 24px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 52px; line-height: 1.08; margin: 0 0 20px; font-weight: 900; letter-spacing: -.5px; }
.hero p.lead { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 30px; max-width: 42ch; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .art {
  position: relative; overflow: hidden; background: var(--ink);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .art .placeholder { position: relative; z-index: 2; color: #fff; font-weight: 800; font-size: 15px; background: rgba(0,0,0,.35); padding: 14px 20px; border-radius: 12px; }
.hero .art .placeholder small { display: block; font-weight: 500; color: rgba(255,255,255,.75); margin-top: 6px; }
.hero .stats { display: flex; gap: 36px; margin-top: 36px; }
.hero .stats .n { font-size: 30px; font-weight: 900; color: var(--ink); }
.hero .stats .n sup { color: var(--accent-dark); }
.hero .stats .label { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
@media (max-width: 1140px) { .hero .copy { padding-left: 24px; } }

/* ---- Value props ---- */
.values { padding: 48px 0; background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--accent-dark); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { font-size: 30px; margin: 10px 0 12px; font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 17.5px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---- About ---- */
.about { padding: 72px 0; }
.about .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about .art { border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); min-height: 240px; display: flex; align-items: center; justify-content: center; }
.about h2 { font-size: 28px; margin: 0 0 16px; font-weight: 800; }
.about p { color: var(--ink-soft); margin: 0 0 14px; }

/* ---- B2B portal CTA ---- */
.portal { padding: 64px 0; background: linear-gradient(135deg, var(--ink), #16303a); color: #fff; border-radius: 28px; margin: 0 24px; }
.portal .wrap { max-width: 1000px; }
.portal .grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.portal .tag { display: inline-block; background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; margin-bottom: 14px; }
.portal h2 { font-size: 28px; margin: 0 0 12px; font-weight: 800; }
.portal p { color: rgba(255,255,255,.78); margin: 0 0 22px; }
.portal .panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px; text-align: center; }
.portal .panel .btn-primary { width: 100%; }
.portal .panel small { display: block; margin-top: 12px; color: rgba(255,255,255,.6); }

/* ---- Dealer application ---- */
.apply { padding: 72px 0; }
.apply .box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.apply h2 { font-size: 24px; margin: 0 0 8px; font-weight: 800; }
.apply p { margin: 0; color: var(--ink-soft); }

/* ---- Contact ---- */
.contact { padding: 56px 0 72px; }
.contact .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact .item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact .item .label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-dark); margin-bottom: 8px; }
.contact .item .value { font-size: 15.5px; color: var(--ink); }
.contact .note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); }

/* ---- Footer ---- */
footer.site { border-top: 1px solid var(--line); padding: 28px 0; color: var(--ink-soft); font-size: 13.5px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; min-height: 0; }
  .hero .art { min-height: 220px; }
  .hero .copy { padding: 40px 24px; }
  .about .grid, .portal .grid { grid-template-columns: 1fr; }
  .cards, .contact .grid { grid-template-columns: 1fr; }
  .apply .box { grid-template-columns: 1fr; text-align: center; }
  nav.main { display: none; }
  .hero h1 { font-size: 36px; }
  .hero .stats { gap: 24px; }
  .portal { margin: 0 12px; border-radius: 20px; }
}

/* ---- Auth pages ---- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); padding: 24px; }
.auth-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.auth-card .logo { justify-content: center; margin-bottom: 18px; }
.auth-card h1 { font-size: 19px; text-align: center; margin: 0 0 6px; }
.auth-card .sub { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin: 0 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); }
.field input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-card .btn-primary { width: 100%; margin-top: 6px; }
.auth-error { background: #fdecec; color: #b42318; border: 1px solid #f6c4c0; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 16px; display: none; }
.auth-error.show { display: block; }
.demo-hint { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--ink-soft); background: var(--accent-soft); border-radius: 10px; padding: 10px; }
.back-link { display: block; text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--accent-dark); font-weight: 600; }

/* ---- Panel (post-login placeholder) ---- */
.panel-shell { min-height: 100vh; background: var(--bg-soft); }
.panel-top { background: #fff; border-bottom: 1px solid var(--line); }
.panel-top .bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.panel-body { max-width: 900px; margin: 48px auto; padding: 0 24px; }
.empty-state {
  background: #fff; border: 1px dashed var(--line); border-radius: 20px;
  padding: 56px 32px; text-align: center; color: var(--ink-soft);
}
.empty-state .icon { font-size: 34px; margin-bottom: 14px; }
.empty-state h2 { color: var(--ink); margin: 0 0 8px; font-size: 20px; }

/* ---- Data pages (ürünler / cariler demo listeleri) ---- */
.data-page { max-width: 1100px; margin: 36px auto 64px; padding: 0 24px; }
.data-page .head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.data-page h1 { font-size: 22px; margin: 0; }
.data-page .demo-banner {
  background: var(--accent-soft); color: var(--accent-dark); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.search-box { margin-bottom: 14px; }
.search-box input { width: 100%; max-width: 320px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; background: var(--bg-soft); color: var(--ink-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--bg-soft); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.ok { background: #e3f6ea; color: #1a7f4a; }
.pill.warn { background: #fdecec; color: #b42318; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-footer { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
