/* ============================================
   Feature Detail Pages — Shared CSS v1
   ============================================ */

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

:root {
  --bg-primary: #0a0e1a;
  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #5a6380;
  --accent-amber: #f59e0b;
  --accent-warm: #ef4444;
  --accent-gradient: linear-gradient(135deg, #f59e0b, #ef4444);
  --border-subtle: rgba(255, 255, 255, 0.06);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(245, 158, 11, 0.3);
  color: var(--text-primary);
}

/* ============================================
   BACKGROUND
   ============================================ */
.fp-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.fp-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 26, 0.55) 0%,
    rgba(10, 14, 26, 0.75) 50%,
    rgba(10, 14, 26, 0.92) 100%
  );
}

/* ============================================
   BACK LINK (top-left)
   ============================================ */
.fp-back {
  position: fixed;
  top: 24px;
  left: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fp-back:hover {
  color: var(--accent-amber);
  transform: translateX(-3px);
}

/* ============================================
   CONTAINER
   ============================================ */
.fp-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 100px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ============================================
   BADGE
   ============================================ */
.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
  animation: fpBadgePulse 2.5s ease-in-out infinite;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

@keyframes fpBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

/* ============================================
   SVG ICON
   ============================================ */
.fp-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--accent-amber);
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
  animation: fpIconFloat 3s ease-in-out infinite;
}

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

/* ============================================
   TITLE
   ============================================ */
.fp-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CONTENT CARD
   ============================================ */
.fp-card {
  width: 100%;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  margin-bottom: 32px;
  text-align: left;
}

.fp-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.fp-card p:last-child {
  margin-bottom: 0;
}

.fp-card strong {
  color: var(--accent-amber);
  font-weight: 600;
}

/* ============================================
   FEATURE TAGS
   ============================================ */
.fp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.fp-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.15);
  letter-spacing: 0.3px;
}

/* ============================================
   CTA TEXT
   ============================================ */
.fp-cta {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 28px;
}

/* ============================================
   BACK BUTTON (bottom)
   ============================================ */
.fp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fp-back-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .fp-container {
    padding: 80px 20px 48px;
  }

  .fp-title {
    font-size: 2.2rem;
  }

  .fp-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .fp-card p {
    font-size: 0.95rem;
  }

  .fp-back {
    top: 16px;
    left: 16px;
    font-size: 0.85rem;
  }

  .fp-icon {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 380px) {
  .fp-title {
    font-size: 1.8rem;
  }

  .fp-container {
    padding: 72px 16px 40px;
  }

  .fp-card {
    padding: 22px 18px;
  }
}
