/* ==========================================================================
   Habit Tracker: Planner Routine — Website Stylesheet
   Designed with Apple Human Interface & Modern SaaS Aesthetics
   ========================================================================== */

:root {
  /* Default Color Palette: Indigo / Violet (Matches Classic Theme) */
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #a855f7;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-glow: rgba(99, 102, 241, 0.28);
  --accent-ring: rgba(99, 102, 241, 0.15);
  --accent-tint: rgba(99, 102, 241, 0.08);

  /* Semantic UI Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #0ea5e9;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Spacing & Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Smooth Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s var(--ease-smooth);
  --transition-normal: 0.3s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-spring);
}

/* --------------------------------------------------------------------------
   Theme Presets (Accent Color Variations matching In-App Icons)
   -------------------------------------------------------------------------- */
[data-theme-color="solar"] {
  --accent-primary: #ec5d83;
  --accent-primary-hover: #db2777;
  --accent-secondary: #f97316;
  --accent-gradient: linear-gradient(135deg, #ec5d83 0%, #f97316 60%, #eab308 100%);
  --accent-glow: rgba(236, 93, 131, 0.3);
  --accent-ring: rgba(236, 93, 131, 0.15);
  --accent-tint: rgba(236, 93, 131, 0.08);
}

[data-theme-color="ocean"] {
  --accent-primary: #0ea5e9;
  --accent-primary-hover: #0284c7;
  --accent-secondary: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 60%, #10b981 100%);
  --accent-glow: rgba(14, 165, 233, 0.3);
  --accent-ring: rgba(14, 165, 233, 0.15);
  --accent-tint: rgba(14, 165, 233, 0.08);
}

[data-theme-color="mint"] {
  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 60%, #3b82f6 100%);
  --accent-glow: rgba(16, 185, 129, 0.3);
  --accent-ring: rgba(16, 185, 129, 0.15);
  --accent-tint: rgba(16, 185, 129, 0.08);
}

[data-theme-color="plum"] {
  --accent-primary: #9333ea;
  --accent-primary-hover: #7e22ce;
  --accent-secondary: #db2777;
  --accent-gradient: linear-gradient(135deg, #9333ea 0%, #db2777 60%, #f43f5e 100%);
  --accent-glow: rgba(147, 51, 234, 0.3);
  --accent-ring: rgba(147, 51, 234, 0.15);
  --accent-tint: rgba(147, 51, 234, 0.08);
}

[data-theme-color="slate"] {
  --accent-primary: #64748b;
  --accent-primary-hover: #475569;
  --accent-secondary: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #64748b 0%, #334155 60%, #1e293b 100%);
  --accent-glow: rgba(100, 116, 139, 0.3);
  --accent-ring: rgba(100, 116, 139, 0.15);
  --accent-tint: rgba(100, 116, 139, 0.08);
}

/* --------------------------------------------------------------------------
   Light Theme (Default / Root)
   -------------------------------------------------------------------------- */
[data-theme="light"],
:root:not([data-theme="dark"]) {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-card: rgba(255, 255, 255, 0.7);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  --border-light: rgba(15, 23, 42, 0.06);
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.8);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.09), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 50px -12px rgba(15, 23, 42, 0.14), 0 8px 24px -4px rgba(15, 23, 42, 0.06);
  --shadow-device: 0 35px 70px -15px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);

  --ambient-blur-1: rgba(99, 102, 241, 0.12);
  --ambient-blur-2: rgba(236, 72, 153, 0.09);
  --ambient-blur-3: rgba(20, 184, 166, 0.08);

  --device-bezel: #1e2430;
  --device-rim: #d1d5db;
  --device-inner: #0b0d13;
}

/* --------------------------------------------------------------------------
   Dark Theme (Enabled via [data-theme="dark"] or auto media query)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-canvas: #090b10;
  --bg-surface: #10131c;
  --bg-surface-elevated: #161a26;
  --bg-subtle: #1a1f2e;
  --bg-muted: #242b3d;
  --bg-glass: rgba(14, 17, 25, 0.82);
  --bg-glass-card: rgba(20, 24, 36, 0.75);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;

  --border-light: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-highlight: rgba(255, 255, 255, 0.18);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 60px -12px rgba(0, 0, 0, 0.7);
  --shadow-device: 0 40px 90px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.14);

  --ambient-blur-1: rgba(99, 102, 241, 0.18);
  --ambient-blur-2: rgba(236, 72, 153, 0.12);
  --ambient-blur-3: rgba(20, 184, 166, 0.1);

  --device-bezel: #12141a;
  --device-rim: #333846;
  --device-inner: #000000;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Ambient Backdrop Glow (Apple Mesh Gradient)
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1200px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.85;
  animation: floatAmbient 18s ease-in-out infinite alternate;
  will-change: transform;
}

.ambient-blob-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.ambient-blob-2 {
  width: 500px;
  height: 500px;
  top: 180px;
  left: 10%;
  background: radial-gradient(circle, var(--ambient-blur-2) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.ambient-blob-3 {
  width: 550px;
  height: 550px;
  top: 240px;
  right: 10%;
  background: radial-gradient(circle, var(--ambient-blur-3) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes floatAmbient {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.08); }
  100% { transform: translateY(-20px) scale(0.96); }
}

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--accent-tint);
  border: 1px solid var(--accent-ring);
  color: var(--accent-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: var(--bg-glass);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-medium);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height var(--transition-normal);
}

.site-header.scrolled .nav-wrap {
  height: 62px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-icon {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-descriptor {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Palette & Mode Controls */
.theme-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.color-dot[data-color="indigo"] { background: #6366f1; }
.color-dot[data-color="solar"] { background: #ec5d83; }
.color-dot[data-color="ocean"] { background: #0ea5e9; }
.color-dot[data-color="mint"] { background: #10b981; }
.color-dot[data-color="plum"] { background: #9333ea; }
.color-dot[data-color="slate"] { background: #64748b; }

.color-dot:hover {
  transform: scale(1.18);
}

.color-dot.active {
  border-color: var(--text-primary);
  transform: scale(1.12);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-muted);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  transition: all var(--transition-fast);
  z-index: 110;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--bg-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-links a {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

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

.btn-apple {
  background: #000000;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  padding: 10px 22px;
}

[data-theme="dark"] .btn-apple {
  background: #ffffff;
  color: #000000 !important;
}

.btn-apple:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-apple svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 60px;
  padding-bottom: 90px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background-color: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.hero-pill-badge {
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 22px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subhead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px auto;
  font-weight: 400;
}

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

.hero-pricing-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-pricing-badge strong {
  color: var(--text-primary);
  font-weight: 700;
}

.price-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.dot-divider {
  color: var(--text-muted);
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  color: #f59e0b;
}

/* --------------------------------------------------------------------------
   Hero Device Showcase & Floating Cards
   -------------------------------------------------------------------------- */
.hero-showcase {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 0 0;
}

.hero-device-wrapper {
  position: relative;
  display: inline-block;
  perspective: 1200px;
}

/* iPhone Frame Mockup */
.iphone-frame {
  width: 320px;
  max-width: 90vw;
  background: var(--device-inner);
  border-radius: 54px;
  padding: 12px;
  box-shadow: var(--shadow-device);
  border: 4px solid var(--device-rim);
  position: relative;
  margin: 0 auto;
  transition: transform var(--transition-slow);
}

.hero-device-wrapper:hover .iphone-frame {
  transform: translateY(-6px) rotateX(2deg);
}

.iphone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  border-radius: 44px;
  overflow: hidden;
  background-color: #000000;
}

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

/* Dynamic Island */
.iphone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background-color: #000000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.island-camera {
  width: 10px;
  height: 10px;
  background-color: #1a1a1a;
  border-radius: 50%;
}

.island-sensor {
  width: 8px;
  height: 8px;
  background-color: #111111;
  border-radius: 50%;
}

/* Glass Floating Cards */
.floating-card {
  position: absolute;
  z-index: 15;
  background-color: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  animation: floatCard 6s ease-in-out infinite alternate;
}

.floating-card:hover {
  transform: scale(1.05) translateY(-4px) !important;
  box-shadow: var(--shadow-xl);
}

.floating-card-left {
  left: -80px;
  top: 25%;
  animation-delay: -2s;
  max-width: 260px;
}

.floating-card-right {
  right: -80px;
  top: 45%;
  animation-delay: -4s;
  max-width: 270px;
}

.floating-card-bottom {
  left: -40px;
  bottom: 12%;
  animation-delay: -1s;
  max-width: 250px;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.card-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--accent-tint);
  border: 1px solid var(--accent-ring);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.card-content {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.card-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   App Interactive Showcase (Tabbed Screen Switcher)
   -------------------------------------------------------------------------- */
.showcase-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 60px;
  box-shadow: var(--shadow-lg);
}

.showcase-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.showcase-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.showcase-text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.showcase-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.showcase-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid var(--accent-ring);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.75rem;
}

.showcase-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-iphone {
  width: 320px;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Interactive Playground (Live Mini Habit App Simulator)
   -------------------------------------------------------------------------- */
.playground-card {
  max-width: 840px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.playground-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.playground-date-info {
  display: flex;
  flex-direction: column;
}

.playground-day-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.playground-day-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.playground-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-circle-wrap {
  position: relative;
  width: 58px;
  height: 58px;
}

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

.progress-bg {
  stroke: var(--bg-subtle);
  stroke-width: 5;
  fill: none;
}

.progress-bar-fill {
  stroke: var(--accent-primary);
  stroke-width: 5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 157;
  stroke-dashoffset: 78;
  transition: stroke-dashoffset 0.4s var(--ease-spring);
}

.progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Habit Interactive Rows */
.interactive-habit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.habit-interactive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all var(--transition-fast);
}

.habit-interactive-row:hover {
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.habit-interactive-row.completed {
  background-color: var(--accent-tint);
  border-color: var(--accent-ring);
}

.habit-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.habit-icon-sq {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  color: var(--accent-primary);
}

.habit-meta {
  display: flex;
  flex-direction: column;
}

.habit-row-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.habit-row-progress {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.habit-right-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.quick-add-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.04);
}

.quick-add-btn:active {
  transform: scale(0.96);
}

.playground-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.reward-unlocked-banner {
  display: none;
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
  animation: bounceIn 0.5s var(--ease-spring);
}

@keyframes bounceIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Bento Grid Section (Deep Feature Architecture)
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.bento-card-wide {
  grid-column: span 2;
}

.bento-card-tall {
  grid-row: span 2;
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  border: 1px solid var(--accent-ring);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.bento-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.bento-preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: auto;
}

/* Mini Heatmap Visualization */
.mini-heatmap {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 6px;
  padding: 18px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-top: auto;
}

.heat-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background-color: var(--bg-muted);
  transition: transform var(--transition-fast);
}

.heat-cell:hover {
  transform: scale(1.3);
}

.heat-cell.l1 { background-color: var(--accent-ring); }
.heat-cell.l2 { background-color: var(--accent-glow); }
.heat-cell.l3 { background-color: var(--accent-primary-hover); opacity: 0.75; }
.heat-cell.l4 { background-color: var(--accent-primary); }

/* --------------------------------------------------------------------------
   Focus Timer Mini Widget Demo
   -------------------------------------------------------------------------- */
.focus-demo-box {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: auto;
  border: 1px solid var(--border-light);
}

.focus-duration-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.focus-duration-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.focus-duration-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.focus-duration-btn.active {
  background: var(--accent-tint);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.focus-time-display {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.focus-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.focus-pill-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.focus-pill-btn.primary {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: transparent;
}

.focus-pill-btn:hover {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Toast Notification Banner
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  opacity: 0;
  pointer-events: none;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.25rem;
}

.toast-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.toast-msg {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Screenshots Gallery (Filterable Lightbox)
   -------------------------------------------------------------------------- */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.gallery-btn {
  white-space: nowrap;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.gallery-btn.active {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: transparent;
}

.gallery-scroll-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 30px;
  padding-top: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 3px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

.gallery-item {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-ring);
}

.gallery-thumb-wrap {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-thumb-wrap img {
  transform: scale(1.03);
}

.gallery-item-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border-light);
}

.gallery-item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gallery-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Comparison Table Section
   -------------------------------------------------------------------------- */
.comparison-table-wrap {
  max-width: 960px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background-color: var(--bg-subtle);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.comparison-table th.col-highlight {
  background-color: var(--accent-tint);
  color: var(--accent-primary);
  font-size: 1.0625rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td.col-highlight {
  background-color: var(--accent-tint);
  font-weight: 600;
}

.table-feature-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.table-feature-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.check-icon {
  color: var(--color-success);
  font-weight: bold;
}

.cross-icon {
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   Philosophy / Testimonials
   -------------------------------------------------------------------------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-stars {
  color: #f59e0b;
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.quote-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid var(--accent-ring);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.quote-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quote-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-smooth);
}

.faq-answer-inner {
  padding: 0 26px 24px 26px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   App Store Banner CTA
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent-gradient);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.cta-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px auto;
}

.cta-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background-color: var(--bg-glass-card);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.cta-price-tag {
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-micro-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  padding: 60px 0 30px 0;
  margin-top: 60px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-brand-desc {
  max-width: 320px;
  margin-top: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Lightbox Modal & QR Code Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: zoomIn 0.25s var(--ease-spring);
}

.modal-lightbox-box {
  max-width: 90vw;
  max-height: 90vh;
  padding: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-muted);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Mobile Navigation Drawer & Responsive Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card-wide,
  .bento-card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .showcase-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px;
  }
  .showcase-visual {
    order: -1;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .floating-card {
    display: none; /* Hide floating cards on smaller screens to avoid overlapping */
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .theme-picker {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 40px 20px;
  }
  .hero-proof {
    flex-direction: column;
    gap: 10px;
  }
  .comparison-table-wrap {
    overflow-x: auto;
  }
  .showcase-grid {
    padding: 24px 20px;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  /* Brand + mode toggle + menu fill a phone header; Download stays in the drawer and hero. */
  .nav-actions .btn {
    display: none;
  }
}
