/* ==============================================
   SANATIFY – Custom Design System
   Datei: django/static/core/custom.css
   ============================================== */

/* --- CSS Variables (Design Tokens) --- */
:root {
  --teal: #0098b5;
  --teal-dark: #007b8e;
  --teal-glow: rgba(0, 152, 181, 0.15);
  --bg: #000300;
  --bg-card: #090f0e;
  --border: rgba(255, 255, 255, 0.07);
}

/* --- Typography --- */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, h4,
.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Noise texture overlay (depth & atmosphere) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- Animated gradient text --- */
.grad-text {
  background: linear-gradient(135deg, var(--teal) 0%, #10b981 50%, var(--teal) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-shift 4s linear infinite;
}

@keyframes grad-shift {
  to { background-position: 200% center; }
}

/* --- Ambient orbs --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.orb-teal {
  background: var(--teal);
  animation: pulse-orb 8s ease-in-out infinite;
}

.orb-green {
  background: #10b981;
  animation: pulse-orb2 8s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes pulse-orb {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%       { opacity: 0.22; transform: scale(1.08); }
}

@keyframes pulse-orb2 {
  0%, 100% { opacity: 0.08; }
  50%       { opacity: 0.15; }
}

/* --- Badge (pill label) --- */
.sn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 152, 181, 0.08);
  border: 1px solid rgba(0, 152, 181, 0.25);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.sn-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* --- Cards --- */
.sn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.sn-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 152, 181, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none; /* verhindert dass das Pseudo-Element Klicks blockiert */
}

.sn-card::after {
  pointer-events: none; /* gilt auch für ::after (z.B. sn-card--live top border) */
}

.sn-card:hover {
  border-color: rgba(0, 152, 181, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0, 152, 181, 0.08);
}

.sn-card:hover::before {
  opacity: 1;
}

/* Live card: teal top border line */
.sn-card--live {
  border-color: rgba(0, 152, 181, 0.25);
}

.sn-card--live::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

/* Ghost / dashed card */
.sn-card--ghost {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
}

.sn-card--ghost:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: none;
  box-shadow: none;
}

/* --- Feature icon --- */
.sn-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 152, 181, 0.1);
  border: 1px solid rgba(0, 152, 181, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.sn-card:hover .sn-icon {
  background: rgba(0, 152, 181, 0.18);
  transform: scale(1.05);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(0, 152, 181, 0.25);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(0, 152, 181, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Section divider --- */
.sn-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* --- Scroll fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Checklist item --- */
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #94a3b8;
}

.check-dot {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Horizontal accent rule --- */
.h-rule {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: 2px;
}

/* --- Section label (eyebrow text) --- */
.sn-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
}

/* --- Stat number --- */
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}