:root {
  color-scheme: dark;
  --bg: #080716;
  --bg-2: #11102a;
  --ink: #f7f2ff;
  --muted: #c6bdda;
  --soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
  --violet: #8c5cff;
  --indigo: #4766ff;
  --cyan: #64e2ff;
  --pink: #f06cff;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(140, 92, 255, 0.34), transparent 32rem),
    radial-gradient(circle at 82% 16%, rgba(71, 102, 255, 0.24), transparent 28rem),
    linear-gradient(145deg, #080716 0%, #11102a 45%, #171035 100%);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(100, 226, 255, 0.8);
  outline-offset: 4px;
}

button {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section-pad {
  padding: 104px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(8, 7, 22, 0.68);
  backdrop-filter: blur(22px);
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(140, 92, 255, 0.95), rgba(100, 226, 255, 0.3));
  box-shadow: 0 0 32px rgba(140, 92, 255, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-cta,
.primary-link {
  color: #07111b;
  background: linear-gradient(135deg, var(--cyan), #d9c4ff 46%, var(--pink));
  box-shadow: 0 12px 34px rgba(100, 226, 255, 0.16);
}

.nav-links .lang-switch {
  color: var(--ink);
  border: 1px solid rgba(100, 226, 255, 0.36);
  background: rgba(100, 226, 255, 0.12);
  box-shadow: 0 0 28px rgba(100, 226, 255, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding-top: 72px;
}

.hero-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 800;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-text {
  max-width: 660px;
  font-size: 1.25rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button-row.center {
  justify-content: center;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

.store-button span:last-child {
  display: grid;
  gap: 1px;
  min-width: 118px;
  text-align: start;
  font-weight: 800;
}

.store-button small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.store-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: rgba(100, 226, 255, 0.13);
  color: var(--cyan);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.phone,
.mini-phone {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow), 0 0 80px rgba(140, 92, 255, 0.16);
  backdrop-filter: blur(24px);
}

.phone {
  width: min(360px, 86vw);
  min-height: 690px;
  padding: 16px;
  border-radius: 42px;
}

.phone-speaker {
  width: 92px;
  height: 8px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.app-screen,
.mini-screen {
  min-height: 630px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(140, 92, 255, 0.35), transparent 18rem),
    linear-gradient(180deg, #15112c, #0d0c1d);
}

.app-screen {
  padding: 20px;
}

.app-topbar,
.match-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-topbar {
  font-weight: 800;
}

.mini-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.78rem;
}

.birthday-orbit {
  position: relative;
  display: grid;
  min-height: 270px;
  place-items: center;
}

.birthday-orbit::before,
.birthday-orbit::after {
  position: absolute;
  border: 1px solid rgba(100, 226, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.birthday-orbit::before {
  width: 210px;
  height: 210px;
}

.birthday-orbit::after {
  width: 150px;
  height: 150px;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0e7ff, #8fefff);
  color: #15112c;
  font-weight: 800;
}

.avatar-main {
  z-index: 2;
  width: 92px;
  height: 92px;
  border: 8px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 46px rgba(100, 226, 255, 0.22);
  font-size: 2rem;
}

.orbit-card {
  position: absolute;
  z-index: 3;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 0.82rem;
  backdrop-filter: blur(16px);
}

.orbit-card-a {
  top: 52px;
  right: 8px;
}

.orbit-card-b {
  bottom: 52px;
  left: 0;
}

.match-list {
  display: grid;
  gap: 12px;
}

.match-list div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.match-list p {
  margin: 0;
  font-size: 0.92rem;
}

.glass-card,
.privacy-band,
.download-card,
.legal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.section-copy p {
  max-width: 620px;
}

.statement-grid,
.feature-grid,
.steps,
.screens-grid {
  display: grid;
  gap: 18px;
}

.statement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.icon-card,
.feature-card,
.step-card {
  padding: 26px;
}

.css-icon,
.feature-icon,
.step-card span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(100, 226, 255, 0.12);
  color: var(--cyan);
  font-weight: 800;
}

.ring-icon {
  border: 10px solid rgba(100, 226, 255, 0.22);
  box-shadow: inset 0 0 0 6px rgba(140, 92, 255, 0.35);
}

.no-zodiac-icon {
  position: relative;
}

.no-zodiac-icon::before,
.no-zodiac-icon::after {
  position: absolute;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.no-zodiac-icon::before {
  transform: rotate(45deg);
}

.no-zodiac-icon::after {
  transform: rotate(-45deg);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

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

.mini-phone {
  min-height: 390px;
  padding: 10px;
  border-radius: 34px;
}

.mini-screen {
  display: grid;
  align-content: start;
  min-height: 368px;
  gap: 14px;
  padding: 22px 16px;
  border-radius: 26px;
}

.mini-screen b {
  font-size: 1.05rem;
}

.mini-screen span,
.profile-stack i,
.date-grid i {
  display: block;
  min-height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
}

.mini-screen .wide-line {
  min-height: 82px;
  background: linear-gradient(135deg, rgba(100, 226, 255, 0.18), rgba(240, 108, 255, 0.14));
}

.profile-stack {
  display: grid;
  gap: 10px;
}

.profile-stack i {
  min-height: 64px;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.profile-avatar {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  margin: 10px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #eadcff);
  color: var(--bg);
  font-size: 2rem;
  font-weight: 800;
}

.privacy-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
}

.privacy-band p {
  max-width: 720px;
  margin-bottom: 0;
}

.primary-link {
  flex: 0 0 auto;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
}

.download-section {
  padding-top: 34px;
}

.download-card,
.legal-hero {
  text-align: center;
}

.download-card {
  padding: 46px 26px;
}

.download-card p {
  max-width: 640px;
  margin-inline: auto;
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 7, 22, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-grid p {
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.copyright {
  text-align: end;
}

.legal-main {
  padding-bottom: 80px;
}

.legal-hero {
  padding-bottom: 46px;
}

.legal-hero p {
  max-width: 780px;
  margin-inline: auto;
}

.legal-content {
  display: grid;
  gap: 12px;
  padding: 34px;
}

.legal-content article {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-content article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-content a {
  color: var(--cyan);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-text,
  .button-row {
    justify-content: center;
    margin-inline: auto;
  }

  .feature-grid,
  .steps,
  .screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .copyright {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .section-pad {
    padding: 72px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
    display: grid;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(14, 12, 33, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    border-radius: 14px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.4rem);
  }

  .phone {
    min-height: 620px;
  }

  .app-screen {
    min-height: 560px;
  }

  .statement-grid,
  .feature-grid,
  .steps,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .privacy-band {
    display: grid;
    padding: 26px;
  }

  .primary-link {
    text-align: center;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .store-button {
    justify-content: center;
    width: 100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
