/* ===== ResQly website — modern, responsive ===== */
:root {
  --bg:        #0b1220;
  --bg-soft:   #111a2e;
  --surface:   #ffffff;
  --surface-2: #f4f6fb;
  --ink:       #0d1426;
  --ink-soft:  #4b5775;
  --line:      #e5e9f2;
  --primary:   #e1213a;
  --primary-d: #b8112a;
  --accent:    #18b3a8;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px rgba(13, 20, 38, .12);
  --shadow-sm: 0 6px 20px rgba(13, 20, 38, .08);
  --maxw:      1160px;
  --font:      'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --phone-ar:  1284 / 2778;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(225,33,58,.35); }
.btn-primary:hover { background: var(--primary-d); box-shadow: 0 14px 30px rgba(225,33,58,.42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Store buttons (App-Store style) */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 18px 11px 16px;
  border-radius: 14px; background: #0d1426; color: #fff; border: 1px solid rgba(255,255,255,.1);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.26); background: #121b30; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn-text small { font-size: 11px; opacity: .7; font-weight: 500; }
.store-btn-text strong { font-size: 16px; font-weight: 700; }
.store-btn.dl-android { background: var(--primary); border-color: transparent; box-shadow: 0 10px 24px rgba(225,33,58,.35); }
.store-btn.dl-android:hover { background: var(--primary-d); }
.store-btn-lg { padding: 13px 22px 13px 18px; border-radius: 16px; }
.store-btn-lg svg { width: 28px; height: 28px; }
.btn-hero-ghost { color: #fff; border-color: rgba(255,255,255,.22); }
.btn-hero-ghost:hover { background: rgba(255,255,255,.08); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(13,20,38,.04); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 28px; margin-left: 12px; flex: 1; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink);
}
.lang-current:hover { background: #eef1f8; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 190px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; }
.lang-menu li:hover { background: var(--surface-2); }
.lang-menu li.active { color: var(--primary); font-weight: 700; }
.lang-menu .flag { font-size: 18px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== Phone mockup (holds real screenshots) ===== */
.phone {
  position: relative; width: 280px; aspect-ratio: var(--phone-ar);
  background: linear-gradient(160deg, #1a2336, #0a0f1c); border-radius: 44px; padding: 11px;
  box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.06), 0 0 0 1px rgba(0,0,0,.4);
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0b1220; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone::after {
  content: ""; position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.55); z-index: 3;
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--bg); color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(225,33,58,.32), transparent 60%),
    radial-gradient(720px 520px at 96% 6%, rgba(24,179,168,.22), transparent 55%),
    linear-gradient(180deg, #0b1220, #0e1730);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 60% 20%, #000, transparent 75%);
          mask-image: radial-gradient(70% 60% at 60% 20%, #000, transparent 75%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 80px 24px 24px;
}
.hero > .container:last-child { position: relative; padding-bottom: 64px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: 13px; font-weight: 600; letter-spacing: .2px; margin-bottom: 22px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(225,33,58,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(225,33,58,.5); } 70% { box-shadow: 0 0 0 8px rgba(225,33,58,0); } 100% { box-shadow: 0 0 0 0 rgba(225,33,58,0); } }
.hero-copy h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; font-weight: 900; margin: 0 0 18px; letter-spacing: -1.2px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: #c4cde0; max-width: 540px; margin: 0 0 30px; }
.hero-version { margin-top: 22px; font-size: 14px; color: #8fa0c0; }
.hero-version strong { color: #fff; }
.hero-device { display: flex; justify-content: center; position: relative; }
.hero-phone { width: 300px; transform: rotate(2deg); }
.phone-halo {
  position: absolute; width: 360px; height: 360px; border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(225,33,58,.35), transparent 62%);
  filter: blur(18px);
}

/* Stats strip */
.stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 22px 12px; margin: 20px 0 0; backdrop-filter: blur(6px);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; color: #fff; letter-spacing: -.5px; }
.stat span { font-size: 13px; color: #9fb0d0; }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 14px; letter-spacing: -.6px; font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9e0ee; }
.feature-ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(225,33,58,.12), rgba(24,179,168,.12)); color: var(--primary); margin-bottom: 18px;
}
.feature-ico svg { width: 26px; height: 26px; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ===== Showcase (alternating) ===== */
.showcase { display: flex; flex-direction: column; gap: 88px; }
.showcase-row { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.showcase-row.reverse { grid-template-columns: auto 1fr; }
.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .showcase-phone { order: 1; }
.showcase-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff5a4d); box-shadow: 0 12px 26px rgba(225,33,58,.3); margin-bottom: 22px;
}
.showcase-ico svg { width: 30px; height: 30px; }
.showcase-title { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; margin: 0 0 12px; letter-spacing: -.5px; }
.showcase-desc { font-size: 17px; color: var(--ink-soft); margin: 0; max-width: 440px; }
.showcase-phone { display: flex; justify-content: center; }
.showcase-phone .phone { width: 270px; }

/* ===== Gallery rail ===== */
.screens-rail {
  display: flex; gap: 30px; overflow-x: auto; padding: 14px 0 34px; scroll-snap-type: x mandatory;
  scroll-padding: 24px; scrollbar-width: thin;
}
.screens-rail::-webkit-scrollbar { height: 8px; }
.screens-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.screens-rail::before, .screens-rail::after { content: ""; flex: 0 0 max(24px, calc((100vw - var(--maxw)) / 2)); }
.screen-card { flex: 0 0 auto; scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.screen-card .phone { width: 244px; }
.screen-cap { text-align: center; max-width: 244px; display: flex; flex-direction: column; gap: 3px; }
.screen-cap-title { font-weight: 700; font-size: 16px; }
.screen-cap-desc { font-size: 13.5px; color: var(--ink-soft); }

/* Language cards */
.lang-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 880px; margin: 0 auto; }
.lang-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.lang-card:hover { transform: translateY(-4px); }
.lang-card .flag { font-size: 40px; }
.lang-card h3 { margin: 12px 0 4px; font-size: 18px; }
.lang-card span { color: var(--ink-soft); font-size: 13px; }

/* Download */
.section-cta { background: var(--bg); color: #fff; }
.download-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: linear-gradient(180deg, #0f1a30, #0c1426); border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px; padding: 48px;
}
.download-copy .kicker { color: var(--accent); }
.download-copy h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; font-weight: 800; }
.download-copy > p { color: #b9c4dc; margin: 0 0 26px; font-size: 17px; }
.download-card .store-row { margin-bottom: 6px; }
.dl-meta { display: flex; gap: 30px; margin: 26px 0 18px; flex-wrap: wrap; }
.dl-meta div { display: flex; flex-direction: column; gap: 4px; }
.dl-meta-label { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: #7e8db0; }
.dl-meta strong { font-size: 17px; }
.dl-hint { font-size: 13px; color: #8390b3; margin: 0; max-width: 440px; }
.download-notes { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 26px; }
.download-notes h3 { margin: 0 0 16px; font-size: 16px; }
.download-notes ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.download-notes li { position: relative; padding-left: 26px; color: #cdd6ea; font-size: 14.5px; }
.download-notes li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(24,179,168,.18); box-shadow: inset 0 0 0 2px var(--accent);
}
.download-notes li.muted { color: #7e8db0; }
.download-notes li.muted::before { display: none; }

/* Contact */
.contact-section { background: var(--bg); color: #fff; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: linear-gradient(135deg, #0f1a30 60%, #0e1f2e);
  border: 1px solid rgba(255,255,255,.08); border-radius: 26px; padding: 52px;
}
.contact-copy .kicker { color: var(--accent); }
.contact-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 0 0 12px; }
.contact-copy > p { color: #b9c4dc; font-size: 17px; margin: 0 0 28px; }
.contact-btn { align-self: flex-start; }
.contact-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-reasons li { display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 500; color: #cdd6ea; }
.contact-reason-ico {
  width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--accent);
}
.contact-reason-ico svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .contact-card { grid-template-columns: 1fr; gap: 32px; padding: 34px; }
}

/* Footer */
.site-footer { background: #070c17; color: #aab4cd; padding: 54px 0 38px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-brand p { margin: 2px 0 0; font-size: 14px; }
.footer-disclaimer { font-size: 13px; max-width: 720px; color: #7c87a4; margin: 8px 0 0; }
.footer-rights { font-size: 13px; color: #6c7795; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-cards { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 30px; }
  .hero-copy { order: 2; }
  .hero-device { order: 1; margin-bottom: 8px; }
  .lead { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
  .download-card { grid-template-columns: 1fr; padding: 34px; }
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .showcase-row .showcase-text, .showcase-row.reverse .showcase-text { order: 2; }
  .showcase-row .showcase-phone, .showcase-row.reverse .showcase-phone { order: 1; }
  .showcase-ico { margin-left: auto; margin-right: auto; }
  .showcase-desc { margin-left: auto; margin-right: auto; }
  .showcase { gap: 64px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-dl { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 6px; box-shadow: var(--shadow);
  }
  .nav.open a { padding: 10px 0; font-size: 16px; }
  .section { padding: 66px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .lang-cards { grid-template-columns: 1fr; max-width: 320px; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .store-btn { flex: 1; justify-content: center; }
  .hero-phone { width: 260px; }
}
