/* Nashmi Landing — Softelv premium 3D */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Tajawal:wght@700;800&display=swap');

:root {
  --accent: #1fd98a;
  --accent-dim: #12a866;
  --accent-deep: #0a6b42;
  --accent-glow: rgba(31, 217, 138, 0.35);
  --bg: #030805;
  --bg-elev: #0a1410;
  --text: #eef8f2;
  --text-muted: #9bb5a8;
  --text-dim: #6f877c;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(31, 217, 138, 0.22);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-3d: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,.04);
  --glow-ring: 0 0 0 1px rgba(31,217,138,.35), 0 0 40px rgba(31,217,138,.15);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-full: 999px;
  --font: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --display: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gemini-gradient: linear-gradient(135deg, #1fd98a, #0d8c5c 55%, #0a5c3d);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  line-height: 1.65;
  overflow-x: hidden;
  touch-action: manipulation;
  padding-bottom: calc(70px + var(--safe-b));
}
@media (min-width: 901px) {
  body { padding-bottom: 0; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Ambient 3D world */
.ambient-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55;
  animation: orbDrift 14s ease-in-out infinite;
}
.orb-1 {
  width: 520px; height: 520px; top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(31,217,138,.55), transparent 70%);
}
.orb-2 {
  width: 420px; height: 420px; bottom: 10%; left: -120px;
  background: radial-gradient(circle, rgba(10,107,66,.5), transparent 70%);
  animation-delay: -4s;
}
.orb-3 {
  width: 280px; height: 280px; top: 42%; left: 45%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  animation-delay: -7s;
}
.mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 70% 20%, rgba(31,217,138,.12), transparent),
    radial-gradient(600px 360px at 20% 80%, rgba(8,60,40,.35), transparent);
}
.grid-floor {
  position: absolute; inset: auto 0 0 0; height: 45%;
  background:
    linear-gradient(180deg, transparent, rgba(3,8,5,.85)),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(31,217,138,.05) 48px, rgba(31,217,138,.05) 49px),
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(31,217,138,.04) 48px, rgba(31,217,138,.04) 49px);
  transform: perspective(700px) rotateX(62deg);
  transform-origin: bottom;
  opacity: .55;
}
.float-shape {
  position: absolute; border-radius: 18px;
  background: linear-gradient(145deg, rgba(31,217,138,.25), rgba(255,255,255,.04));
  border: 1px solid rgba(31,217,138,.25);
  box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  animation: float3d 9s ease-in-out infinite;
}
.s1 { width: 64px; height: 64px; top: 18%; left: 8%; transform: rotate(18deg); }
.s2 { width: 42px; height: 42px; top: 28%; right: 12%; border-radius: 50%; animation-delay: -3s; }
.s3 { width: 56px; height: 28px; bottom: 22%; right: 22%; animation-delay: -5s; }

@keyframes orbDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(30px, -24px, 0) scale(1.08); }
}
@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateX(12deg) rotateY(-18deg); }
  50% { transform: translateY(-18px) rotateX(18deg) rotateY(-8deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,217,138,.55); }
  50% { box-shadow: 0 0 0 10px rgba(31,217,138,0); }
}
@keyframes heroFloat {
  0%, 100% { transform: rotateY(-10deg) rotateX(8deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(4deg) translateY(-14px); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Header */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(3, 8, 5, 0.72);
  backdrop-filter: blur(22px) saturate(1.35);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 1.18rem; font-family: var(--display);
  letter-spacing: -.02em;
}
.brand img {
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid rgba(212,175,55,.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(212,175,55,.2);
  object-fit: cover;
}
.brand strong {
  background: var(--gemini-gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--text-muted);
  font-size: .86rem; font-weight: 500; padding: 8px 10px; border-radius: 10px;
  transition: .2s var(--ease-out); white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--accent); background: var(--glass); }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  background: var(--glass); color: var(--text); font-size: 1.2rem; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: .9rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: .25s var(--ease-out); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #03140c; box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.08); }
.btn-outline {
  border-color: var(--glass-border-strong); color: var(--text); background: rgba(255,255,255,.03);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 28px var(--accent-glow); }
.btn-lg { padding: 15px 30px; font-size: .98rem; }

/* Hero */
.hero {
  position: relative; z-index: 2;
  min-height: 100dvh; display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: .82rem; font-weight: 700; color: var(--accent);
  background: rgba(31,217,138,.08); border: 1px solid rgba(31,217,138,.25);
  margin-bottom: 22px; box-shadow: 0 0 40px rgba(31,217,138,.12);
  animation: fadeUp .6s var(--ease-out) both;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.04em;
  margin: 0 0 18px; animation: fadeUp .7s .05s var(--ease-out) both;
}
.grad {
  background: var(--gemini-gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(31,217,138,.25);
}
.lead {
  font-size: 1.1rem; color: var(--text-muted); max-width: 520px;
  margin: 0 0 28px; line-height: 1.85;
  animation: fadeUp .7s .1s var(--ease-out) both;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp .7s .15s var(--ease-out) both;
}

.hero-stage { position: relative; perspective: 1400px; }
.hero-card { position: relative; z-index: 2; transform-style: preserve-3d; }
.hero-card-inner {
  position: relative; padding: 28px; border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(28px) saturate(1.2);
  box-shadow: var(--shadow-lg), 0 0 100px rgba(31,217,138,.12);
  transform: rotateY(-10deg) rotateX(8deg);
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-card:hover .hero-card-inner {
  animation: none;
  transform: rotateY(-2deg) rotateX(2deg) translateY(-10px);
  transition: transform .45s var(--ease-out);
}
.hero-card-glow {
  position: absolute; inset: -18%;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  opacity: .55; z-index: -1; filter: blur(40px);
}
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(31,217,138,.25);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: spinSlow 28s linear infinite;
  pointer-events: none;
}
.ring-a { width: 118%; height: 118%; }
.ring-b { width: 140%; height: 140%; animation-direction: reverse; animation-duration: 40s; opacity: .5; }

.chat-demo { display: flex; flex-direction: column; gap: 14px; }
.bubble {
  max-width: 90%; padding: 14px 18px; border-radius: 18px;
  font-size: .93rem; line-height: 1.65;
  animation: fadeUp .55s var(--ease-out) both;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.bubble:nth-child(1) { animation-delay: .1s; }
.bubble:nth-child(2) { animation-delay: .25s; }
.bubble:nth-child(3) { animation-delay: .4s; }
.bubble:nth-child(4) { animation-delay: .55s; }
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #03140c; font-weight: 600;
  border-bottom-left-radius: 6px;
  box-shadow: 0 12px 28px var(--accent-glow);
}
.bubble.bot {
  align-self: flex-start;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-bottom-right-radius: 6px;
}
.demo-status {
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; color: var(--accent); font-weight: 700;
  margin-bottom: 10px; letter-spacing: .06em;
}
.demo-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulseGlow 2s infinite;
}

/* Sections */
.section { position: relative; z-index: 2; padding: 88px 0; }
.section.alt {
  background: rgba(255,255,255,.02);
  border-block: 1px solid var(--glass-border);
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800; text-align: center; margin: 0 0 10px; letter-spacing: -.02em;
}
.section-lead {
  text-align: center; color: var(--text-muted); margin: 0 auto 40px;
  font-size: 1rem; max-width: 520px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.feature-card {
  padding: 26px 22px; border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-3d);
  transition: .35s var(--ease-out);
  transform-style: preserve-3d;
}
.feature-card:hover {
  transform: translateY(-10px) rotateX(4deg);
  border-color: rgba(31,217,138,.35);
  box-shadow: var(--glow-ring);
}
.feature-card .icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: 14px; font-size: 1.35rem;
  background: rgba(31,217,138,.1); border: 1px solid rgba(31,217,138,.22);
  box-shadow: 0 0 24px rgba(31,217,138,.12);
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: .9rem; }

.pages-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.page-pill {
  text-decoration: none; color: var(--text);
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  font-weight: 700; transition: .25s var(--ease-out);
  box-shadow: var(--shadow-3d);
}
.page-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(31,217,138,.4);
  box-shadow: 0 12px 30px var(--accent-glow);
  color: var(--accent);
}

.cta {
  position: relative; z-index: 2; padding: 90px 0; text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(31,217,138,.18), transparent),
    linear-gradient(180deg, transparent, rgba(31,217,138,.04));
  border-top: 1px solid var(--glass-border);
}
.cta-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 12px;
}
.cta-inner p { color: var(--text-muted); margin: 0 0 28px; }

.site-footer {
  position: relative; z-index: 2; padding: 28px 0 calc(28px + var(--safe-b));
  border-top: 1px solid var(--glass-border); background: rgba(3,8,5,.85);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-dim);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.mobile-dock {
  display: none; position: fixed; inset-inline: 12px;
  bottom: calc(10px + var(--safe-b)); z-index: 90;
  grid-template-columns: repeat(5, 1fr); gap: 2px;
  padding: 8px 6px; border-radius: 18px;
  background: rgba(6,14,11,.92); border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px); box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.mobile-dock a {
  display: grid; place-items: center; min-height: 48px; text-decoration: none;
  color: var(--text-muted); font-size: .68rem; font-weight: 700; border-radius: 12px;
}
.mobile-dock a.is-active, .mobile-dock a:hover { color: var(--accent); background: rgba(31,217,138,.1); }

@media (max-width: 1000px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card-inner { transform: none; animation: none; }
  .orbit { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding: 12px 0; gap: 6px;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .mobile-dock { display: grid; }
  .float-shape { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
