/* ==========================================================================
   CSS DESIGN SYSTEM - ROTTING.APP
   Vibrant aesthetics, Premium Glassmorphism, and Dynamic Micro-animations
   ========================================================================== */

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

/* Brand Design Tokens */
:root {
  --background: #050505;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --button-background: rgba(255, 255, 255, 0.08);
  --button-text: #FFFFFF;
  --border: rgba(255, 255, 255, 0.09);
  --premium-border: rgba(255, 255, 255, 0.15);
  
  /* Brand Accent Colors */
  --premium-accent: #8b5cf6;       /* Gorgeous Violet */
  --premium-accent-glow: rgba(139, 92, 246, 0.25);
  --premium-success: #4ade80;      /* Emerald Green */
  --premium-gold: #FBBF24;         /* Warm Amber Gold */
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.18s ease;
}

/* Global Reset & Backdrop */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  background-color: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Starfield Overlay Layers */
#starfield-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}

/* Grid Noise Layer overlay to mimic premium FocusKit noise texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: 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: 8px 8px;
}

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

.font-sans {
  font-family: var(--font-sans);
}

/* Header Sticky Toolbar */
.header-bar {
  position: sticky;
  top: 1.5rem;
  z-index: 100;
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

/* SVG glass-designed App Icon */
.brand-logo-svg {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  filter: drop-shadow(0 0 8px var(--premium-accent-glow));
  transition: var(--transition-smooth);
}

.nav-brand:hover .brand-logo-svg {
  transform: scale(1.08) rotate(4deg);
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* App Store direct download pill in nav */
.appstore-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(109, 40, 217, 0.6));
  border: 1px solid rgba(139, 92, 246, 0.6);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.appstore-pill:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.55);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.55), rgba(139, 92, 246, 0.7));
}

/* Premium Details select Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: var(--transition-fast);
}

.lang-dropdown summary::-webkit-details-marker {
  display: none;
}

.lang-dropdown summary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.lang-dropdown[open] summary {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--premium-accent);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 14rem;
  max-height: 20rem;
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid var(--premium-border);
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 0.45rem;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.lang-option:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.lang-option.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.lang-option.active::after {
  content: '✓';
  color: var(--premium-success);
  font-weight: bold;
}

/* Glass Buttons & Pills */
.glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  cursor: pointer;
  transition: var(--transition-fast);
}

.glass-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.glass-pill.primary-cta {
  background: var(--text-primary);
  color: var(--background);
  border: 1px solid var(--text-primary);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-pill.primary-cta:hover {
  background: #f3f4f6;
  border-color: #f3f4f6;
}

/* Hero Section */
.hero-section {
  max-width: 68rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2.5rem;
  text-align: center;
  position: relative;
}

.hero-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--premium-accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.06);
}

.hero-title {
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

/* Metallic text gradients */
.text-gradient {
  background-image: linear-gradient(180deg, #FFFFFF, #e9ebf0 40%, #a2a8b3 85%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-gradient-purple {
  background-image: linear-gradient(180deg, #FFFFFF, #dcd7fc 30%, #8b5cf6 85%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.1vw, 1.45rem);
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cta-large-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: 1.15rem;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.apple-btn {
  background: #000;
  color: #fff;
  border: 2px solid var(--premium-border);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
}

.apple-btn:hover {
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.5rem rgba(139, 92, 246, 0.15);
}

.apple-btn-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.apple-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.apple-btn-text span:first-child {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.apple-btn-text span:last-child {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.qr-circle-btn {
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 1.15rem;
  display: grid;
  place-items: center;
  background: #000;
  border: 2px solid var(--premium-border);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qr-circle-btn:hover {
  border-color: #ffffff;
  transform: translateY(-2px);
}

.qr-icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #ffffff;
}

/* Glass Panels & Cards */
.glass-panel {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Features Grid */
.features-section {
  max-width: 68rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.feature-row:nth-child(even) {
  grid-template-columns: 1.15fr 1fr;
}

.feature-row:nth-child(even) .feature-copy {
  order: 2;
}

.feature-row:nth-child(even) .feature-visual {
  order: 1;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.feature-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--premium-accent);
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.1);
  background: rgba(139, 92, 246, 0.05);
}

.feature-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.85rem;
}

.feature-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-highlights span {
  padding: 0.45rem 0.85rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: var(--transition-fast);
}

.feature-highlights span:hover {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.feature-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.feature-visual::before {
  content: '';
  position: absolute;
  inset: 15% 15% 15% 15%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--premium-accent-glow), transparent 60%);
  filter: blur(25px);
  z-index: -1;
  pointer-events: none;
}

/* iPhone simulated mockup */
.iphone-mockup {
  width: 18.5rem;
  height: 38.5rem;
  padding: 0.65rem;
  border-radius: 2.85rem;
  border: 1px solid var(--premium-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iphone-header {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 50;
  padding: 0.45rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iphone-notch {
  width: 6.2rem;
  height: 1.45rem;
  background: #000000;
  border-radius: 0 0 0.85rem 0.85rem;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05);
}

.iphone-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.9;
}

.iphone-icons {
  display: flex;
  gap: 0.25rem;
}

.iphone-screen {
  flex: 1;
  border-radius: 2.35rem;
  overflow: hidden;
  position: relative;
  background: #050505;
  border: 1px solid rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.mini-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mini-starfield-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(5,5,5,0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

.simulator-screen-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 3.5rem 1.25rem 2rem;
  text-align: center;
}

.simulator-streak-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.timer-circle-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}

.progress-ring-svg {
  transform: rotate(-90deg);
}

.progress-ring-bar {
  transition: stroke-dashoffset 0.35s ease;
  filter: drop-shadow(0 0 6px var(--premium-accent-glow));
}

.timer-center-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.timer-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.simulator-slang-box {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 14rem;
}

.simulator-slang-text {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.simulator-slang-text.active {
  opacity: 1;
  transform: translateY(0);
}

.simulator-action-btn {
  width: 100%;
  max-width: 13rem;
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
  font-size: 0.95rem;
  border-color: var(--premium-border);
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.iphone-home-indicator {
  width: 6.85rem;
  height: 0.28rem;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 0.15rem;
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
}

/* Simulated Slang Cards Grid Component */
.slang-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  perspective: 1000px;
}

.slang-strip {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.slang-strip:nth-child(2) {
  justify-content: flex-end;
}

.slang-card {
  padding: 1rem 1.45rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25),
              inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  transition: var(--transition-smooth);
  cursor: default;
}

.slang-card:hover {
  border-color: var(--premium-accent);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.12);
  transform: translateY(-2px) rotateY(-2deg);
}

.slang-card.highlighted {
  border-color: rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.05);
}

/* simulated watch mockup */
.watch-showcase-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.watch-mockup {
  width: 11.2rem;
  height: 13.5rem;
  border-radius: 2.25rem;
  border: 2px solid var(--premium-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
}

.watch-screen {
  flex: 1;
  border-radius: 1.85rem;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.85rem;
  text-align: center;
}

.watch-time-small {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--premium-accent);
  letter-spacing: 0.05em;
}

.watch-progress-circle {
  width: 5.5rem;
  height: 5.5rem;
  position: relative;
  display: grid;
  place-items: center;
}

.watch-inner-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.watch-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.watch-lbl {
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.watch-card-slang {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 7.2rem;
  line-height: 1.3;
}

/* Simulated history charts */
.chart-card-wrapper {
  width: 100%;
  max-width: 24rem;
  padding: 1.85rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.85rem;
}

.chart-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.chart-timeframe-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--premium-accent);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  padding: 0.25rem 0.55rem;
  border-radius: 0.65rem;
}

.bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 8.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.65rem;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.chart-bar-rail {
  width: 1.15rem;
  height: 6.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.35rem;
  position: relative;
  overflow: hidden;
}

.chart-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--premium-accent), rgba(139, 92, 246, 0.4));
  border-radius: 0.35rem;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
  transition: height 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chart-bar-fill.gold {
  background: linear-gradient(180deg, var(--premium-gold), rgba(251, 191, 36, 0.4));
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.chart-lbl-day {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.chart-total-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-display);
}

/* Simulated widgets */
.widgets-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 24rem;
}

.sim-widget {
  padding: 1.15rem;
  border-radius: 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.sim-widget.medium {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 11rem;
}

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

.widget-icon {
  width: 1.65rem;
  height: 1.65rem;
  filter: drop-shadow(0 0 4px var(--premium-accent-glow));
}

.widget-streak {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--premium-gold);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.15);
  padding: 0.25rem 0.55rem;
  border-radius: 2rem;
}

.widget-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.widget-large-time {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
}

.widget-stat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.widget-stat-lbl {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.widget-stat-desc {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--premium-success);
}

.sim-widget.small {
  height: 5.5rem;
  justify-content: space-between;
}

.widget-sm-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.widget-sm-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.widget-sm-val {
  font-size: 1.45rem;
  font-weight: 900;
}

/* Interactive Goal customizer widget */
.goal-customizer-section {
  max-width: 68rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.goal-customizer {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2.25rem;
  text-align: center;
}

.goal-customizer-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.goal-customizer-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 2.25rem;
}

.goal-slider-wrapper {
  position: relative;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.goal-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.goal-slider-labels span {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.goal-slider-labels span:hover {
  color: #fff;
}

.goal-slider-labels span.active {
  color: var(--premium-accent);
  transform: scale(1.1);
  text-shadow: 0 0 8px var(--premium-accent-glow);
}

/* Customized modern HTML5 range slider */
.goal-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.goal-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--premium-accent);
  box-shadow: 0 0 12px var(--premium-accent);
  transition: var(--transition-fast);
}

.goal-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 0 16px var(--premium-accent);
}

.goal-range-slider::-moz-range-thumb {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--premium-accent);
  box-shadow: 0 0 12px var(--premium-accent);
  transition: var(--transition-fast);
}

.goal-range-slider::-moz-range-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 0 16px var(--premium-accent);
}

.goal-feedback-card {
  padding: 1.5rem;
  border-color: rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.03);
}

.goal-rating-stars {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
}

.goal-rating-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.45rem;
}

.goal-rating-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Creator Personal Journal Section */
.creator-section {
  max-width: 68rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.creator-panel {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.creator-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, var(--premium-accent-glow), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.creator-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.85rem;
  text-align: left;
}

.creator-content {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: left;
  white-space: pre-line;
}

/* App Store Download Bottom Banner */
.download-banner-section {
  max-width: 68rem;
  margin: 4.5rem auto;
  padding: 0 1.25rem;
}

.download-banner {
  padding: 3.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.download-banner-title {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* QR Overlay Dialog Window */
.overlay-hidden {
  display: none !important;
}

.qr-overlay-container {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.qr-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.qr-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 25.5rem;
  padding: 2.25rem;
  text-align: center;
}

.close-overlay-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-overlay-btn:hover {
  color: #fff;
  border-color: var(--premium-border);
  background: rgba(255,255,255,0.1);
}

.qr-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.65rem;
  margin-bottom: 0.45rem;
}

.qr-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.85rem;
}

.qr-box-wrapper {
  margin: 0 auto 1.85rem;
  width: 14rem;
  height: 14rem;
  padding: 0.85rem;
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Premium generated SVG QR representation */
.qr-svg {
  width: 100%;
  height: 100%;
}

.qr-direct-link {
  display: inline-flex;
}

/* Footer Section */
.footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  text-align: left;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-svg {
  width: 1.85rem;
  height: 1.85rem;
}

.footer-logo-text {
  font-size: 1.05rem;
  font-weight: 800;
}

.footer-brand-section p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.footer-links-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--premium-accent);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* Dynamic Scroll reveals */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.85s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   DYNAMIC RTL SUPPORT (Arabic / Urdu)
   ========================================================================== */

[dir="rtl"] {
  text-align: right !important;
}

[dir="rtl"] .nav-brand {
  flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-dropdown summary {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-option {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-copy {
  align-items: flex-start;
  text-align: right;
}

[dir="rtl"] .creator-title,
[dir="rtl"] .creator-content {
  text-align: right;
}

[dir="rtl"] .footer-brand-section {
  align-items: flex-start;
  text-align: right;
}

[dir="rtl"] .footer-logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-links-section {
  align-items: flex-start;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 960px) {
  .feature-row, .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .feature-row:nth-child(even) .feature-copy {
    order: 1;
  }
  
  .feature-row:nth-child(even) .feature-visual {
    order: 2;
  }
  
  .feature-copy {
    align-items: center;
    text-align: center;
  }
  
  .feature-highlights {
    justify-content: center;
  }
  
  .widgets-container, .chart-card-wrapper, .watch-showcase-container {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .header-bar {
    top: 1rem;
  }
  
  .nav-brand .brand-title {
    display: none; /* Hide brand text on tiny screens to save space */
  }
  
  .hero-section {
    padding: 3.5rem 1rem 1.5rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 18rem;
    margin: 0 auto;
  }
  
  .cta-large-btn {
    width: 100%;
    justify-content: center;
  }
  
  .qr-circle-btn {
    display: none; /* Hide QR buttons on mobile since they download directly */
  }
  
  .features-section {
    gap: 4.5rem;
    padding: 2.5rem 1rem;
  }
  
  .goal-customizer-section {
    padding: 2.5rem 1rem;
  }
  
  .goal-customizer {
    padding: 1.5rem 1rem;
  }
  
  .creator-section {
    padding: 2.5rem 1rem;
  }
  
  .creator-panel {
    padding: 2rem 1.25rem;
  }
  
  .download-banner-section {
    margin: 2.5rem auto;
    padding: 0 1rem;
  }
  
  .footer {
    padding: 2.5rem 1rem 3.5rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-brand-section {
    align-items: center;
    text-align: center;
  }
  
  .footer-links-section {
    align-items: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Hidden Utility class */
.hidden {
  display: none !important;
}
