/* X Info — landing page */
:root {
  --bg-deep: #050810;
  --bg-card: rgba(15, 23, 42, 0.55);
  --stroke: rgba(148, 163, 184, 0.12);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent-a: #22d3ee;
  --accent-b: #a78bfa;
  --accent-c: #f472b6;
  --glow: rgba(34, 211, 238, 0.35);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --radius: 1rem;
  --nav-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

a {
  color: var(--accent-a);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Aurora background */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-deep);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
  width: min(60vw, 480px);
  height: min(60vw, 480px);
  top: -10%;
  left: -15%;
  background: radial-gradient(circle, var(--accent-b) 0%, transparent 70%);
}

.bg-orb:nth-child(2) {
  width: min(50vw, 400px);
  height: min(50vw, 400px);
  top: 40%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-a) 0%, transparent 70%);
  animation-delay: -6s;
}

.bg-orb:nth-child(3) {
  width: min(45vw, 360px);
  height: min(45vw, 360px);
  bottom: -5%;
  left: 25%;
  background: radial-gradient(circle, var(--accent-c) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.05);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.98);
  }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 75%);
  pointer-events: none;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-select {
  appearance: none;
  max-width: min(44vw, 12rem);
  padding: 0.45rem 1.75rem 0.45rem 0.6rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%2394a3b8'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  border: 1px solid var(--stroke);
  border-radius: 0.5rem;
  cursor: pointer;
  line-height: 1.2;
}

.lang-select:hover {
  border-color: rgba(148, 163, 184, 0.28);
}

.lang-select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}

body.is-rtl .lang-select {
  padding: 0.45rem 0.6rem 0.45rem 1.75rem;
  background-position: left 0.45rem center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 24px var(--glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-a), #06b6d4);
  color: #042f2e;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.45);
  text-decoration: none;
  color: #042f2e;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.35);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex: none;
    justify-content: flex-start;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--stroke);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

body.is-rtl .nav-links a.btn-primary {
  text-align: center;
}

/* Hero */
.hero {
  padding: clamp(3rem, 12vh, 7rem) clamp(1rem, 4vw, 2rem) 4rem;
  max-width: 72rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-a);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  animation: fade-up 0.8s ease 0.08s both;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b), var(--accent-c));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 2rem;
  animation: fade-up 0.8s ease 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fade-up 0.8s ease 0.24s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 28rem;
  animation: fade-up 0.8s ease 0.32s both;
}

.stat {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Preview card */
.hero-visual {
  margin-top: 3rem;
  perspective: 1200px;
  animation: fade-up 1s ease 0.4s both;
}

.phone-frame {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 2rem;
  padding: 0.65rem;
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.2), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--stroke);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: rotateX(8deg) rotateY(-6deg);
  transition: transform 0.6s ease;
}

.phone-frame:hover {
  transform: rotateX(4deg) rotateY(-3deg) translateY(-4px);
}

.phone-screen {
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  min-height: 200px;
  padding: 1.25rem;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #94a3b8;
}

.phone-screen .line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.phone-screen .accent {
  color: var(--accent-a);
}

.phone-screen .pos {
  color: #4ade80;
}

/* Sections */
section {
  padding: 4rem clamp(1rem, 4vw, 2rem);
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.15));
  color: var(--accent-a);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  margin: 2rem 0 4rem;
  padding: 3rem clamp(1rem, 4vw, 2rem);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(148, 163, 184, 0.15);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2rem) 3rem;
  border-top: 1px solid var(--stroke);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .brand {
  justify-content: center;
  margin-bottom: 1rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
