/* 048 · Pulsewave (موجة التركيز) — 1:1 Mood-Reactive Bio-Acoustic Stylesheet */
:root {
  --pw-bg: #07050e;
  --pw-fg: #f6e9ff;
  --pw-dim: rgba(246, 233, 255, 0.66);
  --pw-hair: rgba(246, 233, 255, 0.14);
  --pw-mood: #ffb347;
  --pw-grad: linear-gradient(95deg, #ffb347, #f0457f 62%, #9b83ff);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--pw-bg); color: var(--pw-fg); }

body {
  margin: 0;
  background: var(--pw-bg);
  color: var(--pw-fg);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.68;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, a, button, span, input { letter-spacing: 0; }
[dir="ltr"] { font-family: 'JetBrains Mono', monospace; }

.pw-grad-text {
  background: var(--pw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Fixed 3-Column Header */
.pw-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  height: 68px;
  padding: 0 clamp(20px, 3vw, 44px);
  background: rgba(7, 5, 14, 0.76);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pw-hair);
  display: flex;
  align-items: center;
}

.pw-nav {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pw-fg);
  text-decoration: none;
  font-family: 'Readex Pro', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  white-space: nowrap;
}

.pw-links { display: flex; align-items: center; gap: 22px; }
.pw-links a { color: var(--pw-dim); text-decoration: none; font-size: 0.85rem; white-space: nowrap; }
.pw-links a:hover { color: var(--pw-fg); }

.pw-pill-light {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--pw-fg);
  color: var(--pw-bg);
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

.pw-pill-mood {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--pw-mood);
  color: #07050e;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s ease;
}

.pw-pill-ghost {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--pw-hair);
  background: rgba(246, 233, 255, 0.05);
  color: var(--pw-fg);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

/* Section 1: 100svh Mood-Reactive Torus Hero + Bottom Telemetry Rail */
.pw-hero {
  position: relative;
  min-height: 100dvh;
  padding-top: 68px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--pw-hair);
}

.pw-stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.pw-hero-grid {
  position: relative;
  z-index: 5;
  max-width: 1320px;
  width: 100%;
  margin: auto;
  padding: 36px clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.pw-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(7, 5, 14, 0.65);
  border: 1px solid var(--pw-hair);
  font-size: 0.74rem;
  margin-bottom: 22px;
}

.pw-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pw-mood);
  box-shadow: 0 0 10px var(--pw-mood);
}

.pw-h1 {
  margin: 0 0 18px;
  font-family: 'Amiri', Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.24;
}

.pw-h1 em {
  font-style: italic;
  color: var(--pw-mood);
  transition: color 0.35s ease;
}

/* 3-Mode Picker */
.pw-picker {
  display: inline-flex;
  padding: 5px;
  border-radius: 16px;
  background: rgba(7, 5, 14, 0.75);
  border: 1px solid var(--pw-hair);
  gap: 4px;
  margin-bottom: 10px;
}

.pw-mode-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--pw-dim);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.pw-mode-btn.is-active {
  background: var(--pw-mood);
  color: #07050e;
  font-weight: 700;
}

/* Rotating Ring HUD Readout */
.pw-ring-hud {
  justify-self: center;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px dashed rgba(246, 233, 255, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle, rgba(7, 5, 14, 0.55) 0%, transparent 72%);
}

/* Bottom 4-Col Telemetry Rail */
.pw-rail {
  position: relative;
  z-index: 5;
  background: linear-gradient(to top, rgba(7, 5, 14, 0.9), rgba(7, 5, 14, 0.5));
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--pw-hair);
  padding: 14px clamp(20px, 4vw, 56px);
}

.pw-rail-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto 220px;
  gap: 24px;
  align-items: center;
  font-size: 0.78rem;
}

/* Lower Sections */
.pw-sec {
  scroll-margin-top: 72px;
  border-bottom: 1px solid var(--pw-hair);
  padding: clamp(72px, 8vw, 108px) clamp(20px, 4vw, 56px);
}

.pw-wrap { max-width: 1280px; margin: 0 auto; }

.pw-h2 {
  margin: 8px 0 14px;
  font-family: 'Amiri', Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  font-weight: 400;
  line-height: 1.12;
}

.pw-grid-3 {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pw-card {
  background: linear-gradient(165deg, rgba(246, 233, 255, 0.055), rgba(246, 233, 255, 0.015));
  border: 1px solid var(--pw-hair);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pw-card.is-hot {
  border-color: #f0457f;
  box-shadow: 0 28px 80px -30px rgba(240, 69, 127, 0.5);
}

/* #sessions Interactive 6-Row Table */
.pw-sess-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--pw-hair);
  display: grid;
  grid-template-columns: 50px 1.4fr 1fr 90px auto;
  gap: 14px;
  align-items: center;
}

.pw-footer { padding: 40px clamp(20px, 4vw, 56px); background: #05030a; }

@media (max-width: 900px) {
  .pw-rail-grid { grid-template-columns: 1fr 1fr; }
  .pw-sess-row { grid-template-columns: 1fr auto; }
  .pw-sess-hide { display: none; }
}

@media (max-width: 720px) {
  .pw-links { display: none; }
  .pw-hero-grid, .pw-grid-3, .pw-rail-grid { grid-template-columns: 1fr; }
}
