/* Qadrixa website — navy, cyan and orange from the app icon */
:root {
  color-scheme: dark;
  --navy: #071634;
  --navy-2: #0b2050;
  --navy-3: #12306e;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --paper: #eef4ff;
  --muted: #a9b8d6;
  --line: rgba(238, 244, 255, 0.14);
  --radius-md: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Onest", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
code { font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 22, 52, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font: 700 1.35rem/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
}
.btn-play { background: var(--paper); color: var(--navy); }
.btn-play:hover { background: #fff; color: var(--navy); }
.btn-play svg { width: 20px; height: 20px; }
.btn-ghost { color: var(--paper); border: 1.5px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.95rem; white-space: nowrap; }
.nav a.btn-play, .nav a.btn-play:hover { color: var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse 60% 70% at 72% 40%, rgba(59, 130, 246, 0.35), transparent 70%), var(--navy);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 {
  font: 700 clamp(2.5rem, 5.6vw, 4.4rem)/1.02 var(--display); letter-spacing: -0.035em;
  margin: 0 0 22px; max-width: 13ch;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.95rem; }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); margin-right: 8px; vertical-align: 2px; }

/* floating phone (hero) */
.phone-stage { justify-self: center; position: relative; padding: 20px 0 30px; }
.phone-stage::before {
  content: ""; position: absolute; inset: 12% -12% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.4), rgba(59, 130, 246, 0.22) 55%, transparent 75%);
  filter: blur(18px); z-index: 0;
}
.phone {
  position: relative; z-index: 1; width: min(300px, 70vw); aspect-ratio: 720 / 1600;
  padding: 11px; border-radius: 46px;
  background: linear-gradient(145deg, #3a3f4c, #0d0f14 45%, #252a33);
  box-shadow: 0 50px 80px -20px rgba(0, 0, 0, 0.7), 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  animation: float 7s ease-in-out infinite;
}
.phone::after { content: ""; position: absolute; right: -3px; top: 22%; width: 4px; height: 64px; border-radius: 2px; background: #1a1d24; }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #1b1f27; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen::before {
  content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #050507; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05); z-index: 2;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.band { background: var(--navy-2); }
h2 { font: 700 clamp(1.9rem, 3.6vw, 2.8rem)/1.08 var(--display); letter-spacing: -0.025em; margin: 0 0 16px; max-width: 22ch; }
.intro { color: var(--muted); max-width: 58ch; margin: 0 0 40px; font-size: 1.1rem; }

/* phone strip */
.strip {
  display: flex; gap: 20px; overflow-x: auto; padding: 6px 20px 22px; margin: 0 -20px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.strip figure { margin: 0; flex: 0 0 auto; width: clamp(200px, 23vw, 250px); scroll-snap-align: start; }
.strip img { border-radius: 26px; border: 1.5px solid var(--line); background: #1b1f27; aspect-ratio: 15 / 32; object-fit: cover; }
.strip figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

/* tablet */
.tablet { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tablet-frame { border-radius: 26px; padding: 14px; background: linear-gradient(145deg, #3a3f4c, #0d0f14 45%, #252a33); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.tablet-frame img { border-radius: 14px; aspect-ratio: 16 / 10; }
.tablet ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.tablet li { padding-left: 18px; border-left: 3px solid var(--cyan); }
.tablet li strong { display: block; font-size: 1.08rem; }
.tablet li span { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 12px; border: 1.5px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; margin: 0; }
.features div { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: center; }
.features dt { grid-column: 2; font-weight: 800; font-size: 1.15rem; }
.features dd { grid-column: 2; margin: 0; color: var(--muted); align-self: start; }
.features .ico {
  grid-row: 1; align-self: start; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; background: var(--navy-3); color: var(--cyan);
}
.features .ico svg { width: 22px; height: 22px; }

/* free and Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 28px; background: rgba(11, 32, 80, 0.5); }
.plan.pro { border-color: rgba(245, 158, 11, 0.6); background: linear-gradient(160deg, rgba(245, 158, 11, 0.12), rgba(11, 32, 80, 0.5) 60%); }
.plan h3 { font: 700 1.5rem/1.2 var(--display); margin: 0 0 4px; }
.plan .price { color: var(--muted); margin: 0 0 18px; }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan li { margin: 6px 0; }
.plan li::marker { color: var(--cyan); }
.plan.pro li::marker { color: var(--orange); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 700 2.2rem/1 var(--display); color: var(--orange); margin-bottom: 14px;
}
.steps h3 { margin: 0 0 8px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--cyan); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* closing call */
.closing { text-align: center; }
.closing h2 { margin-inline: auto; }
.closing .cta-row { justify-content: center; margin-top: 26px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--paper); }

/* ---------- privacy page ---------- */
.doc { padding: clamp(40px, 7vw, 80px) 0 80px; }
.doc article { max-width: 72ch; }
.doc h1 { font: 700 clamp(2.2rem, 4.6vw, 3.2rem)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 10px; }
.doc .meta { color: var(--muted); margin: 0 0 34px; }
.doc h2 { font-size: 1.45rem; margin: 44px 0 12px; max-width: none; }
.doc p, .doc li { color: #d6e0f5; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.summary-box {
  background: var(--navy-2); border-radius: var(--radius-md); padding: 20px 24px; margin: 0 0 10px;
  border-left: 4px solid var(--cyan);
}
.summary-box p { margin: 0; color: var(--paper); }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.98rem; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--navy-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap, .tablet { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { display: none; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .nav a.keep { display: inline; }
  .site-head .wrap { gap: 12px; }
  body { font-size: 1rem; }
  .plans { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:last-child { display: block; }
}
@media (max-width: 400px) {
  .nav a.keep { display: none; }
  .brand { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; }
}
