/* Hrfti landing site.
   Orange + charcoal palette pulled from the brand mark, with a Moroccan
   zellige tile motif used sparingly as a decorative accent. Light + dark
   themes mirror the app's tokens. */

:root {
  --primary:        #F09418;
  --primary-light:  #F4AC4A;
  --primary-dark:   #C97A0E;
  --primary-soft:   rgba(240, 148, 24, 0.12);
  --accent:         #2C7A7B;
  --accent-light:   #4FA8A9;
  --background:     #FCFAF6;
  --surface:        #FFFFFF;
  --surface-alt:    #F5EFE6;
  --surface-deep:   #2F2F2F;
  --border:         #E9E2D6;
  --border-strong:  #DDD3C2;
  --text-primary:   #1F1F1F;
  --text-secondary: #3A3A3A;
  --text-muted:     #6B6B6B;
  --text-on-dark:   #F5F1EA;
  --success:        #22806B;
  --warning:        #D89A2E;
  --error:          #B23A3A;
  --shadow-sm: 0 1px 2px rgba(31, 31, 31, 0.06);
  --shadow-md: 0 6px 22px rgba(31, 31, 31, 0.10);
  --shadow-lg: 0 18px 42px rgba(31, 31, 31, 0.16);
  --shadow-glow: 0 0 32px rgba(240, 148, 24, 0.28);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container-w: 1180px;
  --font-latin: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Cairo', 'Inter', system-ui, sans-serif;
}

html.dark {
  --primary:        #F2A03D;
  --primary-light:  #F4B264;
  --primary-dark:   #D88512;
  --primary-soft:   rgba(242, 160, 61, 0.16);
  --accent:         #4FA8A9;
  --accent-light:   #7FC2C3;
  --background:     #0E1216;
  --surface:        #181C21;
  --surface-alt:    #20262C;
  --surface-deep:   #2A3036;
  --border:         #2A3036;
  --border-strong:  #353C44;
  --text-primary:   #F5F1EA;
  --text-secondary: #D4CFC6;
  --text-muted:     #A8A29A;
  --success:        #3DAA90;
  --warning:        #F0B860;
  --error:          #E07070;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.62);
  --shadow-glow: 0 0 36px rgba(242, 160, 61, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-latin);
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

html[dir="rtl"] body { font-family: var(--font-arabic); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px; position: relative; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; top: 0; z-index: 999; }

/* ---------- Brand mark ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-primary); font-weight: 700;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text-primary); }
.brand-logo {
  width: 38px; height: 38px;
  display: inline-block;
  border-radius: 9px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.04); }

/* Theme-swapped logo. The PNG has the "Hrfti" wordmark embedded in white
   (logo-dark) or in dark/orange (logo-light), so the right asset must
   match the active theme or the wordmark vanishes against its background. */
.logo--dark { display: none; }
html.dark .logo--light { display: none; }
html.dark .logo--dark  { display: inline-block; }
.brand-name { font-size: 19px; letter-spacing: -0.02em; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 246, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.is-scrolled { box-shadow: var(--shadow-sm); }
html.dark .navbar { background: rgba(14, 18, 22, 0.78); }
.nav-inner {
  display: flex; align-items: center; gap: 24px; padding: 12px 24px;
  justify-content: space-between;
}

.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 14.5px; position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: flex; gap: 2px; padding: 3px; background: var(--surface-alt); border-radius: 999px; }
.lang-btn {
  border: none; background: transparent; color: var(--text-secondary);
  padding: 6px 10px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.is-active { background: var(--primary); color: #fff; }

.icon-btn {
  border: 1px solid var(--border); background: var(--surface);
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.icon-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.theme-icon { line-height: 1; }
.theme-icon--dark  { display: none; }
html.dark .theme-icon--light { display: none; }
html.dark .theme-icon--dark  { display: inline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; pointer-events: none;
  inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, var(--primary-soft), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23F09418' stroke-width='0.7' stroke-opacity='0.08'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M40 12 L68 40 L40 68 L12 40 Z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
html.dark .hero-pattern { opacity: 0.4; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 700; margin: 0 0 14px;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 12.5px;
  padding: 5px 12px; background: var(--primary-soft); border-radius: 999px;
}
.eyebrow.accent { color: var(--primary); }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); animation: pulseDot 1.8s ease-in-out infinite;
}
.hero h1 {
  font-size: 56px; line-height: 1.06; margin: 0 0 18px;
  color: var(--text-primary); letter-spacing: -0.025em;
  font-weight: 800;
}
.hero h1 .accent-word {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: var(--text-secondary); margin: 0 0 28px; max-width: 56ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 15px; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md), var(--shadow-glow); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-alt); border-color: var(--primary); text-decoration: none; transform: translateY(-2px); }

.hero-bullets, .tech-bullets {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--text-secondary);
}
.tech-bullets { margin: 16px 0 24px; }
.bullet {
  display: inline-flex; width: 22px; height: 22px; border-radius: 999px;
  background: rgba(34, 128, 107, 0.14); color: var(--success);
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  margin-inline-end: 10px; flex-shrink: 0;
}
html.dark .bullet { background: rgba(61, 170, 144, 0.20); }

/* ---------- Hero artwork ---------- */
.hero-image {
  display: flex; justify-content: center; align-items: center;
  position: relative; min-height: 460px;
}
.hero-stage {
  position: relative;
  width: 100%; max-width: 460px; aspect-ratio: 1;
}
.hero-disc {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--primary-soft), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(44, 122, 123, 0.10), transparent 65%);
  border: 1px dashed var(--border-strong);
  animation: rotate 60s linear infinite;
}
.hero-disc::after {
  content: ''; position: absolute; inset: 12%;
  border-radius: 50%;
  border: 1px dashed var(--border);
}
.hero-logo-card {
  position: absolute; inset: 22%;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
.hero-logo-card img { width: 78%; height: auto; }
.hero-tool {
  position: absolute;
  width: 66px; height: 66px; border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
}
.hero-tool::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, var(--primary-soft), transparent);
  pointer-events: none;
}
.hero-tool.tool-1 { top: 4%; left: 8%;  animation: floatA 5.5s ease-in-out infinite; }
.hero-tool.tool-2 { top: 8%; right: 6%; animation: floatB 6.0s ease-in-out infinite 0.4s; }
.hero-tool.tool-3 { bottom: 12%; left: 2%; animation: floatA 6.5s ease-in-out infinite 0.8s; }
.hero-tool.tool-4 { bottom: 4%; right: 8%; animation: floatB 5.8s ease-in-out infinite 0.2s; }
.hero-tool.tool-5 { top: 50%; left: -2%; animation: floatA 5.2s ease-in-out infinite 0.6s; }
.hero-tool.tool-6 { top: 48%; right: -2%; animation: floatB 6.4s ease-in-out infinite 1.0s; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--surface-alt); transition: background-color 0.3s ease; }
.section h2 {
  font-size: 40px; margin: 0 0 12px; color: var(--text-primary);
  letter-spacing: -0.02em; line-height: 1.12; font-weight: 800;
}
.section-lead { color: var(--text-secondary); font-size: 18px; margin: 0 0 44px; max-width: 60ch; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative; overflow: hidden;
}
.steps li::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.steps li:hover::before { transform: scaleX(1); }
.step-num {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(240, 148, 24, 0.30);
}
.steps h3 { margin: 0 0 8px; color: var(--text-primary); font-size: 19px; font-weight: 700; }
.steps p { margin: 0; color: var(--text-secondary); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; margin-bottom: 14px;
  transition: transform 0.25s ease;
}
.feature:hover .feature-icon { transform: rotate(-6deg) scale(1.06); }
.feature h3 { margin: 0 0 8px; color: var(--text-primary); font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* Trades chips */
.trades-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.trade {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; color: var(--text-primary);
  transition: border-color 0.18s, transform 0.18s, background-color 0.18s;
}
.trade:hover {
  border-color: var(--primary); transform: translateY(-2px);
  background: linear-gradient(180deg, var(--surface), var(--primary-soft));
}
.trade-icon { font-size: 22px; line-height: 1; }

/* Technicians section */
.tech-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.tech-pricing { display: flex; justify-content: center; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 32px;
  width: 100%; max-width: 360px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.3s ease;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  z-index: -1; opacity: 0.5;
}
.pricing-tier {
  margin: 0 0 8px; color: var(--primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px;
}
.pricing-price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 6px; }
.pricing-amount { font-size: 48px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.025em; }
.pricing-period { color: var(--text-muted); font-size: 16px; }
.pricing-trial {
  margin: 0 0 22px; color: var(--success);
  font-weight: 700; font-size: 14px;
}
.pricing-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pricing-list li {
  color: var(--text-secondary); font-size: 14.5px; padding-inline-start: 24px;
  position: relative;
}
.pricing-list li::before {
  content: '✓'; position: absolute; inset-inline-start: 0;
  color: var(--success); font-weight: 700;
}

/* Download */
.download-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.download-phone {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 480px;
}
.phone-mock {
  width: 250px; height: 510px;
  background: var(--surface-deep);
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-strong);
  transform: rotate(-4deg);
  transition: transform 0.5s cubic-bezier(.2, .9, .3, 1);
}
.phone-mock:hover { transform: rotate(0deg) scale(1.02); }
.phone-screen {
  background: linear-gradient(160deg, var(--background), var(--surface-alt));
  width: 100%; height: 100%;
  border-radius: 28px;
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 18px 22px;
  position: relative; overflow: hidden;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--surface-deep); border-radius: 12px;
}
.phone-logo { width: 88px; height: 88px; margin-top: 8px; animation: float 5s ease-in-out infinite; }
.phone-name {
  font-weight: 800; font-size: 20px;
  color: var(--text-primary); margin: 14px 0 4px;
  letter-spacing: -0.02em;
}
.phone-tag { font-size: 11px; color: var(--text-muted); margin: 0 0 16px; }
.phone-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; width: 100%;
  padding: 12px; display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.phone-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
}
.phone-card-body { flex: 1; min-width: 0; }
.phone-card-title { font-size: 12px; font-weight: 700; color: var(--text-primary); margin: 0; }
.phone-card-meta { font-size: 10px; color: var(--text-muted); margin: 2px 0 0; }
.phone-card-stars { color: var(--primary); font-size: 11px; }

.qr-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.qr-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  text-align: center; min-width: 200px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qr-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.qr-canvas {
  width: 168px; height: 168px; margin: 0 auto 8px;
  background: #fff; border-radius: var(--radius-sm); padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.qr-canvas img, .qr-canvas canvas { width: 148px !important; height: 148px !important; }
.qr-label { margin: 10px 0 0; font-weight: 700; color: var(--text-primary); }
.qr-soon { margin: 4px 0 0; color: var(--primary); font-size: 13px; font-weight: 600; }

/* About */
.about-inner { max-width: 760px; }
.about-inner p { color: var(--text-secondary); font-size: 17px; margin: 0 0 16px; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 14.5px; }
.footer-links a:hover { color: var(--primary); }

/* ---------- Legal pages (privacy / terms / delete-account) ---------- */
.legal { max-width: 760px; padding: 56px 24px 96px; }
.legal h1 { font-size: 38px; margin: 0 0 8px; letter-spacing: -0.015em; }
.legal h2 { font-size: 20px; margin: 32px 0 12px; color: var(--primary-dark); }
html.dark .legal h2 { color: var(--primary-light); }
.legal p, .legal ul, .legal ol { color: var(--text-secondary); margin: 0 0 14px; }
.legal ul, .legal ol { padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.legal a { color: var(--primary); }
html.dark .legal a { color: var(--primary-light); }
.legal strong { color: var(--text-primary); font-weight: 600; }

/* 404 page */
.not-found { padding: 96px 24px; text-align: center; }
.not-found .code {
  font-size: 96px; font-weight: 800; color: var(--primary);
  letter-spacing: -0.04em; margin: 16px 0 0; line-height: 1;
}

/* ---------- Reveal-on-scroll animations ----------
   .reveal hides the element until it enters the viewport, at which point
   .is-visible is added by main.js (IntersectionObserver). Respects the
   user's reduced-motion preference. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.61s; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 0.68s; }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 0.75s; }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 0.82s; }

/* Keyframe animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%      { transform: translateY(-14px) rotate(-3deg); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-inner, .tech-inner, .download-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .section h2 { font-size: 30px; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .trades-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 64px 0 48px; }
  .section { padding: 72px 0; }
  .tech-pricing { justify-content: stretch; }
  .pricing-card { max-width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-image { min-height: 400px; }
  .hero-stage { max-width: 380px; }
  .download-phone { min-height: 540px; }
}

@media (max-width: 480px) {
  .trades-grid { grid-template-columns: 1fr; }
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 5px 8px; font-size: 11px; }
  .hero h1 { font-size: 32px; }
  .hero-stage { max-width: 320px; }
  .hero-tool { width: 54px; height: 54px; font-size: 22px; }
  .phone-mock { transform: rotate(0); }
}

/* ---------- RTL fixes ---------- */
html[dir="rtl"] .bullet { margin-inline-end: 0; margin-inline-start: 10px; }
html[dir="rtl"] .pricing-list li::before { right: 0; left: auto; }
html[dir="rtl"] .hero h1 { letter-spacing: 0; }
html[dir="rtl"] .nav-links a::after { right: 0; left: auto; }
html[dir="rtl"] .phone-mock { transform: rotate(4deg); }
