/* ==========================================================================
   HABITO - HABIT FORMATION TRACKER (habitformation.app)
   Design System & Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:ital,wght@0,400..700;1,400..700&family=Nunito:ital,wght@0,700..900;1,700..900&display=swap');

:root {
  /* Core Color Palette */
  --bg-ink: #0a0a0b;
  --bg-panel: #111114;
  --bg-well: #16161a;
  --bg-subtle: #1c1c22;
  
  /* Text Tokens */
  --text-foam: #f4f4f5;
  --text-silver: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --text-steel: #52525b;

  /* Accent & Habit Brand Colors */
  --accent: #3ed3f0;
  --accent-soft: #7dddf5;
  --accent-glow: rgba(62, 211, 240, 0.28);
  --accent-faint: rgba(62, 211, 240, 0.08);

  --habit-cyan: #3ed3f0;
  --habit-emerald: #4ade80;
  --habit-amber: #fbbf24;
  --habit-coral: #f97066;
  --habit-violet: #c084fc;
  --habit-sky: #60a5fa;
  --habit-rose: #f472b6;
  --habit-orange: #fb923c;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 255, 255, 0.25);
  --border-accent: rgba(62, 211, 240, 0.35);

  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 30px 80px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 35px rgba(62, 211, 240, 0.12);

  /* Typography */
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-quick: all 0.2s ease;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-ink);
  color: var(--text-foam);
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-ink);
  color: var(--text-foam);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Typography Utility Classes */
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* Layout Shell */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .site-container {
    padding: 0 2rem;
  }
}

/* Background Gradients & Glows */
.bg-dot-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 90% at 50% 0%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 10%, transparent 80%);
}

.hero-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 620px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(62, 211, 240, 0.24), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 560px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(62, 211, 240, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* ── Hero App Screenshot Showcase ── */
.hero-showcase-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  text-align: center;
}

.hero-showcase-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 70%;
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(62, 211, 240, 0.22), rgba(62, 211, 240, 0.06) 50%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-showcase-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  height: auto;
  display: block;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: showcaseFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

@media (min-width: 640px) {
  .hero-showcase-container {
    padding: 0 2rem 4rem;
  }
}


.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  transition: var(--transition-quick);
}

@media (min-width: 640px) {
  .header-wrapper {
    padding: 0.75rem 2rem;
  }
}

.nav-shell {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  background-color: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.header-scrolled .nav-shell {
  max-width: 48rem;
  padding: 0.5rem 1rem;
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(10, 10, 11, 0.88);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-foam);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.brand-logo .accent-part {
  color: var(--accent-soft);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  transition: var(--transition-quick);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-foam);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.35rem;
  padding: 0 1.15rem;
  border-radius: 9999px;
  background-color: var(--text-foam);
  color: var(--bg-ink);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-quick);
}

.btn-primary svg {
  display: inline-block;
  flex-shrink: 0;
}

.btn-primary:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition-quick);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn:hover {
  color: var(--text-foam);
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
  .header-wrapper {
    padding: 0.5rem 0.75rem;
  }

  .nav-shell {
    padding: 0.45rem 0.75rem;
    gap: 0.45rem;
  }

  .brand-logo {
    font-size: 1.05rem;
    gap: 0.45rem;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }

  .btn-primary {
    height: 2.15rem;
    padding: 0 0.85rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .mobile-menu-btn {
    width: 32px;
    height: 32px;
  }
}

.mobile-dropdown {
  position: absolute;
  top: 100%;
  left: 1.25rem;
  right: 1.25rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: rgba(17, 17, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-quick);
}

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

.mobile-dropdown a {
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-quick);
}

.mobile-dropdown a:hover {
  color: var(--text-foam);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
  position: relative;
  margin-top: -86px;
  padding-top: 130px;
  padding-bottom: 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-title {
  position: relative;
  max-width: 840px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text-foam);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 900px) {
  .hero-title {
    font-size: 4.6rem;
  }
}

.hero-title .dot {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.05em;
  border-radius: 28%;
  background-color: var(--accent);
}

.hero-subtitle {
  position: relative;
  max-width: 530px;
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  line-height: 1.6;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.15rem;
  }
}

/* Store Badge Buttons & QR Triggers */
.store-badges-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 105px;
    padding-bottom: 2.25rem;
    gap: 1.15rem;
  }
  .qr-trigger-btn {
    display: none;
  }
  .hero-showcase-container {
    padding: 0 0.5rem 2rem;
  }
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.store-badge-link {
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transition: var(--transition-quick);
}

.store-badge-link:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.store-badge-img {
  height: 4rem;
  width: auto;
}

.qr-trigger-btn {
  display: none;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: var(--transition-quick);
}

@media (min-width: 640px) {
  .qr-trigger-btn {
    display: flex;
  }
}

.qr-trigger-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-foam);
  background-color: rgba(62, 211, 240, 0.06);
}

.trusted-badge {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.trusted-badge span {
  color: var(--text-foam);
  font-weight: 700;
}

/* Hero Phone Fan Showcase */
.hero-fan-container {
  position: relative;
  max-width: 1040px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 0 1rem;
}

.hero-fan-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(62% 58% at 50% 52%, rgba(62, 211, 240, 0.28), transparent 72%);
  pointer-events: none;
}

.hero-fan-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fan-phone {
  position: relative;
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #121216;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.fan-phone-left {
  width: 260px;
  transform: perspective(1000px) rotateY(14deg) rotateZ(-6deg) translateX(40px) scale(0.92);
  z-index: 1;
  opacity: 0.85;
}

.fan-phone-center {
  width: 310px;
  transform: perspective(1000px) translateY(-10px);
  z-index: 3;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 30px rgba(62, 211, 240, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.fan-phone-right {
  width: 260px;
  transform: perspective(1000px) rotateY(-14deg) rotateZ(6deg) translateX(-40px) scale(0.92);
  z-index: 2;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .fan-phone-left, .fan-phone-right {
    display: none;
  }
  .fan-phone-center {
    width: 290px;
    transform: none;
  }
}

/* Feature Logos Banner */
.featured-in-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}

.featured-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.featured-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
}

@media (max-width: 640px) {
  .featured-in-section {
    padding: 2.5rem 1rem 2rem;
    gap: 1rem;
  }
  .featured-logos {
    gap: 1.5rem 2rem;
  }
  .logo-item img {
    max-height: 22px;
    width: auto;
  }
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.55;
  transition: var(--transition-quick);
}

.logo-item:hover {
  opacity: 0.95;
}

.logo-item span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* Feature Tour Section */
.features-section {
  position: relative;
  padding: 5.5rem 1.25rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .features-section {
    padding: 5.5rem 2rem;
  }
}

.section-header {
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.85rem;
  }
}

.section-title .dot {
  color: var(--accent);
}

.section-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.feature-tour-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.25rem;
}

@media (max-width: 1023px) {
  .feature-tour-grid {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }

  .tour-preview-column {
    order: -1;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .tour-tabs-container {
    width: 100%;
  }

  .tour-tab-btn {
    padding: 0.95rem 1.15rem;
  }
}

@media (min-width: 1024px) {
  .feature-tour-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3.5rem;
  }
}

.tour-tabs-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .tour-tabs-container {
    grid-template-columns: 1fr 1fr;
  }
}

.tour-tab-btn {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  padding: 1.15rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tour-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.tour-tab-btn.active {
  border-color: var(--border-accent);
  background: linear-gradient(115deg, rgba(62, 211, 240, 0.09), rgba(255, 255, 255, 0.01) 55%), #111114;
  box-shadow: var(--shadow-glow);
}

.tour-tab-btn h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-foam);
}

.tour-tab-btn p {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Feature Phone Frame & Slider */
.tour-preview-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.tour-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 95vw);
  height: min(440px, 80vw);
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(62, 211, 240, 0.16), transparent 66%);
  filter: blur(8px);
  pointer-events: none;
}

.phone-mockup-frame {
  position: relative;
  width: min(290px, 84vw);
  aspect-ratio: 680 / 1402;
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background-color: #0b0b0e;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(62, 211, 240, 0.1);
  overflow: hidden;
  user-select: none;
}

@media (min-width: 640px) {
  .phone-mockup-frame {
    width: 320px;
    border-radius: 42px;
  }
}

.mockup-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.mockup-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

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

/* Dot Indicators */
.tour-dots-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: var(--transition-quick);
  cursor: pointer;
}

.tour-dot.active {
  width: 24px;
  background-color: var(--accent);
  box-shadow: 0 0 10px rgba(62, 211, 240, 0.5);
}

/* Live Habit Mockup UI Components */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-foam);
}

.phone-screen-content {
  padding: 10px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow-y: auto;
}

.mock-habit-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition-quick);
}

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

.mock-habit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
}

.mock-habit-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.mock-streak-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-silver);
}

.mock-tile-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}

.mock-tile-grid-small {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mock-tile {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  transition: var(--transition-quick);
  cursor: pointer;
}

.mock-tile:hover {
  transform: scale(1.15);
}

.mock-tile.active-cyan { background-color: var(--habit-cyan); box-shadow: 0 0 6px rgba(62, 211, 240, 0.4); }
.mock-tile.active-emerald { background-color: var(--habit-emerald); box-shadow: 0 0 6px rgba(74, 222, 128, 0.4); }
.mock-tile.active-amber { background-color: var(--habit-amber); box-shadow: 0 0 6px rgba(251, 191, 36, 0.4); }
.mock-tile.active-coral { background-color: var(--habit-coral); box-shadow: 0 0 6px rgba(249, 112, 102, 0.4); }
.mock-tile.active-violet { background-color: var(--habit-violet); box-shadow: 0 0 6px rgba(192, 132, 252, 0.4); }
.mock-tile.active-sky { background-color: var(--habit-sky); box-shadow: 0 0 6px rgba(96, 165, 250, 0.4); }

/* Reviews Marquee Section */
.reviews-section {
  position: relative;
  padding: 4.5rem 0;
  overflow: hidden;
}

.reviews-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

.marquee-track.reverse {
  animation: marquee-scroll-reverse 45s linear infinite;
}

.reviews-marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.review-card {
  width: 340px;
  max-width: 85vw;
  flex-shrink: 0;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: var(--transition-quick);
}

@media (max-width: 640px) {
  .review-card {
    width: 280px;
    padding: 1.15rem;
  }
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.stars-row {
  display: flex;
  gap: 3px;
  color: #fbbf24;
}

.review-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-silver);
}

.review-author-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.author-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.author-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-foam);
}

.author-platform {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Download CTA Section */
.download-cta-section {
  position: relative;
  padding: 6.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.download-cta-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

@media (min-width: 768px) {
  .download-cta-title {
    font-size: 3.5rem;
  }
}

.download-cta-title .dot {
  color: var(--accent);
}

.download-cta-subtitle {
  max-width: 440px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cta-perks {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  position: relative;
  padding: 3.5rem 1.25rem 3rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .site-footer {
    padding: 3.5rem 2rem 3rem;
  }
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-foam);
}

.footer-logo img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
}

@media (max-width: 639px) {
  .footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-steel);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  transition: var(--transition-quick);
}

.footer-col a:hover {
  color: var(--text-foam);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* QR Code Dialog Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-quick);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 310px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: var(--bg-panel);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.qr-code-img {
  width: 100%;
  border-radius: 14px;
  background-color: #ffffff;
  padding: 0.75rem;
}

.modal-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-info p {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 100%;
  height: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-foam);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-quick);
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* FAQ Accordion Styling */
.faq-page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 7rem;
}

.faq-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-category-card {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  overflow: hidden;
  transition: var(--transition-quick);
}

.faq-category-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.faq-cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.faq-cat-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.faq-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
}

.faq-cat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-foam);
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.faq-category-card.open .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-items-list {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.5rem;
}

.faq-category-card.open .faq-items-list {
  max-height: 1200px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background-color: var(--bg-well);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-foam);
}

.faq-answer {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.faq-answer a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--accent);
}

.faq-contact-card {
  margin-top: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border-accent);
  background: linear-gradient(115deg, rgba(62, 211, 240, 0.08), rgba(255, 255, 255, 0.01) 55%), #111114;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Editorial & Blog Post Styles */
.blog-index-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 7rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-card {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: var(--transition-quick);
}

.blog-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-foam);
}

.blog-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.blog-meta-row {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Article Content Layout */
.article-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 7rem;
}

.article-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .article-title {
    font-size: 2.85rem;
  }
}

.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #d4d4d8;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-foam);
  margin-top: 1.5rem;
}

.article-body p {
  color: #c4c4c8;
}

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-callout {
  border-radius: 14px;
  border-left: 4px solid var(--accent);
  background-color: var(--bg-well);
  padding: 1.25rem;
  font-size: 0.95rem;
}

/* Changelog & Support Layouts */
.changelog-container, .support-container, .legal-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 7rem;
}

.timeline-entry {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 3rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: var(--accent);
  box-shadow: 0 0 10px rgba(62, 211, 240, 0.6);
}

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

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background-color: var(--accent-faint);
  color: var(--accent-soft);
  border: 1px solid var(--border-accent);
}

.release-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Contact / Support Form */
.support-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-silver);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-well);
  color: var(--text-foam);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-quick);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 211, 240, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: 12px;
  background-color: var(--accent);
  color: #000000;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition-quick);
}

.form-submit-btn:hover {
  background-color: #5fe0f8;
  box-shadow: 0 4px 18px rgba(62, 211, 240, 0.35);
  transform: translateY(-1px);
}

/* ── Global Mobile Touch & Viewport Enhancements ── */
@media (max-width: 640px) {
  .faq-page-main,
  .blog-index-container,
  .changelog-container,
  .support-container,
  .legal-container {
    padding: 2.25rem 1rem 5rem;
  }

  .faq-cat-header {
    padding: 1rem 1.15rem;
  }

  .faq-items-list {
    padding: 0 1.15rem 1.15rem;
  }

  .timeline-entry {
    padding-left: 1.5rem;
    margin-bottom: 2.25rem;
  }

  .article-container {
    padding: 2.25rem 1rem 5rem;
  }

  .article-title {
    font-size: 1.85rem;
  }
}

