/* EnkolayDSG tanıtım sitesi — kurumsal tema
   Renkler mobil uygulamanın design token'larıyla aynı (app_colors.dart). */

:root {
  --brand: #e85d1f;
  --brand-dark: #b23d14;
  --brand-ink: #3a1708;
  --brand-light: #f57b3b;
  --brand-surface: #fdede4;
  --ink: #231512;
  --ink-2: #5c4a43;
  --ink-3: #a1928b;
  --surface: #f8f6f4;
  --line: rgba(30, 20, 15, 0.08);
  --radius: 20px;
  --shadow: 0 3px 8px rgba(30, 24, 20, 0.03), 0 12px 32px rgba(30, 24, 20, 0.06);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: -0.4px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { height: 30px; width: auto; }
.brand span { color: var(--brand); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav .btn { color: #fff; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(232, 93, 31, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(232, 93, 31, 0.34); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.btn-outline {
  background: #fff;
  color: var(--brand-dark);
  border: 1.5px solid rgba(232, 93, 31, 0.35);
  box-shadow: none;
}
.btn-outline:hover { background: var(--brand-surface); box-shadow: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 15% -10%, #6d2a10 0%, transparent 60%), linear-gradient(150deg, var(--brand-ink) 0%, #7a2f12 55%, var(--brand-dark) 100%);
  color: #fff;
  padding: 74px 0 86px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 123, 59, 0.32), transparent 65%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  font-weight: 900;
}
.hero p.lead { font-size: 17px; color: rgba(255, 255, 255, 0.86); max-width: 52ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.stats div strong { display: block; font-size: 24px; font-weight: 900; }
.stats div span { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }

/* Phone mockup */
.phone {
  width: 300px;
  margin: 0 auto;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #2a1409, #46200f);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.phone img { border-radius: 30px; }
.phone-caption { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); margin-top: 14px; }

/* ---------------- Sections ---------------- */
section { padding: 84px 0; }
.section-head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.section-head .tag { color: var(--brand); font-weight: 900; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; }
.section-head h2 { margin: 10px 0 12px; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.8px; font-weight: 900; }
.section-head p { color: var(--ink-2); margin: 0; }
.alt { background: var(--surface); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-surface);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* Screens gallery */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, 1fr); } }
.screen figure { margin: 0; }
.screen img {
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.screen figcaption { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 12px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--brand);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 800; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: 12px 0 2px; font-size: 14.5px; }

/* CTA band */
.cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: 28px;
  padding: 52px 40px;
  text-align: center;
}
.cta h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: -0.7px; }
.cta p { margin: 0 auto 26px; max-width: 56ch; color: rgba(255, 255, 255, 0.88); }
.cta .hero-actions { justify-content: center; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--brand-ink); color: rgba(255, 255, 255, 0.75); padding: 56px 0 30px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); display: block; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand span { color: var(--brand-light); }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ---------------- Legal / content pages ---------------- */
.page-hero { background: linear-gradient(140deg, var(--brand-ink), var(--brand-dark)); color: #fff; padding: 56px 0 44px; }
.page-hero h1 { margin: 8px 0 8px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -0.8px; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, 0.8); }
.doc { max-width: 820px; margin: 0 auto; padding: 56px 20px 84px; }
.doc h2 { font-size: 21px; font-weight: 900; letter-spacing: -0.4px; margin: 40px 0 12px; padding-top: 8px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 16.5px; font-weight: 800; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--surface); font-weight: 800; color: var(--ink); }
.doc .note {
  background: var(--brand-surface);
  border: 1px solid rgba(232, 93, 31, 0.25);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 22px 0;
}
.doc .note p:last-child { margin-bottom: 0; }
.doc .updated { color: var(--ink-3); font-size: 13.5px; }
.toc { background: var(--surface); border-radius: 16px; padding: 18px 22px; margin-bottom: 32px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-2); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; font-size: 14.5px; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 12px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card { text-align: center; }
.contact-grid .card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.contact-grid .card a { font-weight: 700; }
