/* ── Theme tokens ─────────────────────────────────────────────
   :root holds the DARK theme (default). [data-theme="light"] overrides.
   Toggling sets data-theme on <html>; "dark" falls back to :root.        */
:root {
  --bg: #0b1120; --bg-2: #0d1426; --border: #1e293b; --text: #e8eef8; --muted: #93a3bb;
  --brand: #60a5fa; --brand-2: #818cf8; --red: #ef4444; --amber: #f59e0b; --green: #22c55e;
  --card-bg: linear-gradient(180deg, #0f172a, #111c34);
  --hero-card-bg: linear-gradient(180deg, #0f172a, #111c34);
  --nav-bg: rgba(11,17,32,.78);
  --input-bg: #0b1120;
  --toast-bg: #0f172a;
  --btn-text: #07101f;
  --pill-bg: rgba(96,165,250,.12); --pill-border: rgba(96,165,250,.3);
  --track: #1e293b;
  --step-n-bg: rgba(96,165,250,.15);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  --hero-card-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  --hero-grad: radial-gradient(700px 340px at 70% 0%, rgba(96,165,250,.20), transparent 70%), radial-gradient(600px 300px at 20% 10%, rgba(129,140,248,.14), transparent 70%);
  --finalcta-grad: radial-gradient(700px 300px at 50% 0%, rgba(96,165,250,.16), transparent 70%);
  --radius: 16px; --maxw: 1120px;
}
[data-theme="light"] {
  --bg: #ffffff; --bg-2: #f5f8fd; --border: #e6eaf2; --text: #0f1b2d; --muted: #5b6b85;
  --brand: #2563eb; --brand-2: #6366f1; --red: #dc2626; --amber: #d97706; --green: #16a34a;
  --card-bg: #ffffff;
  --hero-card-bg: #ffffff;
  --nav-bg: rgba(255,255,255,.82);
  --input-bg: #ffffff;
  --toast-bg: #ffffff;
  --btn-text: #ffffff;
  --pill-bg: rgba(37,99,235,.08); --pill-border: rgba(37,99,235,.22);
  --track: #eef2f7;
  --step-n-bg: rgba(37,99,235,.1);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow: 0 12px 32px -14px rgba(16,24,40,.20);
  --hero-card-shadow: 0 30px 60px -30px rgba(16,24,40,.35);
  --hero-grad: radial-gradient(820px 380px at 72% -5%, rgba(37,99,235,.12), transparent 70%), radial-gradient(620px 320px at 18% 8%, rgba(99,102,241,.10), transparent 70%);
  --finalcta-grad: radial-gradient(720px 320px at 50% 0%, rgba(37,99,235,.10), transparent 70%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
code { background: var(--pill-bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .9em; color: var(--text); }

/* Smooth theme transition on surfaces (not transforms). */
body, .nav, .card, .sector, .step, .level, .feature, .hero-card, .faq details,
.price-card, .field input, .field select, .field textarea, .footer, .statbar,
.toast, .btn-ghost, .theme-toggle, .pill {
  transition: background-color .25s ease, border-color .25s ease, color .2s ease, box-shadow .25s ease;
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform .08s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: var(--btn-text); box-shadow: 0 8px 22px -8px rgba(37,99,235,.5); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-ghost { background: var(--card-bg); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.full { width: 100%; }

.nav { position: sticky; top: 0; z-index: 30; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.theme-toggle:hover { border-color: var(--brand); }

.hero { position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -200px 0 auto 0; height: 620px; pointer-events: none; background: var(--hero-grad); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.pill { display: inline-block; font-size: 13px; color: var(--brand); background: var(--pill-bg); border: 1px solid var(--pill-border); border-radius: 999px; padding: 5px 14px; margin-bottom: 20px; }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.grad { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

.hero-card { background: var(--hero-card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--hero-card-shadow); }
.hc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; }
.hc-dot.red { background: var(--red); box-shadow: 0 0 12px rgba(239,68,68,.5); }
.hc-name { font-weight: 700; }
.hc-sub { font-size: 13px; }
.hc-score { margin-left: auto; font-size: 38px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.hc-bar { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.hc-fill { height: 100%; background: linear-gradient(90deg, var(--amber), var(--red)); border-radius: 999px; }
.hc-level { color: var(--red); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.hc-factors { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.hcf { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.hcf i { display: block; height: 7px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; }
.hc-foot { font-size: 12px; border-top: 1px solid var(--border); padding-top: 12px; }

.statbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.statbar-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 28px 20px; }
.statbar-grid div { text-align: center; }
.statbar-grid strong { display: block; font-size: 28px; color: var(--brand); font-weight: 800; }
.statbar-grid span { color: var(--muted); font-size: 13px; }

.section { padding: 80px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; text-align: center; margin: 0 0 14px; font-weight: 800; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 44px; }
.section-sub.left { text-align: left; margin-left: 0; }

.sectors { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 22px; }
.sector { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s, box-shadow .2s; }
.sector:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.se-ico { font-size: 26px; margin-bottom: 10px; }
.sector h4 { margin: 0 0 4px; font-size: 16px; }
.sector p { margin: 0; color: var(--muted); font-size: 13.5px; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 40px; }
.step { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--step-n-bg); color: var(--brand); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step h4 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.levels { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.level { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; background: var(--card-bg); box-shadow: var(--shadow-sm); }
.level.red { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.07); }
.level.amber { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.07); }
.level.green { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); }
.lv-score { font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.lv-name { font-size: 22px; font-weight: 800; margin: 4px 0 6px; }
.level p { margin: 0; color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature h4 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.security { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.check { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.check li { position: relative; padding-left: 28px; color: var(--muted); }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.check strong { color: var(--text); }
.code { background: #0d1426; border: 1px solid #1e293b; border-radius: var(--radius); padding: 22px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; line-height: 1.7; overflow-x: auto; color: #cbd5e1; box-shadow: var(--shadow); }
.c-kw { color: #c084fc; font-weight: 700; } .c-str { color: #6ee7b7; } .c-num { color: #fbbf24; } .c-comment { color: #64748b; } .c-dim { color: #7dd3fc; }

.price-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: var(--card-bg); border: 1px solid var(--brand); border-radius: 20px; padding: 32px; box-shadow: 0 24px 50px -28px rgba(37,99,235,.4); }
.price-label { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.price-list { display: flex; flex-direction: column; gap: 10px; }
.price-list span { position: relative; padding-left: 26px; }
.price-list span::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.price-cta { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.price-amount { font-size: 26px; font-weight: 800; line-height: 1.15; }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select { background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; color: var(--text); font-size: 15px; font-family: inherit; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.form-note { font-size: 12px; text-align: center; margin: 4px 0 0; }

/* Demo / teklif bölümü: her iki temada da sıcak krem bir bant olarak öne çıkar.
   Sol kopya metinleri krem üstünde okunur kalsın diye koyu renge sabitlenir;
   sağdaki form kartı kendi --card-bg'siyle krem zeminin üstünde durur. */
#demo.section.alt { background: #f8f2e4; border-top-color: #ece1c8; border-bottom-color: #ece1c8; }
#demo .section-title.left { color: #25303f; }
#demo .section-sub.left { color: #55617a; }
#demo .demo-copy .check li { color: #2b3647; }

.faq { max-width: 760px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: var(--card-bg); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

.finalcta { padding: 90px 0; text-align: center; background: var(--finalcta-grad); }
.finalcta h2 { font-size: 40px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.finalcta p { color: var(--muted); font-size: 18px; margin: 0 0 26px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer .muted { font-size: 14px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--toast-bg); border: 1px solid var(--border); color: var(--text); padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(34,197,94,.5); } .toast.err { border-color: rgba(239,68,68,.5); }

@media (max-width: 900px) {
  .hero-grid, .security, .demo-grid, .price-card { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .sectors, .features, .steps, .levels, .statbar-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .sectors, .features, .steps, .levels, .statbar-grid, .field-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 33px; } .section-title { font-size: 28px; }
}
