:root {
  --primary-h: 245;
  --primary-s: 90%;
  --primary-l: 65%;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
  --primary-glow-soft: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.12);

  --accent-blue: #38bdf8;
  --accent-purple: #c084fc;

  --transition-speed: 0.3s;

  --radius-card: 28px;
  --radius-btn: 16px;
}

[data-theme='dark'] {
  --bg-deep: #050510;
  --bg-surface: #0a0a1a;
  --text-main: #ffffff;
  --text-muted: #94a3b8;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-2: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.12);

  --bg-gradient:
    radial-gradient(ellipse at 15% 25%, hsla(245, 80%, 60%, 0.13) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 75%, hsla(280, 80%, 60%, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 110%, hsla(200, 90%, 60%, 0.05) 0%, transparent 50%);

  --card-hover-bg: rgba(255, 255, 255, 0.06);
  --nav-bg: rgba(5, 5, 16, 0.75);
  --btn-outline-text: white;
  --orb-1: hsla(245, 80%, 60%, 0.15);
  --orb-2: hsla(280, 70%, 60%, 0.1);
  --step-bg: rgba(255, 255, 255, 0.02);
  --faq-bg: rgba(255, 255, 255, 0.025);
  --stat-border: rgba(255, 255, 255, 0.1);
}

[data-theme='light'] {
  --bg-deep: #f0f4ff;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;

  --glass-bg: rgba(99, 102, 241, 0.04);
  --glass-bg-2: rgba(99, 102, 241, 0.07);
  --glass-border: rgba(99, 102, 241, 0.12);
  --glass-shine: rgba(99, 102, 241, 0.18);

  --bg-gradient:
    radial-gradient(ellipse at 15% 25%, hsla(245, 80%, 60%, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 75%, hsla(280, 80%, 60%, 0.04) 0%, transparent 45%);

  --card-hover-bg: rgba(99, 102, 241, 0.05);
  --nav-bg: rgba(240, 244, 255, 0.85);
  --btn-outline-text: #0f172a;
  --orb-1: hsla(245, 80%, 60%, 0.08);
  --orb-2: hsla(280, 70%, 60%, 0.06);
  --step-bg: rgba(99, 102, 241, 0.04);
  --faq-bg: rgba(99, 102, 241, 0.04);
  --stat-border: rgba(99, 102, 241, 0.15);
}

/* =====================
   BASE
===================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =====================
   SCROLL REVEAL
===================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.reveal-left {
  transform: translateX(-32px);
}

.reveal.reveal-right {
  transform: translateX(32px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* =====================
   NAVBAR
===================== */
nav {
  height: 72px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  background: var(--nav-bg);
  transition: background var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

nav.scrolled {
  box-shadow: 0 8px 40px -8px rgba(0, 0, 0, 0.2);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text-main);
}

.logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--primary-glow));
  transition: filter 0.3s;
}

.logo:hover img {
  filter: drop-shadow(0 0 16px var(--primary-glow));
}

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--glass-shine);
  transform: translateY(-2px) rotate(15deg);
}

/* =====================
   HERO SECTION
===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 130px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: var(--orb-1);
  top: -100px;
  left: -100px;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: var(--orb-2);
  bottom: 0;
  right: -50px;
  animation: orbFloat 15s ease-in-out infinite alternate-reverse;
}

.hero .container {
  position: relative;
  z-index: 1;
}

@keyframes orbFloat {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(30px, 20px) scale(1.1);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1.75rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
  position: relative;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.75;
}

.cta-group {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

/* =====================
   BUTTONS
===================== */
.btn {
  padding: 0.875rem 1.875rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(var(--primary-h), var(--primary-s), 55%) 100%);
  color: white;
  box-shadow: 0 8px 24px -8px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px -8px var(--primary-glow);
  background: linear-gradient(135deg, hsl(var(--primary-h), var(--primary-s), 70%) 0%, var(--primary) 100%);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--btn-outline-text);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--glass-bg-2);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* =====================
   STORE BUTTONS
===================== */
.store-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-surface);
  padding: 1.15rem 2rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--glass-border);
  width: 280px;
  text-align: left;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.store-button.active {
  border-color: var(--primary);
  box-shadow: 0 8px 30px var(--primary-glow-soft);
  cursor: pointer;
}

.store-button.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px var(--primary-glow);
}

.store-button.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.store-button-icon {
  font-size: 2rem;
  color: var(--text-main);
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.store-button.active .store-button-icon {
  color: var(--primary);
  opacity: 1;
}

.store-button-text {
  display: flex;
  flex-direction: column;
}

.store-button-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-button-title {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

/* =====================
   STATS BAR
===================== */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3.5rem;
  border: 1px solid var(--stat-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  max-width: 580px;
  width: 100%;
}

.stat-item {
  flex: 1;
  padding: 1.1rem 0.75rem;
  text-align: center;
  position: relative;
}

.stat-item+.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--stat-border);
}

.stat-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  line-height: 1.3;
  display: block;
}

/* =====================
   MOCKUP CONTAINER
===================== */
.mockup-container {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 2000px;
}

.mockup-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: var(--primary-glow-soft);
  border-radius: 50%;
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.phone-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
  transform: rotateY(-8deg) rotateX(8deg) rotateZ(-1.5deg);
  transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.phone-wrapper:hover {
  transform: rotateY(0) rotateX(0) rotateZ(0) scale(1.04);
}

.phone-frame {
  width: 100%;
  border-radius: 36px;
  border: 8px solid #1c1c1e;
  background: #000;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =====================
   SCROLL INDICATOR
===================== */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  animation: fadeInIndicator 0.8s ease 1s forwards;
  z-index: 10;
  pointer-events: none;
}

@keyframes fadeInIndicator {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-indicator .mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 2px;
  height: 6px;
  background: var(--primary);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

/* =====================
   SECTIONS
===================== */
section {
  padding: 110px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-top: 1rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* =====================
   FEATURE CARDS
===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-card);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-glow-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--primary), transparent 60%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover-bg);
  border-color: transparent;
  box-shadow: 0 20px 60px -20px var(--primary-glow);
}

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

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =====================
   HOW IT WORKS — STEPS
===================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
}

@media (max-width: 768px) {}

.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--step-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  transition: all 0.4s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 16px 40px -16px var(--primary-glow);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =====================
   FAQ SECTION
===================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--faq-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 8px 30px -12px var(--primary-glow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.75rem;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.3s, background 0.3s;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding 0.3s;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  padding: 0 1.75rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.75rem 1.4rem;
}

/* =====================
   CTA BAND (Android / Download section)
===================== */
.cta-band {
  text-align: center;
  border-top: 1px solid var(--glass-border);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, hsla(245, 80%, 60%, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* =====================
   FOOTER
===================== */
footer {
  padding: 60px 0 36px;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

/* =====================
   DIVIDER
===================== */
.gradient-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-glow), transparent);
  border: none;
  margin: 0;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   MOBILE RESPONSIVE
===================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-group {
    justify-content: center;
  }

  .stats-bar {
    margin: 3rem auto 0;
  }

  .hero-subtitle {
    max-width: 600px;
    text-align: center;
  }

  .mockup-container {
    margin-top: 3rem;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 2rem;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-bar {
    max-width: 340px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 1.1rem 0.5rem;
  }

  .stat-item::before {
    display: none !important;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--stat-border);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--stat-border);
  }

  .stat-item strong {
    font-size: 1.15rem;
  }

  .stat-item span {
    font-size: 0.68rem;
  }

  nav {
    height: 64px;
  }
}

/* =====================
   DOCUMENT / LEGAL PAGES
===================== */
.doc-content {
  padding-top: 110px;
  padding-bottom: 60px;
}

.doc-content h1 {
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.doc-content p {
  margin-bottom: 1.5rem;
}

.doc-content section {
  padding: 0;
  margin-bottom: 2.5rem;
}

.doc-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.doc-content ul {
  margin: 1rem 0 1rem 1.5rem;
}

.doc-content ul li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.doc-content .doc-toc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.doc-content .doc-toc h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 700;
}

.doc-content .doc-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.35rem 1rem;
}

.doc-content .doc-toc ol li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.doc-content .doc-toc ol li a:hover {
  color: var(--primary);
}

/* =====================
   BACK TO TOP BUTTON
===================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 30px -8px var(--primary-glow);
  border: none;
  outline: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px -10px var(--primary-glow);
  background: hsl(var(--primary-h), var(--primary-s), 70%);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

/* --- Interactive Simulator --- */
.ai-simulator-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.simulator-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: var(--radius-card);
  background: rgba(10, 10, 26, 0.45);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px -15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
}
[data-theme='light'] .simulator-wrapper {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 30px 70px -15px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.word-selector {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.selector-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
}

/* --- AI Topic Simulator Inputs --- */
.simulator-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}
[data-theme='light'] .simulator-input {
  background: rgba(0, 0, 0, 0.02);
}
.simulator-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sugg-chip {
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
[data-theme='light'] .sugg-chip {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}
.sugg-chip:hover, .sugg-chip.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}
.level-pills {
  display: flex;
  gap: 0.4rem;
}
.level-pill {
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
[data-theme='light'] .level-pill {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}
.level-pill:hover, .level-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.count-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
}
.generate-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px -5px var(--primary-glow);
}
.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px var(--primary-glow);
}
.wand-icon {
  width: 18px;
  height: 18px;
}

/* --- Simulator Screen --- */
.simulator-screen {
  width: 100%;
  border-radius: 20px;
  background: #0d0d1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}
[data-theme='light'] .simulator-screen {
  background: #f8fafc;
  border-color: rgba(99, 102, 241, 0.1);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.05);
}
.screen-header {
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
[data-theme='light'] .screen-header {
  background: rgba(0,0,0,0.02);
  border-bottom-color: rgba(0,0,0,0.05);
}
.dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.model-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}
.status-indicator-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}
.screen-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.simulator-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(99, 102, 241, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loader-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Category Card (Widget Representation) --- */
.sim-category-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: all 0.3s;
}
[data-theme='light'] .sim-category-card {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.08);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.03);
}
.sim-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sim-card-icon-box {
  padding: 0.55rem;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.12);
  color: #6c63ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-card-title-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.sim-ai-badge {
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  border-radius: 6px;
  text-transform: uppercase;
}

.sim-card-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sim-card-level {
  color: var(--primary);
  font-weight: 800;
}

.sim-progress-bar-container {
  margin-top: 0.75rem;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

[data-theme='light'] .sim-progress-bar-container {
  background: rgba(0, 0, 0, 0.05);
}

.sim-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

/* Simulator Generated Words list */
.sim-words-list-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sim-words-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: left;
  margin-bottom: 2px;
}

.sim-words-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 4px;
}

.sim-words-list::-webkit-scrollbar {
  width: 4px;
}

.sim-words-list::-webkit-scrollbar-track {
  background: transparent;
}

.sim-words-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

[data-theme='light'] .sim-words-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}

.sim-word-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s;
  opacity: 0;
  animation: slideUpFade 0.3s ease forwards;
}

[data-theme='light'] .sim-word-item {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(99, 102, 241, 0.04);
}

.sim-word-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme='light'] .sim-word-item:hover {
  background: rgba(99, 102, 241, 0.02);
  border-color: rgba(99, 102, 241, 0.08);
}

.sim-word-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.sim-word-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sim-word-term {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.sim-word-ipa {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.sim-word-translation {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sim-word-assoc-toggle {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.sim-word-assoc-toggle:hover {
  background: rgba(99, 102, 241, 0.1);
}

.sim-word-association {
  background: rgba(108, 99, 255, 0.04);
  border: 1px dashed rgba(108, 99, 255, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  text-align: left;
  line-height: 1.4;
  display: none;
  animation: fadeIn 0.2s ease;
}

[data-theme='light'] .sim-word-association {
  background: rgba(99, 102, 241, 0.02);
}

/* --- Simulator Card Actions (Buttons below Progress) --- */
.sim-card-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  width: 100%;
  flex-wrap: wrap;
}

.sim-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  padding: 0;
}

.sim-action-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.sim-action-btn:hover svg {
  transform: scale(1.1);
}

.sim-action-btn.active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 0 0 3px var(--btn-active-ring);
}

/* Individual button themes (light/pastel backgrounds) */
.sim-action-btn.btn-img {
  background-color: #FFF5E6;
  color: #D97706;
  --btn-active-ring: rgba(217, 119, 6, 0.35);
}
.sim-action-btn.btn-write {
  background-color: #E6F7F5;
  color: #0F766E;
  --btn-active-ring: rgba(15, 118, 110, 0.35);
}
.sim-action-btn.btn-chat {
  background-color: #EBFBEF;
  color: #16A34A;
  --btn-active-ring: rgba(22, 163, 74, 0.35);
}
.sim-action-btn.btn-audio {
  background-color: #FFF9E6;
  color: #B45309;
  --btn-active-ring: rgba(180, 83, 9, 0.35);
}
.sim-action-btn.btn-pdf {
  background-color: #E6F0FA;
  color: #2563EB;
  --btn-active-ring: rgba(37, 99, 235, 0.35);
}
.sim-action-btn.btn-stats {
  background-color: #F5E6F7;
  color: #9333EA;
  --btn-active-ring: rgba(147, 51, 234, 0.35);
}
.sim-action-btn.btn-swipe {
  background-color: #F0F9FF;
  color: #0284C7;
  --btn-active-ring: rgba(2, 132, 199, 0.35);
}

/* Dark theme overrides for premium dark mode aesthetics */
[data-theme='dark'] .sim-action-btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .sim-action-btn.btn-img {
  background-color: rgba(217, 119, 6, 0.15);
  color: #FBBF24;
  --btn-active-ring: rgba(251, 191, 36, 0.4);
}
[data-theme='dark'] .sim-action-btn.btn-write {
  background-color: rgba(15, 118, 110, 0.15);
  color: #2DD4BF;
  --btn-active-ring: rgba(45, 212, 191, 0.4);
}
[data-theme='dark'] .sim-action-btn.btn-chat {
  background-color: rgba(22, 163, 74, 0.15);
  color: #4ADE80;
  --btn-active-ring: rgba(74, 222, 128, 0.4);
}
[data-theme='dark'] .sim-action-btn.btn-audio {
  background-color: rgba(180, 83, 9, 0.15);
  color: #F59E0B;
  --btn-active-ring: rgba(245, 158, 11, 0.4);
}
[data-theme='dark'] .sim-action-btn.btn-pdf {
  background-color: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
  --btn-active-ring: rgba(96, 165, 250, 0.4);
}
[data-theme='dark'] .sim-action-btn.btn-stats {
  background-color: rgba(147, 51, 234, 0.15);
  color: #C084FC;
  --btn-active-ring: rgba(192, 132, 252, 0.4);
}
[data-theme='dark'] .sim-action-btn.btn-swipe {
  background-color: rgba(2, 132, 199, 0.15);
  color: #38BDF8;
  --btn-active-ring: rgba(56, 189, 248, 0.4);
}

@media (max-width: 480px) {
  .sim-action-btn {
    width: 32px;
    height: 32px;
  }
  .sim-action-btn svg {
    width: 14px;
    height: 14px;
  }
  .sim-card-actions {
    gap: 0.4rem;
  }
}

/* Simulator Instruction box */
.sim-instruction-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  text-align: left;
  animation: slideUpFade 0.25s ease forwards;
}

[data-theme='light'] .sim-instruction-box {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(99, 102, 241, 0.1);
}

.sim-instruction-content {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.sim-instruction-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.sim-instruction-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-main);
  margin: 0;
}

/* AI Chat Card in Generated Words list */
.sim-word-item.sim-chat-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.85rem 1rem;
}

[data-theme='light'] .sim-word-item.sim-chat-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(168, 85, 247, 0.04) 100%);
  border-color: rgba(99, 102, 241, 0.15);
}

.sim-word-item.sim-chat-card:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
  border-color: rgba(99, 102, 241, 0.35);
}

.sim-chat-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  width: 100%;
}

.sim-chat-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-chat-card-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-chat-card-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sim-chat-card-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.sim-chat-card-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.3);
}

/* Chat Interface Overlay inside Simulator Screen */
.sim-chat-interface {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0d0d1e;
  animation: fadeIn 0.25s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

[data-theme='light'] .sim-chat-interface {
  background: #f8fafc;
}

.sim-chat-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
}

[data-theme='light'] .sim-chat-header {
  border-bottom-color: rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.02);
}

.sim-chat-back-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.sim-chat-back-btn:hover {
  color: var(--primary);
}

.sim-chat-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.sim-chat-messages {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}

.sim-chat-message {
  max-width: 80%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
}

.sim-chat-message.ai {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

[data-theme='light'] .sim-chat-message.ai {
  background: rgba(0, 0, 0, 0.03);
}

.sim-chat-message.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* Responsive adjustment for simulator */
@media (max-width: 800px) {
  .simulator-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
}

/* =====================
   BLOG SECTION
===================== */
.blog-section {
  background: var(--bg-deep);
  position: relative;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.blog-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--transition-speed) cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover-bg);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -15px var(--primary-glow);
}

.blog-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.25;
}

.blog-card-placeholder svg {
  width: 48px;
  height: 48px;
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px var(--primary-glow);
  z-index: 2;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.blog-card-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
  width: fit-content;
}

.btn-text:hover {
  color: var(--accent-blue);
  transform: translateX(4px);
}

/* =====================
   BLOG MODAL
===================== */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blog-modal.active {
  opacity: 1;
  pointer-events: all;
}

.blog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(8px);
}

.blog-modal-container {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 10;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.blog-modal.active .blog-modal-container {
  transform: translateY(0);
}

.blog-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all 0.2s ease;
}

.blog-modal-close:hover {
  background: var(--glass-shine);
  transform: scale(1.1);
}

.blog-modal-close svg {
  width: 20px;
  height: 20px;
}

.blog-modal-content-wrapper {
  overflow-y: auto;
  height: 100%;
}

.blog-modal-image {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  background: var(--bg-deep);
}

.blog-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-modal-body {
  padding: 3rem;
}

.blog-modal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.blog-modal-meta .blog-category {
  position: static;
  box-shadow: none;
}

.blog-modal-meta .blog-date {
  margin-bottom: 0;
}

.blog-modal-body h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.blog-modal-text-content {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.9;
}

.blog-modal-text-content p {
  margin-bottom: 1.5rem;
}

.blog-modal-text-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Ensure images in the rich text content scale nicely */
.blog-modal-text-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* =====================
   BLOG ARTICLE PAGE
===================== */
.blog-post-page {
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: var(--bg-deep);
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: all var(--transition-speed) ease;
}

.blog-post-back:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

.blog-post-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-post-image-wrapper {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
  aspect-ratio: 16 / 9;
}

.blog-post-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.blog-post-meta .blog-category {
  position: static;
  box-shadow: none;
}

.blog-post-meta .blog-date {
  margin-bottom: 0;
}

.blog-post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.blog-post-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
  max-width: 800px;
}

.blog-post-body {
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

.blog-post-body p {
  margin-bottom: 1.75rem;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4,
.blog-post-body h5,
.blog-post-body h6 {
  color: var(--text-main);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.blog-post-body h1 {
  font-size: 2rem;
}

.blog-post-body h2 {
  font-size: 1.75rem;
}

.blog-post-body h3 {
  font-size: 1.4rem;
}

.blog-post-body h4 {
  font-size: 1.2rem;
}

.blog-post-body h5 {
  font-size: 1.05rem;
}

.blog-post-body h6 {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .blog-post-body img {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin: 1.5rem 0 !important;
  }
}

.blog-suggestions-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
}

.blog-suggestions-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* =====================
   BLOG POST APP DOWNLOAD BANNER
===================== */
.blog-post-download-banner {
  margin: 3.5rem 0 2rem 0;
  padding: 3rem 2rem;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.blog-post-download-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.blog-post-download-banner h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.blog-post-download-banner p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 620px;
  margin-inline: auto;
}

.blog-post-download-banner .download-btn-group {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Page Views Counter Styles */
.blog-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-views svg {
  opacity: 0.75;
  flex-shrink: 0;
  stroke: currentColor;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-card-meta .blog-date {
  margin-bottom: 0;
}

/* =====================
   BLOG GALLERY CAROUSEL
   ===================== */
.blog-gallery {
  position: relative;
  width: 100%;
  margin: 2.5rem 0;
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  background: var(--bg-deep, #050510);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}

.blog-gallery-slides {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .blog-gallery-slides {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .blog-gallery-slides {
    height: 260px;
  }
}

.blog-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-gallery-slide.active {
  opacity: 1;
  visibility: visible;
}

.blog-gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 0;
  margin: 0 !important;
}

/* Controls */
.blog-gallery-prev,
.blog-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme='light'] .blog-gallery-prev,
[data-theme='light'] .blog-gallery-next {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
  color: #000;
}

.blog-gallery-prev:hover,
.blog-gallery-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

[data-theme='light'] .blog-gallery-prev:hover,
[data-theme='light'] .blog-gallery-next:hover {
  background: rgba(0, 0, 0, 0.2);
}

.blog-gallery-prev:active,
.blog-gallery-next:active {
  transform: translateY(-50%) scale(0.95);
}

.blog-gallery-prev {
  left: 20px;
}

.blog-gallery-next {
  right: 20px;
}

@media (max-width: 480px) {
  .blog-gallery-prev,
  .blog-gallery-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .blog-gallery-prev {
    left: 10px;
  }
  .blog-gallery-next {
    right: 10px;
  }
}

/* Single image case */
.blog-gallery.single-image .blog-gallery-prev,
.blog-gallery.single-image .blog-gallery-next,
.blog-gallery.single-image .blog-gallery-dots {
  display: none !important;
}

/* Dots / Indicators */
.blog-gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme='light'] .blog-gallery-dots {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-gallery-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

[data-theme='light'] .blog-gallery-dot {
  background: rgba(0, 0, 0, 0.2);
}

.blog-gallery-dot.active {
  background: #fff;
  transform: scale(1.25);
}

[data-theme='light'] .blog-gallery-dot.active {
  background: var(--primary, #6366f1);
}