/* =====================================================
   Makayen Website Stylesheet
   Project: makayen.app static landing website
   Pages: index.html, privacy-policy.html,
          terms-and-conditions.html, delete-account.html
===================================================== */

/* =====================================================
   1. CSS VARIABLES / BRAND COLORS
===================================================== */
:root {
  --mk-yellow: #ffc300;
  --mk-gray: #404041;
  --mk-light-gray: #f2f2f2;
  --mk-black: #000000;

  --color-black: #000000;
  --color-surface: #0b0b0b;
  --color-surface-2: #111111;
  --color-surface-3: #1a1a1a;
  --color-gray: #404041;
  --color-light: #f2f2f2;
  --color-muted: rgba(242, 242, 242, 0.7);
  --color-muted-strong: rgba(242, 242, 242, 0.86);
  --color-border: rgba(242, 242, 242, 0.12);
  --color-border-strong: rgba(255, 195, 0, 0.42);
  --color-yellow: #ffc300;
  --color-yellow-dark: #b88a00;
  --color-success: #3ddc84;
  --color-danger: #ff4d4d;

  --font-arabic: "Tajawal", "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-english: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;

  --container: 1160px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 90px rgba(0, 0, 0, 0.38);
  --shadow-yellow: 0 20px 80px rgba(255, 195, 0, 0.16);
}

/* =====================================================
   2. RESET AND BASE STYLES
===================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 195, 0, 0.11), transparent 32rem),
    radial-gradient(circle at 92% 28%, rgba(64, 64, 65, 0.38), transparent 34rem),
    linear-gradient(180deg, #000 0%, #070707 44%, #000 100%);
  color: var(--color-light);
  font-family: var(--font-arabic);
  line-height: 1.7;
  text-align: start;
  overflow-x: hidden;
}

html[dir="ltr"] body {
  font-family: var(--font-english);
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(255, 195, 0, 0.28);
  color: var(--color-light);
}

/* =====================================================
   3. GLOBAL UTILITIES AND TYPOGRAPHY
===================================================== */
.page-shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 94px;
  position: relative;
}

.section--tight {
  padding-block: 58px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 195, 0, 0.34);
  border-radius: var(--radius-pill);
  background: rgba(255, 195, 0, 0.08);
  color: var(--color-yellow);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 0 22px rgba(255, 195, 0, 0.8);
}

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

h1 {
  margin-block-end: 20px;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

html[dir="rtl"] h1 {
  letter-spacing: -0.025em;
}

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

html[dir="rtl"] h2 {
  letter-spacing: -0.015em;
}

h3 {
  margin-block-end: 10px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.lead {
  color: var(--color-muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  max-width: 680px;
}

.muted {
  color: var(--color-muted);
}

.accent-text {
  color: var(--color-yellow);
}

.lang-block[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  inset-inline-start: 18px;
  top: 14px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-yellow);
  color: var(--color-black);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

/* =====================================================
   4. BUTTONS AND FORM ELEMENTS
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 900;
  line-height: 1.1;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:focus-visible,
input:focus-visible,
.lang-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(255, 195, 0, 0.42);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-yellow);
  color: var(--color-black);
  box-shadow: var(--shadow-yellow);
}

.btn--primary:hover {
  background: #ffd13a;
}

.btn--ghost {
  background: rgba(242, 242, 242, 0.06);
  border-color: var(--color-border);
  color: var(--color-light);
}

.btn--ghost:hover {
  border-color: rgba(255, 195, 0, 0.38);
  background: rgba(255, 195, 0, 0.08);
}

.btn--store {
  justify-content: flex-start;
  min-width: 210px;
  background: rgba(242, 242, 242, 0.08);
  border-color: rgba(242, 242, 242, 0.16);
}

.btn__small-text {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 700;
}

.btn__main-text {
  display: block;
  color: var(--color-light);
  font-size: 1rem;
  font-weight: 950;
}

/* =====================================================
   5. HEADER / NAVIGATION
===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(242, 242, 242, 0.08);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-black);
  box-shadow: 0 0 0 1px rgba(255, 195, 0, 0.18), 0 14px 38px rgba(255, 195, 0, 0.12);
}

.brand__name {
  color: var(--color-light);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-muted);
  font-size: 0.96rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(242, 242, 242, 0.06);
}

.lang-btn {
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  padding: 8px 12px;
  font-weight: 900;
  line-height: 1;
}

.lang-btn.is-active {
  background: var(--color-yellow);
  color: var(--color-black);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: rgba(242, 242, 242, 0.06);
  color: var(--color-light);
}

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

/* =====================================================
   6. HERO SECTION
===================================================== */
.hero {
  padding-block: 86px 106px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: 52px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block-start: 38px;
  max-width: 620px;
}

.metric-card {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(242, 242, 242, 0.045);
}

.metric-card strong {
  display: block;
  color: var(--color-yellow);
  font-size: 1.04rem;
  line-height: 1.3;
}

.metric-card span {
  display: block;
  color: var(--color-muted);
  margin-block-start: 4px;
  font-size: 0.9rem;
}

.phone-stage {
  position: relative;
  min-height: 650px;
  isolation: isolate;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 8% 2% 10% 8%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 195, 0, 0.26), rgba(255, 195, 0, 0.05) 45%, transparent 72%);
  filter: blur(18px);
}

.phone-frame {
  position: absolute;
  width: min(58vw, 292px);
  aspect-ratio: 1242 / 2688;
  padding: 10px;
  border: 1px solid rgba(242, 242, 242, 0.18);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(242, 242, 242, 0.16), rgba(242, 242, 242, 0.02));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  inset-inline: 50%;
  width: 72px;
  height: 18px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: var(--color-surface);
}

.phone-frame--main {
  inset-block-start: 10px;
  inset-inline-end: 18px;
  z-index: 3;
  width: min(62vw, 322px);
}

.phone-frame--side-a {
  inset-block-start: 104px;
  inset-inline-start: 6px;
  z-index: 2;
  opacity: 0.82;
  transform: rotate(-7deg) scale(0.86);
}

.phone-frame--side-b {
  inset-block-end: 0;
  inset-inline-start: 118px;
  z-index: 1;
  opacity: 0.62;
  transform: rotate(8deg) scale(0.74);
}

html[dir="rtl"] .phone-frame--side-a {
  transform: rotate(7deg) scale(0.86);
}

html[dir="rtl"] .phone-frame--side-b {
  transform: rotate(-8deg) scale(0.74);
}

/* =====================================================
   7. APP PREVIEW AND FEATURE SECTIONS
===================================================== */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-block-end: 34px;
}

.section-heading .lead {
  max-width: 540px;
  margin-block-end: 0;
}

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

.preview-card {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(242, 242, 242, 0.08), rgba(242, 242, 242, 0.03));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.26);
}

.preview-card img {
  width: 100%;
  aspect-ratio: 1242 / 2688;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.category-card,
.legal-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(242, 242, 242, 0.07), rgba(242, 242, 242, 0.028)),
    var(--color-surface-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.feature-card {
  min-height: 216px;
  padding: 28px;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-block-end: 20px;
  border-radius: 16px;
  background: rgba(255, 195, 0, 0.13);
  color: var(--color-yellow);
  font-weight: 950;
}

.feature-card p,
.category-card p {
  color: var(--color-muted);
  margin-block-end: 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  padding: 22px;
  min-height: 170px;
}

.category-card h3 {
  color: var(--color-light);
  font-size: 1.06rem;
}

.category-card__line {
  width: 42px;
  height: 3px;
  margin-block: 0 18px;
  border-radius: 99px;
  background: var(--color-yellow);
}

/* =====================================================
   8. WAITLIST FORM AND STORE BUTTONS
===================================================== */
.waitlist-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(255, 195, 0, 0.22);
  border-radius: 42px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 195, 0, 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(242, 242, 242, 0.075), rgba(242, 242, 242, 0.028));
  box-shadow: var(--shadow-yellow);
}

.waitlist-form {
  display: grid;
  gap: 14px;
  margin-block-start: 26px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-field {
  position: relative;
  flex: 1;
}

.form-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.email-input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(242, 242, 242, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.42);
  color: var(--color-light);
  padding-inline: 22px;
}

.email-input::placeholder {
  color: rgba(242, 242, 242, 0.42);
}

.form-note {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-block: 0;
}

.form-status {
  min-height: 28px;
  color: var(--color-muted);
  font-weight: 800;
  margin: 0;
}

.form-status.is-success {
  color: var(--color-success);
}

.form-status.is-error {
  color: var(--color-danger);
}

.store-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--color-border);
}

.store-buttons {
  display: grid;
  gap: 12px;
  margin-block-start: 12px;
}

/* =====================================================
   9. LEGAL / TEMPLATE PAGES
===================================================== */
.simple-page-hero {
  padding-block: 76px 42px;
  border-bottom: 1px solid rgba(242, 242, 242, 0.08);
}

.simple-page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-block: 42px 90px;
}

.legal-card {
  padding: clamp(24px, 5vw, 46px);
}

.legal-placeholder {
  border: 1px dashed rgba(255, 195, 0, 0.48);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(255, 195, 0, 0.05);
}

.legal-placeholder code {
  display: block;
  margin-block-start: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.36);
  color: var(--color-yellow);
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
}

.deletion-steps {
  display: grid;
  gap: 16px;
  margin-block-start: 28px;
}

.deletion-step {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(242, 242, 242, 0.045);
}

.email-link {
  color: var(--color-yellow);
  font-weight: 950;
  direction: ltr;
  unicode-bidi: embed;
}

/* =====================================================
   10. FOOTER
===================================================== */
.site-footer {
  padding-block: 48px 34px;
  border-top: 1px solid rgba(242, 242, 242, 0.08);
  background: rgba(0, 0, 0, 0.34);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.footer-brand p {
  max-width: 520px;
  margin-block: 16px 0;
  color: var(--color-muted);
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--color-muted);
  font-weight: 800;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-block-start: 36px;
  padding-block-start: 24px;
  border-top: 1px solid rgba(242, 242, 242, 0.08);
  color: rgba(242, 242, 242, 0.52);
  font-size: 0.92rem;
}

/* =====================================================
   11. RESPONSIVE DESIGN
===================================================== */
@media (max-width: 980px) {
  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    position: fixed;
    inset-block-start: 72px;
    inset-inline: 20px;
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: rgba(9, 9, 9, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .site-nav a:hover {
    background: rgba(255, 195, 0, 0.08);
  }

  .nav-toggle {
    display: inline-block;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-grid,
  .waitlist-shell {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 610px;
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }

  .section-heading {
    display: block;
  }

  .section-heading .lead {
    margin-block-start: 12px;
  }

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding-block: 68px;
  }

  .hero {
    padding-block: 58px 70px;
  }

  .hero-actions,
  .form-row,
  .footer-bottom {
    flex-direction: column;
  }

  .hero-actions .btn,
  .form-row .btn {
    width: 100%;
  }

  .hero-metrics,
  .preview-grid,
  .features-grid,
  .categories-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 520px;
  }

  .phone-frame {
    width: min(70vw, 260px);
    border-radius: 30px;
  }

  .phone-frame--main {
    width: min(76vw, 292px);
    inset-inline-end: 0;
  }

  .phone-frame--side-a {
    inset-inline-start: -8px;
    opacity: 0.58;
  }

  .phone-frame--side-b {
    inset-inline-start: 92px;
    opacity: 0.42;
  }

  .waitlist-shell {
    padding: 22px;
    border-radius: 30px;
  }

  .store-panel {
    padding: 20px;
  }
}

@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;
  }
}
