/*
   Ostora Online O² — app landing page for kartoney.com
   Palette is taken from the app's own launcher icon and UI (cyan on navy), so the page
   you download from and the app you open look like the same product.
*/

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0B0E17;
  --surface: rgba(22, 27, 40, 0.62);
  --border: rgba(255, 255, 255, 0.09);
  --cyan: #5FD9FF;
  --violet: #B08CFF;
  --text: #F2F6FF;
  --muted: #93A1BC;
  --radius: 20px;
  --shell: min(1180px, 92vw);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', system-ui, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ─── Ambient glow ─────────────────────────────────────────────────────── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: .22;
  pointer-events: none;
}
.orb-1 { width: 420px; height: 420px; background: var(--cyan); top: -6%; inset-inline-start: -12%; }
.orb-2 { width: 520px; height: 520px; background: var(--violet); top: 38%; inset-inline-end: -16%; }
.orb-3 { width: 380px; height: 380px; background: var(--cyan); bottom: -8%; inset-inline-start: 22%; opacity: .12; }

/* ─── Header ───────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(11, 14, 23, .78);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .75rem 0;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-icon { width: 40px; height: 40px; border-radius: 11px; }
.logo-text { font-weight: 900; letter-spacing: .5px; font-size: 1.05rem; }
.highlight { color: var(--cyan); }

.nav-links { display: flex; gap: 1.4rem; margin-inline-start: auto; font-size: .95rem; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-back { color: var(--violet) !important; font-weight: 700; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--cyan); color: var(--cyan); }

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.badge {
  display: inline-block;
  background: rgba(95, 217, 255, .12);
  border: 1px solid rgba(95, 217, 255, .35);
  color: var(--cyan);
  font-size: .82rem;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.5px;
  background: linear-gradient(120deg, var(--text) 30%, var(--cyan) 75%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  margin: 1.1rem 0 2rem;
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  color: #06121B;
  box-shadow: 0 10px 30px rgba(95, 217, 255, .22);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(95, 217, 255, .34); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--cyan); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.25rem;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.15rem; color: var(--cyan); font-weight: 900; }
.hero-facts span { font-size: .8rem; color: var(--muted); }

/* ─── Device stack: the "one app, three screens" claim, shown ───────────── */
.device-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 78;
  direction: ltr; /* device photos are not directional; keep the arrangement stable in both languages */
}
.dev { position: absolute; }
.dev-screen {
  background: #05070C;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.dev-screen img { width: 100%; height: auto; }
.dev-tag {
  display: block;
  text-align: center;
  font-size: .68rem;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: .5rem;
  text-transform: uppercase;
}

.dev-tv { top: 0; left: 0; width: 100%; }
.dev-tv .dev-screen { border-radius: 12px; padding: 6px; }
.dev-tv .dev-screen img { border-radius: 6px; }
.dev-stand {
  display: block;
  width: 22%;
  height: 10px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent);
  border-radius: 0 0 8px 8px;
}

.dev-tab { bottom: 0; left: 3%; width: 27%; }
.dev-tab .dev-screen { border-radius: 12px; padding: 5px; }
.dev-tab .dev-screen img { border-radius: 7px; }

.dev-phone { bottom: 0; right: 5%; width: 20%; }
.dev-phone .dev-screen { border-radius: 14px; padding: 4px; }
.dev-phone .dev-screen img { border-radius: 10px; }

/* ─── Sections ─────────────────────────────────────────────────────────── */
section:not(.hero) {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.section-title { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -.3px;
}
.section-title p { color: var(--muted); margin-top: .6rem; max-width: 46em; margin-inline: auto; }

/* ─── Three screens · features ─────────────────────────────────────────── */
.screens-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.screen-card, .feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(12px);
  transition: border-color .25s, transform .25s;
}
.screen-card:hover, .feature-card:hover { border-color: rgba(95, 217, 255, .4); transform: translateY(-3px); }
.screen-icon, .feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(95, 217, 255, .18), rgba(176, 140, 255, .18));
  color: var(--cyan);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.screen-card h3, .feature-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .45rem; }
.screen-card p, .feature-card p { color: var(--muted); font-size: .93rem; }

/* ─── Libraries ────────────────────────────────────────────────────────── */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .9rem;
}
.lib-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.lib-featured {
  border-color: rgba(95, 217, 255, .38);
  background: linear-gradient(135deg, rgba(95, 217, 255, .12), rgba(176, 140, 255, .08));
}
.lib-name { font-weight: 800; font-size: 1.05rem; }
.lib-count { color: var(--cyan); font-size: .9rem; font-weight: 700; }
.lib-note { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.lib-foot { text-align: center; color: var(--muted); margin-top: 1.6rem; font-size: .95rem; }

/* ─── Download ─────────────────────────────────────────────────────────── */
.download-card {
  max-width: 620px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid rgba(95, 217, 255, .3);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  backdrop-filter: blur(14px);
  text-align: center;
}
.download-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.4rem;
  text-align: start;
}
.download-header img { width: 64px; height: 64px; border-radius: 16px; }
.download-header h3 { font-size: 1.35rem; font-weight: 900; }
.version { color: var(--muted); font-size: .88rem; }

.download-checks { list-style: none; text-align: start; margin-bottom: 1.6rem; }
.download-checks li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .32rem 0;
  color: var(--muted);
  font-size: .93rem;
}
.download-checks .ic { color: var(--cyan); margin-top: .35em; }

.btn-download {
  width: 100%;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  color: #06121B;
  font-size: 1.02rem;
  box-shadow: 0 12px 34px rgba(95, 217, 255, .24);
}
.download-note { color: var(--muted); font-size: .82rem; margin-top: 1rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 2.5rem;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.3rem;
}
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(95, 217, 255, .15);
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: .7rem;
}
.steps h4 { font-size: 1rem; font-weight: 800; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .9rem; }

.tv-tip {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(176, 140, 255, .4);
  border-radius: 14px;
  color: var(--muted);
  font-size: .9rem;
}
.tv-tip .ic { color: var(--violet); margin-top: .3em; font-size: 1.2rem; }
.tv-tip strong { color: var(--text); }

/* ─── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: .7rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--cyan);
  font-weight: 900;
  flex: none;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--muted); font-size: .93rem; margin-top: .7rem; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: var(--muted);
  font-size: .9rem;
}
.footer-home { display: inline-block; color: var(--cyan); font-weight: 700; margin-bottom: .8rem; }
.footer-sub { font-size: .8rem; opacity: .75; margin-top: .35rem; }

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-facts li { align-items: center; }
  .device-stack { order: -1; max-width: 520px; margin-inline: auto; }
  .nav-links { display: none; }
  .lang-switch { margin-inline-start: auto; }
  .lib-featured { grid-column: span 1; }
}

@media (max-width: 560px) {
  .device-stack { aspect-ratio: 100 / 72; }
  .dev-tab { display: none; }
  .dev-phone { width: 30%; right: 6%; }
  .download-header { flex-direction: column; text-align: center; }
  .hero-facts { gap: 1.1rem 1.75rem; }
}
