:root{
  --bg:#070A12;
  --bg2:#0B0F1A;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.09);
  --stroke:rgba(255,255,255,.12);
  --stroke2:rgba(255,255,255,.18);
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --muted2:rgba(234,240,255,.55);

  --a:#6EE7FF;
  --b:#A78BFA;
  --c:#22C55E;

  --radius:18px;
  --shadow:0 20px 60px rgba(0,0,0,.55);
  --shadow2:0 12px 30px rgba(0,0,0,.45);

  --font-ar:"IBM Plex Sans Arabic", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-en:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(110,231,255,.10), transparent 50%),
    radial-gradient(1100px 700px at 80% 20%, rgba(167,139,250,.10), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  font-family:var(--font-ar);
  overflow-x:hidden;
  cursor:none;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1180px, calc(100% - 40px)); margin:0 auto; }

/* =========================
   TOPBAR / HEADER
   ========================= */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background:rgba(7,10,18,.65);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

/* Targets logo image safely */
.brand img,
.topbar img{
  height: 22px;
  width: auto;
  display:block;
  max-width: 160px;
}

/* Brand container */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  flex: 0 0 auto;
}

.logo-fallback{
  font-weight:800;
  letter-spacing:.12em;
  font-size:14px;
  opacity:.95;
}

.actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 0 0 auto;
}

/* ---------------- HERO ---------------- */

.hero{ padding:48px 0 0; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  align-items:start;
}

/* Make the right column a real vertical stack */
.hero-visual{
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------------- HOLO CARD ---------------- */

.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
}

.holo{
  padding:20px;
  padding-bottom:28px; /* room for CTA/button */
  overflow:hidden;
  position:relative;

  /* HARD separation (fixes the visual overlap) */
  margin-bottom: 22px;
}

.holo-body{
  margin-top:16px;
  position:relative;
}

/* ---------------- FLOATING SECTION (NO OVERLAP) ---------------- */

.floating{
  position: relative !important;
  inset: auto !important;
  transform: none !important;

  display: grid;
  gap: 12px;
  flex: 0 0 auto;

  margin-top: 0 !important;
}

.float-card{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px;
  background:rgba(255,255,255,.05);
  transition:transform .2s ease;
}

.float-card:hover{
  transform:translateY(-4px);
}

/* ---------------- BUTTONS ---------------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:10px 16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--text);
  gap:8px;
  transition:.2s ease;
  white-space: nowrap;
}

.btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.08);
}

.btn-primary{
  border-color:rgba(110,231,255,.35);
  background:linear-gradient(135deg, rgba(110,231,255,.18), rgba(167,139,250,.14));
}

/* ---------------- SECTIONS ---------------- */

.section{ padding:64px 0; }

.section-alt{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; }
}

@media (max-width:520px){
  .btn{ padding:10px 12px; }
}

/* ---------------- SMART CURSOR ---------------- */

#cursor{
  position:fixed;
  left:0; top:0;
  width:1px; height:1px;
  pointer-events:none;
  z-index:200;
  transform:translate(-50%,-50%);
}

.cursor-core{
  position:absolute;
  width:10px; height:10px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--a), var(--b));
  box-shadow:0 0 22px rgba(110,231,255,.35);
  transform:translate(-50%,-50%);
}

.cursor-ring{
  position:absolute;
  width:44px; height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:radial-gradient(circle at 30% 30%, rgba(110,231,255,.12), transparent 55%);
  transform:translate(-50%,-50%);
}

.cursor-hover .cursor-ring{
  width:62px;
  height:62px;
  border-color:rgba(110,231,255,.35);
}

/* =========================
   iPad + tablet optimization
   ========================= */
@media (max-width: 1024px){
  .nav{ display:none !important; }

  .container{
    width: calc(100% - 24px);
  }

  /* Header */
  .topbar-inner{
    gap: 10px;
    padding: 10px 0;
  }

  /* Logo */
  .brand img,
  .topbar img{
    height: 18px;
    max-width: 120px;
  }
  .brand{
    padding: 7px 9px;
  }

  /* Actions: keep clean */
  .actions{
    gap: 8px;
    flex-wrap: nowrap;
    max-width: 62%;
  }
  .actions .btn{
    padding: 9px 10px;
    font-size: 13px;
  }

  /* Hero: single column */
  .hero{
    padding: 22px 0 0;
  }
  .hero-grid{
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .hero-visual{
    min-height: auto;
    width: 100%;
  }

  /* Make the cards fit tablet */
  .holo{
    padding: 16px;
    padding-bottom: 22px;
    margin-bottom: 18px;
  }

  .float-card{
    padding: 12px;
  }

  /* If these exist in your HTML */
  .hero-title{
    font-size: clamp(26px, 5.2vw, 40px);
    line-height: 1.12;
  }
  .hero-sub{
    font-size: 14px;
    line-height: 1.75;
  }

  .cards-grid,
  .steps,
  .models-grid,
  .vision-grid{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .preview{
    grid-template-columns: 1fr;
  }

  .dash-grid{
    grid-template-columns: 1fr 1fr;
  }
}

/* Extra small phones */
@media (max-width: 600px){
  .brand img,
  .topbar img{
    height: 16px;
    max-width: 110px;
  }
}
