:root {
  --bg: #070a14;
  --bg-deep: #03050c;
  --panel: rgba(255,255,255,0.065);
  --panel-2: rgba(255,255,255,0.095);
  --text: #ffffff;
  --muted: #b7c0d1;
  --soft: #8d96a8;
  --green: #1db954;
  --red: #e63946;
  --gold: #d4af37;
  --blue: #5da9ff;
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.2);
  --shadow: 0 30px 90px rgba(0,0,0,0.48);
  --radius-xl: 2rem;
  --radius-lg: 1.35rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(230,57,70,0.28) 0, transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(29,185,84,0.22) 0, transparent 26rem),
    radial-gradient(circle at 50% 95%, rgba(93,169,255,0.18) 0, transparent 28rem),
    linear-gradient(180deg, #0b1020 0%, #070a14 46%, #03050c 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 72%);
}

a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  position: sticky;
  top: 0;
  background: rgba(7, 10, 20, 0.72);
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(29,185,84,1), rgba(212,175,55,1) 54%, rgba(230,57,70,1));
  color: #07100d;
  font-size: .78rem;
  letter-spacing: .06em;
  box-shadow: 0 12px 32px rgba(29,185,84,.22), inset 0 1px 0 rgba(255,255,255,.45);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  color: var(--muted);
  font-size: .95rem;
}

nav a, .site-footer a {
  text-decoration: none;
  border-radius: 999px;
  padding: .45rem .72rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

nav a:hover, .site-footer a:hover {
  color: white;
  background: rgba(255,255,255,.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(18rem, .78fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-content {
  position: relative;
  isolation: isolate;
}

.hero-content::before {
  content: "Persian Waves: Live Radio";
  position: absolute;
  z-index: -1;
  top: -3.5rem;
  left: -.2rem;
  width: min(100%, 43rem);
  font-size: clamp(3.5rem, 7.4vw, 6.6rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.055em;
  color: rgba(255,255,255,.035);
  overflow: hidden;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  font-weight: 850;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .48rem .72rem;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 .28rem rgba(29,185,84,.14);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6.7rem);
  line-height: .9;
  margin: 1rem 0 1rem;
  letter-spacing: -.075em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -.04em;
}

h3 { margin-top: 0; font-size: 1.12rem; letter-spacing: -.015em; }

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  max-width: 42rem;
}

.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .86rem 1.28rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), #149a46);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(29,185,84,.25);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(29,185,84,.34);
  border-color: rgba(255,255,255,.28);
}

.button.secondary {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.note, .updated, .disclaimer { color: var(--soft); font-size: .95rem; }

.phone-card {
  justify-self: end;
  width: min(100%, 29rem);
  padding: .85rem;
  border-radius: 2.7rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.055)),
    linear-gradient(135deg, rgba(230,57,70,.18), rgba(29,185,84,.13));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 35rem;
  border-radius: 2.05rem;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 8%, rgba(230,57,70,.32), transparent 16rem),
    radial-gradient(circle at 80% 20%, rgba(212,175,55,.2), transparent 12rem),
    linear-gradient(180deg, #141b32 0%, #090d1a 64%, #05070e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: .8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5.6rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  z-index: 1;
}

.phone-screen::after {
  content: "Live • Favorites • Sleep Timer";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.35rem;
  color: rgba(255,255,255,.52);
  font-size: .8rem;
}

.station-art {
  width: 10.2rem;
  height: 10.2rem;
  margin: 0 auto 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 2.2rem;
  font-size: 4.6rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 28%),
    linear-gradient(135deg, var(--red), var(--gold) 54%, var(--green));
  color: white;
  box-shadow: 0 24px 65px rgba(230,57,70,.22), inset 0 1px 0 rgba(255,255,255,.45);
}

.phone-screen h2 { margin-bottom: .4rem; }
.phone-screen p { color: var(--muted); margin: 0; }

.mini-player {
  margin-top: 2rem;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.35rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.section, .page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 4rem);
}

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.cards article, .panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: 0 20px 65px rgba(0,0,0,.28);
  overflow: hidden;
}

.cards article::before, .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.13), transparent 42%);
  opacity: .65;
}

.cards article:nth-child(1) { border-top-color: rgba(29,185,84,.55); }
.cards article:nth-child(2) { border-top-color: rgba(230,57,70,.55); }
.cards article:nth-child(3) { border-top-color: rgba(93,169,255,.55); }
.cards article:nth-child(4) { border-top-color: rgba(212,175,55,.62); }

.cards p, .panel p, .legal p, li { color: var(--muted); }
ul { padding-left: 1.2rem; }
li { margin: .4rem 0; }

.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background:
    linear-gradient(135deg, rgba(230,57,70,.12), rgba(29,185,84,.09)),
    rgba(255,255,255,.055);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 3rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
}

.page { max-width: 880px; }
.page h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); }
.legal h2 { margin-top: 2rem; }
.panel { margin: 1.2rem 0; }
.panel a, .legal a { color: var(--blue); }
.disclaimer {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.2);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--border);
  color: var(--soft);
  background: rgba(0,0,0,.16);
}
.site-footer div { display: flex; gap: .35rem; flex-wrap: wrap; }

@media (max-width: 840px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav a { padding-left: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .grid { grid-template-columns: 1fr; }
  .split { align-items: flex-start; flex-direction: column; }
  .phone-card {
    justify-self: center;
    width: min(100%, 27rem);
  }
  .phone-screen { min-height: 29rem; }
  .hero-content::before { display: none; }
}

@media (max-width: 520px) {
  .eyebrow {
    border-radius: 1rem;
    line-height: 1.35;
    white-space: normal;
  }

  .phone-screen {
    min-height: 25rem;
    padding: 1.5rem;
  }
}


/* ADA / WCAG accessibility enhancements
   Preserves original visual design and content.
*/
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  color: #03050c;
  padding: 0.85rem 1rem;
  border-radius: 0 0 0.75rem 0;
  z-index: 9999;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 0;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 4px;
  border-radius: 0.5rem;
}

a {
  text-underline-offset: 0.18em;
}

.site-header nav a,
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero-actions a,
.btn,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Improve readability while keeping the app theme. */
body {
  text-rendering: optimizeLegibility;
}

p,
li {
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header nav {
    gap: 0.25rem;
  }

  .site-header nav a {
    padding: 0.65rem 0.5rem;
  }
}
