/* ==========================================================================
   ExpenseMate - Android Modern Theme & Dynamic Ambient System
   Matches Flutter app theme & onBorading.dart aesthetic
   ========================================================================== */

:root {
  --bg-amoled: #07090c;
  --bg-surface: #10141d;
  --bg-card: #151b27;
  --bg-card-hover: #1c2434;
  --bg-glass: rgba(21, 27, 39, 0.72);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.12);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* ExpenseMate signature brand palette */
  --accent-green: #81c784;
  --accent-green-bright: #4ade80;
  --accent-cyan: #4dd0e1;
  --accent-amber: #ffb74d;
  --accent-teal: #26a69a;
  --accent-coral: #ff7043;
  --accent-purple: #ba68c8;
  --accent-red: #ef5350;

  --primary-gradient: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  --glow-green: rgba(0, 0, 0, 0.4);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-tap-highlight-color: transparent !important;
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-amoled);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* Remove default browser sharp blue focus/touch overlay on click & tap */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(74, 222, 128, 0.7);
  outline-offset: 3px;
  border-radius: inherit;
}

/* Interactive elements: disable browser tap-highlight and accidental text selection */
a,
button,
input,
select,
textarea,
[role="button"],
.btn,
.btn-topbar-cta,
.mockup-nav-btn,
.mockup-next-cta-btn,
.mockup-type-tab,
.mockup-cat-pill,
.indicator-dot,
.guide-question,
.filter-tab,
.hero-chip,
.badge,
.cta-badge {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Tactile rounded press feedback instead of sharp square browser overlays */
.btn:active,
.btn-store:active,
.google-play-btn:active,
.cta-play-btn:active {
  transform: scale(0.96) !important;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-nav-btn:active {
  transform: scale(0.92);
}

.mockup-next-cta-btn:active {
  transform: scale(0.95);
}

.filter-tab:active {
  transform: scale(0.96);
}

.guide-question:active {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.indicator-dot:active {
  transform: scale(1.15);
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-amoled);
}

/* ==========================================================================
   Ambient Floating Blurred Frosted Color Glows (Similar to Feature Suite & Onboarding Glow)
   ========================================================================== */
.ambient-glow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-frosted-diffuser {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: radial-gradient(circle at 50% 50%, transparent 65%, rgba(7, 9, 12, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(55px);
  opacity: 0.52;
  will-change: transform, filter;
}

/* Dynamic Continuous Hue-Shifting Keyframes (Evolving Ambient Aurora Spectrum) */
@keyframes ambientHueShift1 {
  0% {
    filter: blur(55px) hue-rotate(0deg);
  }
  50% {
    filter: blur(66px) hue-rotate(180deg);
  }
  100% {
    filter: blur(55px) hue-rotate(360deg);
  }
}

@keyframes ambientHueShift2 {
  0% {
    filter: blur(58px) hue-rotate(0deg);
  }
  50% {
    filter: blur(48px) hue-rotate(-180deg);
  }
  100% {
    filter: blur(58px) hue-rotate(-360deg);
  }
}

@keyframes ambientHueShift3 {
  0% {
    filter: blur(55px) hue-rotate(45deg);
  }
  50% {
    filter: blur(65px) hue-rotate(225deg);
  }
  100% {
    filter: blur(55px) hue-rotate(405deg);
  }
}

@keyframes ambientHueShift4 {
  0% {
    filter: blur(60px) hue-rotate(-30deg);
  }
  50% {
    filter: blur(50px) hue-rotate(150deg);
  }
  100% {
    filter: blur(60px) hue-rotate(330deg);
  }
}

/* Glow 1: Continuous Morphing Emerald / Cyan / Violet / Amber */
.glow-1 {
  top: 4%;
  left: 10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, rgba(34, 197, 94, 0.08) 42%, transparent 70%);
  animation: ambientHueShift1 20s linear infinite;
}

/* Glow 2: Continuous Morphing Sky Cyan / Deep Indigo / Coral */
.glow-2 {
  top: 32%;
  right: 6%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(14, 165, 233, 0.07) 42%, transparent 70%);
  animation: ambientHueShift2 26s linear infinite;
}

/* Glow 3: Continuous Morphing Lavender Violet / Rose / Emerald */
.glow-3 {
  bottom: 10%;
  left: 8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.16) 0%, rgba(168, 85, 247, 0.06) 42%, transparent 70%);
  animation: ambientHueShift3 24s linear infinite;
}

/* Glow 4: Continuous Morphing Warm Amber / Magenta / Teal */
.glow-4 {
  top: 60%;
  left: 42%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.14) 0%, rgba(245, 158, 11, 0.05) 42%, transparent 70%);
  animation: ambientHueShift4 30s linear infinite;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 12, 0.88);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  text-decoration: none;
  flex-shrink: 0;
}

.back-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.nav-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-version {
  font-size: 0.72rem;
  color: var(--accent-green);
  background: rgba(129, 199, 132, 0.12);
  border: 1px solid rgba(129, 199, 132, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-green-bright);
}

/* ==========================================================================
   Modern Natural Top Bar Button (Material 3 Expressive Pill)
   ========================================================================== */
.btn-topbar-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(74, 222, 128, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  flex-shrink: 0;
}

.topbar-cta-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-topbar-cta:hover {
  background: #22c55e;
  color: #07090c;
  border-color: #22c55e;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5);
  transform: translateY(-1.5px);
}

.btn-topbar-cta:hover .topbar-cta-glow {
  opacity: 1;
}

.btn-topbar-cta:active {
  transform: scale(0.96);
}

.topbar-cta-icon {
  width: 15px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s ease;
}

.btn-topbar-cta:hover .topbar-cta-icon {
  transform: scale(1.1);
}

.topbar-cta-text {
  font-size: 0.88rem;
  line-height: 1;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  padding: 13px 26px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #051408;
  box-shadow: 0 4px 20px var(--glow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 222, 128, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  background: #111722;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.btn-store:hover {
  transform: translateY(-2px);
  border-color: var(--accent-green);
  box-shadow: 0 8px 30px rgba(129, 199, 132, 0.3);
}

.store-icon {
  width: 24px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-text small {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.btn-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 50px;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(74, 222, 128, 0.10) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 75%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

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

/* Hero Capability Chips */
.hero-chips-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  font-size: clamp(0.76rem, 2.2vw, 0.85rem);
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.hero-chip:hover {
  transform: translateY(-2px);
}

.chip-offline {
  background: rgba(129, 199, 132, 0.09);
  border: 1px solid rgba(129, 199, 132, 0.28);
  color: var(--accent-green-bright);
}

.chip-offline:hover {
  border-color: var(--accent-green);
  box-shadow: 0 4px 16px rgba(129, 199, 132, 0.28);
}

.chip-instant {
  background: rgba(77, 208, 225, 0.09);
  border: 1px solid rgba(77, 208, 225, 0.28);
  color: var(--accent-cyan);
}

.chip-instant:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(77, 208, 225, 0.28);
}

.chip-analysis {
  background: rgba(255, 183, 77, 0.09);
  border: 1px solid rgba(255, 183, 77, 0.28);
  color: var(--accent-amber);
}

.chip-analysis:hover {
  border-color: var(--accent-amber);
  box-shadow: 0 4px 16px rgba(255, 183, 77, 0.28);
}

.chip-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green-bright);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

.chip-icon {
  font-size: 0.95em;
  line-height: 1;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #a7f3d0 0%, #4ade80 25%, #22c55e 50%, #4ade80 75%, #a7f3d0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 6s linear infinite;
}

@keyframes textShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 26px;
  font-weight: 400;
  line-height: 1.65;
}

/* Smart Insight Dynamic Banner */
.smart-insight-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  max-width: 100%;
}

.section-header .smart-insight-banner {
  margin-top: 24px;
  margin-bottom: 0;
}

.insight-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-green);
  background: rgba(129, 199, 132, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.insight-text {
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  color: #e2e8f0;
  font-weight: 500;
  transition: opacity 0.28s ease, transform 0.28s ease;
  text-align: left;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-banner-wrap {
  width: 100%;
  max-width: 1000px;
}

.hero-banner-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(129, 199, 132, 0.15);
  animation: bannerLevitate 7s ease-in-out infinite;
  transition: transform 0.4s ease;
}

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

.hero-banner-frame:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: cover;
}

/* ==========================================================================
   ONBOARDING SHOWCASE SIMULATOR
   Uniform Dimension Viewport (No Jumping / Zero Layout Shifts)
   ========================================================================== */
.onboarding-section {
  padding: 44px 0 50px;
  position: relative;
}

.onboarding-section::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 199, 132, 0.09) 0%, rgba(77, 208, 225, 0.03) 50%, transparent 75%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

.onboarding-section .section-header {
  margin-bottom: 20px;
}

.onboarding-section .section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 6px;
}

.onboarding-section .section-header p {
  font-size: 0.92rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green-bright);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* Authentic Android Smartphone Frame (Mobile Dimensions on Desktop & Web) */
.onboarding-phone-frame {
  width: 100%;
  max-width: 375px; /* True smartphone dimension on desktop */
  margin: 0 auto;
  background: #07090c;
  border: 8px solid #1a2232;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px var(--slide-rim-glow, rgba(129, 199, 132, 0.20)), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: box-shadow 0.55s ease;
}

/* Smartphone Top Status Bar */
.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px 6px;
  color: var(--text-dim);
  position: relative;
  z-index: 3;
}

.phone-status-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #cbd5e1;
}

.phone-punch-hole {
  width: 9px;
  height: 9px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.9);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.8;
  color: #cbd5e1;
}

/* Smartphone Bottom Home Gesture Bar */
.phone-home-pill {
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  margin: 8px auto 0;
  flex-shrink: 0;
}

/* ==========================================================================
   Dart onBorading.dart Multi-Layer Atmospheric Lighting System
   ========================================================================== */
/* 1. Atmospheric top perimeter radiating glow */
.onboarding-aura-top {
  position: absolute;
  top: -60px;
  left: -40px;
  right: -40px;
  height: 330px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
  transition: background 0.55s ease-in-out;
  background: radial-gradient(ellipse at 50% 15%, rgba(129, 199, 132, 0.28) 0%, rgba(129, 199, 132, 0.10) 50%, transparent 100%);
}

/* 2. Corner aura bleeding inward from bottom-right perimeter */
.onboarding-aura-bottom-right {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(24px);
  transition: background 0.55s ease-in-out;
  background: radial-gradient(circle, rgba(129, 199, 132, 0.18) 0%, rgba(129, 199, 132, 0.04) 55%, transparent 100%);
}

/* 3. Corner aura bleeding inward from top-left perimeter */
.onboarding-aura-top-left {
  position: absolute;
  top: -30px;
  left: -40px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(24px);
  transition: background 0.55s ease-in-out;
  background: radial-gradient(circle, rgba(129, 199, 132, 0.20) 0%, transparent 70%);
}

/* 4. Frosted diffusion layer to soften background lighting into a blurry aura */
.onboarding-aura-diffuser {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.mockup-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-brand-title {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.mockup-brand-badge {
  font-size: 0.68rem;
  color: var(--accent-green);
  background: rgba(129, 199, 132, 0.12);
  border: 1px solid rgba(129, 199, 132, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}

.mockup-skip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mockup-skip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

/* ==========================================================================
   UNIFORM SLIDER VIEWPORT (Guarantees exact same dimensions for all slides)
   ========================================================================== */
.onboarding-viewport {
  position: relative;
  width: 100%;
  height: 440px; /* Perfectly visible on all desktop viewports without scrolling */
  overflow: hidden;
  z-index: 2;
  box-sizing: border-box;
}

.onboarding-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-sizing: border-box;
}

.onboarding-slide.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* Slide 0 Welcome Layout */
.slide-welcome-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0;
  box-sizing: border-box;
}

.welcome-logo-container {
  position: relative;
  width: 105px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.welcome-pulse-aura {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 199, 132, 0.35) 0%, rgba(129, 199, 132, 0.08) 50%, transparent 75%);
  animation: pulse-ring 2.8s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
  100% { transform: scale(0.85); opacity: 0.5; }
}

.welcome-logo-box {
  position: relative;
  z-index: 2;
  animation: float-logo 3.5s infinite ease-in-out;
}

@keyframes float-logo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

.welcome-logo-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(129, 199, 132, 0.45));
}

.welcome-title {
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.welcome-tagline {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.welcome-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 290px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Welcome Slide Chips Container */
.welcome-chips-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.welcome-chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.welcome-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Feature Slides (1 to 7) Wrapper */
.slide-mockup-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.slide-info-header {
  flex-shrink: 0;
  margin-bottom: 10px;
}

.slide-badge-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  margin-bottom: 6px;
}

.slide-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.slide-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Consistent Glass Mockup Card matching _buildGlassCard in onBorading.dart */
.glass-mockup-card {
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(24, 29, 36, 0.70) 35%, rgba(18, 22, 29, 0.80) 75%, rgba(16, 19, 24, 0.90) 100%);
  border: 1.2px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 4px 30px var(--slide-card-glow, rgba(129, 199, 132, 0.16));
  transition: box-shadow 0.55s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Slide 1 Components */
.mockup-type-tabs {
  display: flex;
  background: #0f1218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 10px;
}

.mockup-type-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mockup-type-tab.active {
  background: #202736;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-cat-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.mockup-cat-pills::-webkit-scrollbar {
  display: none;
}

.mockup-cat-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.mockup-cat-pill.selected {
  background: rgba(129, 199, 132, 0.16);
  border-color: var(--accent-green);
  color: #fff;
  font-weight: 700;
}

/* Concentric Squircle Transaction Item */
.mockup-tx-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #18202e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.concentric-squircle-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.squircle-outer {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(129, 199, 132, 0.12);
}

.squircle-middle {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(129, 199, 132, 0.22);
}

.squircle-inner {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(129, 199, 132, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.mockup-tx-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mockup-tx-info strong {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-tx-info span {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-tx-amount {
  text-align: right;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.amount-expense {
  color: var(--accent-red);
  font-weight: 800;
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

.tx-time {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.slide-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chip-item {
  font-size: 0.7rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Slide 2 Analytics */
.analytics-preview-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.donut-chart-box {
  position: relative;
  width: 105px;
  height: 105px;
  flex-shrink: 0;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.1;
}

.donut-center-text small {
  font-size: 0.58rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.donut-center-text strong {
  font-size: 0.82rem;
  color: #fff;
  font-family: var(--font-mono);
}

.breakdown-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bar-label strong {
  color: #fff;
}

.progress-track {
  width: 100%;
  height: 5px;
  background: #10141d;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
}

/* Slide 3 Budget */
.budget-card-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.budget-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.budget-header-row small {
  font-size: 0.64rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.budget-header-row h4 {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.budget-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.budget-status-pill.on-track {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.budget-track {
  height: 7px;
}

.budget-metrics-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.daily-allowance-box {
  background: rgba(255, 183, 77, 0.08);
  border: 1px solid rgba(255, 183, 77, 0.2);
  padding: 7px 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #ffb74d;
}

/* Slide 4 Recurring */
.recurring-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.recurring-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #171d29;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.recurring-icon {
  font-size: 1.1rem;
}

.recurring-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recurring-info strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recurring-info small {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.recurring-amount {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.recurring-amount strong {
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.recurring-amount.income strong {
  color: var(--accent-green-bright);
}

.auto-tag {
  font-size: 0.6rem;
  color: var(--accent-teal);
  background: rgba(38, 166, 154, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Slide 5 Split Spends */
.split-friends-widget {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.split-trip-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.net-balance.positive {
  color: var(--accent-green-bright);
}

.friend-debt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #18202d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 7px 10px;
  border-radius: 10px;
}

.friend-avatar {
  font-size: 1.2rem;
}

.friend-info {
  flex: 1;
  min-width: 0;
}

.friend-info strong {
  font-size: 0.82rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-info small {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.debt-action {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.debt-pill.owes-you {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-green-bright);
  font-family: var(--font-mono);
}

.settle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
}

/* Slide 6 Android Widget */
.android-widget-mockup {
  background: linear-gradient(145deg, #182234, #121824);
  border: 1px solid rgba(129, 199, 132, 0.3);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.widget-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.widget-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.widget-mini-logo {
  width: 16px;
  height: 16px;
}

.widget-date {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.widget-spend-counter small {
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.widget-spend-counter h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.widget-quick-actions {
  display: flex;
  gap: 6px;
}

.widget-action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Slide 7 Freedom Grid */
.freedom-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.freedom-feature-box {
  background: #171d29;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
}

.freedom-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.freedom-feature-box strong {
  font-size: 0.78rem;
  display: block;
}

.freedom-feature-box small {
  font-size: 0.66rem;
  color: var(--text-dim);
  line-height: 1.2;
}

/* Mockup Bottom Navigation */
.mockup-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 2;
}

.mockup-nav-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mockup-nav-circle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.expanding-dots-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.indicator-dot.active {
  width: 22px;
  background: var(--slide-dot-color, #fff);
  box-shadow: 0 0 12px var(--slide-dot-glow, rgba(255, 255, 255, 0.6));
}

.mockup-next-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.mockup-next-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.4);
}

.mockup-next-cta-btn.last-slide {
  background: linear-gradient(135deg, #ffffff 0%, #81C784 100%);
  box-shadow: -2px -2px 14px rgba(255, 255, 255, 0.40), 4px 4px 20px rgba(129, 199, 132, 0.35);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  padding: 75px 0;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.07) 0%, rgba(192, 132, 252, 0.04) 50%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

/* Modern Compact Glassmorphic Feature Card with Thematic Color Accents & Subtle Behind Glow */
.feature-card {
  position: relative;
  background: linear-gradient(160deg, #101520 0%, #090c13 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 18px 20px 16px; /* Compact aesthetic vertical height */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 28px -8px var(--card-glow, transparent);
}

/* Card Thematic Accent Palettes (Subtle, tasteful colored tag chips & ambient glow) */
.feature-card[data-accent="cyan"] {
  --card-accent: #38bdf8;
  --card-accent-bg: rgba(56, 189, 248, 0.12);
  --card-accent-border: rgba(56, 189, 248, 0.32);
  --card-glow: rgba(56, 189, 248, 0.18);
  --card-chip-bg: rgba(56, 189, 248, 0.08);
  --card-chip-border: rgba(56, 189, 248, 0.20);
  --card-chip-color: #bae6fd;
}

.feature-card[data-accent="coral"] {
  --card-accent: #fb923c;
  --card-accent-bg: rgba(251, 146, 60, 0.12);
  --card-accent-border: rgba(251, 146, 60, 0.32);
  --card-glow: rgba(251, 146, 60, 0.18);
  --card-chip-bg: rgba(251, 146, 60, 0.08);
  --card-chip-border: rgba(251, 146, 60, 0.20);
  --card-chip-color: #fed7aa;
}

.feature-card[data-accent="teal"] {
  --card-accent: #2dd4bf;
  --card-accent-bg: rgba(45, 212, 191, 0.12);
  --card-accent-border: rgba(45, 212, 191, 0.32);
  --card-glow: rgba(45, 212, 191, 0.18);
  --card-chip-bg: rgba(45, 212, 191, 0.08);
  --card-chip-border: rgba(45, 212, 191, 0.20);
  --card-chip-color: #99f6e4;
}

.feature-card[data-accent="emerald"] {
  --card-accent: #4ade80;
  --card-accent-bg: rgba(74, 222, 128, 0.12);
  --card-accent-border: rgba(74, 222, 128, 0.32);
  --card-glow: rgba(74, 222, 128, 0.18);
  --card-chip-bg: rgba(74, 222, 128, 0.08);
  --card-chip-border: rgba(74, 222, 128, 0.20);
  --card-chip-color: #bbf7d0;
}

.feature-card[data-accent="amber"] {
  --card-accent: #f59e0b;
  --card-accent-bg: rgba(245, 158, 11, 0.12);
  --card-accent-border: rgba(245, 158, 11, 0.32);
  --card-glow: rgba(245, 158, 11, 0.18);
  --card-chip-bg: rgba(245, 158, 11, 0.08);
  --card-chip-border: rgba(245, 158, 11, 0.20);
  --card-chip-color: #fde68a;
}

.feature-card[data-accent="purple"] {
  --card-accent: #c084fc;
  --card-accent-bg: rgba(192, 132, 252, 0.12);
  --card-accent-border: rgba(192, 132, 252, 0.32);
  --card-glow: rgba(192, 132, 252, 0.18);
  --card-chip-bg: rgba(192, 132, 252, 0.08);
  --card-chip-border: rgba(192, 132, 252, 0.20);
  --card-chip-color: #e9d5ff;
}

.feature-card[data-accent="rose"] {
  --card-accent: #fb7185;
  --card-accent-bg: rgba(251, 113, 133, 0.12);
  --card-accent-border: rgba(251, 113, 133, 0.32);
  --card-glow: rgba(251, 113, 133, 0.18);
  --card-chip-bg: rgba(251, 113, 133, 0.08);
  --card-chip-border: rgba(251, 113, 133, 0.20);
  --card-chip-color: #fecdd3;
}

.feature-card[data-accent="green"] {
  --card-accent: #86efac;
  --card-accent-bg: rgba(134, 239, 172, 0.12);
  --card-accent-border: rgba(134, 239, 172, 0.32);
  --card-glow: rgba(134, 239, 172, 0.18);
  --card-chip-bg: rgba(134, 239, 172, 0.08);
  --card-chip-border: rgba(134, 239, 172, 0.20);
  --card-chip-color: #dcfce7;
}

.feature-card[data-accent="gold"] {
  --card-accent: #fbbf24;
  --card-accent-bg: rgba(251, 191, 36, 0.12);
  --card-accent-border: rgba(251, 191, 36, 0.32);
  --card-glow: rgba(251, 191, 36, 0.18);
  --card-chip-bg: rgba(251, 191, 36, 0.08);
  --card-chip-border: rgba(251, 191, 36, 0.20);
  --card-chip-color: #fef08a;
}

/* Subtle, gentle colored ambient glow radiating from behind the card corner */
.feature-card-glow {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(74, 222, 128, 0.18)) 0%, transparent 70%);
  filter: blur(34px);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent-border, rgba(255, 255, 255, 0.25));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 35px -5px var(--card-glow, rgba(74, 222, 128, 0.25));
}

.feature-card:hover .feature-card-glow {
  opacity: 0.95;
  transform: scale(1.18);
}

.feature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px; /* Streamlined compact gap */
  position: relative;
  z-index: 1;
}

.feature-icon-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--card-accent-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--card-accent-border, rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1) rotate(-3deg);
  background: var(--card-accent-bg, rgba(255, 255, 255, 0.08));
  border-color: var(--card-accent);
}

/* Feature Top Tag Pill (e.g. AI POWERED, COLLABORATIVE, AUTOPILOT) */
.feature-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--card-accent, #94a3b8);
  background: var(--card-accent-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--card-accent-border, rgba(255, 255, 255, 0.08));
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.feature-card:hover .feature-tag {
  border-color: var(--card-accent);
  box-shadow: 0 0 10px var(--card-glow);
}

.feature-card h3 {
  font-size: 1.22rem; /* Prominent bold feature heading */
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: #fff;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: #94a3b8;
  font-size: 0.79rem; /* Refined compact content copy */
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.feature-card p em {
  color: #e2e8f0;
  font-style: italic;
}

.feature-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

/* Feature Bottom Chip Pills */
.feature-chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--card-chip-color, #cbd5e1);
  background: var(--card-chip-bg, rgba(255, 255, 255, 0.035));
  border: 1px solid var(--card-chip-border, rgba(255, 255, 255, 0.06));
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-chip {
  background: var(--card-accent-bg, rgba(255, 255, 255, 0.08));
  border-color: var(--card-accent-border, rgba(255, 255, 255, 0.16));
  color: #fff;
  box-shadow: 0 2px 8px var(--card-glow);
}

/* ==========================================================================
   INTERACTIVE VISUAL WALKTHROUGH & 3D PHONE SPOTLIGHT STAGE
   ========================================================================== */
.screenshots-section {
  position: relative;
  z-index: 1;
  padding: 85px 0 95px;
  background: radial-gradient(ellipse at 50% 30%, rgba(20, 27, 40, 0.4) 0%, transparent 75%);
}

.walkthrough-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.12);
  color: var(--accent-green-bright);
  border: 1px solid rgba(74, 222, 128, 0.3);
  margin-bottom: 0.85rem;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.15);
}

.badge-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green-bright);
  box-shadow: 0 0 8px var(--accent-green-bright);
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* 1. Walkthrough Tab Bar */
.walkthrough-nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.walkthrough-nav-bar::-webkit-scrollbar {
  display: none;
}

.wt-tab-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(21, 28, 42, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wt-tab-btn:hover {
  background: rgba(28, 38, 58, 0.9);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.wt-tab-btn.active {
  background: rgba(74, 222, 128, 0.16);
  color: #ffffff;
  border-color: var(--accent-green-bright);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3), inset 0 0 12px rgba(74, 222, 128, 0.1);
  transform: translateY(-2px);
}

.wt-tab-icon {
  font-size: 1rem;
}

/* 2. Spotlight Stage Card */
.walkthrough-stage-card {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 22, 34, 0.92) 0%, rgba(20, 28, 44, 0.94) 100%);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 32px;
  padding: 3rem 2.8rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 3.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(74, 222, 128, 0.08);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.stage-ambient-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.28) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.6s ease;
}

/* Left Phone Column */
.stage-phone-column {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  z-index: 2;
}

.stage-phone-wrapper {
  position: relative;
  width: 100%;
  max-width: 290px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.1, 1, 0.2, 1);
}

.stage-phone-frame {
  position: relative;
  width: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #000000;
  border: 5px solid #1e2638;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(74, 222, 128, 0.2);
  cursor: default;
  transform-style: preserve-3d;
  transition: all 0.35s ease;
}

.stage-phone-frame:hover {
  border-color: var(--accent-green-bright);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(74, 222, 128, 0.4);
}



.phone-specular-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 45%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 8;
}

.stage-phone-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.stage-phone-img.fade-out {
  opacity: 0.2;
  transform: scale(0.97);
}



/* Floating Stat Pills */
.floating-stat-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 23, 36, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(74, 222, 128, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 15;
  pointer-events: none;
  transition: all 0.35s ease;
}

.float-pill-1 {
  top: 15%;
  left: -20px;
  animation: floatPill1 4s ease-in-out infinite alternate;
}

.float-pill-2 {
  bottom: 12%;
  right: -25px;
  animation: floatPill2 4.5s ease-in-out infinite alternate;
}

@keyframes floatPill1 {
  from { transform: translateY(0px); }
  to { transform: translateY(-10px); }
}

@keyframes floatPill2 {
  from { transform: translateY(0px); }
  to { transform: translateY(10px); }
}

/* Right Info Column */
.stage-info-column {
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.stage-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.stage-step-badge {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.stage-tag-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green-bright);
  border: 1px solid rgba(74, 222, 128, 0.3);
  text-transform: uppercase;
}

.stage-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.stage-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-green-bright);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.stage-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.stage-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.stage-hl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.hl-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.18);
  color: var(--accent-green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Controls */
.stage-controls-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.stage-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-stage-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stage-nav:hover {
  background: rgba(74, 222, 128, 0.18);
  border-color: var(--accent-green-bright);
  color: var(--accent-green-bright);
  transform: translateY(-2px);
}

.stage-fun-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-fun-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fun-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-auto-tour.active {
  background: rgba(74, 222, 128, 0.2);
  border-color: var(--accent-green-bright);
  color: var(--accent-green-bright);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.3);
  animation: autoTourPulse 2s infinite ease-in-out;
}

@keyframes autoTourPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(74, 222, 128, 0.3); }
  50% { box-shadow: 0 0 26px rgba(74, 222, 128, 0.5); }
}

.stage-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.stage-progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

/* 3. Filmstrip Reel */
.filmstrip-section {
  margin-top: 35px;
}

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

.filmstrip-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filmstrip-nav-arrows {
  display: flex;
  gap: 6px;
}

.filmstrip-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(21, 28, 42, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filmstrip-arrow:hover {
  background: rgba(74, 222, 128, 0.2);
  border-color: var(--accent-green-bright);
  color: var(--accent-green-bright);
}

.filmstrip-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  -webkit-overflow-scrolling: touch;
}

.filmstrip-scroll-track::-webkit-scrollbar {
  height: 5px;
}

.filmstrip-scroll-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.filmstrip-item {
  flex: 0 0 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filmstrip-thumb-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: #090d14;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.filmstrip-thumb-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.filmstrip-num {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.filmstrip-caption {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.filmstrip-item:hover .filmstrip-thumb-wrap {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.filmstrip-item.active .filmstrip-thumb-wrap {
  border-color: var(--accent-green-bright);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.35);
  transform: translateY(-4px) scale(1.03);
}

.filmstrip-item.active .filmstrip-caption {
  color: var(--accent-green-bright);
}

/* 4. Fullscreen Zoom Lightbox Modal */
.walkthrough-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.walkthrough-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 85vh;
}

.lightbox-image-wrap img {
  max-height: 75vh;
  max-width: 85vw;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(74, 222, 128, 0.3);
  border: 4px solid #1c2538;
}

.lightbox-caption-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 22, 34, 0.9);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.lb-title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.lb-step {
  color: var(--accent-green-bright);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: var(--accent-green-bright);
  color: #052e16;
  border-color: var(--accent-green-bright);
  transform: translateY(-50%) scale(1.08);
}

.lb-prev { left: -60px; }
.lb-next { right: -60px; }

/* Responsive adjustments */
@media (max-width: 960px) {
  .walkthrough-stage-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.2rem 1.6rem;
    text-align: center;
  }
  .stage-meta-row { justify-content: center; }
  .stage-highlights-list { align-items: center; }
  .stage-controls-group { justify-content: center; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

@media (max-width: 640px) {
  .floating-stat-pill { display: none; }
  .stage-phone-wrapper { max-width: 240px; }
  .stage-title { font-size: 1.7rem; }
}


/* ==========================================================================
   USER GUIDE KNOWLEDGE BASE
   ========================================================================== */
.userguide-section {
  padding: 80px 0 90px;
  background: linear-gradient(180deg, transparent, rgba(16, 20, 29, 0.6), transparent);
}

.guide-search-wrapper {
  max-width: 860px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111722;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
}

.guide-search-bar:focus-within {
  border-color: var(--accent-green-bright);
  box-shadow: 0 10px 35px rgba(74, 222, 128, 0.25);
}

.search-icon {
  color: var(--accent-green);
  flex-shrink: 0;
}

.guide-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.98rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.guide-search-bar input::placeholder {
  color: var(--text-dim);
}

.clear-search-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
}

.clear-search-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.guide-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.tags-label {
  color: var(--text-dim);
  font-weight: 600;
  flex-shrink: 0;
}

.guide-quick-tag {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.guide-quick-tag:hover {
  color: var(--accent-green-bright);
  background: rgba(129, 199, 132, 0.1);
  border-color: rgba(129, 199, 132, 0.3);
}

.guide-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.guide-filter-chips::-webkit-scrollbar {
  display: none;
}

.guide-filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.guide-filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.guide-filter-chip.active {
  background: rgba(129, 199, 132, 0.18);
  border-color: var(--accent-green);
  color: #fff;
}

.chip-count {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 999px;
  color: inherit;
}

.guide-results-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}

.userguide-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.guide-section-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.guide-section-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.guide-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.guide-section-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.guide-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.guide-item[open] {
  background: #141b27;
  border-color: rgba(129, 199, 132, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.guide-item-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  gap: 12px;
}

.guide-item-question::-webkit-details-marker {
  display: none;
}

.guide-q-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.guide-q-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

.guide-q-text {
  flex: 1;
  word-break: break-word;
}

.guide-chevron {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-dim);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.guide-item[open] .guide-chevron {
  transform: rotate(90deg);
  color: var(--accent-green-bright);
}

.guide-item-answer {
  padding: 0 20px 18px 37px;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

.guide-answer-body p {
  margin-bottom: 12px;
}

.guide-answer-body p:last-child {
  margin-bottom: 0;
}

.guide-answer-body strong {
  color: #fff;
  font-weight: 700;
}

.guide-bullets, .guide-numbers {
  margin: 8px 0 12px 18px;
}

.bullet-item, .numbered-item {
  margin-bottom: 5px;
}

.guide-keywords-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.keywords-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.keyword-pill {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 7px;
  border-radius: 4px;
}

mark.highlight {
  background: rgba(74, 222, 128, 0.3);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
}

.guide-empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.empty-icon {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.guide-empty-state h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.guide-empty-state p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* ==========================================================================
   CTA Section & Expressive Card (Modern Responsive Design)
   ========================================================================== */
.cta-section {
  padding: 60px 0 100px;
  position: relative;
  z-index: 2;
}

.cta-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 40px;
  background: linear-gradient(160deg, rgba(22, 30, 46, 0.75) 0%, rgba(11, 15, 24, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 36px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.95);
}

.cta-card-aura {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(74, 222, 128, 0.14) 0%, rgba(56, 189, 248, 0.06) 45%, transparent 72%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.1);
}

.cta-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.cta-icon-container {
  position: relative;
  margin-bottom: 24px;
}

.cta-icon-halo {
  display: none;
}

.cta-app-icon-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(145deg, #162030, #0c121c);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.cta-card:hover .cta-app-icon-wrap {
  transform: scale(1.06) rotate(-2deg);
}

.cta-app-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-action-group {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.cta-play-btn {
  padding: 12px 30px;
  border-radius: 18px;
  background: #111722;
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 222, 128, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-play-btn:hover {
  background: rgba(74, 222, 128, 0.15);
  border-color: #4ade80;
  box-shadow: 0 14px 40px rgba(74, 222, 128, 0.35);
  transform: translateY(-3px);
}

.cta-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 660px;
}

.cta-perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #94a3b8;
}

.cta-perk-icon {
  color: #4ade80;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 40px 0 70px;
  }

  .cta-card {
    padding: 38px 20px 32px;
    border-radius: 26px;
  }

  .cta-badge {
    font-size: 0.76rem;
    padding: 5px 12px;
    margin-bottom: 18px;
  }

  .cta-app-icon-wrap {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .cta-app-icon {
    width: 44px;
    height: 44px;
  }

  .cta-title {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
    margin-bottom: 12px;
  }

  .cta-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .cta-play-btn {
    width: 100%;
    max-width: 290px;
    justify-content: center;
    padding: 12px 20px;
  }

  .cta-perks {
    gap: 10px 14px;
    font-size: 0.78rem;
    padding-top: 16px;
  }

  .cta-perk {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  background: #05070a;
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .brand {
  margin-bottom: 8px;
}

.footer-logo {
  width: 22px;
  height: 22px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-green-bright);
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVENESS (Phones, Tablets, Laptops & Desktops)
   ========================================================================== */

/* Tablet & Smaller (< 992px) */
@media (max-width: 992px) {
  .nav-links {
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 0.88rem;
  }
}

/* Mobile Screen Adaptations (< 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .nav-links {
    display: none; /* Hide cluttered links on mobile */
  }

  .back-link-text {
    display: none; /* Icon-only back button on small screens */
  }

  .back-link {
    padding: 7px 10px;
  }

  .hero-section {
    padding: 45px 0 35px;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.7rem);
  }

  .smart-insight-banner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
  }

  .insight-text {
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Onboarding viewport adjustments on mobile */
  .onboarding-phone-frame {
    max-width: 100%;
    border-width: 4px;
    border-radius: 28px;
    padding: 10px 12px 12px;
  }

  .onboarding-viewport {
    height: 440px; /* Kept strictly uniform */
  }

  .welcome-logo-container {
    width: 120px;
    height: 120px;
    margin-bottom: 14px;
  }

  .welcome-logo-img {
    width: 85px;
    height: 85px;
  }

  .welcome-title {
    font-size: 1.7rem;
  }

  .welcome-desc {
    font-size: 0.82rem;
  }

  .slide-title {
    font-size: 1.2rem;
  }

  .glass-mockup-card {
    padding: 14px 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 16px 18px 14px;
    border-radius: 16px;
  }

  .freedom-features-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .screenshot-item {
    flex: 0 0 200px;
  }

  .guide-item-answer {
    padding-left: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Extra Small Phones (< 420px) */
@media (max-width: 420px) {
  .brand-version {
    display: none; /* Hide version pill on micro devices to save space */
  }

  .btn-topbar-cta {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .btn-topbar-cta .topbar-cta-icon {
    width: 14px;
    height: 14px;
  }

  .onboarding-viewport {
    height: 450px;
  }

  .slide-desc {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Scroll-Triggered Reveal Animations & Micro-Interactions
   ========================================================================== */
.reveal-element {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-element.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.concentric-squircle-icon {
  animation: squirclePulse 3.5s ease-in-out infinite;
}

@keyframes squirclePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Button Light Sweep */
.btn-primary, .btn-store {
  position: relative;
  overflow: hidden;
}

.btn-primary::after, .btn-store::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(30deg);
  pointer-events: none;
}

.btn-primary:hover::after, .btn-store:hover::after {
  left: 150%;
  transition: left 0.85s ease;
}

/* Hero Trust Bar */
.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.trust-star {
  color: #fbbf24;
}

.trust-dot {
  color: rgba(255, 255, 255, 0.2);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}



@media (max-width: 768px) {
  .gallery-nav-btn {
    display: none; /* Mobile users use natural touch swipe */
  }
}

/* User Guide Toggle All Button */
.guide-toggle-all-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-green-bright);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-toggle-all-btn:hover {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.2);
}


/* ==========================================================================
   HOW IT STARTED: THE ORIGIN STORY (Natural Sketchbook Doodles & Unified Cards)
   Identical aesthetic rendering on Desktop & Android mobile
   ========================================================================== */

.origin-story-section {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  padding: 90px 0 100px;
  background-color: #080a0e;
  /* Natural Drafting Notebook Grid Texture Overlay */
  background-image: 
    radial-gradient(ellipse 70% 50% at 50% -15%, rgba(74, 222, 128, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 55%, rgba(251, 191, 36, 0.05), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.origin-ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, 90vw);
  height: 350px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, rgba(251, 191, 36, 0.04) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.origin-header {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
  padding: 0 16px;
}

.origin-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.origin-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 222, 128, 0.1);
  color: var(--accent-green-bright);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scribble-icon {
  stroke: var(--accent-green-bright);
}

.origin-handwritten-pill {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fbbf24;
  padding: 3px 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px dashed rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  transform: rotate(-2deg);
  display: inline-block;
}

.header-natural-underline {
  display: block;
  width: 140px;
  height: 10px;
  margin: 6px auto 14px;
  overflow: visible;
}

.origin-subheading {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Board Container */
.origin-board-wrapper {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 30px auto 0;
  padding: 10px 0 0;
  overflow: hidden;
}

/* 2-Column Grid Layout (Identical behaviour on Desktop & Android) */
.origin-direct-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
  margin-bottom: 45px;
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   UNIFIED MAIN STORY BOX (Photo & Paragraph Inside Container)
   ========================================================================== */

.origin-main-box {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 15px;
  padding: 36px 24px 26px;
  background: rgba(14, 18, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
}

.box-note {
  border-top: 2px solid rgba(251, 191, 36, 0.45);
}

.box-blueprint {
  border-top: 2px solid rgba(74, 222, 128, 0.45);
}

.origin-main-box:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  transform: translateY(-6px);
}

/* Sticker on Top Edge of Main Box */
.origin-box-sticker {
  position: absolute;
  top: -18px;
  left: 24px;
  font-family: 'Caveat', 'Kalam', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 5;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticker-gold {
  background: #1e1b10;
  color: #fde047;
  border: 1.5px dashed rgba(251, 191, 36, 0.65);
  transform: rotate(-2deg);
}

.sticker-green {
  background: #0d1e16;
  color: #86efac;
  border: 1.5px dashed rgba(74, 222, 128, 0.65);
  transform: rotate(2deg);
}

.box-note:hover .sticker-gold {
  transform: rotate(-3deg) scale(1.04);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.box-blueprint:hover .sticker-green {
  transform: rotate(3deg) scale(1.04);
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.3);
}

/* Standalone Floating Photo System (Inside Main Box) */
.origin-photo-standalone {
  position: relative;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 6px 0;
  overflow: visible;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.box-note .origin-photo-standalone {
  transform: rotate(-1.2deg);
}

.box-blueprint .origin-photo-standalone {
  transform: rotate(1.2deg);
}

.origin-photo-standalone:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
}

.origin-photo-standalone:hover .img-portrait-note {
  transform: rotateX(2deg) rotateY(-2deg) translateZ(12px);
  box-shadow: 
    0 30px 65px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(251, 191, 36, 0.32),
    0 0 0 1px rgba(251, 191, 36, 0.45);
}

.origin-photo-standalone:hover .img-landscape-blueprint {
  transform: rotateX(2deg) rotateY(2deg) translateZ(12px);
  box-shadow: 
    0 30px 65px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(74, 222, 128, 0.32),
    0 0 0 1px rgba(74, 222, 128, 0.45);
}

/* Standalone PNG Images */
.origin-standalone-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 3;
  transition: all 0.35s ease;
}

.img-portrait-note {
  max-height: 480px;
  border-radius: 18px;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(251, 191, 36, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.img-landscape-blueprint {
  max-height: 440px;
  border-radius: 12px;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(74, 222, 128, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.origin-photo-standalone:hover .img-portrait-note {
  box-shadow: 
    0 28px 55px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(251, 191, 36, 0.28),
    0 0 0 1px rgba(251, 191, 36, 0.45);
}

.origin-photo-standalone:hover .img-landscape-blueprint {
  box-shadow: 
    0 28px 55px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(74, 222, 128, 0.28),
    0 0 0 1px rgba(74, 222, 128, 0.45);
}

/* ==========================================================================
   NATURAL HAND-DRAWN SKETCHBOOK SCRIBBLES (Same on Android & Desktop)
   ========================================================================== */

.natural-photo-scribble {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.scribble-note {
  top: -10px;
  left: 0;
  width: 100%;
  height: calc(100% + 20px);
}

.scribble-blueprint {
  top: -10px;
  right: 0;
  width: 100%;
  height: calc(100% + 20px);
}



/* Realistic Paper Tape (Washi Tape) Directly Sticking to Photo */
.washi-tape {
  position: absolute;
  width: 110px;
  height: 30px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.9;
}

.tape-gold {
  background: rgba(251, 191, 36, 0.42);
  border-left: 3px dashed rgba(251, 191, 36, 0.75);
  border-right: 3px dashed rgba(251, 191, 36, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.tape-green {
  background: rgba(74, 222, 128, 0.38);
  border-left: 3px dashed rgba(74, 222, 128, 0.75);
  border-right: 3px dashed rgba(74, 222, 128, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.tape-top-center {
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
}

.tape-top-right {
  top: -4px;
  right: 20px;
  transform: rotate(3deg);
}

/* Paragraph Content (Inside Container) */
.origin-box-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  margin-top: auto;
}

.origin-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.origin-phase-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.phase-spark {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.phase-blueprint {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green-bright);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.origin-date {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--text-tertiary, #94a3b8);
}

.origin-title-wrap {
  position: relative;
  margin-bottom: 12px;
}

.origin-direct-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

/* Natural Hand-drawn Squiggly Underline */
.natural-title-underline {
  display: block;
  width: 170px;
  height: 8px;
  margin-top: 4px;
  overflow: visible;
}

.origin-direct-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.origin-direct-desc em {
  color: #f1f5f9;
  font-style: normal;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.origin-excerpts-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.excerpt-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* Connector bridge between boxes */
.origin-connector-bridge {
  display: none;
}

/* Milestone Ribbon: "From Notebook to Polished Flutter Reality" */
.origin-milestone-ribbon {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(56, 189, 248, 0.04) 50%, rgba(14, 18, 24, 0.8) 100%);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 20px;
  padding: 30px 32px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.ribbon-glow {
  position: absolute;
  top: -50px;
  left: 20%;
  width: 300px;
  height: 150px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.15), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.ribbon-content {
  position: relative;
  z-index: 1;
}

.ribbon-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green-bright);
  margin-bottom: 8px;
}

.ribbon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green-bright);
  box-shadow: 0 0 8px var(--accent-green-bright);
  animation: pulseDot 2s infinite;
}

.ribbon-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}

.ribbon-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 850px;
  margin: 0 0 22px;
}

.ribbon-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   MOBILE & ANDROID OPTIMIZED BREAKPOINTS (IDENTICAL NATURAL SCRIBBLES)
   ========================================================================== */
@media (max-width: 900px) {
  .origin-board-wrapper {
    padding: 0;
    margin: 20px auto 0;
  }

  .origin-direct-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 35px;
  }

  .origin-main-box {
    margin-top: 15px;
    padding: 30px 18px 20px;
  }

  .origin-box-sticker {
    top: -16px;
    left: 16px;
    font-size: 1.15rem;
    padding: 4px 14px;
    max-width: calc(100% - 32px);
    transform: none !important;
  }

  .box-note .origin-photo-standalone,
  .box-blueprint .origin-photo-standalone {
    transform: none !important;
    padding: 4px 0;
  }

  .origin-photo-standalone:hover {
    transform: none !important;
  }

  .natural-photo-scribble {
    opacity: 0.85;
  }

  .img-portrait-note {
    max-height: 400px;
    width: auto;
    max-width: 100% !important;
  }

  .img-landscape-blueprint {
    max-height: 340px;
    width: 100% !important;
    object-fit: contain;
  }

  .washi-tape {
    width: 90px;
    height: 26px;
  }

  .tape-top-right {
    right: 10px;
    transform: rotate(2deg);
  }

  .tape-top-center {
    transform: translateX(-50%) rotate(0deg);
  }

  .origin-milestone-ribbon {
    padding: 22px 18px;
  }

  .ribbon-title {
    font-size: 1.2rem;
  }

  .ribbon-desc {
    font-size: 0.88rem;
  }

  .ribbon-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

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

@media (max-width: 600px) {
  .origin-story-section {
    padding: 60px 0 70px;
  }

  .img-portrait-note {
    max-height: 340px;
  }

  .img-landscape-blueprint {
    max-height: 260px;
  }

  .origin-direct-title {
    font-size: 1.12rem;
  }

  .origin-direct-desc {
    font-size: 0.88rem;
  }
}
