/* =========================================================================
   Murade Zema - High-Performance Modern Web Frontend Stylesheet
   Theme: Ethiopian Spiritual Orthodox Aesthetics (Purple, Deep Indigo & Gold)
   ========================================================================= */

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

:root {
  --primary:    #6C3FC5;
  --primary-d:  #4f2d96;
  --primary-l:  #8b5cf6;
  --accent:     #F59E0B;
  --accent-d:   #d97706;
  --dark:       #0A0A14;
  --dark-2:     #121224;
  --dark-3:     #1A1A32;
  --dark-card:  #16162C;
  --text:       #E2E2F0;
  --text-muted: #9090B8;
  --border:     rgba(255, 255, 255, 0.08);
  --border-focus: rgba(108, 63, 197, 0.5);
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --gutter:     clamp(1rem, 5vw, 4.5rem);
  --font-main:  'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ethiopic: 'Noto Serif Ethiopic', 'Inter', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ── Typography & Links ── */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ── Top Navigation Bar ── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  background: rgba(10, 10, 20, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo img {
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo span {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #c4a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 63, 197, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-l) 0%, var(--primary) 100%);
  box-shadow: 0 6px 20px rgba(108, 63, 197, 0.5);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-d) 100%);
  color: #000;
  font-weight: 700;
}
.btn-accent:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--dark-3);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-purple {
  background: rgba(108, 63, 197, 0.2);
  border: 1px solid rgba(108, 63, 197, 0.45);
  color: #c4a8ff;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.badge-green {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 5rem var(--gutter) 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 65% 35%, rgba(108,63,197,.35) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 15% 85%, rgba(245,158,11,.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, #c4a8ff 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 540px;
}

/* ── Container & Grid ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ── Card Components ── */
.card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 63, 197, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ── Package / Product Card ── */
.pkg-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.pkg-header {
  padding: 1.5rem;
  background: var(--dark-3);
  border-bottom: 1px solid var(--border);
}

.pkg-header.web-only {
  background: linear-gradient(135deg, #271c4d 0%, #1a1638 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.pkg-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pkg-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1rem 0;
}

.pkg-price-row .price-large {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
}

.pkg-price-row .price-currency {
  font-weight: 700;
  color: var(--accent);
}

.pkg-spec-list {
  list-style: none;
  margin: 1.2rem 0;
  flex: 1;
}

.pkg-spec-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pkg-spec-list li span.highlight {
  color: #fff;
  font-weight: 600;
}

/* ── Landscape Player & DRM Viewport ── */
.landscape-wrapper {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 78vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-select: none;
}

.landscape-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landscape-viewport video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Privacy Blanking Shield */
.privacy-shield {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.privacy-shield.active {
  display: flex;
}

/* Dynamic Bouncing Forensic Watermark */
.forensic-watermark {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  opacity: 0.35;
  color: #fff;
  font-size: 13px;
  font-family: monospace;
  text-shadow: 1px 1px 2px #000;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Landscape Controls */
.landscape-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0) 100%);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 60;
  transition: opacity 0.3s;
}

.control-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.15s, color 0.15s;
}
.control-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.seek-bar {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  outline: none;
}
.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
}

/* ── Audio Visualizer Box ── */
.audio-visualizer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: radial-gradient(circle at center, #1e1b4b 0%, #080812 75%);
}

.vinyl-record {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid var(--primary);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(108, 63, 197, 0.4);
  animation: spin 16s linear infinite;
  animation-play-state: paused;
}
.vinyl-record.playing {
  animation-play-state: running;
}
.vinyl-record img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Canvas PDF Viewer ── */
.canvas-pdf-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: #0f101a;
}
.canvas-pdf-container canvas {
  max-width: 90%;
  max-height: 85vh;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ── Forms & Modals ── */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(108, 63, 197, 0.15);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ── Footer ── */
footer {
  background: #06060c;
  border-top: 1px solid var(--border);
  padding: 4rem var(--gutter) 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  color: #fff;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
