:root {
  --bg: #060e1c;
  --bg-alt: #0a1626;
  --surface: #0d1b30;
  --surface-2: #13253f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2f7;
  --text-dim: #9aa8bd;
  --text-faint: #626e85;
  --accent: #00b8d9;
  --accent-2: #ff7a00;
  --accent-3: #4fd6e8;
  --gradient: linear-gradient(120deg, var(--accent) 0%, #2f9fd8 50%, var(--accent-2) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(0, 184, 217, 0.24), transparent 60%),
    radial-gradient(700px 500px at 90% 15%, rgba(255, 122, 0, 0.14), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(47, 159, 216, 0.12), transparent 60%),
    var(--bg);
}

.accent { color: var(--accent); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--gradient);
  color: #04101f;
  box-shadow: 0 10px 30px -8px rgba(0, 184, 217, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(0, 184, 217, 0.7); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 14, 28, 0.65);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-img { height: 34px; width: auto; }
.footer-logo-img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.09); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Account links (Kullanıcı Girişi / Yönetici Paneli) live in .header-actions on
   desktop; on mobile that row is already tight (lang toggle + CTA + burger),
   so the same links reappear inside the .main-nav burger dropdown instead. */
@media (min-width: 981px) {
  .main-nav .nav-account-link { display: none; }
}
@media (max-width: 980px) {
  .header-actions .nav-account-link { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 60px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 620px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 184, 217, 0.1);
  border: 1px solid rgba(0, 184, 217, 0.3);
  font-size: 0.82rem;
  color: #b9eef8;
  margin-bottom: 26px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 184, 217, 0.18);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 700;
}
.hero h1 span { display: inline; }

.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 0 34px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-pillar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.hero-pillar strong { color: var(--text); font-weight: 600; }

.hero-visual { position: relative; }
.hero-visual-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Logo strip ---------- */
.logo-strip { padding: 30px 0 70px; }
.logo-strip-label {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  color: var(--text-faint);
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 0.7;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 15%, rgba(255,255,255,0.02) 85%, transparent); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head p { color: var(--text-dim); font-size: 1.02rem; }

/* ---------- Cards / services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 184, 217, 0.35);
  background: var(--surface-2);
}
.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(0, 184, 217, 0.12);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.card p { color: var(--text-dim); font-size: 0.94rem; margin: 0; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
}
.process-num {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
  display: block;
  margin-bottom: 10px;
}
.process-step h3 { font-size: 1.02rem; margin: 0 0 8px; }
.process-step p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.why-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 14px 0 16px; letter-spacing: -0.02em; }
.why-copy > p { color: var(--text-dim); margin-bottom: 30px; }
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0, 184, 217, 0.15);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}
.why-list strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.why-list p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
.why-inline-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
.why-inline-link:hover { text-decoration: underline; }

.glass-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.panel-row strong { color: var(--text); font-weight: 600; }
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.tag-live { background: rgba(0, 184, 217, 0.15); color: var(--accent); }
.tag-progress { background: rgba(255, 122, 0, 0.15); color: var(--accent-2); }
.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.panel-metric { font-size: 1.3rem; font-weight: 800; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-card p { color: var(--text); font-size: 0.96rem; margin: 0 0 24px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #04101f;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-person strong { display: block; font-size: 0.92rem; }
.testi-person span { color: var(--text-faint); font-size: 0.8rem; }

.testi-placeholder {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--text-dim);
}
.testi-placeholder-icon { font-size: 1.8rem; margin-bottom: 14px; }

/* ---------- AI Agents (age brackets) ---------- */
.age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.age-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.age-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 184, 217, 0.35);
  background: var(--surface-2);
}
.age-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: #04101f;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.age-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.age-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 16px; }
.age-formats { display: flex; gap: 8px; flex-wrap: wrap; }
.age-format-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- AI Automation ---------- */
.automation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.automation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.automation-card h3 { font-size: 1.2rem; margin: 0 0 12px; }
.automation-card > p { color: var(--text-dim); font-size: 0.94rem; margin: 0 0 22px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.feature-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
}
.feature-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-container { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  margin-left: 12px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-dim); font-size: 0.92rem; margin: 14px 0 0; }

/* ---------- CTA / Contact ---------- */
.cta-section { padding-bottom: 120px; }
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 14px; letter-spacing: -0.02em; }
.cta-inner > p { color: var(--text-dim); margin-bottom: 36px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }
.form-note { text-align: center; color: var(--text-faint); font-size: 0.8rem; margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-faint); font-size: 0.88rem; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 0 0 16px; }
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--text-faint);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Floating CTA (mobile) ---------- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 18px; left: 18px; right: 18px;
  z-index: 200;
  text-align: center;
  padding: 15px;
  border-radius: 999px;
  background: var(--gradient);
  color: #04101f;
  font-weight: 700;
  box-shadow: 0 10px 30px -6px rgba(124,92,255,0.6);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .age-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .automation-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .floating-cta { display: block; }
  body { padding-bottom: 80px; }
}

@media (max-width: 980px) {
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: rgba(6,7,13,0.97);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .age-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .section { padding: 70px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

/* ---------- Chat widget ---------- */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 300;
}

.chat-launcher {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--gradient);
  color: #04101f;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(0, 184, 217, 0.6);
  transition: transform 0.15s ease;
}
.chat-launcher:hover { transform: translateY(-2px) scale(1.04); }
.chat-widget.open .chat-launcher { transform: scale(0.001); position: absolute; pointer-events: none; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }

.chat-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(124,92,255,0.12), transparent);
}
.chat-panel-header strong { display: block; font-size: 0.98rem; }
.chat-panel-header span { display: block; color: var(--text-faint); font-size: 0.78rem; margin-top: 3px; }

.chat-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
}
.chat-close:hover { color: var(--text); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.chat-msg-bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--gradient);
  color: #04101f;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.chat-msg-typing {
  align-self: flex-start;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-style: italic;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); }
.chat-input-row .btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .chat-widget { right: 14px; bottom: 96px; }
  .chat-panel { width: calc(100vw - 28px); height: min(500px, calc(100vh - 180px)); }
}

/* ---------- Sub-page hero (subscriptions, stub pages) ---------- */
.page-hero { padding: 64px 0 40px; text-align: center; }
.section-tight-top { padding-top: 0; }
.page-hero .eyebrow { display: block; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); letter-spacing: -0.03em; margin: 0 0 16px; }
.page-hero p { color: var(--text-dim); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.breadcrumb-back:hover { color: var(--text-dim); }

/* ---------- Billing toggle ---------- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 36px 0 8px;
}
.billing-toggle span { font-size: 0.92rem; color: var(--text-dim); font-weight: 600; }
.billing-toggle span.active { color: var(--text); }
.billing-switch {
  position: relative;
  width: 52px; height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
}
.billing-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  transition: transform 0.2s ease;
}
.billing-switch.annual::after { transform: translateX(24px); }
.billing-discount-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.15);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
}
.billing-note { text-align: center; color: var(--text-faint); font-size: 0.82rem; margin-bottom: 48px; }

/* ---------- Plan grid ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.plan-card-featured {
  border-color: rgba(0, 184, 217, 0.5);
  background: linear-gradient(160deg, rgba(0,184,217,0.1), var(--surface) 60%);
}
.plan-badge {
  position: absolute;
  top: -12px; left: 22px;
  background: var(--gradient);
  color: #04101f;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.plan-card .plan-desc { color: var(--text-faint); font-size: 0.82rem; margin: 0 0 18px; min-height: 34px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price-amount { font-size: 1.5rem; font-weight: 800; }
.plan-price-period { color: var(--text-faint); font-size: 0.78rem; }
.plan-price-note { color: var(--accent-2); font-size: 0.74rem; font-weight: 700; margin-bottom: 18px; min-height: 16px; }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; flex: 1; }
.plan-features li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan-card-demo { border-style: dashed; }

/* ---------- Feature matrix table ---------- */
.matrix-wrap { overflow-x: auto; margin-top: 24px; }
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.88rem;
}
.matrix-table th, .matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.matrix-table th:first-child, .matrix-table td:first-child {
  text-align: left;
  color: var(--text-dim);
}
.matrix-table thead th {
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}
.matrix-table td.yes { color: var(--accent); font-weight: 700; }
.matrix-table td.no { color: var(--text-faint); }

/* ---------- Stub / simple content page ---------- */
.stub-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 100px;
}
.stub-content h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.stub-content p { color: var(--text-dim); margin: 0 0 16px; }
.stub-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 184, 217, 0.1);
  border: 1px solid rgba(0, 184, 217, 0.3);
  color: #b9eef8;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* 404 sayfasındaki yönlendirme bağlantıları */
.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
  .billing-toggle { flex-wrap: wrap; }
}

/* ---------- Content protection (deterrent only, see protection.js) ---------- */
body.protection-no-select {
  -webkit-user-select: none;
  user-select: none;
}
body.protection-no-select input,
body.protection-no-select textarea,
body.protection-no-select [contenteditable],
body.protection-no-select .protection-selectable {
  -webkit-user-select: text;
  user-select: text;
}

.protection-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 500;
}
.protection-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Auth pages (login / register / password reset / dashboards) ---------- */
.auth-shell { max-width: 460px; margin: 0 auto; padding-bottom: 100px; }
.auth-shell .contact-form { gap: 16px; }
.auth-shell .form-row { grid-template-columns: 1fr; }
.auth-step[hidden] { display: none; }

.segmented-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}
.segmented-toggle button {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: calc(var(--radius-sm) - 4px);
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.segmented-toggle button.active { background: var(--gradient); color: #04101f; }

.otp-input {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.3rem !important;
  font-weight: 700;
}

.form-message {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.86rem;
  display: none;
}
.form-message.visible { display: block; }
.form-message-error { background: rgba(255, 90, 90, 0.12); border: 1px solid rgba(255, 90, 90, 0.3); color: #ffb3b3; }
.form-message-success { background: rgba(0, 184, 217, 0.12); border: 1px solid rgba(0, 184, 217, 0.3); color: #b9eef8; }

.auth-links { display: flex; flex-direction: column; gap: 8px; text-align: center; margin-top: 4px; }
.auth-links a { color: var(--accent); font-size: 0.86rem; font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

.field-label { font-size: 0.8rem; color: var(--text-faint); font-weight: 600; margin-bottom: -6px; }

/* ---------- Dashboards (customer + admin) ---------- */
.dashboard-shell { padding-bottom: 100px; }
.dashboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.dashboard-head h1 { font-size: 1.6rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.dashboard-head p { color: var(--text-faint); margin: 0; font-size: 0.9rem; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.stat-card span { display: block; color: var(--text-faint); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.stat-card strong { font-size: 1.7rem; font-weight: 800; }

.dashboard-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.dashboard-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.dashboard-panel h2 { font-size: 1.05rem; margin: 0 0 18px; }
.dashboard-panel + .dashboard-panel { margin-top: 24px; }

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}
.status-active { background: rgba(0, 184, 217, 0.15); color: var(--accent); }
.status-suspended { background: rgba(255, 90, 90, 0.15); color: #ff9a9a; }
.status-pending_verification { background: rgba(255, 122, 0, 0.15); color: var(--accent-2); }
.status-expired { background: rgba(255, 255, 255, 0.08); color: var(--text-faint); }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-tabs button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-tabs button.active { background: var(--gradient); color: #04101f; border-color: transparent; }
.admin-panel-view[hidden] { display: none; }

.admin-toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-toolbar input, .admin-toolbar select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}
.admin-toolbar input { flex: 1; min-width: 200px; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.86rem; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table thead th { color: var(--text-faint); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.admin-table td.actions { text-align: right; white-space: nowrap; }
.admin-table .btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.admin-empty { color: var(--text-faint); font-size: 0.88rem; padding: 24px 0; text-align: center; }

.dashboard-panel-spaced { margin-bottom: 24px; }
.table-subtext { color: var(--text-faint); font-size: 0.78rem; margin: 0; }
.subscription-note { text-align: left; color: var(--text-faint); font-size: 0.8rem; margin: 0 0 14px; }

.credential-card {
  background: rgba(0, 184, 217, 0.08);
  border: 1px solid rgba(0, 184, 217, 0.3);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 0.86rem;
  margin-top: 18px;
}
.credential-card div { margin-bottom: 6px; }
.credential-card strong { color: var(--text); }

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}
