/* ============================================
   Orint Landing Page — Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #64B5F6;
  --color-primary-dark: #2196F3;
  --color-primary-light: #90CAF9;
  --color-bg: #0F1216;
  --color-bg-alt: #141920;
  --color-bg-dark: #0F1216;
  --color-text: #F5F7F2;
  --color-text-light: #B8C0BA;
  --color-text-on-dark: #F9FAFB;
  --color-border: rgba(255, 255, 255, 0.11);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --color-accent: #8BD17C;
  --color-voice: #CE93D8;
  --color-data: #80DEEA;
  --color-money: #FFCC80;
  --color-surface: #111418;
  --color-surface-2: #141920;
  --color-card: #171B21;
  --color-card-hover: #1C222B;
  --color-tab-bg: #171B21;
  --color-tab-active: #2196F3;
  --color-tab-text: #7F8A84;
  --color-tab-text-active: #F5F7F2;
  --color-overlay: rgba(0, 0, 0, 0.75);
  --color-lightbox-bg: rgba(0, 0, 0, 0.92);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 1200px;
  --border-radius: 12px;
  --transition: 0.3s ease;
  --nav-height: 64px;
}

/* Light theme overrides */
[data-theme="light"] {
  --color-bg: #F7F7F2;
  --color-bg-alt: #F0F2EC;
  --color-bg-dark: #EAECE5;
  --color-text: #1B1F24;
  --color-text-light: #4F5A55;
  --color-text-on-dark: #1B1F24;
  --color-border: #D8DDD2;
  --color-border-strong: #C8D0C3;
  --color-surface: #FCFCF8;
  --color-surface-2: #F0F2EC;
  --color-card: #FFFFFF;
  --color-card-hover: #FEFFFB;
  --color-tab-bg: #FFFFFF;
  --color-tab-text: #748077;
  --color-tab-text-active: #1B1F24;
  --color-tab-active: #1565C0;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --color-lightbox-bg: rgba(0, 0, 0, 0.85);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 18, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

[data-theme="light"] .nav {
  background: rgba(247, 247, 242, 0.88);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-support {
  background: var(--color-primary) !important;
  color: white !important;
}

.nav-support:hover {
  background: var(--color-primary-dark) !important;
  color: white !important;
}

/* --- Theme Toggle --- */
.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  margin: 0 8px;
}

.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.theme-toggle svg {
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

[data-theme="dark"] .sun-icon,
:root:not([data-theme]) .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .moon-icon,
:root:not([data-theme]) .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .sun-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="light"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* --- Desktop Language Selector --- */
.nav-lang-desktop {
  display: flex;
  align-items: center;
  margin: 0 8px;
}

.lang-select {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-card);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  font-family: var(--font-sans);
  max-width: 150px;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--color-primary);
}

/* --- Hamburger Button --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Mobile Drawer --- */
.drawer-overlay {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--transition);
}

.drawer-overlay.open {
  visibility: visible;
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--color-card);
  z-index: 300;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  padding: 24px;
  overflow-y: auto;
  transition: right var(--transition);
}

.drawer.open {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--transition);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.drawer-links {
  list-style: none;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-links a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 8px;
  transition: all var(--transition);
}

.drawer-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-primary);
}

.drawer-links a.nav-support {
  text-align: center;
  margin-top: 8px;
}

.drawer-lang-item {
  margin-top: 24px;
  padding: 16px;
  border-top: 1px solid var(--color-border);
}

.drawer-lang-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.drawer-lang-item .lang-select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
}

/* --- Hero Section --- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(33, 150, 243, 0.18), transparent 34rem),
    linear-gradient(180deg, #111418 0%, #0F1216 100%);
  overflow: hidden;
  transition: background var(--transition);
}

[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(21, 101, 192, 0.10), transparent 34rem),
    linear-gradient(180deg, #FCFCF8 0%, #F7F7F2 100%);
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.15);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-reflection {
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-style: italic;
  max-width: 540px;
  margin: -16px auto 32px;
  line-height: 1.6;
  opacity: 0.85;
}

/* --- Store Buttons --- */
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.store-btn svg {
  flex-shrink: 0;
}

.store-btn-primary {
  background: var(--color-primary);
  color: white;
}

.store-btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
  color: white;
}

.store-btn-secondary {
  background: var(--color-card);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.store-btn-secondary:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  color: var(--color-primary);
}

/* ============================================
   Platform Tabs
   ============================================ */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--color-tab-bg);
  color: var(--color-tab-text);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.platform-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.platform-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.platform-tab svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Platform content panels */
.platform-panel {
  display: none;
}

.platform-panel.active {
  display: block;
}

/* --- Portrait Carousel (Android phone, iPhone) --- */
.platform-phone .screenshot-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 16px;
}

.platform-phone .screenshot-scroll::-webkit-scrollbar {
  display: none;
}

.platform-phone .screenshot-track {
  display: flex;
  gap: 16px;
  padding: 0 4px;
}

.platform-phone .screenshot-card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-snap-align: center;
}

.platform-phone .screenshot-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.platform-phone .screenshot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.screenshot-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* --- Tablet display (Android tablet + iPad) --- */
.platform-tablet .tablet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.platform-tablet .tablet-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.platform-tablet .tablet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.platform-tablet .tablet-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Single tablet (Android) */
.platform-tablet .tablet-single {
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.platform-tablet .tablet-single:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.platform-tablet .tablet-single img {
  width: 100%;
  height: auto;
}

/* --- Desktop grid (Mac & Windows) --- */
.platform-desktop .desktop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.platform-desktop .desktop-thumb {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  aspect-ratio: 16 / 10;
}

.platform-desktop .desktop-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.platform-desktop .desktop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-thumb-label {
  display: none;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--color-lightbox-bg);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1001;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

/* --- Screenshots Section --- */
.screenshots {
  padding: 80px 0;
  background: var(--color-bg);
  transition: background var(--transition);
}

[data-theme="light"] .screenshots {
  background: var(--color-bg);
}

.screenshots h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.screenshots-layout {
  position: relative;
}

/* --- Privacy Promise --- */
.privacy {
  padding: 80px 0;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  text-align: center;
  transition: background var(--transition);
}

.privacy h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.privacy p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.privacy-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: block;
}

/* --- Features Section --- */
.features {
  padding: 80px 0;
  background: var(--color-bg-alt);
  transition: background var(--transition);
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--color-card);
  padding: 28px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.feature-icon.offline { background: rgba(33, 150, 243, 0.16); color: var(--color-primary); }
.feature-icon.habit { background: rgba(139, 209, 124, 0.12); color: var(--color-accent); }
.feature-icon.journal { background: rgba(249, 115, 22, 0.12); color: #F97316; }
.feature-icon.insights { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
.feature-icon.voice { background: rgba(206, 147, 216, 0.12); color: var(--color-voice); }
.feature-icon.goals { background: rgba(255, 204, 128, 0.12); color: var(--color-money); }
.feature-icon.privacy-icon-feature { background: rgba(5, 150, 105, 0.12); color: #059669; }
.feature-icon.export { background: rgba(128, 222, 234, 0.12); color: var(--color-data); }
.feature-icon.focus { background: rgba(255, 204, 128, 0.12); color: var(--color-money); }
.feature-icon.summary { background: rgba(79, 70, 229, 0.12); color: #4F46E5; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Highlight Sections (Voice, Data, Monetization) --- */
.highlight {
  padding: 80px 0;
  transition: background var(--transition);
}

.highlight-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.highlight-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.highlight h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.highlight p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

.highlight-voice {
  background: var(--color-bg);
}

.highlight-voice h2 {
  color: var(--color-voice);
}

.highlight-data {
  background: var(--color-bg-alt);
}

.highlight-data h2 {
  color: var(--color-data);
}

.highlight-money {
  background: var(--color-bg);
}

.highlight-money h2 {
  color: var(--color-money);
}

/* --- Age Rating Section --- */
.age-rating {
  padding: 60px 0;
  text-align: center;
  background: var(--color-bg-alt);
  transition: background var(--transition);
}

.age-rating h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.age-rating > .container > p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
}

.store-metadata {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.metadata-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.metadata-label {
  font-size: 1.1rem;
  line-height: 1;
}

.age-sep {
  color: var(--color-border);
}

.age-store-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.age-store-link:hover {
  color: var(--color-primary-dark);
}

/* --- FAQ Section --- */
.faq {
  padding: 80px 0;
  background: var(--color-bg);
  transition: background var(--transition);
}

.faq h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.open {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition);
  gap: 16px;
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-arrow {
  font-size: 0.85rem;
  color: var(--color-text-light);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Desktop grid label tooltips --- */
.desktop-grid-item {
  position: relative;
}

.desktop-grid-item .grid-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.desktop-grid-item:hover .grid-label {
  opacity: 1;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  transition: background var(--transition);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  color: var(--color-text-light);
  opacity: 0.6;
  font-size: 0.8rem;
}

.footer-note {
  color: var(--color-text-light);
  opacity: 0.5;
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
}

/* ============================================
   RTL Support (Arabic)
   ============================================ */
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .faq-question {
  text-align: right;
}

html[dir="rtl"] .faq-arrow {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .platform-phone .screenshot-track {
  flex-direction: row-reverse;
}

html[dir="rtl"] .store-metadata {
  direction: rtl;
}

html[dir="rtl"] .drawer {
  right: auto;
  left: -300px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

html[dir="rtl"] .drawer.open {
  left: 0;
  right: auto;
}

html[dir="rtl"] .drawer-close {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .drawer-links a {
  text-align: right;
}

html[dir="rtl"] .footer .container {
  flex-direction: row-reverse;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-center .nav-links {
    display: none;
  }
  .nav-lang-desktop {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  html[dir="rtl"] .footer .container {
    flex-direction: column;
  }

  .platform-desktop .desktop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .platform-tablet .tablet-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-nav.prev {
    left: 8px;
  }

  .lightbox-nav.next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .store-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  
  .platform-phone .screenshot-card {
    width: 160px;
  }

  .platform-desktop .desktop-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .nav-center .theme-toggle {
    margin: 0 4px;
  }

  .platform-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* Desktop: show lang selector, hide hamburger */
@media (min-width: 769px) {
  .nav-lang-desktop {
    display: flex;
  }
  .hamburger {
    display: none;
  }
}