:root {
  --bg: #fff8f4;
  --surface: #ffffff;
  --surface-strong: #fff0e7;
  --text: #202124;
  --muted: #60646c;
  --primary: #fe7901;
  --primary-dark: #d74b33;
  --accent: #292d34;
  --border: #f0ded4;
  --shadow: 0 24px 60px rgba(242, 107, 46, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffe5d6 0, transparent 35rem), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255, 248, 244, 0.86);
  border-bottom: 1px solid rgba(240, 222, 212, 0.9);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
  font-weight: 650;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 24px;
  margin-bottom: 30px;
}

.narrow {
  max-width: 840px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 18px;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(242, 107, 46, 0.24);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-color: var(--border);
}

.hero-card {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 360px);
  padding: 16px;
  border-radius: 42px;
  background: var(--accent);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 94px;
  height: 8px;
  border-radius: 999px;
  background: #50545c;
  margin: 8px auto 18px;
}

.screen-card {
  border-radius: 30px;
  background: #0f1115;
  overflow: hidden;
  line-height: 0;
}

.screen-shot {
  display: block;
  width: 100%;
  height: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
}

.status-live {
  background: #e6f6ec;
  color: #1a7f43;
  white-space: nowrap;
}

.app-card,
.notice,
.contact-card,
.about,
.feature-grid article {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(32, 33, 36, 0.05);
}

.app-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  margin-top: 26px;
}

.clean-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.founder-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
}

.founder-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--surface);
  box-shadow: 0 8px 22px rgba(32, 33, 36, 0.16);
}

.founder-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.founder-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.founder-role {
  color: var(--muted);
  font-size: 0.92rem;
}

.founder-link {
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 2px;
}

.about-highlight {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
}

.lang-support {
  margin-top: 22px;
}

.lang-support-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lang-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flag {
  display: inline-block;
  width: 26px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.22);
}

.flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Language picker */
.lang-picker {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.lang-toggle-flag {
  display: inline-block;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.22);
}

.lang-toggle-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-caret {
  font-size: 0.7rem;
  color: var(--muted);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(32, 33, 36, 0.18);
  display: none;
}

.lang-picker.open .lang-menu {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus {
  background: var(--surface-strong);
  outline: none;
}

.lang-option[aria-selected="true"] {
  background: var(--surface-strong);
  color: var(--primary-dark);
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
}

.nav-toggle .icon-close {
  display: none;
}

.nav.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav.nav-open .nav-toggle .icon-close {
  display: block;
}

/* Right-to-left (Arabic) */
[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .about-highlight {
  border-left: 0;
  border-right: 4px solid var(--primary);
}

[dir="rtl"] .clean-list {
  padding-left: 0;
  padding-right: 18px;
}

[dir="rtl"] .eyebrow {
  letter-spacing: normal;
  text-transform: none;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  letter-spacing: normal;
}

.grid-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 36px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-grid article {
  padding: 24px;
}

.feature-grid p,
.notice p,
.contact-card p,
.app-card p,
.policy-page p,
.policy-page li {
  color: var(--muted);
}

.notice,
.contact-card {
  padding: 30px;
}

.contact-line {
  font-size: 1.05rem;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.policy-page .section {
  padding-top: 54px;
}

.policy-page h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.policy-page h2 {
  margin-top: 38px;
  font-size: 1.6rem;
}

.not-found {
  min-height: 70vh;
}

.standalone-brand {
  margin-bottom: 44px;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
}

.footer div {
  display: flex;
  gap: 16px;
}

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

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .has-jsnav .nav-toggle {
    display: inline-flex;
  }

  .has-jsnav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(255, 248, 244, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(32, 33, 36, 0.12);
    font-size: 1rem;
  }

  .has-jsnav .nav.nav-open .nav-links {
    display: flex;
  }

  .has-jsnav .nav-links a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--border);
  }

  .has-jsnav .lang-picker {
    margin-top: 12px;
  }

  .has-jsnav .lang-menu {
    left: 0;
    right: auto;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 132px;
  }

  .section {
    padding: 54px 18px;
  }

  .app-card {
    flex-direction: column;
  }

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