/* SnippetBar — custom styles beyond Tailwind utilities */

:root {
  --accent: #007AFF;
  --accent-glow: rgba(0, 122, 255, 0.35);
  --bg: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
}

/* ── Reset & Base ─────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: #e5e7eb;
  font-family: 'Inter', 'Heebo', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[dir="rtl"] body,
[dir="rtl"] {
  font-family: 'Heebo', 'Inter', system-ui, sans-serif;
}

/* ── Background mesh ──────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(99, 60, 180, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(0, 122, 255, 0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── Glass surface ────────────────────────────────────── */

.glass {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

/* ── Typography ───────────────────────────────────────── */

.heading-xl {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  white-space: pre-line;
}

.heading-lg {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: pre-line;
}

/* ── Buttons ──────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, box-shadow 0.4s ease-out;
  box-shadow: 0 0 24px var(--accent-glow);
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 0 36px var(--accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.4s ease-out, color 0.4s ease-out, transform 0.4s ease-out;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Header ───────────────────────────────────────────── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: background 0.5s ease-out, backdrop-filter 0.5s ease-out, border-color 0.5s ease-out;
}

header.scrolled {
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.4s ease-out, color 0.4s ease-out;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Hero ─────────────────────────────────────────────── */

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(0, 122, 255, 0.35);
  border-radius: 100px;
  background: rgba(0, 122, 255, 0.1);
}

.hero-mockup {
  border-radius: 18px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.6s ease-out;
}

.hero-mockup:hover {
  transform: translateY(-6px) scale(1.01);
}

/* ── Feature cards ────────────────────────────────────── */

.feature-card {
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.feature-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.15);
  border: 1px solid rgba(0, 122, 255, 0.25);
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Showcase ─────────────────────────────────────────── */

.showcase-img {
  border-radius: 18px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.6s ease-out;
  will-change: transform;
}

/* ── Animations ───────────────────────────────────────── */

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

.fade-up {
  animation: fadeUp 0.7s ease-out both;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

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

/* ── Sections ─────────────────────────────────────────── */

section {
  position: relative;
  z-index: 1;
}

/* ── Footer ───────────────────────────────────────────── */

footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease-out;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Divider ──────────────────────────────────────────── */

.section-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  margin: 0 auto;
}

/* ── Utility ──────────────────────────────────────────── */

.accent { color: var(--accent); }

.text-muted { color: rgba(255, 255, 255, 0.5); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
