:root {
  --midnight: #112338;
  --midnight-soft: #19324a;
  --teal: #0e4c4f;
  --rani: #e8307a;
  --gold: #cfa34c;
  --marigold: #ffc247;
  --ivory: #fff4e6;
  --paper: #f8ead8;
  --ink: #172633;
  --muted: #b9c3ca;
  --line: rgba(207, 163, 76, 0.38);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ivory);
  background: var(--midnight);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 76% 16%, rgba(232, 48, 122, 0.14), transparent 30rem),
    linear-gradient(140deg, #0d1d2e 0%, var(--midnight) 48%, #0b3037 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  color: var(--midnight);
  background: var(--ivory);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.brand-copy small,
.preview-status,
.eyebrow,
.voice-label,
.step-word,
footer {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--gold);
}

.preview-status {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--paper);
}

.preview-status span {
  width: 8px;
  height: 8px;
  background: var(--marigold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 194, 71, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(470px, 0.97fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  min-height: 720px;
  padding: 76px 0 92px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.062em;
}

h1 em {
  color: var(--rani);
  font-weight: 500;
}

.hero-intro {
  max-width: 620px;
  margin-bottom: 18px;
  color: #d9e0e3;
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.urdu-line {
  width: fit-content;
  margin: 0 0 34px;
  color: var(--marigold);
  font-family: "Noto Nastaliq Urdu", "Geeza Pro", serif;
  font-size: 1.35rem;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-actions p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.primary-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding: 15px 19px;
  color: var(--midnight);
  background: var(--marigold);
  border: 2px solid var(--marigold);
  border-radius: 4px 18px 4px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-link:hover {
  box-shadow: 8px 8px 0 var(--rani);
  transform: translate(-3px, -3px);
}

.primary-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--ivory);
  outline-offset: 5px;
}

.voice-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(255, 244, 230, 0.13), transparent 43%),
    rgba(10, 30, 44, 0.56);
  border: 1px solid var(--line);
  border-radius: 52% 48% 44% 56% / 48% 44% 56% 52%;
  isolation: isolate;
}

.stage-border {
  position: absolute;
  inset: 18px;
  z-index: -1;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  opacity: 0.28;
  object-fit: fill;
  transform: rotate(90deg) scale(1.15);
}

.language-orbit {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px dashed rgba(255, 244, 230, 0.28);
  border-radius: 50%;
  animation: orbit-breathe 5s ease-in-out infinite;
}

.language-orbit::before,
.language-orbit::after {
  position: absolute;
  inset: 36px;
  border: 1px solid rgba(207, 163, 76, 0.27);
  border-radius: 50%;
  content: "";
}

.language-orbit::after {
  inset: 73px;
  border-color: rgba(232, 48, 122, 0.3);
}

.language-pill {
  position: absolute;
  z-index: 2;
  padding: 9px 14px;
  color: var(--midnight);
  background: var(--ivory);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.language-pill-english {
  top: 26px;
  left: 44px;
}

.language-pill-urdu {
  top: 92px;
  right: -11px;
  color: var(--ivory);
  background: var(--rani);
}

.language-pill-roman {
  bottom: 28px;
  left: 45px;
  color: var(--ivory);
  background: var(--teal);
}

.orbit-line {
  position: absolute;
  display: block;
  width: 9px;
  height: 9px;
  background: var(--marigold);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(255, 194, 71, 0.12);
}

.orbit-line-one {
  top: 52%;
  left: -5px;
}

.orbit-line-two {
  right: 45px;
  bottom: 14px;
  background: var(--rani);
}

.voice-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  text-align: center;
  background: var(--ivory);
  border: 9px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 4px var(--rani);
}

.voice-label {
  color: var(--rani);
}

.voice-core strong {
  margin: 13px 0 4px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.voice-core small {
  max-width: 150px;
  color: #63707a;
  line-height: 1.35;
}

.voice-bars {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 34px;
  margin-top: 14px;
}

.voice-bars span {
  width: 5px;
  height: 15px;
  background: var(--teal);
  border-radius: 999px;
  animation: voice-pulse 1.2s ease-in-out infinite;
}

.voice-bars span:nth-child(2),
.voice-bars span:nth-child(4) {
  height: 28px;
  animation-delay: -0.35s;
}

.voice-bars span:nth-child(3) {
  height: 20px;
  animation-delay: -0.7s;
}

.stage-note {
  position: absolute;
  right: 34px;
  bottom: 24px;
  left: 34px;
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(11, 32, 46, 0.78);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.process {
  padding: 96px 0 108px;
  color: var(--ink);
  background: var(--ivory);
  border-radius: 34px 34px 8px 8px;
  box-shadow: 0 26px 80px rgba(4, 16, 24, 0.25);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 32px;
  align-items: end;
  padding: 0 clamp(28px, 6vw, 82px) 54px;
  border-bottom: 1px solid rgba(14, 76, 79, 0.18);
}

.section-heading .eyebrow {
  align-self: start;
  color: var(--rani);
}

.section-heading h2 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  margin: 0;
  color: #5d6970;
  font-size: 1.05rem;
  line-height: 1.65;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0 clamp(28px, 6vw, 82px);
  list-style: none;
}

.process-list li {
  min-height: 255px;
  padding: 42px 34px 22px 0;
}

.process-list li + li {
  padding-left: 34px;
  border-left: 1px solid rgba(14, 76, 79, 0.18);
}

.step-word {
  display: block;
  margin-bottom: 38px;
  color: var(--rani);
}

.process-list strong {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.process-list p {
  margin: 0;
  color: #667178;
  line-height: 1.65;
}

.principle {
  display: grid;
  grid-template-columns: 0.7fr 1.45fr 0.65fr;
  gap: 44px;
  align-items: center;
  padding: 86px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.principle p,
.principle span {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.principle h2 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(2.3rem, 4.2vw, 4.3rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 36px 0 52px;
  color: var(--muted);
}

@keyframes voice-pulse {
  0%,
  100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.15); }
}

@keyframes orbit-breathe {
  0%,
  100% { transform: scale(0.985) rotate(-1deg); }
  50% { transform: scale(1.015) rotate(1deg); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .voice-stage {
    width: min(100%, 650px);
    margin: 0 auto;
  }

  .section-heading,
  .principle {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1320px);
  }

  .site-header {
    min-height: 88px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .preview-status {
    max-width: 120px;
    justify-content: flex-end;
    font-size: 0.61rem;
    line-height: 1.4;
    text-align: right;
  }

  .hero {
    gap: 58px;
    padding: 58px 4px 72px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.4rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .voice-stage {
    min-height: 430px;
  }

  .language-orbit {
    width: 320px;
    height: 320px;
  }

  .voice-core {
    width: 184px;
    height: 184px;
  }

  .stage-note {
    right: 22px;
    bottom: 17px;
    left: 22px;
  }

  .process {
    padding: 72px 0;
    border-radius: 24px 24px 6px 6px;
  }

  .section-heading {
    gap: 18px;
    padding-bottom: 38px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: 0;
    padding: 34px 0;
  }

  .process-list li + li {
    padding-left: 0;
    border-top: 1px solid rgba(14, 76, 79, 0.18);
    border-left: 0;
  }

  .step-word {
    margin-bottom: 20px;
  }

  .principle {
    gap: 22px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  footer {
    gap: 14px;
    flex-direction: column;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
