/* ===================================
   BIBLE GUIDE - Ultra Premium Design v3
   Restoring Content Depth & Fixing Empty Visuals
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=DM+Serif+Display&display=swap');

:root {
  /* App Colors */
  --app-bg: #000000;
  --app-card-bg: #1C1C1E;
  --app-accent: #658D94;
  --app-accent-dark: #2C3E44;
  --app-text: #FFFFFF;
  --app-text-muted: #8E8E93;
  --app-btn-white: #FFFFFF;
  --app-btn-glass: rgba(255, 255, 255, 0.2);

  /* Site Colors */
  --bg-deep: #030304;
  --bg-primary: #0a0a0f;

  --accent-primary: #8b5cf6;
  --accent-secondary: #06b6d4;
  --accent-warm: #f59e0b;

  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --max-width: 1200px;
}

/* Base & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Links */
a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Typography */
h1,
h2,
h3,
.heading-font {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.serif-title {
  font-family: 'DM Serif Display', serif;
  letter-spacing: 0.01em;
}

/* ===================================
   BACKGROUND EFFECTS
   =================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  z-index: -1;
  opacity: 0.5;
}

/* ===================================
   COMPONENTS
   =================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Legal / long-form pages */
.legal-main {
  padding: 100px 0;
}

.legal {
  max-width: 920px;
}

.legal .section-title-wrapper {
  text-align: left;
  margin-bottom: 40px;
}

.legal .section-subtitle {
  margin: 0;
}

.legal .meta {
  margin-top: 16px;
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.7;
}

.legal p {
  margin-top: 14px;
  color: #a1a1aa;
}

.legal h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 22px;
}

.legal h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.legal ul,
.legal ol {
  margin-top: 12px;
  padding-left: 20px;
  color: #a1a1aa;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: #ffffff;
}

.legal a {
  color: #ffffff;
  text-decoration: underline;
}

.legal a:hover {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: white;
  color: black;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: #a1a1aa;
  max-width: 600px;
  margin: 0 auto 40px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  color: #d4d4d8;
}

/* ===================================
   PHONE MOCKUP
   =================================== */
.phone-wrapper {
  margin-top: 80px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.phone {
  width: 360px;
  height: 740px;
  background: #000;
  border-radius: 50px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #333,
    0 0 0 4px #000,
    0 20px 50px -10px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(100, 100, 255, 0.1);
  position: relative;
  transform: rotateX(5deg);
  transition: transform 0.5s ease;
}

.phone:hover {
  transform: rotateX(0deg) scale(1.02);
}

.phone::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  background: #000;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 16px 30px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  display: grid;
  place-items: center;
  color: #888;
}

.app-greeting {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
}

.app-streak {
  background: #2C2C2E;
  padding: 6px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.app-progress-card {
  background: #1C1C1E;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.app-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.app-progress-track {
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}

.app-progress-fill {
  width: 5%;
  height: 100%;
  background: #555;
}

.app-main-card {
  background: linear-gradient(160deg, #5D7F86 0%, #2F4045 100%);
  border-radius: 24px;
  padding: 20px;
  position: relative;
  margin-bottom: 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.app-card-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-avatar-msg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.app-avatar-msg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.app-card-actions {
  display: flex;
  gap: 8px;
}

.app-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

.app-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  margin: 20px 0;
  color: white;
}

.app-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  align-self: flex-start;
  margin-bottom: 16px;
}

.app-card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.app-btn-play {
  background: white;
  color: black;
  border-radius: 14px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.app-btn-read {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 14px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(4px);
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.app-list-item {
  background: #1C1C1E;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.app-nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 0;
  margin-top: auto;
  border-top: 1px solid #222;
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #666;
}

.app-nav-item.active {
  color: white;
}

/* ===================================
   BENTO GRID (Enhanced)
   =================================== */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 42px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: #a1a1aa;
  max-width: 600px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  /* Removed fixed row height to allow content to flow */
}

.bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  /* Ensure minimum height */
}

.bento-card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.bento-large {
  grid-column: span 2;
}

.bento-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  /* Push content to bottom */
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.bento-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.bento-desc {
  color: #a1a1aa;
  font-size: 15px;
  line-height: 1.6;
}

/* Visual decorations for bento cards to fix "blank" look */
.bento-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.visual-audio {
  background:
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3), transparent 50%),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.visual-chat {
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.2), transparent 50%),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.visual-prayer {
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.15), transparent 60%),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

/* Abstract shapes for visuals */
.shape-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  top: 40px;
  right: 40px;
}

.shape-wave {
  position: absolute;
  width: 200%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  top: -50px;
  left: -50%;
  transform: rotate(-10deg);
}

/* ===================================
   TIMELINE (How it works)
   =================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.timeline-content {
  width: 45%;
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #000;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 0 8px var(--bg-deep);
}

/* ===================================
   GRID LAYOUTS (Restored Content)
   =================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent-secondary);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #a1a1aa;
}

/* Callouts (used on account deletion page) */
.callout {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
}

.callout strong {
  display: block;
  margin-bottom: 8px;
}

.callout p {
  color: #a1a1aa;
  margin-top: 0;
}

/* ===================================
   TRUST BADGES
   =================================== */
.trust-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
}

.fineprint {
  margin-top: 24px;
  color: #a1a1aa;
  font-size: 14px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.actions-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 44px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.footer-links h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: #a1a1aa;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-column: span 1;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
  }

  .timeline-content {
    width: 100%;
    margin: 0 !important;
  }

  .timeline-number {
    left: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-main {
    padding: 80px 0;
  }
}
