/* ═══════════════════════════════════════════════════════════════
   FEA Design System — Tokens, Temalar, Animasyon, Atmosfer
   ═══════════════════════════════════════════════════════════════ */

/* ——— Temel tokenlar ——— */
:root {
  /* Tipografi aileleri — okunaklılık öncelikli */
  --ds-font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --ds-font-body: "Inter", system-ui, sans-serif;
  --ds-font-editorial: "Fraunces", Georgia, serif;
  --ds-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ds-font-clinical: "Inter", system-ui, sans-serif;

  /* Ölçek */
  --ds-space-xs: 0.25rem;
  --ds-space-sm: 0.5rem;
  --ds-space-md: 1rem;
  --ds-space-lg: 1.5rem;
  --ds-space-xl: 2.5rem;
  --ds-space-2xl: 4rem;
  --ds-space-3xl: 6rem;

  --ds-radius-sm: 8px;
  --ds-radius-md: 14px;
  --ds-radius-lg: 22px;
  --ds-radius-pill: 999px;

  --ds-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --ds-shadow-md: 0 12px 40px rgba(0, 0, 0, 0.12);
  --ds-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.18);

  --ds-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ds-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ds-duration-fast: 180ms;
  --ds-duration-base: 320ms;
  --ds-duration-slow: 600ms;

  /* Varsayılan (Bold & Energetic) */
  --ds-bg: #0a0a0f;
  --ds-bg-elevated: #14141f;
  --ds-bg-surface: #ffffff;
  --ds-bg-muted: #f4f4f8;
  --ds-text: #f8fafc;
  --ds-text-muted: #94a3b8;
  --ds-text-inverse: #0f172a;
  --ds-text-subtle: #64748b;
  --ds-accent: #ff4d00;
  --ds-accent-hover: #e64500;
  --ds-accent-soft: rgba(255, 77, 0, 0.14);
  --ds-secondary: #00d4aa;
  --ds-secondary-soft: rgba(0, 212, 170, 0.12);
  --ds-border: rgba(255, 255, 255, 0.1);
  --ds-border-strong: rgba(255, 255, 255, 0.2);
  --ds-glass: rgba(255, 255, 255, 0.06);
  --ds-glass-border: rgba(255, 255, 255, 0.12);
  --ds-gradient-hero: linear-gradient(145deg, #0a0a0f 0%, #1a1035 45%, #0d2137 100%);
  --ds-gradient-accent: linear-gradient(135deg, #ff4d00 0%, #ff8a00 100%);
  --ds-gradient-cta: linear-gradient(135deg, #ff4d00 0%, #ff6b2b 50%, #ff4d00 100%);
  --ds-atmo-color-1: rgba(255, 77, 0, 0.35);
  --ds-atmo-color-2: rgba(0, 212, 170, 0.25);
}

/* ——— 1. Dark & Precision ——— */
[data-ds-theme="dark-precision"] {
  --ds-font-display: "IBM Plex Mono", ui-monospace, monospace;
  --ds-font-body: "DM Sans", system-ui, sans-serif;
  --ds-bg: #08080c;
  --ds-bg-elevated: #111118;
  --ds-bg-surface: #16161f;
  --ds-bg-muted: #1c1c28;
  --ds-text: #e8eaed;
  --ds-text-muted: #8b92a0;
  --ds-text-inverse: #e8eaed;
  --ds-accent: #3b82f6;
  --ds-accent-hover: #2563eb;
  --ds-accent-soft: rgba(59, 130, 246, 0.15);
  --ds-secondary: #22d3ee;
  --ds-gradient-hero: linear-gradient(160deg, #08080c 0%, #0f172a 100%);
  --ds-gradient-accent: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --ds-atmo-color-1: rgba(59, 130, 246, 0.2);
  --ds-atmo-color-2: rgba(34, 211, 238, 0.12);
}

/* ——— 2. Warm Editorial ——— */
[data-ds-theme="warm-editorial"] {
  --ds-font-display: "Fraunces", Georgia, serif;
  --ds-font-body: "DM Sans", system-ui, sans-serif;
  --ds-bg: #faf6f1;
  --ds-bg-elevated: #fffdf9;
  --ds-bg-surface: #ffffff;
  --ds-bg-muted: #f0ebe3;
  --ds-text: #2c2417;
  --ds-text-muted: #6b5d4d;
  --ds-text-inverse: #2c2417;
  --ds-accent: #c45c26;
  --ds-accent-hover: #a34a1e;
  --ds-accent-soft: rgba(196, 92, 38, 0.12);
  --ds-secondary: #5c7c5c;
  --ds-border: rgba(44, 36, 23, 0.1);
  --ds-gradient-hero: linear-gradient(180deg, #faf6f1 0%, #f0ebe3 100%);
  --ds-gradient-accent: linear-gradient(135deg, #c45c26 0%, #e07b3c 100%);
  --ds-atmo-color-1: rgba(196, 92, 38, 0.15);
  --ds-atmo-color-2: rgba(92, 124, 92, 0.1);
}

/* ——— 3. Clinical Minimal ——— */
[data-ds-theme="clinical-minimal"] {
  --ds-font-display: "Inter", system-ui, sans-serif;
  --ds-font-body: "Inter", system-ui, sans-serif;
  --ds-bg: #ffffff;
  --ds-bg-elevated: #f8fafc;
  --ds-bg-surface: #ffffff;
  --ds-bg-muted: #f1f5f9;
  --ds-text: #0f172a;
  --ds-text-muted: #64748b;
  --ds-text-inverse: #0f172a;
  --ds-accent: #0ea5e9;
  --ds-accent-hover: #0284c7;
  --ds-accent-soft: rgba(14, 165, 233, 0.1);
  --ds-secondary: #10b981;
  --ds-border: #e2e8f0;
  --ds-glass: rgba(255, 255, 255, 0.9);
  --ds-gradient-hero: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --ds-gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  --ds-atmo-color-1: rgba(14, 165, 233, 0.08);
  --ds-atmo-color-2: rgba(16, 185, 129, 0.06);
}

/* ——— 4. Bold & Energetic (varsayılan) ——— */
[data-ds-theme="bold"] {
  /* :root değerleri kullanılır */
}

/* ——— 5. Luxury Refined ——— */
[data-ds-theme="luxury"] {
  --ds-font-display: "Fraunces", Georgia, serif;
  --ds-font-body: "DM Sans", system-ui, sans-serif;
  --ds-bg: #0c0b09;
  --ds-bg-elevated: #161412;
  --ds-bg-surface: #1e1c19;
  --ds-bg-muted: #242220;
  --ds-text: #f5f0e8;
  --ds-text-muted: #a89f92;
  --ds-text-inverse: #f5f0e8;
  --ds-accent: #c9a962;
  --ds-accent-hover: #b8944f;
  --ds-accent-soft: rgba(201, 169, 98, 0.12);
  --ds-secondary: #8b7355;
  --ds-gradient-hero: linear-gradient(165deg, #0c0b09 0%, #1a1714 50%, #0f0e0c 100%);
  --ds-gradient-accent: linear-gradient(135deg, #c9a962 0%, #e8d5a3 100%);
  --ds-atmo-color-1: rgba(201, 169, 98, 0.15);
  --ds-atmo-color-2: rgba(139, 115, 85, 0.1);
}

/* ——— Animasyon şablonları ——— */
@keyframes ds-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ds-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ds-scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ds-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes ds-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--ds-accent-soft); }
  50%      { box-shadow: 0 0 24px 4px var(--ds-accent-soft); }
}

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

@keyframes ds-spin {
  to { transform: rotate(360deg); }
}

.ds-animate-fade-up {
  animation: ds-fade-up var(--ds-duration-slow) var(--ds-ease-out) both;
}

.ds-animate-fade-in {
  animation: ds-fade-in var(--ds-duration-base) var(--ds-ease-out) both;
}

.ds-animate-scale-in {
  animation: ds-scale-in var(--ds-duration-base) var(--ds-ease-spring) both;
}

.ds-delay-1 { animation-delay: 80ms; }
.ds-delay-2 { animation-delay: 160ms; }
.ds-delay-3 { animation-delay: 240ms; }
.ds-delay-4 { animation-delay: 320ms; }

/* ——— Atmosferik arka planlar ——— */
.ds-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ds-atmo--grid {
  background-image:
    linear-gradient(var(--ds-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--ds-border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.ds-atmo--orbs::before,
.ds-atmo--orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ds-atmo--orbs::before {
  width: 420px;
  height: 420px;
  top: -10%;
  right: -5%;
  background: var(--ds-atmo-color-1);
}

.ds-atmo--orbs::after {
  width: 320px;
  height: 320px;
  bottom: 5%;
  left: -8%;
  background: var(--ds-atmo-color-2);
}

.ds-atmo--noise {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ——— CTA shimmer ——— */
.ds-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--ds-duration-fast) var(--ds-ease-out),
    box-shadow var(--ds-duration-fast);
}

.ds-cta:hover {
  transform: translateY(-2px);
}

.ds-cta--primary {
  background: var(--ds-gradient-accent);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(255, 77, 0, 0.35);
}

.ds-cta--shimmer {
  position: relative;
  overflow: hidden;
  background: var(--ds-gradient-cta);
  background-size: 200% auto;
  color: #ffffff;
  animation: ds-shimmer 3s linear infinite;
  box-shadow: 0 8px 32px rgba(255, 77, 0, 0.4);
}

.ds-cta--ghost {
  background: var(--ds-glass);
  color: var(--ds-text);
  border: 1px solid var(--ds-glass-border);
  backdrop-filter: blur(12px);
}

.ds-cta--outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.ds-cta--secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.ds-cta--whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* ——— Layout primitives ——— */
.ds-section {
  position: relative;
  padding: var(--ds-space-2xl) 0;
}

.ds-container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.ds-eyebrow {
  display: inline-block;
  font-family: var(--ds-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-accent);
  margin-bottom: var(--ds-space-md);
}

.ds-section-title {
  font-family: var(--ds-font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ds-text-inverse);
  margin: 0 0 var(--ds-space-md);
}

.ds-section-lead {
  font-family: var(--ds-font-body);
  font-size: 1.05rem;
  color: var(--ds-text-subtle);
  line-height: 1.65;
  margin: 0;
  max-width: 52ch;
}

@media (prefers-reduced-motion: reduce) {
  .ds-animate-fade-up,
  .ds-animate-fade-in,
  .ds-animate-scale-in,
  .ds-cta--shimmer {
    animation: none;
  }
}
