/* 
=========================================
JF DICTIONARY LANDING PAGE STYLESHEET
Premium Glassmorphism & High-Contrast Dark Theme
=========================================
*/

/* ─── RESET & DEFAULTS ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette (Deep Space Theme) */
  --bg-page: #080c14;
  --bg-page-rgb: 8, 12, 20;
  --bg-surface: rgba(17, 24, 39, 0.7);
  --bg-surface-solid: #0d1321;
  --border-surface: rgba(255, 255, 255, 0.08);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-rgb: 99, 102, 241;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  
  --secondary: #1e293b;
  --secondary-hover: #334155;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-rgb: 16, 185, 129;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0f172a;
  
  --glass-blur: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.6);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  /* Font stacks */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 5px;
  border: 2px solid var(--bg-page);
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* ─── TYPOGRAPHY & UTILITIES ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-text {
  color: var(--primary);
}

.no-scroll {
  overflow: hidden;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: all 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

.btn-sm {
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: var(--radius-lg);
}

.icon-svg {
  width: 1.2em;
  height: 1.2em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ─── HEADER / NAVIGATION ─── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 12, 20, 0.65);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-surface);
  transition: background 0.3s;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile Drawer */
#mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 320px;
  height: 100vh;
  background: #090e18;
  z-index: 105;
  border-left: 1px solid var(--border-surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

#mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#mobile-drawer-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
}

#mobile-drawer-close:hover {
  color: var(--text-main);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.mobile-nav-link:hover {
  color: var(--text-main);
}

.drawer-divider {
  height: 1px;
  background: var(--border-surface);
}

.mobile-downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-dl-btn {
  justify-content: flex-start;
  padding: 12px 16px;
  font-size: 0.95rem;
}

/* ─── HERO SECTION ─── */
#hero {
  position: relative;
  padding: 120px 24px 60px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%; left: 30%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 100%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-surface);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-badge.badge-accent {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hero-download-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-metadata {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subtext-download {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 6px;
}

.download-stats {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.download-stats span {
  color: var(--accent);
  font-weight: 600;
}

.download-stats .stats-divider {
  opacity: 0.3;
}

.rating-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.rating-link:hover {
  color: var(--text-main);
  transform: translateY(-0.5px);
}

.rating-link .star-icon {
  color: #f59e0b;
  font-size: 0.85rem;
}

.rating-link span {
  color: var(--text-main);
  font-weight: 600;
}

.rating-link .review-count {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.72rem;
}

/* ─── APP SCREENSHOT SHOWCASE FRAME ─── */
.hero-mockup-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  width: 100%;
}

.screenshot-showcase-container {
  width: 100%;
  max-width: 560px;
  background: #111827;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.screenshot-showcase-container:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.25);
}

.screenshot-showcase-header {
  background: #1f2937;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-window-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-title);
  letter-spacing: 0.02em;
}

.screenshot-theme-toggles {
  display: flex;
  gap: 6px;
}

.btn-theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.btn-theme-toggle.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #ffffff;
}

.screenshot-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1100 / 720;
  background: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-viewport a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

#screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.screenshot-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-viewport:hover .screenshot-hover-overlay {
  opacity: 1;
}

.screenshot-hover-overlay .overlay-icon {
  font-size: 1.8rem;
}

.screenshot-hover-overlay .overlay-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ─── LIGHTBOX MODAL STYLES ─── */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(6, 9, 16, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  animation: lightboxFadeIn 0.25s ease-out;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  animation: lightboxZoom 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxZoom {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 40px;
  color: var(--text-muted);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--text-main);
}

#lightbox-caption {
  margin: 16px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* ─── GENERAL SECTIONS STYLE ─── */
section {
  padding: 60px 24px;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ─── FEATURES GRID ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.15;
}

.feat-svg-icon {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Core glows */
.f-glow-blue { 
  background: rgba(99, 102, 241, 0.1); color: #6366f1; 
  border: 1px solid rgba(99, 102, 241, 0.2); 
}
.f-glow-blue::after { background: #6366f1; }

.f-glow-green { 
  background: rgba(16, 185, 129, 0.1); color: #10b981; 
  border: 1px solid rgba(16, 185, 129, 0.2); 
}
.f-glow-green::after { background: #10b981; }

.f-glow-purple { 
  background: rgba(168, 85, 247, 0.1); color: #a855f7; 
  border: 1px solid rgba(168, 85, 247, 0.2); 
}
.f-glow-purple::after { background: #a855f7; }

.f-glow-yellow { 
  background: rgba(245, 158, 11, 0.1); color: #f59e0b; 
  border: 1px solid rgba(245, 158, 11, 0.2); 
}
.f-glow-yellow::after { background: #f59e0b; }

.f-glow-red { 
  background: rgba(239, 68, 68, 0.1); color: #ef4444; 
  border: 1px solid rgba(239, 68, 68, 0.2); 
}
.f-glow-red::after { background: #ef4444; }

.f-glow-indigo { 
  background: rgba(79, 70, 229, 0.1); color: #818cf8; 
  border: 1px solid rgba(79, 70, 229, 0.2); 
}
.f-glow-indigo::after { background: #4f46e5; }

.feature-card-title {
  font-size: 1.3rem;
  color: var(--text-main);
}

.feature-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ─── KEYBOARD SHORTCUTS ─── */
.shortcuts-board {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  padding: 24px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, border-color 0.2s;
}

.shortcut-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.keys-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 220px;
  flex-shrink: 0;
}

/* Tactile Keyboard Keycaps CSS */
.key-kbd {
  background: #1e293b;
  color: var(--text-main);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 0 #0f172a, 0 5px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
  display: inline-block;
  user-select: none;
}

.key-kbd::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px; right: 1px; bottom: 3px;
  border-radius: 4px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, transparent 100%);
  pointer-events: none;
}

.key-plus, .key-slash {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.shortcut-details h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.shortcut-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── FOOTER ─── */
#site-footer {
  background: #060910;
  border-top: 1px solid var(--border-surface);
  padding: 56px 24px 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
}

.footer-logo {
  width: 28px;
  height: 28px;
}

.footer-motto {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--text-main);
  padding-left: 2px;
}

.footer-community-credit {
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bottom-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.bottom-links a:hover {
  color: var(--text-main);
}

.bottom-links .divider {
  opacity: 0.3;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */

/* Desktop & Large viewports */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Tablets & Portables */
@media (max-width: 768px) {
  #desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  #hero {
    padding-top: 120px;
  }

  .shortcut-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .keys-display {
    width: auto;
    justify-content: flex-start;
  }
}

/* Phones & Compact Viewports */
@media (max-width: 480px) {
  .header-container {
    padding: 12px 16px;
  }

  #header-download-btn {
    display: none;
  }

  .logo-link {
    gap: 8px;
  }

  .nav-logo-text {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-download-wrapper {
    width: 100%;
  }

  .mockup-frame {
    height: 440px;
  }

  .sim-sidebar {
    width: 140px;
  }

  .sim-mode-btn {
    font-size: 0.6rem;
  }

  .sim-titlebar-right .sim-btn-label {
    display: none;
  }
}

/* ─── SCROLL TO TOP BUTTON ─── */
#scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scroll-to-top:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

#scroll-to-top:active {
  transform: translateY(-2px) scale(0.92);
}

#scroll-to-top svg {
  transition: transform 0.2s ease;
}

#scroll-to-top:hover svg {
  transform: translateY(-2px);
}

/* Adjust button position on very small screens to avoid overlaying on content */
@media (max-width: 480px) {
  #scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
