/* ╔══════════════════════════════════════════════╗
   ║  OneStep — Premium Landing Page Styles       ║
   ║  Dark Theme · Glassmorphism · Animated       ║
   ╚══════════════════════════════════════════════╝ */

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

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', 'Cairo', sans-serif;
  background: #050a15;
  color: #e0e7ef;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── CSS Variables ── */
:root {
  --bg: #050a15;
  --bg-card: #0d1425;
  --bg-card-2: #111c35;
  --accent: #25D366;
  --accent-2: #10B981;
  --accent-glow: rgba(37, 211, 102, 0.15);
  --accent-gradient: linear-gradient(135deg, #25D366 0%, #10B981 100%);
  --blue: #3B82F6;
  --purple: #8B5CF6;
  --pink: #EC4899;
  --orange: #F59E0B;
  --text: #e0e7ef;
  --text-dim: #7a8ba7;
  --text-muted: #4a5568;
  --border: rgba(255,255,255,0.06);
  --glass: rgba(13, 20, 37, 0.65);
  --glass-border: rgba(255,255,255,0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }

/* ── Glass Card ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.glass-hover:hover {
  border-color: rgba(37, 211, 102, 0.2);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.05);
}

/* ── Typography ── */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent);
  margin-bottom: 12px;
}
.section-label::before {
  content: ''; width: 28px; height: 2px;
  background: var(--accent-gradient); border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem;
  padding: 16px 36px; border-radius: 14px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #0a0f1a; box-shadow: 0 4px 25px rgba(37, 211, 102, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(37, 211, 102, 0.3);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(37, 211, 102, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-white {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-white:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 10, 21, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 900;
}
.nav-logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #0a0f1a; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-dim);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 24px; font-size: 0.85rem; }
.hamburger { display: none; background: none; color: var(--text); font-size: 1.5rem; }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 800px 500px at 30% 20%, rgba(37, 211, 102, 0.08), transparent),
    radial-gradient(ellipse 600px 400px at 70% 80%, rgba(59, 130, 246, 0.06), transparent),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(139, 92, 246, 0.04), transparent);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.15);
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  margin-bottom: 20px;
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero-left h1 { margin-bottom: 20px; color: #fff; }
.hero-left p { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 32px; max-width: 500px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.8rem; font-weight: 900; color: #fff; }
.hero-stat-label { font-size: 0.75rem; color: var(--text-dim); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-mockup {
  width: 100%; max-width: 520px; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 60px rgba(37, 211, 102, 0.05);
  animation: float 6s ease-in-out infinite;
}
.hero-mockup-header {
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.12), transparent);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.hero-mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-mockup-body { padding: 20px; }
.chat-bubble {
  max-width: 80%; padding: 12px 16px;
  border-radius: 16px; font-size: 0.85rem;
  margin-bottom: 10px; animation: fadeSlideUp 0.5s ease forwards;
  opacity: 0;
}
.chat-bubble.incoming {
  background: var(--bg-card-2);
  border-bottom-left-radius: 4px;
  margin-right: auto;
}
.chat-bubble.outgoing {
  background: linear-gradient(135deg, rgba(37,211,102,0.15), rgba(16,185,129,0.1));
  border: 1px solid rgba(37,211,102,0.2);
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.chat-bubble.ai {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(59,130,246,0.08));
  border: 1px solid rgba(139,92,246,0.2);
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.chat-bubble:nth-child(1) { animation-delay: 0.3s; }
.chat-bubble:nth-child(2) { animation-delay: 0.8s; }
.chat-bubble:nth-child(3) { animation-delay: 1.4s; }
.chat-bubble:nth-child(4) { animation-delay: 2s; }
.chat-typing { display: flex; gap: 4px; padding: 12px 16px; }
.chat-typing span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: typing 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Float orbs */
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); pointer-events: none;
}
.hero-orb-1 { width: 300px; height: 300px; background: rgba(37,211,102,0.1); top: -50px; right: -50px; animation: float 8s ease-in-out infinite; }
.hero-orb-2 { width: 200px; height: 200px; background: rgba(59,130,246,0.08); bottom: -30px; left: -30px; animation: float 10s ease-in-out infinite reverse; }

/* ══════════════════════════════════════════
   TRUSTED BY (Logo Ticker)
   ══════════════════════════════════════════ */
.trusted { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trusted p { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 30px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.logo-ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.logo-ticker-track {
  display: flex;
  gap: 28px;
  align-items: center;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}
.client-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--c, #888);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}
.client-logo:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--c, #888);
  transform: translateY(-2px);
}
.client-logo svg { flex-shrink: 0; }
.client-logo span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 50px;
}
.feature-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent-gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 211, 102, 0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-icon.green { background: rgba(37, 211, 102, 0.1); color: var(--accent); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.1); color: var(--pink); }
.feature-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--orange); }
.feature-card h3 { color: #fff; margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
.feature-tag {
  display: inline-block; margin-top: 14px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(37,211,102,0.08); color: var(--accent);
  border: 1px solid rgba(37,211,102,0.15);
}

/* ══════════════════════════════════════════
   COMPARISON
   ══════════════════════════════════════════ */
.comparison-table-wrap { overflow-x: auto; margin-top: 50px; border-radius: var(--radius); }
.comparison-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  min-width: 700px;
}
.comparison-table th, .comparison-table td {
  padding: 18px 20px; text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.comparison-table thead th {
  background: rgba(37, 211, 102, 0.05);
  font-weight: 700; color: #fff;
  font-size: 0.95rem;
}
.comparison-table thead th:first-child { text-align: left; }
.comparison-table td:first-child {
  text-align: left; font-weight: 600; color: #fff;
}
.comparison-table thead th.highlight {
  background: linear-gradient(180deg, rgba(37,211,102,0.15), rgba(37,211,102,0.05));
  color: var(--accent);
  position: relative;
}
.comparison-table thead th.highlight::before {
  content: '⭐ الأفضل';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 2px 12px; border-radius: 100px;
  background: var(--accent); color: #0a0f1a;
  font-size: 0.65rem; font-weight: 800; white-space: nowrap;
}
.comparison-table td.highlight {
  background: rgba(37, 211, 102, 0.03);
}
.check { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.cross { color: #EF4444; font-weight: 700; font-size: 1.1rem; }
.partial { color: var(--orange); font-weight: 700; }

/* ══════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.step {
  text-align: center; padding: 40px 30px;
  border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  position: relative; transition: var(--transition);
}
.step:hover { transform: translateY(-6px); border-color: rgba(37,211,102,0.15); }
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: var(--accent);
  background: rgba(37,211,102,0.08);
  border: 2px solid rgba(37,211,102,0.15);
  margin: 0 auto 20px;
}
.step h3 { color: #fff; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.9rem; }
.step-connector {
  position: absolute; top: 50%; right: -18px;
  width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ══════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.price-card {
  padding: 36px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition); position: relative;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.popular {
  border-color: rgba(37,211,102,0.3);
  background: linear-gradient(180deg, rgba(37,211,102,0.05), var(--bg-card));
  box-shadow: 0 0 60px rgba(37,211,102,0.08);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 20px; border-radius: 100px;
  background: var(--accent-gradient); color: #0a0f1a;
  font-size: 0.75rem; font-weight: 800;
}
.price-card h3 { color: #fff; margin-bottom: 6px; }
.price-card .price-desc { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 20px; }
.price-amount {
  font-size: 3rem; font-weight: 900; color: #fff;
  margin-bottom: 4px;
}
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.price-period { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 24px; }
.price-features { margin-bottom: 30px; }
.price-features li {
  font-size: 0.9rem; color: var(--text-dim);
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; }

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.testimonial {
  padding: 30px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
}
.testimonial:hover { transform: translateY(-4px); border-color: rgba(37,211,102,0.15); }
.testimonial-stars { color: #F59E0B; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #0a0f1a; font-size: 1rem;
}
.testimonial-name { font-weight: 700; color: #fff; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════ */
.faq-list { max-width: 800px; margin: 50px auto 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition);
}
.faq-item:hover { border-color: rgba(37,211,102,0.15); }
.faq-q {
  padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; color: #fff; font-size: 0.95rem;
  transition: var(--transition);
}
.faq-q:hover { color: var(--accent); }
.faq-q .arrow {
  font-size: 1.2rem; color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.8;
}

/* ══════════════════════════════════════════
   CTA FINAL
   ══════════════════════════════════════════ */
.cta-section {
  text-align: center; padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(37,211,102,0.03), transparent);
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: var(--text-dim); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.85rem; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.footer-social a:hover { background: rgba(37,211,102,0.1); border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════ */
.legal-page { padding: 120px 0 60px; }
.legal-page h1 { font-size: 2.2rem; margin-bottom: 10px; color: #fff; }
.legal-page .last-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.3rem; color: #fff; margin: 30px 0 12px; }
.legal-content p, .legal-content li { color: var(--text-dim); font-size: 0.95rem; line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { list-style: disc; margin-bottom: 6px; }
.legal-content a { color: var(--accent); text-decoration: underline; }

/* Support page form */
.support-form { max-width: 600px; margin-top: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xs); color: #fff;
  font-family: inherit; font-size: 0.9rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-left p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .section { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-stats { flex-direction: row; gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero-stat { min-width: 80px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
  .hero { padding-top: 80px; min-height: auto; padding-bottom: 40px; }
  .hero-left p { font-size: 1rem; line-height: 1.7; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 10px; }
  .hero-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
  .logo-ticker-track img { height: 35px !important; }
  .trusted { padding: 40px 0; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(5, 10, 21, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.2rem; font-weight: 600; color: var(--text);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; background: none; color: var(--text); font-size: 2rem; }

/* LTR support */
html[dir="ltr"] { direction: ltr; text-align: left; }
html[dir="ltr"] .section-label::before { margin-left: 0; margin-right: 8px; }
html[dir="ltr"] .hero-mockup-header span:first-of-type { margin-left: auto; margin-right: 0; }
html[dir="ltr"] .chat-bubble.incoming { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
html[dir="ltr"] .chat-bubble.outgoing, html[dir="ltr"] .chat-bubble.ai { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
html[dir="ltr"] .comparison-table td:first-child, html[dir="ltr"] .comparison-table th:first-child { text-align: left; }
html[dir="ltr"] .step-connector { left: auto; right: -18px; }
html[dir="ltr"] .legal-content ul { padding-left: 20px; padding-right: 0; }

/* ══════════════════════════════════════════
   MOBILE OPTIMIZATION
   ══════════════════════════════════════════ */

/* Reduce motion for performance on mobile */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  .btn { min-height: 48px; padding: 14px 28px; font-size: 0.9rem; }
  .faq-q { padding: 18px 20px; min-height: 52px; font-size: 0.9rem; }
  .nav-cta .btn { padding: 10px 16px; font-size: 0.8rem; }
  .container { padding: 0 16px; }

  /* Faster animations on mobile */
  .reveal { transition: opacity 0.4s ease, transform 0.4s ease; }
  .hero-mockup { animation: none; }
  .hero-orb { display: none; }
  .hero-grid-overlay { display: none; }

  /* Better font sizes for mobile readability */
  .hero-left p { font-size: 1rem; }
  .feature-card p { font-size: 0.85rem; }
  .feature-card { padding: 24px; }
  .feature-card h3 { font-size: 1rem; }

  /* Pricing card mobile */
  .price-card { padding: 28px 20px !important; }
  .price-card .btn { font-size: 0.85rem; padding: 14px 20px; }

  /* Comparison table touch scroll hint */
  .comparison-table-wrap { -webkit-overflow-scrolling: touch; }
  .comparison-table { min-width: 600px; }
  .comparison-table th, .comparison-table td { padding: 12px 10px; font-size: 0.78rem; }

  /* Legal pages mobile */
  .legal-page { padding: 100px 0 40px; }
  .legal-page h1 { font-size: 1.6rem; }
  .legal-content h2 { font-size: 1.1rem; margin: 24px 0 10px; }
  .legal-content p, .legal-content li { font-size: 0.88rem; line-height: 1.7; }
  .support-form { margin-top: 24px; }
  .form-group input, .form-group textarea, .form-group select { padding: 12px 14px; font-size: 16px; /* prevents iOS zoom */ }

  /* CTA section mobile */
  .cta-section { padding: 50px 0; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }

  /* Footer mobile */
  .footer { padding: 40px 0 20px; }
  .footer-grid { gap: 20px; }
  .footer-brand p { font-size: 0.82rem; }
}

/* Small phones */
@media (max-width: 380px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .hero-badge { font-size: 0.7rem; padding: 6px 14px; }
  .hero-stats { gap: 12px; }
  .hero-stat-num { font-size: 1.4rem; }
  .comparison-table { min-width: 550px; }
}

/* GPU hints for smooth scrolling */
.navbar, .hero-mockup, .feature-card, .price-card, .testimonial, .step {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
