/* ============================ Tokens ============================ */
:root {
  --bg: #0b0d11;
  --bg-2: #0f1218;
  --panel: #15181f;
  --panel-2: #1b1f28;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f4;
  --dim: #9aa2b1;
  --accent: #ff8a3d;
  --accent-2: #ffb070;
  --accent-3: #7aa2ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, #ffd9b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pill {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(255, 138, 61, 0.12);
  border: 1px solid rgba(255, 138, 61, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #2a1604;
  box-shadow: 0 10px 30px -10px rgba(255, 138, 61, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 138, 61, 0.7); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--block { display: flex; justify-content: center; width: 100%; }

.link { color: var(--accent-2); font-weight: 600; }
.link:hover { color: var(--accent); }

/* ============================ Nav ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 13, 17, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16px; }
.brand strong { color: var(--accent); }
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px;
  display: block; object-fit: contain;
}
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav__links a:not(.btn):hover { color: var(--accent-2); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }

/* Language selector */
.lang { position: relative; margin-left: 18px; }
.lang__btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 7px 11px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.lang__btn:hover { background: rgba(255, 255, 255, 0.09); }
.lang__flag { font-size: 16px; line-height: 1; }
.lang__chev { width: 11px; height: 8px; opacity: 0.7; transition: transform 0.25s var(--ease); }
.lang.open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  list-style: none; margin: 0; padding: 6px;
  width: 200px; max-height: 60vh; overflow-y: auto;
  background: rgba(15, 18, 24, 0.97); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.lang.open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__opt { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.lang__opt:hover { background: rgba(255, 255, 255, 0.07); }
.lang__opt[aria-selected="true"] { background: rgba(255, 138, 61, 0.14); color: var(--accent-2); }

/* RTL */
[dir="rtl"] .lang__menu { right: auto; left: 0; }
[dir="rtl"] .ticks li, [dir="rtl"] .tier__list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .ticks li::before, [dir="rtl"] .ticks li::after,
[dir="rtl"] .tier__list li::before { left: auto; right: 0; }
[dir="rtl"] .tier__list li::before { right: 4px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ============================ Hero ============================ */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.blob--1 { width: 520px; height: 520px; top: -160px; right: -80px; background: radial-gradient(circle, rgba(255, 138, 61, 0.5), transparent 70%); animation: drift 18s ease-in-out infinite; }
.blob--2 { width: 460px; height: 460px; bottom: -180px; left: -120px; background: radial-gradient(circle, rgba(122, 162, 255, 0.4), transparent 70%); animation: drift 22s ease-in-out infinite reverse; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  opacity: 0.4;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.08); }
}

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 6px 0 0; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--dim); max-width: 540px; margin: 22px 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--dim); }

/* phone mockup */
.hero__art { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 280px; aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #20242e, #11141a);
  border-radius: 42px;
  padding: 12px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #0a0c10; border-radius: 0 0 14px 14px; z-index: 2; }
.placeholder--screen { height: 100%; border-radius: 32px; }

.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(21, 24, 31, 0.9);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.chip--compass { top: 40px; left: -6px; }
.chip--measure { bottom: 64px; right: -10px; color: var(--accent-2); }
.compass-dial { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); position: relative; display: inline-block; }
.compass-needle { position: absolute; top: 1px; left: 50%; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 9px solid var(--accent); transform: translateX(-50%); transform-origin: 50% 100%; animation: needle 6s ease-in-out infinite; }
@keyframes needle { 0%, 100% { transform: translateX(-50%) rotate(-18deg); } 50% { transform: translateX(-50%) rotate(20deg); } }

.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 8s ease-in-out infinite; }
.float-slower { animation: float 10s ease-in-out infinite 0.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================ Placeholders ============================ */
.placeholder {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--dim);
  text-align: center;
  overflow: hidden;
}
.placeholder::after { content: "🖼"; position: absolute; font-size: 40px; opacity: 0.12; }
.placeholder__tag { position: relative; font-weight: 700; color: var(--text); font-size: 14px; }
.placeholder__hint { position: relative; font-size: 12px; color: var(--dim); }
.placeholder--wide { aspect-ratio: 16 / 10; width: 100%; }
.placeholder--web { aspect-ratio: 16 / 10; }
.placeholder--qr { width: 78px; height: 78px; border-radius: 10px; }
.placeholder--qr::after { content: "▣"; font-size: 30px; }
.placeholder--qr span { position: relative; font-weight: 800; letter-spacing: 0.1em; color: var(--text); }

/* --- Real screenshots (replace the placeholders) --- */
.phone__shot { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; display: block; }
.web__shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.qr__img { display: block; width: 78px; height: 78px; border-radius: 10px; }
.shot { display: block; border-radius: 14px; box-shadow: var(--shadow); }
.shot--wide { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel); }
.shot--doc { width: 100%; height: auto; }
.shot--app { width: auto; max-height: 560px; margin: 0 auto; border-radius: 28px; }

/* --- Lightbox (full-screen image viewer) --- */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(6px);
  animation: lb-fade 0.18s ease;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 95vw; max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================ Strip ============================ */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; padding: 22px 24px; color: var(--dim); font-weight: 600; font-size: 14px; }
.strip__inner i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }

/* ============================ Sections ============================ */
.section { padding: 96px 0; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(30px, 4.5vw, 46px); }
.section__sub { color: var(--dim); font-size: 18px; margin-top: 16px; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255, 138, 61, 0.12); border: 1px solid rgba(255, 138, 61, 0.25); }
.card__icon .icon { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 15px; margin: 0; }
.icon { fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ticks { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 138, 61, 0.15); border: 1px solid rgba(255, 138, 61, 0.4);
}
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks--inline { margin-top: 24px; grid-template-columns: 1fr; gap: 10px; }

/* ============================ Web viewer section ============================ */
.section--web { background: linear-gradient(180deg, var(--bg), var(--bg-2)); border-block: 1px solid var(--line); }
.web { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.web h2 { font-size: clamp(28px, 4vw, 42px); }
.web__art { position: relative; }
.browser { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.browser__url { margin-left: 12px; font-size: 12px; color: var(--dim); background: var(--bg); padding: 4px 12px; border-radius: 8px; flex: 1; }
.qr { position: absolute; bottom: -26px; right: -18px; display: flex; align-items: center; gap: 12px; background: rgba(21, 24, 31, 0.95); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); backdrop-filter: blur(8px); font-weight: 600; font-size: 13px; }

/* ============================ Feature rows ============================ */
.rows { display: flex; flex-direction: column; gap: 72px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.row--reverse .row__art { order: 2; }
.row__copy h3 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 12px; }
.row__copy p { color: var(--dim); font-size: 17px; margin: 0 0 16px; }

/* ============================ Pricing ============================ */
.section--pricing { background: var(--bg-2); border-top: 1px solid var(--line); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s var(--ease);
}
.tier:hover { transform: translateY(-4px); }
.tier--featured { border-color: rgba(255, 138, 61, 0.55); box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.25), var(--shadow); }
.tier--featured::before { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px; background: linear-gradient(180deg, rgba(255, 138, 61, 0.6), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tier__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #2a1604; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.tier__head { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tier__head h3 { font-size: 22px; }
.tier__price { margin: 12px 0 4px; }
.tier__price .amt { font-size: 40px; font-weight: 800; font-family: "Space Grotesk", sans-serif; }
.tier__price .per { color: var(--dim); font-weight: 500; }
.tier__alt { color: var(--accent-2); font-weight: 600; font-size: 14px; margin: 0; }
.tier__for { color: var(--dim); font-size: 14px; margin: 10px 0 0; }
.tier__list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.tier__list li { position: relative; padding-left: 27px; font-size: 15px; color: var(--text); }
.tier__list li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tier__list li strong { color: var(--text); }
.price-note { text-align: center; color: var(--dim); font-size: 13px; margin: 28px auto 0; max-width: 560px; }

/* hero price caveat */
.hero__note [data-i18n="price_local"] { color: var(--dim); }

/* ============================ CTA + footer ============================ */
.cta { padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(255, 138, 61, 0.18), transparent 60%); }
.cta__inner { position: relative; }
.cta h2 { font-size: clamp(30px, 5vw, 48px); }
.cta p { color: var(--dim); font-size: 18px; margin: 14px 0 28px; }

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 54px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__brand p { color: var(--dim); margin: 12px 0 0; font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; font-size: 15px; color: var(--dim); }
.footer__links a:hover { color: var(--accent-2); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* ============================ Legal pages ============================ */
.legal { padding: 50px 0 90px; }
.legal__doc { max-width: 820px; margin: 0 auto; }
.legal__doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.legal__meta { color: var(--dim); font-size: 14px; margin: 0 0 8px; }
.legal__intro { color: var(--dim); font-size: 17px; margin: 18px 0 30px; }
.legal__doc h2 { font-size: 22px; margin: 40px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal__doc h3 { font-size: 17px; margin: 22px 0 8px; }
.legal__doc p, .legal__doc li { color: #cfd3db; font-size: 16px; line-height: 1.7; }
.legal__doc ul { padding-left: 22px; margin: 10px 0; }
.legal__doc li { margin: 6px 0; }
.legal__doc a { color: var(--accent-2); }
.legal__doc a:hover { color: var(--accent); }
.legal__doc strong { color: var(--text); }
.legal__back { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.legal__back:hover { color: var(--accent-2); }
.legal__note { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; margin: 24px 0; font-size: 14px; color: var(--dim); }

/* ============================ Reveal animation ============================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(11, 13, 17, 0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; transform: translateY(-130%); transition: transform 0.35s var(--ease); }
  .nav__links.open { transform: translateY(0); }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; justify-content: center; }
  .nav__toggle { display: flex; }
  .hero__inner, .web, .row, .row--reverse .row__art { grid-template-columns: 1fr; }
  .row--reverse .row__art { order: 0; }
  .hero__art { margin-top: 30px; }
  .cards, .tiers { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}
@media (max-width: 560px) {
  .chip--compass, .chip--measure { display: none; }
  .qr { right: 0; }
}
