/* ============================================================
   ECHOES UAE — Design System
   style.css  |  Brand: Echoes Purple (#7B2FBE)
   ============================================================ */

/* ── Design Tokens ── */
:root {
  /* Brand Colors */
  --clr-bg:              #07060F;
  --clr-surface:         #0F0D1C;
  --clr-surface-2:       #16132A;
  --clr-surface-3:       #1C1835;
  --clr-border:          rgba(123, 47, 190, 0.14);
  --clr-border-mid:      rgba(123, 47, 190, 0.28);
  --clr-border-hover:    rgba(157, 80, 232, 0.55);
  --clr-border-subtle:   rgba(255, 255, 255, 0.06);

  /* Primary Purple */
  --clr-primary:         #7B2FBE;
  --clr-primary-light:   #9D50E8;
  --clr-primary-bright:  #B575FF;
  --clr-primary-glow:    rgba(123, 47, 190, 0.32);

  /* Accent */
  --clr-accent:          #C084FC;
  --clr-accent-glow:     rgba(192, 132, 252, 0.2);
  --clr-gold:            #C084FC;
  --clr-gold-muted:      rgba(192, 132, 252, 0.12);

  /* Text */
  --clr-text:            #FFFFFF;
  --clr-text-secondary:  rgba(255, 255, 255, 0.65);
  --clr-muted:           rgba(255, 255, 255, 0.35);

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', sans-serif;

  /* Font Sizes */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  clamp(2.5rem, 5vw, 5rem);
  --fs-hero: clamp(3rem, 8vw, 7.5rem);

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem;
  --sp-4: 1rem;    --sp-6: 1.5rem;  --sp-8: 2rem;
  --sp-10: 2.5rem; --sp-12: 3rem;   --sp-16: 4rem;
  --sp-20: 5rem;   --sp-24: 6rem;   --sp-32: 8rem;

  /* Radius */
  --radius-sm:   6px;   --radius-md:  12px;
  --radius-lg:   20px;  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Motion */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:  180ms;  --dur-base: 320ms;  --dur-slow: 500ms;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.55);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.7);
  --shadow-purple: 0 0 32px rgba(123,47,190,0.45), 0 0 64px rgba(123,47,190,0.18);
  --shadow-accent: 0 0 20px rgba(192,132,252,0.3);

  /* Layout */
  --container:    1200px;
  --container-sm: 860px;
  --container-xs: 640px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--clr-text);
}
h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-4xl);  font-weight: 700; }
h3 { font-size: var(--fs-2xl);  font-weight: 700; }
h4 { font-size: var(--fs-xl);   font-weight: 600; }
p  { color: var(--clr-text-secondary); line-height: 1.75; }

.text-muted    { color: var(--clr-muted); }
.text-accent   { color: var(--clr-accent); }
.text-purple   { color: var(--clr-primary-light); }
.text-bright   { color: var(--clr-primary-bright); }
.text-sm       { font-size: var(--fs-sm); }
.text-xs       { font-size: var(--fs-xs); }
.text-center   { text-align: center; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-primary-light);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--clr-primary-light);
  flex-shrink: 0;
}

/* ── Layout ── */
.container    { max-width: var(--container);    margin-inline: auto; padding-inline: var(--sp-8); }
.container--sm{ max-width: var(--container-sm); margin-inline: auto; padding-inline: var(--sp-8); }
section { padding-block: var(--sp-32); }

.section-header { margin-bottom: var(--sp-16); display: flex; flex-direction: column; gap: var(--sp-4); }
.section-header.centered { text-align: center; align-items: center; }
.section-header p { max-width: 56ch; font-size: var(--fs-md); }

.grid   { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Tag / badge */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  background: rgba(123,47,190,0.18);
  color: var(--clr-primary-bright);
  border: 1px solid rgba(123,47,190,0.3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Section alternating bg */
.section-alt {
  background: var(--clr-surface);
  border-top:    1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: var(--radius-full); }

/* ── Selection ── */
::selection { background: var(--clr-primary); color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  section  { padding-block: var(--sp-24); }
}
@media (max-width: 768px) {
  :root { --fs-hero: clamp(2.25rem, 10vw, 3.5rem); --fs-4xl: clamp(1.75rem, 6vw, 2.75rem); }
  .container { padding-inline: var(--sp-6); }
  .grid-2    { grid-template-columns: 1fr; }
  .grid-3    { grid-template-columns: 1fr; }
  .grid-4    { grid-template-columns: repeat(2, 1fr); }
  section    { padding-block: var(--sp-20); }
  .section-header { margin-bottom: var(--sp-10); }
}
@media (max-width: 480px) {
  .container { padding-inline: var(--sp-4); }
  .grid-4    { grid-template-columns: 1fr; }
}
