/* ═══════════════════════════════════════════
   GHURAB — Premium Landing Page Styles
   ghurab.co
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;700;900&family=Tajawal:wght@200;300;400;700;900&display=swap');

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

:root {
  --ink:    #04040a;
  --deep:   #07070e;
  --paper:  #ede7d2;
  --g1:     #d4a843;
  --g2:     #f2cc72;
  --g3:     #a07828;
  --g4:     #fbeab8;
  --g5:     #7a5518;
  --muted:  #5e5a54;
  --muted2: #3e3a34;
  --bdr:    rgba(212,168,67,0.13);
  --bdr2:   rgba(212,168,67,0.28);
  --bdr3:   rgba(212,168,67,0.50);
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-in-out:   cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Cairo', 'Tajawal', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

/* ═══════════════════════════════════
   CURSOR
═══════════════════════════════════ */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--g1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, opacity .2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(212,168,67,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .12s ease, width .25s ease, height .25s ease;
}
body:hover .cursor { opacity: 1; }

/* ═══════════════════════════════════
   BACKGROUND
═══════════════════════════════════ */
.bg-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

.bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 1200px 700px at 50% -100px,  rgba(212,168,67,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 600px  600px at 100% 100%,   rgba(212,168,67,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 500px  500px at -5%  65%,    rgba(212,168,67,0.04) 0%, transparent 55%),
    linear-gradient(180deg, #04040a 0%, #07070e 60%, #04040a 100%);
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,168,67,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 20%, transparent 100%);
}

.bg-particles {
  position: absolute; inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--g1);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .3; }
  100% { transform: translateY(-20px) translateX(30px); opacity: 0; }
}

/* ═══════════════════════════════════
   NOISE OVERLAY
═══════════════════════════════════ */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════
   LAYOUT WRAPPER
═══════════════════════════════════ */
.wrap {
  position: relative; z-index: 2;
  max-width: 700px; margin: 0 auto;
  padding: 0 36px;
  display: flex; flex-direction: column; align-items: center;
}

/* ═══════════════════════════════════
   NAVIGATION
═══════════════════════════════════ */
nav {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 38px 0 0;
  will-change: transform, opacity;
}

.brand {
  font-size: 22px; font-weight: 900; letter-spacing: 7px;
  background: linear-gradient(120deg, var(--g4) 0%, var(--g2) 35%, var(--g1) 65%, var(--g3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% auto;
  animation: brandShimmer 5s linear infinite;
}

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

.domain-tag {
  font-size: 11px; color: rgba(212,168,67,0.4);
  letter-spacing: 3px; font-weight: 300;
  direction: ltr;
  border: 1px solid var(--bdr2);
  border-radius: 20px; padding: 5px 14px;
  background: rgba(212,168,67,0.04);
  transition: border-color .3s, color .3s, background .3s;
}
.domain-tag:hover {
  border-color: var(--bdr3);
  color: var(--g1);
  background: rgba(212,168,67,0.08);
}

/* ═══════════════════════════════════
   GOLD DIVIDER RULE
═══════════════════════════════════ */
.rule {
  width: 100%; position: relative;
  height: 1px; margin: 28px 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(212,168,67,0.15) 15%,
    rgba(212,168,67,0.45) 40%,
    rgba(212,168,67,0.45) 60%,
    rgba(212,168,67,0.15) 85%,
    transparent);
}

.rule::before, .rule::after {
  content: '';
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--g1);
  clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
  box-shadow: 0 0 10px rgba(212,168,67,0.7);
}
.rule::before { right: 0; }
.rule::after  { left: 0; }

/* ═══════════════════════════════════
   HERO SECTION
═══════════════════════════════════ */
.hero {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 52px 0 40px; text-align: center;
}

/* ── LOGO ── */
.logo-container {
  position: relative;
  width: 300px; height: 230px;
  margin-bottom: 46px;
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
}

.logo-halo {
  position: absolute; inset: -50px;
  background: radial-gradient(circle at 50% 55%,
    rgba(212,168,67,0.20) 0%,
    rgba(212,168,67,0.05) 40%,
    transparent 65%);
  animation: haloPulse 4s ease-in-out infinite;
  border-radius: 50%;
}
@keyframes haloPulse {
  0%,100% { transform: scale(1);   opacity: .7; }
  50%      { transform: scale(1.1); opacity: 1;  }
}

.logo-ring {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,67,0.10);
  animation: ringRotate 20s linear infinite;
}
.logo-ring-2 {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(212,168,67,0.06);
  animation: ringRotate 30s linear infinite reverse;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Ring tick marks */
.logo-ring::before, .logo-ring::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(212,168,67,0.4);
  clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
}
.logo-ring::before { top: -3px; left: 50%; transform: translateX(-50%); }
.logo-ring::after  { bottom: -3px; left: 50%; transform: translateX(-50%); }

.logo-img {
  position: relative; z-index: 2;
  width: 270px; height: auto; max-height: 210px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 50px rgba(212,168,67,0.50))
    drop-shadow(0 0 20px rgba(212,168,67,0.30))
    drop-shadow(0 10px 30px rgba(0,0,0,0.70));
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ── PILL / STATUS ── */
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--bdr3); border-radius: 40px;
  padding: 8px 22px;
  font-size: 11px; color: var(--g2);
  letter-spacing: 1.8px; font-weight: 400;
  margin-bottom: 32px;
  background: rgba(212,168,67,0.05);
  backdrop-filter: blur(10px);
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--g1);
  box-shadow: 0 0 10px rgba(212,168,67,0.8);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity: .4; transform: scale(1); box-shadow: 0 0 6px rgba(212,168,67,0.5); }
  50%      { opacity: 1;  transform: scale(1.5); box-shadow: 0 0 14px rgba(212,168,67,0.9); }
}

/* ── HEADLINE ── */
.headline {
  font-size: clamp(36px, 6.5vw, 58px);
  font-weight: 900; line-height: 1.15; letter-spacing: -2px;
  margin-bottom: 22px;
}
.headline .line1 { display: block; color: var(--paper); }
.headline .line2 {
  display: block;
  background: linear-gradient(90deg, var(--g4) 0%, var(--g2) 45%, var(--g1) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% auto;
  animation: headlineGold 5s ease-in-out infinite alternate;
}
@keyframes headlineGold {
  from { background-position: 0% center; }
  to   { background-position: 100% center; }
}

/* ── SUBLINE ── */
.subline {
  font-size: 16px; color: var(--muted); line-height: 2;
  font-weight: 300; max-width: 480px; margin-bottom: 54px;
}

/* ── EMAIL FORM ── */
.form-section {
  width: 100%; max-width: 500px; margin-bottom: 16px;
}

.form-box {
  display: flex;
  border: 1px solid var(--bdr2); border-radius: 18px;
  overflow: hidden; background: rgba(255,255,255,0.025);
  transition: border-color .3s, box-shadow .3s;
  position: relative;
}
.form-box::before {
  content: '';
  position: absolute; inset: 0; border-radius: 18px;
  background: linear-gradient(135deg, rgba(212,168,67,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.form-box:focus-within {
  border-color: var(--bdr3);
  box-shadow: 0 0 40px rgba(212,168,67,0.15), 0 0 0 1px rgba(212,168,67,0.1) inset;
}

.form-box input {
  flex: 1; background: transparent; border: none;
  padding: 17px 22px; color: var(--paper);
  font-family: 'Cairo', sans-serif; font-size: 14px;
  outline: none; direction: rtl;
  position: relative; z-index: 1;
}
.form-box input::placeholder { color: rgba(237,231,210,.22); }

.form-box button {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--g5), var(--g3), var(--g1), var(--g2));
  background-size: 200% 200%; background-position: 0% 0%;
  border: none; padding: 0 30px;
  color: #04040a;
  font-family: 'Cairo', sans-serif; font-size: 13px;
  font-weight: 800; cursor: pointer; white-space: nowrap;
  letter-spacing: .5px; z-index: 1;
  transition: background-position .4s ease, filter .2s;
}
.form-box button::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.18));
  pointer-events: none;
}
.form-box button:hover {
  background-position: 100% 100%;
  filter: brightness(1.1);
}

/* Success state */
.form-success {
  display: none;
  width: 100%; padding: 18px 24px;
  border: 1px solid var(--bdr3); border-radius: 18px;
  background: rgba(212,168,67,0.06);
  backdrop-filter: blur(10px);
  font-size: 14px; color: var(--g2);
  text-align: center; letter-spacing: .5px;
}
.form-note {
  font-size: 11px; color: rgba(237,231,210,.2);
  letter-spacing: 1px; text-align: center; margin-top: 12px;
}

/* ═══════════════════════════════════
   ORNAMENT DIVIDER
═══════════════════════════════════ */
.ornament {
  display: flex; align-items: center; gap: 16px;
  width: 100%; max-width: 500px;
  margin: 54px 0 44px;
}
.orn-line { flex: 1; height: 1px; }
.orn-line.l { background: linear-gradient(90deg, transparent, rgba(212,168,67,0.35)); }
.orn-line.r { background: linear-gradient(90deg, rgba(212,168,67,0.35), transparent); }
.orn-center {
  display: flex; align-items: center; gap: 8px;
}
.orn-d {
  width: 10px; height: 10px;
  background: var(--g1);
  clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
  box-shadow: 0 0 14px rgba(212,168,67,0.7);
}
.orn-s {
  width: 6px; height: 6px;
  background: rgba(212,168,67,0.5);
  clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
}

/* ═══════════════════════════════════
   STATS
═══════════════════════════════════ */
.stats-grid {
  width: 100%; max-width: 500px;
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--bdr); border-radius: 22px;
  overflow: hidden; margin-bottom: 68px;
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(10px);
}
.stat-item {
  padding: 28px 16px; text-align: center;
  border-left: 1px solid var(--bdr);
  position: relative; cursor: default;
  transition: background .3s;
  overflow: hidden;
}
.stat-item:last-child { border-left: none; }
.stat-item::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--g1), transparent);
  transform: scaleX(0); transition: transform .4s var(--ease-out-expo);
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-item:hover { background: rgba(212,168,67,0.05); }

.stat-val {
  display: block; font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--g2), var(--g1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 7px;
  transform: translateY(0); transition: transform .3s;
}
.stat-item:hover .stat-val { transform: translateY(-2px); }
.stat-lbl {
  font-size: 11px; color: var(--muted); letter-spacing: .8px; font-weight: 300;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  width: 100%; max-width: 700px;
  padding: 0 36px 38px;
  position: relative; z-index: 2;
}
.footer-rule {
  height: 1px; margin-bottom: 24px;
  background: linear-gradient(90deg,
    transparent, var(--bdr) 20%, var(--bdr2) 50%, var(--bdr) 80%, transparent);
  position: relative;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 11px; color: rgba(237,231,210,.18); letter-spacing: .5px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  font-size: 11px; color: rgba(237,231,210,.25);
  text-decoration: none; letter-spacing: .5px;
  transition: color .25s;
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--g1);
  transform: scaleX(0); transition: transform .3s;
}
.footer-links a:hover { color: var(--g2); }
.footer-links a:hover::after { transform: scaleX(1); }

/* ═══════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════ */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 1000;
  background: linear-gradient(90deg, var(--g3), var(--g1), var(--g2));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .1s;
}

/* ═══════════════════════════════════
   INTERSECTION OBSERVER — REVEAL
═══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }
.reveal-d6 { transition-delay: .6s; }
.reveal-d7 { transition-delay: .7s; }
.reveal-d8 { transition-delay: .85s; }

/* Logo specific */
.reveal-logo {
  opacity: 0;
  transform: translateY(28px) scale(.95);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
  transition-delay: .15s;
}
.reveal-logo.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 560px) {
  .wrap, footer { padding: 0 20px; }
  footer { padding-bottom: 28px; }
  .logo-container { width: 240px; height: 185px; }
  .logo-img { width: 220px; }
  .logo-ring { width: 220px; height: 220px; }
  .logo-ring-2 { width: 260px; height: 260px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-left: none; border-bottom: 1px solid var(--bdr); }
  .stat-item:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cursor, .cursor-ring { display: none; }
}
