/* ══════════════════════════════════════════
   GulfDealAI — Coming Soon
   style.css
══════════════════════════════════════════ */

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

:root {
  --sand:  #E8DCC8;
  --ember: #C94A1A;
  --night: #0D0D0D;
  --dusk:  #1A1410;
  --gold:  #D4A847;
  --smoke: #2A2218;
  --text:  #F5EFE4;
  --muted: #8A7D6A;
}

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Desert atmosphere ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,74,26,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(212,168,71,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 60%, rgba(201,74,26,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Grain texture ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ══ Layout ══════════════════════════════ */

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ══ Header ══════════════════════════════ */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(232,220,200,0.08);
  animation: fadeDown 0.8s ease both;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--ember);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.logo-text {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sand);
}

.logo-text span { color: var(--ember); }

.badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(201,74,26,0.4);
  border-radius: 100px;
  color: var(--ember);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse-border 3s ease infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(201,74,26,0.4); }
  50%       { border-color: rgba(201,74,26,0.9); }
}

/* ══ Main ════════════════════════════════ */

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0 2rem;
  gap: 2.5rem;
}

/* ══ Orb ═════════════════════════════════ */

.orb-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  animation: fadeUp 1s ease 0.2s both;
}

.orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E8651A, #8B2500);
  box-shadow:
    0 0 60px rgba(201,74,26,0.5),
    0 0 120px rgba(201,74,26,0.2),
    inset 0 0 40px rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
  font-size: 4rem;
  animation: orb-breathe 4s ease infinite;
  position: relative;
  z-index: 1;
}

@keyframes orb-breathe {
  0%, 100% {
    box-shadow:
      0 0 60px rgba(201,74,26,0.5),
      0 0 120px rgba(201,74,26,0.2),
      inset 0 0 40px rgba(0,0,0,0.4);
  }
  50% {
    box-shadow:
      0 0 80px rgba(201,74,26,0.7),
      0 0 160px rgba(201,74,26,0.35),
      inset 0 0 40px rgba(0,0,0,0.4);
  }
}

.orb-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(201,74,26,0.2);
  animation: ring-spin 12s linear infinite;
}

.orb-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--ember);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--ember);
}

.orb-ring-2 {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,71,0.1);
  animation: ring-spin 20s linear infinite reverse;
}

.orb-ring-2::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 30%;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

@keyframes ring-spin { to { transform: rotate(360deg); } }

/* ══ Title ═══════════════════════════════ */

.title-block { animation: fadeUp 1s ease 0.4s both; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--ember);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--ember);
  opacity: 0.5;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

h1 .accent {
  color: var(--ember);
  display: inline-block;
  position: relative;
}

h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ember);
  opacity: 0.4;
  border-radius: 2px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  margin-top: 1.2rem;
  max-width: 480px;
  line-height: 1.7;
}

/* ══ Layer Pills ═════════════════════════ */

.layers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 600px;
  animation: fadeUp 1s ease 0.6s both;
}

.layer-pill {
  font-size: 0.72rem;
  padding: 0.4rem 0.9rem;
  background: rgba(232,220,200,0.04);
  border: 1px solid rgba(232,220,200,0.1);
  border-radius: 100px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: default;
}

.layer-pill:hover {
  background: rgba(201,74,26,0.1);
  border-color: rgba(201,74,26,0.35);
  color: var(--sand);
  transform: translateY(-2px);
}

.layer-pill .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
  margin-left: 0.5rem;
  vertical-align: middle;
  opacity: 0.7;
}

/* ══ Stats ═══════════════════════════════ */

.stats {
  display: flex;
  gap: 3rem;
  animation: fadeUp 1s ease 0.8s both;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sand);
  display: block;
  line-height: 1;
}

.stat-num .unit {
  font-size: 1rem;
  color: var(--ember);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
  display: block;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  background: rgba(232,220,200,0.08);
  align-self: stretch;
}

/* ══ Progress ════════════════════════════ */

.progress-block {
  width: 100%;
  max-width: 500px;
  animation: fadeUp 1s ease 1s both;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-family: 'Space Mono', monospace;
}

.progress-label span:last-child { color: var(--ember); }

.progress-bar {
  height: 3px;
  background: rgba(232,220,200,0.08);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  border-radius: 100px;
  animation: fill-bar 2s cubic-bezier(0.4,0,0.2,1) 1.5s forwards;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 8px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

@keyframes fill-bar { to { width: 65%; } }

/* ══ Phases ══════════════════════════════ */

.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 640px;
  background: rgba(232,220,200,0.06);
  border-radius: 16px;
  overflow: hidden;
  animation: fadeUp 1s ease 1.1s both;
}

.phase {
  background: var(--dusk);
  padding: 1.2rem 1rem;
  text-align: center;
  position: relative;
  transition: background 0.3s;
}

.phase:hover        { background: var(--smoke); }
.phase.done         { background: rgba(201,74,26,0.08); }
.phase.active       { background: rgba(201,74,26,0.14); }

.phase-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.5rem;
}

.phase-name {
  font-size: 0.68rem;
  color: var(--muted);
  display: block;
  line-height: 1.4;
  font-family: 'Space Mono', monospace;
}

.phase.done .phase-name   { color: var(--sand); }
.phase.active .phase-name { color: var(--ember); }

.phase-status {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--smoke);
}

.phase.done .phase-status   { background: var(--ember); }
.phase.active .phase-status {
  background: var(--ember);
  animation: blink 1.5s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ══ Notify Form ═════════════════════════ */

.notify-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 420px;
  animation: fadeUp 1s ease 1.2s both;
}

.notify-input {
  flex: 1;
  background: rgba(232,220,200,0.05);
  border: 1px solid rgba(232,220,200,0.12);
  border-left: none;
  border-radius: 10px 0 0 10px;
  padding: 0.85rem 1.2rem;
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  direction: rtl;
}

.notify-input::placeholder { color: var(--muted); }
.notify-input:focus { border-color: rgba(201,74,26,0.4); }

.notify-btn {
  background: var(--ember);
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 0.85rem 1.4rem;
  color: white;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}

.notify-btn:hover  { background: #E0561F; transform: translateX(-2px); }
.notify-btn:active { transform: translateX(0); }

/* ══ Footer ══════════════════════════════ */

footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(232,220,200,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeUp 1s ease 1.4s both;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
}

.tg-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(232,220,200,0.1);
  border-radius: 8px;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
}

.tg-link:hover {
  border-color: rgba(201,74,26,0.3);
  color: var(--sand);
  background: rgba(201,74,26,0.06);
}

/* ══ Animations ══════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ Responsive ══════════════════════════ */

@media (max-width: 600px) {
  .wrap    { padding: 1.2rem; }
  .stats   { gap: 1.5rem; }
  .phases  { grid-template-columns: repeat(2, 1fr); }
  .layers  { gap: 0.5rem; }
  footer   { flex-direction: column; gap: 1rem; text-align: center; }
  h1       { font-size: 2.4rem; }
  .subtitle { font-size: 1rem; }
}
