/* Glowdesk website. Same palette and fonts as the app. */
:root {
  --canvas: #f8f3ef;
  --surface: #ffffff;
  --surface-2: #fbf7f4;
  --sunken: #f1e9e3;
  --line: #eadfd8;
  --line-strong: #dccbc1;
  --ink: #2a1624;
  --ink-2: #5d4a56;
  --muted: #8f7c86;
  --plum: #5b2a4a;
  --plum-2: #7a3b63;
  --plum-soft: #f3e6ee;
  --night: #2e1426;
  --blush: #f6dcd2;
  --peach: #e8a58c;
  --peach-ink: #9a4f35;
  --sage: #4f7d5e;
  --sage-soft: #e3efe6;
  --amber: #b87222;
  --amber-soft: #fbeedb;
  --danger: #b83a3a;
  --danger-soft: #fbe5e3;
  --shadow-soft: 0 1px 2px rgba(42, 22, 36, 0.04), 0 8px 24px -12px rgba(42, 22, 36, 0.14);
  --shadow-pop: 0 2px 6px rgba(42, 22, 36, 0.06), 0 30px 70px -24px rgba(42, 22, 36, 0.38);
  --display: "Fraunces", "IBM Plex Sans Arabic", Georgia, serif;
  --sans: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --radius: 20px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] .display { font-family: "IBM Plex Sans Arabic", var(--display); font-weight: 600; letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: var(--plum-2); }
::selection { background: var(--blush); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; height: 38px; padding: 0 14px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.lang:hover { border-color: var(--line-strong); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--plum); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 12px 28px -12px var(--plum); }
.btn.primary:hover { background: var(--plum-2); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--line-strong); }
.btn.big { height: 58px; padding: 0 26px; font-size: 16.5px; border-radius: 18px; }
.btn small { font-weight: 600; opacity: .7; font-size: 13px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: -1; }
.hero::before { width: 560px; height: 560px; background: var(--plum-2); opacity: .16; top: -160px; inset-inline-start: -180px; }
.hero::after { width: 520px; height: 520px; background: var(--peach); opacity: .28; top: 60px; inset-inline-end: -160px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--peach-ink); }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: 14px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 4px var(--blush); }
.hero-text { max-width: 760px; margin: 0 auto; text-align: center; }
h1 {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.025em;
  font-size: clamp(40px, 6vw, 70px); line-height: 1.02; margin: 18px 0 0;
}
h1 em { font-style: italic; font-weight: 400; color: var(--plum-2); }
html[dir="rtl"] h1 em { font-style: normal; }
.lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-2); margin: 22px auto 0; max-width: 620px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 34px; }
.meta { font-size: 13.5px; color: var(--muted); line-height: 1.55; text-align: start; }
.meta b { color: var(--ink-2); font-weight: 700; }

.stage { position: relative; margin: 56px auto 0; max-width: 1080px; }
.window {
  border-radius: 18px; overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-pop); border: 1px solid var(--line);
}
.window .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.window .bar span { margin-inline-start: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.window img { width: 100%; height: auto; }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-pop); font-size: 13.5px; animation: bob 6s ease-in-out infinite;
}
.float b { display: block; color: var(--ink); font-size: 14px; }
.float small { color: var(--muted); }
.float .ring { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.float.f1 { top: 22%; inset-inline-start: -46px; }
.float.f2 { bottom: 12%; inset-inline-end: -40px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 56px 0 0; }
.strip div { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.strip svg { width: 22px; height: 22px; color: var(--plum-2); flex-shrink: 0; }

/* ---------- Sections ---------- */
section { padding: 96px 0 0; }
.head { max-width: 680px; }
.head.center { margin: 0 auto; text-align: center; }
h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; margin: 12px 0 0; }
.sub { color: var(--ink-2); font-size: 17.5px; margin: 16px 0 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--plum-soft); color: var(--plum); margin-bottom: 18px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

.spot { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.spot.rev { grid-template-columns: 1.1fr 0.9fr; }
.spot.rev .spot-text { order: 2; }
.spot ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.spot li { display: flex; gap: 12px; color: var(--ink-2); }
.spot li svg { width: 22px; height: 22px; color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.spot li b { color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.green { background: var(--sage-soft); color: var(--sage); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.duo figure { margin: 0; }
.duo figcaption { margin-top: 14px; font-weight: 700; font-size: 15px; text-align: center; }
.duo figcaption span { display: block; }
.duo figcaption span + span { font-weight: 500; color: var(--muted); font-size: 14px; }

/* Free section on dark */
.night {
  position: relative; overflow: hidden; margin-top: 96px; padding: 80px 0;
  background: var(--night); color: #fbeee8; border-radius: 36px;
}
.night::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--plum-2); filter: blur(120px); opacity: .55; top: -220px; inset-inline-start: -120px; }
.night::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: var(--peach); filter: blur(120px); opacity: .25; bottom: -220px; inset-inline-end: -100px; }
.night > * { position: relative; }
.night .kicker { color: var(--peach); }
.night .kicker .dot { box-shadow: 0 0 0 4px rgba(232,165,140,.25); }
.night h2 { color: #fff; }
.night .sub { color: rgba(251,238,232,.75); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.promises div { padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.promises svg { width: 26px; height: 26px; color: var(--peach); }
.promises h3 { margin: 14px 0 0; font-size: 18px; color: #fff; }
.promises p { margin: 8px 0 0; color: rgba(251,238,232,.72); font-size: 15px; }

/* Download */
.download {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 48px; box-shadow: var(--shadow-soft);
}
.download .cta { justify-content: flex-start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: #fff; font-weight: 800; font-size: 14px; }
.steps b { display: block; }
.steps span { color: var(--ink-2); font-size: 14.5px; }
.note { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--amber-soft); color: #5a3a12; font-size: 14.5px; }
.note b { color: #3d2608; }
.req { margin-top: 20px; font-size: 13.5px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--plum-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 36px; border-radius: 28px; background: var(--plum-soft); }
.contact h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 28px; }
html[dir="rtl"] .contact h3 { font-family: inherit; font-weight: 600; }
.contact p { margin: 6px 0 0; color: var(--ink-2); }
.contact .links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }

/* Inner pages */
.page { padding: 56px 0 0; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose p, .prose li { color: var(--ink-2); }
.prose .small { font-size: 14px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.release { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; margin-top: 18px; }
.release h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.release .date { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 600; }
.release h4 { margin: 18px 0 4px; }
.release ul { padding-inline-start: 20px; }
.release code { background: var(--sunken); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.ar-block { direction: rtl; text-align: right; font-family: "IBM Plex Sans Arabic", sans-serif; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .float.f1 { inset-inline-start: 8px; top: auto; bottom: -26px; }
  .float.f2 { display: none; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .top-actions { margin-inline-start: auto; }
  .grid, .promises { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .spot, .spot.rev, .download { grid-template-columns: 1fr; gap: 32px; }
  .spot.rev .spot-text { order: 0; }
  .download { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid, .promises, .strip, .duo { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .top-actions .btn { display: none; }
  .night { border-radius: 24px; padding: 56px 0; }
  section { padding-top: 72px; }
  .float { display: none; }
  .cta { flex-direction: column; }
  .meta { text-align: center; }
  .contact { padding: 26px 22px; }
}

/* Icon sprite */
svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
