/* ─── GOOGLE FONTS ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── LIGHT THEME (varsayılan) ───────────────────────────── */
:root {
  --bg:         #ffffff;
  --bg2:        #f8fafc;
  --bg3:        #f1f5f9;
  --border:     #e2e8f0;
  --border2:    #cbd5e1;
  --accent:     #4f46e5;
  --accent2:    #6366f1;
  --accent-lt:  #ede9fe;
  --green:      #16a34a;
  --green-lt:   #dcfce7;
  --yellow:     #d97706;
  --yellow-lt:  #fef3c7;
  --orange:     #ea580c;
  --orange-lt:  #ffedd5;
  --red:        #dc2626;
  --red-lt:     #fee2e2;
  --text:       #0f172a;
  --text2:      #1e293b;
  --muted:      #475569;
  --muted2:     #64748b;
  --muted3:     #94a3b8;
  --radius:     12px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.1);
  --font:       'Inter', 'Segoe UI', system-ui, sans-serif;
  --nav-bg:     #ffffff;
  --nav-border: #e2e8f0;
}

/* ─── DARK THEME ─────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:         #0f172a;
  --bg2:        #1e293b;
  --bg3:        #334155;
  --border:     #334155;
  --border2:    #475569;
  --accent:     #6366f1;
  --accent2:    #818cf8;
  --accent-lt:  rgba(99,102,241,.15);
  --green:      #22c55e;
  --green-lt:   rgba(34,197,94,.15);
  --yellow:     #eab308;
  --yellow-lt:  rgba(234,179,8,.15);
  --orange:     #f97316;
  --orange-lt:  rgba(249,115,22,.15);
  --red:        #ef4444;
  --red-lt:     rgba(239,68,68,.15);
  --text:       #f1f5f9;
  --text2:      #e2e8f0;
  --muted:      #94a3b8;
  --muted2:     #64748b;
  --muted3:     #475569;
  --shadow:     0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,.3);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.4);
  --nav-bg:     #1e293b;
  --nav-border: #334155;
}

/* ─── BASE ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  transition: background .3s, color .3s;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow);
  padding: 0 24px; height: 64px;
  transition: background .3s, border-color .3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; display: flex; align-items: center; gap: 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--text);
  text-decoration: none; letter-spacing: -.3px;
}
.nav-logo:hover { text-decoration: none; color: var(--accent); }
.logo-icon {
  width: 36px; height: 36px; background: var(--accent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.nav-stats { margin-left: auto; }
.stat-badge {
  background: var(--accent-lt); color: var(--accent2);
  padding: 5px 14px; border-radius: 20px; font-size: 13px;
  font-weight: 600; border: 1px solid rgba(99,102,241,.2);
}

/* Theme toggle */
.theme-toggle {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; cursor: pointer;
  font-size: 16px; color: var(--muted); transition: all .2s;
  display: flex; align-items: center;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

/* Progress bar mini (progress page navbar) */
.nav-badge { color: var(--green); font-size: 13px; margin-left: auto; font-weight: 600; }
.progress-bar-mini {
  width: 120px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .5s ease; }
.progress-pct { font-size: 13px; color: var(--muted2); font-weight: 600; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  padding: 72px 24px 64px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -20%; right: -20%; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-lt); color: var(--accent);
  border: 1px solid rgba(99,102,241,.25); padding: 6px 16px; border-radius: 24px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(34px, 5.5vw, 58px); font-weight: 800;
  line-height: 1.12; margin-bottom: 18px; letter-spacing: -.5px;
  color: var(--text);
}
.text-accent { color: var(--accent); }
.hero-subtitle {
  font-size: 17px; color: var(--muted); margin-bottom: 40px;
  line-height: 1.7; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* URL FORM */
.url-form-wrapper { margin-bottom: 28px; }
.url-form {
  display: flex; max-width: 660px; margin: 0 auto;
  background: var(--bg); border: 2px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); transition: border-color .2s, box-shadow .2s;
}
.url-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12), var(--shadow-md);
}
.url-input-wrap {
  flex: 1; display: flex; align-items: center;
  padding: 0 18px; gap: 10px;
}
.url-prefix { font-size: 20px; opacity: .5; flex-shrink: 0; }
.url-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 16px; padding: 16px 0; font-family: var(--font);
}
.url-input::placeholder { color: var(--muted3); }
.btn-analyze {
  background: var(--accent); color: #fff; border: none;
  padding: 0 28px; font-size: 15px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background .2s; font-family: var(--font);
  display: flex; align-items: center; gap: 6px;
}
.btn-analyze:hover:not(:disabled) { background: #4338ca; }
.btn-analyze:disabled { opacity: .55; cursor: not-allowed; }
.form-error { color: var(--red); font-size: 13px; margin-top: 10px; font-weight: 500; }

.loading-dots::after {
  content: '...'; animation: dots 1.2s infinite;
}
@keyframes dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }

/* FEATURE PILLS */
.feature-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pill {
  background: var(--bg3); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 20px; font-size: 13px;
  color: var(--muted2); font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}

/* TRUST BADGES */
.trust-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted2); }
.trust-item strong { color: var(--text2); font-weight: 600; }

/* ─── CHECKS SECTION ─────────────────────────────────────── */
.checks-section { padding: 80px 24px; background: var(--bg2); }
.section-title {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800;
  text-align: center; margin-bottom: 8px; letter-spacing: -.3px;
}
.section-subtitle { text-align: center; color: var(--muted); font-size: 16px; margin-bottom: 48px; }
.checks-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; max-width: 1000px; margin: 0 auto;
}
.check-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all .25s; box-shadow: var(--shadow);
}
.check-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.check-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.check-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.check-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.howto-section { padding: 80px 24px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; max-width: 900px; margin: 0 auto; position: relative;
}
.step-item { text-align: center; padding: 20px; position: relative; }
.step-num {
  width: 52px; height: 52px; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.step-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 13px; color: var(--muted); }

/* ─── BOTTOM CTA ─────────────────────────────────────────── */
.bottom-cta {
  padding: 80px 24px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  text-align: center; color: #fff;
}
.bottom-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.bottom-cta p { font-size: 17px; opacity: .85; margin-bottom: 28px; }
.btn-cta-big {
  display: inline-block; background: #fff; color: var(--accent);
  padding: 16px 40px; border-radius: var(--radius); font-size: 17px; font-weight: 800;
  transition: all .2s; box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-cta-big:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); text-decoration: none; color: var(--accent); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 32px 24px; text-align: center; color: var(--muted2); font-size: 13px;
}
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--muted2); font-size: 13px; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ─── PROGRESS PAGE ──────────────────────────────────────── */
.progress-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  height: calc(100vh - 64px);
}
@media (max-width: 768px) { .progress-layout { grid-template-columns: 1fr; height: auto; } }

.log-panel {
  background: #0d1117; border-right: 1px solid #21262d;
  overflow-y: auto; padding: 20px 24px;
  font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 13px;
}
.log-line { padding: 2px 0; line-height: 1.7; display: flex; gap: 12px; }
.log-time { color: #484f58; flex-shrink: 0; }
.log-info    .log-msg { color: #8b949e; }
.log-success .log-msg { color: #3fb950; }
.log-error   .log-msg { color: #f85149; }
.log-cursor { display: inline-block; color: #3fb950; animation: blink 1s step-end infinite; margin-top: 4px; }
@keyframes blink { 50% { opacity: 0; } }

.preview-panel { background: var(--bg2); display: flex; flex-direction: column; }
.preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--nav-bg); border-bottom: 1px solid var(--border);
}
.preview-url { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-status { font-size: 12px; color: var(--green); font-weight: 600; }
.preview-iframe { flex: 1; border: none; background: #fff; }

/* ─── CAPTURE PAGE ───────────────────────────────────────── */
.capture-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg2); padding: 24px;
}
.capture-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 44px 40px; max-width: 500px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.capture-logo {
  width: 52px; height: 52px; background: var(--accent);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 24px;
}
.capture-title { font-size: 26px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; letter-spacing: -.3px; }
.capture-subtitle { font-size: 15px; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.capture-score-preview {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.capture-score-num { font-size: 36px; font-weight: 800; line-height: 1; }
.capture-score-lbl { font-size: 13px; color: var(--muted); }

.capture-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-input {
  background: var(--bg2); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 13px 16px; color: var(--text); font-size: 15px; font-family: var(--font);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-input::placeholder { color: var(--muted3); }

.consent-group { margin: 4px 0; }
.consent-label {
  display: flex; gap: 10px; align-items: flex-start;
  cursor: pointer; font-size: 13px; color: var(--muted); line-height: 1.5;
}
.consent-label input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.consent-label .link { color: var(--accent2); }

.btn-capture {
  background: var(--accent); color: #fff; border: none;
  padding: 15px; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .2s; margin-top: 4px; font-family: var(--font);
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.btn-capture:hover:not(:disabled) { background: #4338ca; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,.4); }
.btn-capture:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.capture-note { font-size: 12px; color: var(--muted3); text-align: center; margin-top: 14px; }

.alert-error {
  background: var(--red-lt); border: 1px solid rgba(220,38,38,.25);
  color: var(--red); padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 8px; font-weight: 500;
}

/* ─── WA FIXED BUTTON ────────────────────────────────────── */
.wa-fixed {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25D366; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s; text-decoration: none;
}
.wa-fixed:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.55); }

/* ─── NAV LINKS ──────────────────────────────────────────── */
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link-item {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 8px; text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-link-item:hover { color: var(--accent); background: var(--accent-lt); text-decoration: none; }

/* ─── INTRO SECTION ──────────────────────────────────────── */
.intro-section { padding: 64px 0; background: var(--bg2); border-top: 1px solid var(--border); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.intro-text h2 { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.intro-text p { color: var(--muted); line-height: 1.7; }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.istat-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.istat-num { font-size: 32px; font-weight: 800; color: var(--accent); }
.istat-lbl { font-size: 12px; color: var(--muted2); margin-top: 4px; }

/* ─── FAQ SECTION ────────────────────────────────────────── */
.faq-section { padding: 72px 0; background: var(--bg2); border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.faq-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── FOOTER LINKS ───────────────────────────────────────── */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 12px; }
.footer-links a { font-size: 13px; color: var(--muted2); }
.footer-links a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .url-form { flex-direction: column; border-radius: var(--radius); }
  .url-input-wrap { padding: 4px 16px; }
  .btn-analyze { padding: 15px; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .capture-card { padding: 32px 24px; }
  .trust-row { flex-direction: column; align-items: center; gap: 10px; }
  .checks-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .istat-box .istat-num { font-size: 26px; }
}
