/* ==========================================================================
   Tazamon Landing Page - Clean White Canvas & Distinctive Solar Terracotta
   Distinctive Typography · React Bits Interactive Hero Grid · 3-OS Standalone
   ========================================================================== */

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-subtle: #F9FAFB;
  --surface: #FFFFFF;
  --surface-hover: #F4F4F5;
  --surface-active: #E5E7EB;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;

  /* Cloudflare Silver Hairlines + Solar Orange Identity */
  --primary: #EA580C;
  --primary-hover: #C2410C;
  --primary-glow: transparent;

  --accent: #EA580C;
  --accent-hover: #C2410C;
  --accent-light: #FFF7ED;

  --accent-emerald: #16A34A;
  --accent-mint: #16A34A;
  --accent-cyan: #EA580C;
  --accent-amber: #F59E0B;
  --accent-indigo: #EA580C;
  --accent-purple: #EA580C;
  --accent-flame: #EA580C;

  --status-avail: #16A34A;
  --status-off: #F59E0B;
  --status-sleep: #9CA3AF;
  --status-meet: #EF4444;
  --needle: #EA580C;

  --card-shadow: none;
  --hero-glow: transparent;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090B;
  --bg-subtle: #111114;
  --surface: #111114;
  --surface-hover: #18181B;
  --surface-active: #27272A;
  --border: #27272A;
  --border-strong: #3F3F46;

  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;

  --primary: #EA580C;
  --primary-hover: #F97316;
  --primary-glow: transparent;

  --accent: #EA580C;
  --accent-hover: #F97316;
  --accent-light: #2A1508;

  --accent-emerald: #22C55E;
  --accent-mint: #22C55E;
  --accent-cyan: #EA580C;
  --accent-amber: #F59E0B;
  --accent-indigo: #EA580C;
  --accent-purple: #EA580C;
  --accent-flame: #EA580C;

  --status-avail: #22C55E;
  --status-off: #F59E0B;
  --status-sleep: #52525B;
  --status-meet: #EF4444;
  --needle: #F97316;

  --card-shadow: none;
  --hero-glow: transparent;
}

/* ================= Base Reset ================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

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

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
  position: relative;
  z-index: 2;
}

/* Continuous 1px Vertical Silver Architectural Rails */
#main {
  position: relative;
}
#main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 24px));
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  pointer-events: none;
  z-index: 1;
}

.text-center {
  text-align: center;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ================= Typography & Distinctive Headings (Solid, Zero Gradient) ================= */
h1, h2, h3, h4, h5, .brand-name, .hero-title, .section-title, .panel-heading {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.03em;
}

.gradient-text,
.hero-title-accent {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  color: var(--accent) !important;
  display: inline-block;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: #E05320 !important;
  color: #FFFFFF !important;
  border: 1px solid #C84313;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.btn-primary:hover {
  background: #C84313 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

[data-theme="dark"] .btn-primary {
  background: #EA580C !important;
  color: #FFFFFF !important;
  border: 1px solid #C2410C;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .btn-primary:hover {
  background: #C2410C !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .btn-primary svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: #E05320;
  color: #E05320;
  transform: translateY(-1px);
}
.btn-secondary:hover svg {
  stroke: #E05320;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 0;
}

.btn-block {
  width: 100%;
}

.btn-link {
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ================= Morphing Navigation (Docked at Top -> Compact Floating on Scroll) ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  pointer-events: none;
  transition: top 0.38s cubic-bezier(0.16, 1, 0.3, 1), padding 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  height: 64px;
  padding: 0 32px;
  border-radius: 0;
  background: var(--bg);
  border: 1px solid transparent;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
  transition:
    max-width 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.nav.scrolled {
  top: 14px;
  padding: 0 16px;
}

.nav.scrolled .nav-inner {
  max-width: 1080px;
  height: 52px;
  padding: 0 14px 0 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-inner {
  background: var(--bg);
  border-color: transparent;
  border-bottom-color: var(--border);
}

[data-theme="dark"] .nav.scrolled .nav-inner {
  background: rgba(17, 17, 20, 0.90);
  border-color: var(--border-strong);
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.75);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  justify-self: start;
  text-decoration: none;
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 0;
}

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

/* Calm, quiet version pill */
.badge-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-tertiary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .badge-version {
  background: rgba(255, 255, 255, 0.06);
  color: #A1A1AA;
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 6px 11px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

/* Compact, Uncluttered GitHub Pill in Navbar */
.nav-actions .gh-label {
  display: none;
}

.nav-actions .btn-github {
  height: 34px;
  padding: 0 9px;
  gap: 6px;
}

/* Calm GitHub Pill */
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-github:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: none;
  box-shadow: none;
}

.btn-github svg {
  flex-shrink: 0;
}

.gh-star-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  border: none;
}

[data-theme="dark"] .gh-star-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #D4D4D8;
}

.gh-star-pill svg {
  fill: #EAB308;
}

.hero-gh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}
.hero-gh-badge:hover {
  color: var(--accent-emerald);
}
.hero-gh-badge .badge-stars {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #B45309;
}

.footer-gh-row {
  margin-top: 14px;
}

/* Minimalist Theme & Language Toggles */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.lang-toggle {
  height: 34px;
  padding: 0 10px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.lang-toggle:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* Refined Compact CTA */
.nav-cta {
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  border-radius: 0;
  background: #EA580C !important;
  color: #FFFFFF !important;
  border: 1px solid #C2410C !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}

.nav-cta:hover {
  background: #C2410C !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14) !important;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  place-items: center;
}

/* ================= 01 HERO SECTION (CENTERED) ================= */
.hero {
  position: relative;
  padding: 72px 0 85px;
  background: var(--bg);
  overflow: hidden;
}

/* ================= Calm & Modern Hero Grid (كارو هادي ومرتب وعصري) ================= */
.hero-grid-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  mask-image: radial-gradient(circle 540px at 50% 15%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle 540px at 50% 15%, #000 20%, transparent 75%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(28, 25, 23, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 25, 23, 0.035) 1px, transparent 1px);
}

[data-theme="dark"] .hero-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
}

/* Subtle, calm interactive cursor reaction (Zero orange glare) */
.hero-grid-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 30%),
    rgba(0, 0, 0, 0.02) 0%,
    transparent 65%
  );
  pointer-events: none;
  transition: background 0.08s ease-out;
}

[data-theme="dark"] .hero-grid-spotlight {
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 30%),
    rgba(255, 255, 255, 0.025) 0%,
    transparent 65%
  );
}

.hero-grid-shimmer {
  display: none !important;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.035em;
  max-width: 920px;
  margin: 0 auto 28px;
}

/* Figma-Style Mouse Drag-Select Animation in Hero Title */
@keyframes marqueeDrag {
  0% {
    width: 0%;
    height: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    width: 100%;
    height: 100%;
    opacity: 1;
  }
}

@keyframes cursorDrag {
  0% {
    left: -2px;
    top: -2px;
    opacity: 0;
    transform: scale(0.9);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  75% {
    left: calc(100% - 3px);
    top: calc(100% - 3px);
    opacity: 1;
    transform: scale(1);
  }
  85% {
    left: calc(100% - 3px);
    top: calc(100% - 3px);
    opacity: 1;
    transform: scale(0.82);
  }
  100% {
    left: calc(100% + 10px);
    top: calc(100% + 10px);
    opacity: 0;
    transform: scale(0.95);
  }
}

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

@keyframes tagSlideUp {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero-select-box {
  position: relative;
  display: inline-block;
  padding: 2px 12px 4px;
  margin: 0 4px;
  color: var(--text-primary);
  line-height: 1.05;
  vertical-align: baseline;
  direction: ltr;
}

.sb-focus-text {
  position: relative;
  z-index: 2;
}

[dir="rtl"] .sb-focus-text {
  direction: rtl;
  unicode-bidi: isolate;
}

.sb-marquee {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1.5px solid #EA580C;
  background: rgba(234, 88, 12, 0.08);
  pointer-events: none;
  z-index: 1;
  animation: marqueeDrag 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  transition: background-color 0.2s ease;
}

.hero-select-box:hover .sb-marquee {
  background: rgba(234, 88, 12, 0.13);
}

[data-theme="dark"] .sb-marquee {
  background: rgba(234, 88, 12, 0.14);
}

.sb-cursor {
  position: absolute;
  left: -2px;
  top: -2px;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
  animation: cursorDrag 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.sb-corner {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--bg);
  border: 1.5px solid #EA580C;
  pointer-events: none;
  z-index: 3;
  animation: cornerPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) 1.02s both;
}
.sb-corner.tl { top: -3.5px; left: -3.5px; }
.sb-corner.tr { top: -3.5px; right: -3.5px; animation-delay: 1.05s; }
.sb-corner.bl { bottom: -3.5px; left: -3.5px; animation-delay: 1.08s; }
.sb-corner.br { bottom: -3.5px; right: -3.5px; animation-delay: 1.11s; }

.sb-tag {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #EA580C;
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
  direction: ltr;
  z-index: 4;
  animation: tagSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) 1.12s both;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

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

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0 auto 36px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-badges svg {
  color: var(--status-avail);
}

/* ================= Hero Real Desktop App Window & Floating Badges ================= */
.hero-preview-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto 44px;
  position: relative;
  z-index: 5;
  perspective: none !important;
}

.hero-window-aura {
  display: none !important;
}

.floating-badge {
  position: absolute;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(28, 25, 23, 0.1);
  box-shadow: 
    0 12px 30px -5px rgba(0, 0, 0, 0.08),
    0 2px 8px -2px rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

[data-theme="dark"] .floating-badge {
  background: rgba(18, 18, 21, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.65);
}

.badge-left {
  top: -18px;
  left: -20px;
  animation: floatLeft 5s ease-in-out infinite alternate;
}

.badge-right {
  bottom: 24px;
  right: -20px;
  animation: floatRight 6s ease-in-out infinite alternate;
}

/* Silky smooth 2D vertical float (Zero rotation, Zero skew) */
@keyframes floatLeft {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

@keyframes floatRight {
  0% { transform: translateY(0px); }
  100% { transform: translateY(8px); }
}

.float-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-icon-box.icon-orange,
.float-icon-box.icon-green {
  background: #FFF5F0;
  color: #E05320;
  border: 1px solid #FED7C3;
}
.float-icon-box.icon-amber,
.float-icon-box.icon-blue {
  background: #FEF3C7;
  color: #D97706;
  border: 1px solid #FDE68A;
}

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

.float-title {
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
}

.float-sub {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin-top: 2px;
}

.hero-window-frame {
  position: relative;
  z-index: 10;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 
    0 20px 50px -15px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--border);
  overflow: hidden;
  transform: none !important;
  transform-style: flat !important;
  transition: box-shadow 0.3s ease, border-color 0.2s ease;
}

[data-theme="dark"] .hero-window-frame {
  box-shadow: 
    0 24px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-window-frame:hover {
  box-shadow: 
    0 26px 65px -15px rgba(0, 0, 0, 0.12),
    0 0 0 1px var(--border-strong);
}

[data-theme="dark"] .hero-window-frame:hover {
  box-shadow: 
    0 28px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ctrl-dot {
  width: 11px;
  height: 11px;
  border-radius: 0;
}
.dot-close { background: #FF5F56; }
.dot-min { background: #FFBD2E; }
.dot-max { background: #27C93F; }

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #E05320;
  background: #FFF5F0;
  padding: 3px 8px;
  border-radius: 0;
  border: 1px solid #FED7C3;
}

[data-theme="dark"] .window-status {
  color: #EA580C;
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.25);
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: #E05320;
}

[data-theme="dark"] .status-pulse-dot {
  background: #EA580C;
}

.window-screenshot-wrapper {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  line-height: 0;
}

.window-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* World Clock Strip */
.clock-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.clock {
  padding: 18px;
  border-right: 1px solid var(--border);
  text-align: left;
  transition: background-color 0.2s ease;
}
.clock:last-child {
  border-right: none;
}
.clock.is-you {
  background: rgba(99, 102, 241, 0.08);
}

.clock-city {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.clock.is-you .clock-city {
  color: var(--accent-indigo);
}

.clock-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 6px;
}
.clock-time small {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.clock-status {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ================= Section Base Layout ================= */
.section {
  padding: 100px 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.world-map-stage.is-paused .map-arc-anim,
.world-map-stage.is-paused .map-city-ring {
  animation-play-state: paused;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ================= Smooth Entrance & Scroll Reveal Animations ================= */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  animation: heroFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-sub {
  animation: heroFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}
.hero-actions {
  animation: heroFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}
.hero-badges {
  animation: heroFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}
.hero-preview-container {
  animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.reveal-item.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-sub, .hero-actions, .hero-badges, .hero-preview-container {
    animation: none !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ================= 02 PRODUCT SHOWCASE ================= */
.app-window {
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.app-dots {
  display: flex;
  gap: 6px;
}
.app-dots span {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: var(--border-strong);
}

.app-body {
  --p: 0.5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  background: var(--bg);
}

.app-timeline-pane {
  padding: 24px;
  min-width: 0;
}

.app-sidebar-pane {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.panel-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.panel-sub {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: 0;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot-swatch {
  width: 8px;
  height: 8px;
  border-radius: 0;
  display: inline-block;
}
.swatch-avail { background: var(--status-avail); }
.swatch-off { background: var(--status-off); }
.swatch-sleep { background: var(--status-sleep); }
.swatch-meet { background: var(--status-meet); }

.timeline-scroll-area {
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-tracks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 660px;
}

.track-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.host-track-card {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.host-badge-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.875rem;
}

.host-live-time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent-cyan);
}

.track-tz-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.member-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}
.member-title .city {
  font-weight: 500;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.member-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  flex-shrink: 0;
}

.member-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.member-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
}
.member-clock small {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.status-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0;
  color: #fff;
}
.status-badge.s-avail { background: var(--status-avail); }
.status-badge.s-off { background: var(--status-off); color: #000; }
.status-badge.s-sleep { background: var(--status-sleep); }
.status-badge.s-meet { background: var(--status-meet); }

/* Timeline Scrubber UI */
.scrubber-track-area {
  position: relative;
}

.time-ticks {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  user-select: none;
}
.time-ticks span:nth-child(4) {
  color: var(--accent-cyan);
  font-weight: 700;
}

.timeline-scrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  background: transparent;
  cursor: ew-resize;
  margin: 0;
}
.timeline-scrubber::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 0;
  background: linear-gradient(to right, var(--needle) 0 calc(var(--p) * 100%), var(--border-strong) calc(var(--p) * 100%) 100%);
}
.timeline-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 0;
  background: var(--needle);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 24-Hour Segment Ribbon */
.ribbon-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 1px;
  height: 32px;
  border-radius: 0;
  overflow: hidden;
}

.ribbon-bar i {
  font-style: normal;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: filter 0.15s;
}
.ribbon-bar i:hover {
  filter: brightness(1.2);
}
.ribbon-bar i.s-avail { background: var(--status-avail); color: #04140D; }
.ribbon-bar i.s-off { background: var(--status-off); color: #1B1204; }
.ribbon-bar i.s-sleep { background: var(--status-sleep); color: #FFFFFF; }
.ribbon-bar i.s-meet { background: var(--status-meet); color: #FFFFFF; }

.ribbon-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--p) * 100%);
  width: 2px;
  margin-left: -1px;
  background: var(--needle);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.ribbon-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 0;
  background: var(--needle);
  z-index: 2;
  pointer-events: none;
}

.timeline-statusbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.8125rem;
}

.live-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-avail);
}
.live-indicator-badge.paused {
  background: var(--surface-hover);
  color: var(--text-tertiary);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: currentColor;
}

.overlap-summary {
  color: var(--text-secondary);
}

/* Sidebar Components */
.sidebar-card {
  padding: 18px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header-row h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.card-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 4px 0 12px;
}

.tag-ai {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.recs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-item-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 0;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.15s ease;
}
.rec-item-btn:hover {
  border-color: var(--accent-indigo);
  background: var(--surface-active);
}
.rec-item-btn.active {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.12);
}

.rec-slot-time {
  font-size: 0.8125rem;
  font-weight: 700;
}
.rec-utc-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.rec-score-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 0;
  background: var(--status-avail);
  color: #04140D;
}
.rec-score-pill.tier-2 {
  background: var(--accent-cyan);
  color: #04140D;
}
.rec-score-pill.tier-3 {
  background: var(--status-off);
  color: #1B1204;
}

.rec-explanation {
  grid-column: 1 / -1;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}

.time-preview-box {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-radius: 0;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.label-muted {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.preview-host-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.preview-utc-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.sleep-protection-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 0;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--status-meet);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}
.sleep-protection-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ================= 03 PROBLEM & SOLUTION ================= */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-card {
  padding: 36px 32px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.card-chaos {
  border-color: rgba(244, 63, 94, 0.2);
}
.card-solution {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(16, 185, 129, 0.04) 100%);
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-chaos {
  background: rgba(244, 63, 94, 0.12);
  color: var(--status-meet);
}
.badge-solution {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-avail);
}

.card-heading {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 24px;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.comparison-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}
.comparison-list p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.icon-indicator {
  width: 28px;
  height: 28px;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.icon-indicator.red {
  background: rgba(244, 63, 94, 0.15);
  color: var(--status-meet);
}
.icon-indicator.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-avail);
}

/* ================= 04 FEATURES ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}

.icon-cyan, .icon-orange { background: rgba(224, 83, 32, 0.12); color: #E05320; }
.icon-rose { background: rgba(244, 63, 94, 0.12); color: var(--status-meet); }
.icon-indigo { background: rgba(224, 83, 32, 0.12); color: #E05320; }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: var(--status-off); }
.icon-emerald { background: rgba(22, 163, 74, 0.12); color: var(--status-avail); }
.icon-purple { background: rgba(224, 83, 32, 0.12); color: #E05320; }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ================= GLOBAL REACH (ACETERNITY WORLD MAP) ================= */
.world-map-stage {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  aspect-ratio: 1000 / 460;
  background: transparent;
  border: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

#worldMapCanvas,
#worldMapArcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#worldMapArcs {
  pointer-events: none;
}

@keyframes drawArc {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  92% {
    stroke-dashoffset: 0;
    opacity: 0.25;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.map-arc-bg {
  fill: none;
  stroke: rgba(234, 88, 12, 0.14);
  stroke-width: 1.2;
}

.map-arc-anim {
  fill: none;
  stroke: url(#mapArcGrad);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawArc 4.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes mapRingPulse {
  0% {
    r: 3.5;
    opacity: 0.85;
  }
  100% {
    r: 13;
    opacity: 0;
  }
}

.map-city-ring {
  fill: none;
  stroke: #EA580C;
  stroke-width: 1.4;
  animation: mapRingPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.map-city-dot {
  fill: #EA580C;
}

.map-city-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  fill: var(--text-secondary);
}

/* ================= 05 WORKFLOW STEPS ================= */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  padding: 30px 24px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.step-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 800;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ================= 06 DOWNLOAD SECTION (WINDOWS, MACOS, LINUX) ================= */
.os-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.os-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.os-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.os-tab:hover {
  color: var(--text-primary);
}

.os-tab.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.download-panels {
  max-width: 900px;
  margin: 0 auto;
}

.os-panel {
  display: none;
}
.os-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

.download-highlight-card {
  padding: 36px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--card-shadow);
}

.os-title-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.os-title-badge h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0;
}

.badge-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.dl-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spec-val {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.dl-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.terminal-box {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--accent-cyan);
}

/* Release Notes Accordion */
.release-accordion {
  max-width: 900px;
  margin: 24px auto 0;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.release-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  list-style: none;
}
.release-accordion summary::-webkit-details-marker { display: none; }

.summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chevron {
  transition: transform 0.2s ease;
  color: var(--text-tertiary);
}
details[open] > summary .chevron {
  transform: rotate(180deg);
}

.release-list {
  list-style: none;
  padding: 0 24px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.release-list li {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: start;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.release-text strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-inline-end: 6px;
}

.pill-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0;
  text-align: center;
  justify-self: start;
  margin-top: 2px;
}
.tag-new {
  background: rgba(22, 163, 74, 0.12);
  color: var(--status-avail);
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.tag-imp {
  background: rgba(234, 88, 12, 0.12);
  color: var(--accent);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

/* ================= 07 PRIVACY & SECURITY ================= */
.privacy-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.privacy-card {
  padding: 28px 24px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.priv-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--border);
}

.privacy-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.privacy-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.privacy-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  padding: 2px 6px;
  background: var(--bg);
  border-radius: 0;
}

/* ================= 08 FAQ (Dashed Architectural Grid + Exclusive Smooth Transition) ================= */
.faq-container {
  max-width: 820px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px dashed var(--border-strong);
  border-right: 1px dashed var(--border-strong);
}

.faq-item {
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 1px dashed var(--border-strong);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.faq-item:first-child {
  border-top: 1px dashed var(--border-strong);
}

.faq-item.is-open {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  margin: -1px;
  z-index: 2;
}

[data-theme="dark"] .faq-item.is-open {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: inherit;
  cursor: pointer;
}

.faq-plus {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-q:hover .faq-plus {
  color: var(--text-primary);
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
  color: var(--text-primary);
}

/* Smooth CSS Grid Row Height Transition */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  padding: 0 26px 22px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

/* ================= FINAL CTA ================= */
.final-cta-section {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.final-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 16px;
}

.final-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 auto 32px;
  max-width: 600px;
}

.justify-center {
  justify-content: center;
}

/* ================= FOOTER (Aligned with Architectural Rails) ================= */
.footer {
  position: relative;
  padding: 56px 0 28px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 24px));
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  pointer-events: none;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-col {
  max-width: 320px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 12px 0 0;
  line-height: 1.6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin: 0 0 6px;
}
[dir="rtl"] .footer-col h5 {
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
  font-size: 0.8rem;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-tech {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}
[dir="rtl"] .footer-tech {
  font-family: 'IBM Plex Sans Arabic', 'JetBrains Mono', monospace;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .nav-links a {
    padding: 6px 8px;
    font-size: 0.8125rem;
  }
  .brand {
    margin-right: 14px;
  }
}

@media (max-width: 1024px) {
  .app-body {
    grid-template-columns: 1fr;
  }
  .app-sidebar-pane {
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clock-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .clock:nth-child(3) { border-right: none; }
  .clock:nth-child(n+4) { border-top: 1px solid var(--border); }
}

@media (max-width: 860px) {
  .nav {
    top: 0;
    padding: 0;
  }
  .nav-inner {
    display: flex;
    justify-content: space-between;
    height: 52px;
    padding: 0 10px 0 14px;
    border-radius: 0;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 12px;
    right: 12px;
    width: auto;
    justify-self: stretch;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
    z-index: 120;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    text-align: start;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .menu-toggle {
    display: grid;
  }
  .nav-cta {
    display: none;
  }
  .floating-badge {
    display: none;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps {
    grid-template-columns: 1fr;
  }
  .privacy-cards-grid {
    grid-template-columns: 1fr;
  }
  .app-sidebar-pane {
    grid-template-columns: 1fr;
  }

  .clock-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .clock:nth-child(2) { border-right: none; }
  .clock:nth-child(n+3) { border-top: 1px solid var(--border); }
  .clock:nth-child(5) { grid-column: span 2; }

  .specs-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  #main::before,
  .footer::before {
    width: calc(100% - 16px);
  }
  .section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .section-subtitle {
    font-size: 1rem;
  }

  /* Navbar mobile polish */
  .nav-inner {
    padding: 0 8px 0 12px;
  }
  [dir="rtl"] .nav-inner {
    padding: 0 12px 0 8px;
  }
  .brand {
    margin-right: 8px;
    gap: 8px;
  }
  [dir="rtl"] .brand {
    margin-right: 0;
    margin-left: 8px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn-github .gh-label,
  .nav-actions .btn-github .gh-star-pill {
    display: none;
  }
  .nav-actions .btn-github {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }
  .lang-toggle,
  .theme-toggle,
  .menu-toggle {
    width: 34px;
    height: 34px;
  }

  /* Hero mobile */
  .hero {
    padding-top: 92px;
    padding-bottom: 56px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    line-height: 1.28;
    margin-bottom: 18px;
  }
  .hero-select-box {
    margin-top: 6px;
    margin-bottom: 24px;
    padding: 2px 10px 4px;
  }
  .sb-tag {
    bottom: -18px;
    font-size: 0.6rem;
    padding: 3px 6px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-badges {
    gap: 10px 16px;
    font-size: 0.8125rem;
  }
  .window-titlebar {
    padding: 8px 12px;
    gap: 8px;
  }
  .window-title {
    min-width: 0;
  }
  .window-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
  }
  .window-status {
    display: none;
  }

  /* Clock strip single column on small phones */
  .clock-strip {
    grid-template-columns: 1fr;
  }
  .clock {
    border-right: none !important;
    border-left: none !important;
  }
  .clock + .clock {
    border-top: 1px solid var(--border);
  }
  .clock:nth-child(5) {
    grid-column: span 1;
  }

  /* Cards & grids */
  .problem-card,
  .feature-card,
  .privacy-card,
  .workflow-card {
    padding: 22px 18px;
  }
  .world-map-stage {
    overflow: hidden;
  }

  /* Download section mobile */
  .os-tabs-container {
    margin-bottom: 20px;
  }
  .os-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 4px;
    padding: 4px;
  }
  .os-tab {
    justify-content: center;
    padding: 10px 6px;
    gap: 6px;
    font-size: 0.8125rem;
  }
  .download-highlight-card {
    padding: 22px 18px;
  }
  .os-title-badge h3 {
    font-size: 1.3rem;
  }
  .dl-desc {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }
  .dl-buttons-row {
    flex-direction: column;
    gap: 10px;
  }
  .dl-buttons-row .btn {
    width: 100%;
    justify-content: center;
  }
  .terminal-box {
    padding: 12px 14px;
    font-size: 0.75rem;
    overflow-x: auto;
    word-break: break-word;
  }

  /* Release Notes mobile */
  .release-accordion summary {
    padding: 16px 18px;
  }
  .release-list {
    padding: 0 18px 16px;
  }
  .release-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
    font-size: 0.875rem;
  }

  /* FAQ mobile */
  .faq-q {
    padding: 16px 18px;
    font-size: 0.9375rem;
    gap: 12px;
  }
  .faq-a p {
    padding: 0 18px 18px;
    font-size: 0.875rem;
  }

  /* Final CTA & Footer mobile */
  .final-cta-section {
    padding: 64px 0;
  }
  .final-sub {
    font-size: 1rem;
  }
  .footer {
    padding: 40px 0 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 440px) {
  .brand .badge-version {
    display: none;
  }
  .os-tab span {
    font-size: 0.75rem;
  }
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ================= Arabic & RTL Support ================= */
[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5,
[dir="rtl"] .brand-name, [dir="rtl"] .hero-title, [dir="rtl"] .section-title,
[dir="rtl"] .section-tag, [dir="rtl"] .panel-heading, [dir="rtl"] .float-title, [dir="rtl"] .float-sub {
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
}

[dir="rtl"] .float-text {
  text-align: right;
}

[dir="rtl"] .text-right {
  text-align: left;
}

[dir="rtl"] .badge-left {
  left: auto;
  right: -20px;
}

[dir="rtl"] .badge-right {
  right: auto;
  left: -20px;
}

[dir="rtl"] .time-ticks,
[dir="rtl"] .ribbon-bar,
[dir="rtl"] .scrubber-track-area,
[dir="rtl"] .terminal-box,
[dir="rtl"] .badge-version,
[dir="rtl"] .gh-star-pill {
  direction: ltr;
}
