/* Geeleem marketing site — brand blues from the crystal mark */
:root {
  --navy: #0b1f3a;
  --navy-deep: #061525;
  --ink: #12243c;
  --muted: #4a6280;
  --line: #d5e4f3;
  --paper: #f6fafd;
  --white: #ffffff;
  --ice: #e8f4ff;
  --blue: #1867c0;
  --blue-bright: #1697f6;
  --blue-mid: #7bc6ff;
  --blue-pale: #aeddff;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
  --radius: 22px;
  --header-h: 76px;
  --font-en: "Outfit", system-ui, sans-serif;
  --font-fa: "Vazirmatn", "Outfit", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[lang="en"] {
  font-family: var(--font-en);
}

html[lang="fa"] {
  font-family: var(--font-fa);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-bright);
}

h1,
h2,
h3,
h4 {
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 0.6em;
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3 {
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  inset-inline-start: 12px;
  top: 8px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(246, 250, 253, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(213, 228, 243, 0.8);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  flex-shrink: 0;
}

.header-actions {
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.brand:hover {
  color: var(--navy);
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 11px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--ice);
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch a {
  padding: 6px 11px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
}

.lang-switch a[aria-current="true"] {
  background: var(--navy);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #1e78d8, var(--blue));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(24, 103, 192, 0.28);
}

.btn-primary:hover {
  color: var(--white);
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.btn-light {
  background: var(--white);
  color: var(--blue);
}

.btn-light:hover {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(22, 151, 246, 0.45), transparent 55%),
    radial-gradient(700px 360px at 10% 110%, rgba(24, 103, 192, 0.45), transparent 50%),
    linear-gradient(165deg, var(--navy-deep), var(--navy) 55%, #123968);
  padding: 88px 0 100px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% 42%;
  background: url("../img/logo.svg") no-repeat center / contain;
  opacity: 0.22;
  pointer-events: none;
  transform: rotate(12deg);
  min-height: 520px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(174, 221, 255, 0.16);
  color: var(--blue-pale);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  max-width: 16ch;
  margin-bottom: 18px;
}

html[lang="fa"] .hero h1 {
  max-width: 18ch;
}

.hero .lead {
  font-size: 1.2rem;
  color: #d7e8f8;
  max-width: 42rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--blue-pale);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-muted {
  background: var(--white);
}

.section-navy {
  background: var(--navy);
  color: #d5e6f6;
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

html[lang="fa"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
}

.grid-3,
.grid-2,
.bento {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.bento {
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.card.wide {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background:
    linear-gradient(180deg, rgba(232, 244, 255, 0.7), var(--white) 40%),
    var(--white);
}

.icon-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ice);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
}

.card p:last-child,
.story p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

/* Stories / use cases */
.story {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story .who {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
}

.story h3 {
  font-size: 1.35rem;
}

.story .day {
  color: var(--muted);
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  font-size: 0.78rem;
  background: var(--ice);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.panel {
  background: var(--navy);
  color: #d7e8f8;
  border-radius: 28px;
  padding: 36px;
  min-height: 280px;
}

.panel h3 {
  color: var(--white);
}

.panel ol,
.panel ul {
  margin: 0;
  padding-inline-start: 1.2em;
}

.panel li + li {
  margin-top: 10px;
}

/* CTA band */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #1258a8, var(--blue-bright));
  color: var(--white);
  padding: 72px 0;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cta p {
  max-width: 38rem;
  color: #e8f4ff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #b9cde0;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.site-footer a {
  color: #dbeaf8;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 0.85rem;
}

/* Chooser */
.chooser {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(22, 151, 246, 0.35), transparent 55%),
    linear-gradient(165deg, var(--navy-deep), var(--navy));
  color: var(--white);
}

.chooser-card {
  width: min(880px, 100%);
  text-align: center;
}

.chooser-card img {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
}

.chooser-card h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.lang-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}

.lang-card {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 32px 20px;
  color: var(--white);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lang-card:hover,
.lang-card.suggested {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.lang-card.suggested {
  box-shadow: 0 0 0 2px var(--blue-mid);
}

.lang-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

/* Contact */
.contact {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 28px;
}

.contact a {
  font-weight: 700;
}

/* Reveal */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js-reveal.reveal {
  animation: rise 0.7s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.reveal:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.quote {
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--navy);
  border-inline-start: 3px solid var(--blue-bright);
  padding-inline-start: 18px;
  margin: 0 0 1.2em;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding-inline-start: 56px;
  margin-bottom: 22px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--blue);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal,
  .reveal,
  html {
    animation: none;
    scroll-behavior: auto;
    opacity: 1;
    transform: none;
  }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 56px 0 12px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 18ch;
}

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumbs a {
  color: var(--muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat {
  border-top: 2px solid var(--blue-mid);
  padding-top: 14px;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--white);
}

.list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-plain li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.list-plain strong {
  display: block;
  color: var(--navy);
}

/* RTL */
[dir="rtl"] .nav {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

[dir="rtl"] .hero::after {
  inset: auto 42% -28% -8%;
}

@media (max-width: 1100px) {
  .nav a {
    font-size: 0.82rem;
    padding: 8px 8px;
  }
}

/* Responsive */
@media (max-width: 1140px) {
  .grid-3,
  .bento,
  .grid-2,
  .split,
  .footer-grid,
  .lang-cards,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-inline-start: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    margin: 0;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-actions .btn {
    display: none;
  }

  .hero h1 {
    max-width: none;
  }
}
