/**
 * GENIOTEC — الصفحة الأولية
 * هوية داكنة دافئة · برتقالي البث · موجات تردد
 */
:root {
  --bg: #0a0c10;
  --bg-2: #12161f;
  --fg: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --muted-2: rgba(244, 241, 234, 0.38);
  --accent: #f58220;
  --accent-soft: #ffb060;
  --live: #3ddc84;
  --line: rgba(244, 241, 234, 0.12);
  --font-ar: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-lat: "Syne", "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--fg);
  font-family: var(--font-ar);
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(245, 130, 32, 0.22), transparent 58%),
    radial-gradient(700px 420px at 8% 100%, rgba(61, 220, 132, 0.07), transparent 55%),
    linear-gradient(165deg, var(--bg-2) 0%, var(--bg) 55%, #07080c 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.freq {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
}

.freq svg {
  width: 100%;
  height: 100%;
}

.wave {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}

.motion-on .wave {
  animation: draw-wave 2.8s var(--ease) forwards;
}

.motion-on .w2 {
  animation-delay: 0.25s;
}

.motion-on .w3 {
  animation-delay: 0.45s;
}

@keyframes draw-wave {
  to {
    stroke-dashoffset: 0;
  }
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mark-lat {
  font-family: var(--font-lat);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
}

.mark-ar {
  font-weight: 700;
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.top-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--fg);
}

.top-cta {
  padding: 0.55rem 0.9rem !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg) !important;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.top-cta:hover {
  border-color: rgba(245, 130, 32, 0.5);
  background: rgba(245, 130, 32, 0.1);
}

.hero {
  min-height: min(88dvh, 860px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6.5rem) var(--pad) 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-lat);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
}

.eyebrow.accent {
  color: var(--accent);
}

.brand-hero {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-lat {
  font-family: var(--font-lat);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--fg);
}

.brand-ar {
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.75;
  color: var(--muted);
  font-weight: 500;
}

.cta-row {
  margin-top: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease), background 0.18s var(--ease);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #d46a12);
  color: #12100c;
}

.btn.primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--fg);
}

.btn.ghost:hover {
  border-color: rgba(245, 130, 32, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.product {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.product-visual {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.dial {
  position: relative;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  display: grid;
  place-items: center;
}

.dial img {
  width: 42%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 130, 32, 0.28);
  z-index: 1;
}

.r1 {
  inset: 8%;
}

.r2 {
  inset: -2%;
  border-color: rgba(245, 130, 32, 0.16);
}

.r3 {
  inset: -14%;
  border-color: rgba(61, 220, 132, 0.12);
}

.motion-on .r2,
.motion-on .r3 {
  animation: spin-slow 28s linear infinite;
}

.motion-on .r3 {
  animation-direction: reverse;
  animation-duration: 40s;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.product-copy h2 {
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
}

.product-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
  max-width: 36rem;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.foot strong {
  display: block;
  font-family: var(--font-lat);
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  align-items: center;
}

.foot-links a:hover {
  color: var(--accent-soft);
}

.foot-links .muted {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.motion-on .hero,
.motion-on .product {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.motion-on .hero.in,
.motion-on .product.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .product {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-copy p:last-child {
    margin-inline: auto;
  }

  .product-visual {
    order: -1;
    min-height: 220px;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .top-nav a:not(.top-cta) {
    display: none;
  }
}

@media (max-width: 520px) {
  .cta-row {
    width: 100%;
  }

  .btn {
    flex: 1 1 100%;
  }

  .foot {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave,
  .ring,
  .hero,
  .product {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
