/* 
  FlexSerpantin – Premium Design System v2.0
  Fonts: DM Sans (body) + Space Grotesk (headings)
  Theme: Deep Industrial Dark with Warm Accents
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* ── Renk Paleti ── */
  --bg-dark: #0d1321;
  --bg-darker: #080c16;
  --bg-card: #111827;
  --bg-card-hover: #1a2236;
  --bg-elevated: #151d2e;

  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.35);
  --primary-subtle: rgba(37, 99, 235, 0.08);

  --accent: #0891b2;
  --accent-light: #06b6d4;
  --accent-glow: rgba(8, 145, 178, 0.35);

  --warm: #f59e0b;
  --warm-glow: rgba(245, 158, 11, 0.30);

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.30);

  --text-main: #f1f5f9;
  --text-body: #cbd5e1;
  --text-muted: #7c8db5;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(37, 99, 235, 0.3);

  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.6);
  --shadow-glow-primary: 0 0 30px var(--primary-glow);
  --shadow-glow-warm: 0 0 30px var(--warm-glow);
  --shadow-glow-success: 0 0 25px var(--success-glow);
}

/* ── Base ── */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-body);
  line-height: 1.7;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% 40%, rgba(37, 99, 235, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(8, 145, 178, 0.05), transparent),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(245, 158, 11, 0.03), transparent);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a { text-decoration: none; }

::selection {
  background: var(--primary);
  color: white;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb {
  background: #293548;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Glass Panels ── */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.glass-nav {
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ── Card System ── */
.card-elevated {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-elevated:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-gradient {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), transparent 40%, transparent 60%, rgba(8, 145, 178, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-gradient:hover::before { opacity: 1; }
.card-gradient:hover { transform: translateY(-4px); }

/* ── Transitions ── */
.transition-all-fast { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-all-normal { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── Hover Effects ── */
.hover-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px -8px var(--primary-glow);
}

/* ── Gradient Text ── */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow Effects ── */
.text-glow { text-shadow: 0 0 25px var(--primary-glow); }
.text-glow-accent { text-shadow: 0 0 25px var(--accent-glow); }
.box-glow { box-shadow: var(--shadow-glow-primary); }
.box-glow-accent { box-shadow: 0 0 25px var(--accent-glow); }
.box-glow-success { box-shadow: var(--shadow-glow-success); }

/* ── Section Divider ── */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), var(--accent-glow), var(--border-accent), transparent);
}

/* ── Badge Pulse ── */
.badge-pulse {
  position: relative;
}
.badge-pulse::after {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

/* ── Stat Counter ── */
.stat-counter {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-counter .stat-number {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-counter .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Timeline Steps ── */
.timeline-step {
  position: relative;
  padding-left: 4rem;
  padding-bottom: 2.5rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), transparent);
}

.timeline-step:last-child::before { display: none; }

.timeline-step .step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  box-shadow: var(--shadow-glow-primary);
}

.timeline-step h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.timeline-step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Floating CTA (WhatsApp) ── */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: float-bounce 3s ease-in-out infinite;
}

.floating-cta:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Offset BG (Hero Image) ── */
.offset-bg {
  position: relative;
}
.offset-bg::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  right: -12px; bottom: -12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(8, 145, 178, 0.08));
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ── Accordion (Details/Summary) ── */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * {
  animation: sweep 0.4s ease-out;
}
@keyframes sweep {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Prose (Rehber Article Content) ── */
.prose h2 {
  font-size: 1.625rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-subtle);
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.prose ul {
  padding-left: 1.5rem;
}

.prose ul li {
  margin-bottom: 0.75rem;
  color: var(--text-body);
}

.prose strong {
  color: var(--text-main);
}

/* ── Trust Bar ── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item i {
  font-size: 1.125rem;
}

/* ── Animated Counter (JS driven) ── */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* ── Comparison Table ── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th {
  background: rgba(37, 99, 235, 0.1);
  color: var(--text-main);
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--primary);
}

.comparison-table td {
  padding: 0.875rem 1.25rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Brand Grid ── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.brand-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.brand-item:hover {
  background: var(--primary-subtle);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

/* ── Responsive Helpers ── */
@media (max-width: 768px) {
  .stat-counter .stat-number { font-size: 2rem; }
  .timeline-step { padding-left: 3rem; }
  .floating-cta { width: 52px; height: 52px; font-size: 1.5rem; bottom: 20px; right: 20px; }
}
