:root {
  --ink: #101828;
  --muted: #5b667a;
  --line: rgba(16, 24, 40, 0.1);
  --surface: rgba(255, 255, 255, 0.78);
  --blue: #2f6bff;
  --blue-deep: #1e4fd6;
  --red: #e53935;
  --orange: #fb8c00;
  --green: #43a047;
  --bg1: #eef3ff;
  --bg2: #f7fafc;
  --shadow: 0 18px 50px rgba(16, 40, 90, 0.12);
  --radius: 18px;
  --font-display: "Sora", "Source Sans 3", sans-serif;
  --font-body: "Source Sans 3", "Sora", sans-serif;
  --top: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg2);
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

body.rtl { direction: rtl; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.bg-orbit {
  position: fixed;
  inset: -20% -10%;
  z-index: 0;
  background:
    radial-gradient(42% 36% at 18% 22%, rgba(47, 107, 255, 0.22), transparent 70%),
    radial-gradient(38% 34% at 82% 18%, rgba(229, 57, 53, 0.14), transparent 70%),
    radial-gradient(40% 38% at 70% 78%, rgba(67, 160, 71, 0.14), transparent 72%),
    radial-gradient(36% 32% at 22% 80%, rgba(251, 140, 0, 0.12), transparent 70%),
    linear-gradient(160deg, #eef3ff 0%, #f8fafc 45%, #eef7f1 100%);
  animation: orbitShift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  pointer-events: none;
}

@keyframes orbitShift {
  from { transform: translate3d(-1%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--top);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(14px, 3vw, 32px);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.18);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.top-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 0.86rem/1.5 var(--font-body);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}

.top-nav button:hover,
.top-nav button.is-active {
  color: var(--blue-deep);
  background: rgba(47, 107, 255, 0.1);
}

.top-nav button:hover { transform: translateY(-1px); }

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-wrap select {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b667a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 8px 28px 8px 12px;
  border-radius: 999px;
  font: 500 0.82rem/1.5 var(--font-body);
  color: var(--ink);
  cursor: pointer;
}

.pager {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

.panel {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--top) + 20px) clamp(16px, 4vw, 48px) 40px;
  overflow: hidden;
}

.panel-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vh, 18px);
  transform: translateY(18px);
  opacity: 0.35;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .55s ease;
}

/* Hero + feature showcase layouts */
.hero-showcase,
.showcase-panel,
.get-showcase {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 42%);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}

.showcase-panel.reverse {
  grid-template-columns: minmax(200px, 42%) minmax(0, 1fr);
}

.showcase-panel.reverse .showcase-copy { order: 2; }
.showcase-panel.reverse .showcase-phone { order: 1; }

.hero-copy,
.showcase-copy,
.get-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 1.4vh, 14px);
}

.hero-logo-mark,
.get-logo {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.phone-cluster,
.showcase-phone,
.phone-duo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
}

.phone-cluster {
  min-height: clamp(280px, 52vh, 520px);
}

.phone-glow {
  position: absolute;
  inset: 10% 0;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(47, 107, 255, 0.22), transparent 72%),
    radial-gradient(40% 40% at 30% 60%, rgba(229, 57, 53, 0.12), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.phone-frame {
  position: relative;
  width: min(230px, 38vw);
  flex: 0 0 auto;
  padding: 11px 9px 13px;
  border-radius: 30px;
  background: linear-gradient(155deg, #252b3a 0%, #101521 100%);
  box-shadow:
    0 28px 64px rgba(16, 40, 90, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform .35s ease, box-shadow .35s ease;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-cluster .phone-frame.is-back {
  position: absolute;
  right: 4%;
  bottom: 2%;
  width: min(190px, 31vw);
  transform: rotate(8deg);
  opacity: 0.88;
  z-index: 1;
}

.phone-cluster .phone-frame.is-front {
  position: relative;
  z-index: 2;
  transform: rotate(-4deg);
}

.phone-duo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.phone-duo .phone-frame.is-back {
  width: min(170px, 28vw);
  transform: rotate(-7deg) translateY(10px);
  opacity: 0.9;
}

.phone-duo .phone-frame.is-front {
  width: min(210px, 34vw);
  transform: rotate(5deg) translateY(-6px);
  z-index: 2;
}

.showcase-float { animation: floatY 5s ease-in-out infinite; }
.showcase-float-delay { animation: floatY 5s ease-in-out infinite 0.8s; }
.float-y-slow { animation: floatY 6.5s ease-in-out infinite 0.4s; }

.showcase-points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 10px;
}

.showcase-points li {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(16, 40, 90, 0.05);
  text-align: center;
  line-height: 1.5;
}

.showcase-points li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink);
}

.showcase-points li span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.showcase-points.two {
  max-width: 460px;
}

.tool-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 440px;
  margin-top: 2px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.tool-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 107, 255, 0.28);
  box-shadow: 0 8px 18px rgba(16, 40, 90, 0.08);
}

.get-showcase {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 36%);
  grid-template-rows: auto auto;
}

.get-copy { grid-column: 1; grid-row: 1; }
.get-showcase .showcase-phone { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.get-foot {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}

.phone-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 34px 70px rgba(16, 40, 90, 0.28);
}

.phone-cluster .phone-frame.is-back:hover { transform: rotate(8deg) translateY(-4px); }
.phone-cluster .phone-frame.is-front:hover { transform: rotate(-4deg) translateY(-6px); }
.phone-duo .phone-frame.is-back:hover { transform: rotate(-7deg) translateY(4px); }
.phone-duo .phone-frame.is-front:hover { transform: rotate(5deg) translateY(-10px); }


.panel.is-inview .panel-inner {
  transform: translateY(0);
  opacity: 1;
}

.hero-inner { gap: clamp(12px, 2vh, 20px); }

.hero-logo,
.get-logo {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.float-y { animation: floatY 4.5s ease-in-out infinite; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: 1rem; font-weight: 600; }

.lead,
.section-desc {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.5;
}

.hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.85;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: 600 0.92rem/1.5 var(--font-display);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.28);
}

.btn-primary:hover { box-shadow: 0 14px 30px rgba(47, 107, 255, 0.36); }

.btn-outline {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(47, 107, 255, 0.35);
}

.btn-outline:hover {
  background: #fff;
  border-color: var(--blue);
}

.btn-ghost,
.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.feature-row {
  width: 100%;
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  margin-top: 6px;
}

.feature-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vh, 22px) 16px;
  box-shadow: 0 10px 28px rgba(16, 40, 90, 0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 107, 255, 0.28);
  box-shadow: 0 16px 36px rgba(16, 40, 90, 0.12);
}

.feature-tile p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.icon-badge {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 0.78rem/1 var(--font-display);
}

.icon-badge.red { background: var(--red); }
.icon-badge.blue { background: var(--blue); }
.icon-badge.green { background: var(--green); }

.tool-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.tool-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.tool-cell:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(47, 107, 255, 0.3);
  box-shadow: 0 12px 24px rgba(16, 40, 90, 0.1);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.dot.red { background: var(--red); }
.dot.orange { background: var(--orange); }
.dot.blue { background: var(--blue); }
.dot.green { background: var(--green); }

.quad-mini {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow);
}

.quad-mini .q {
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 0.72rem/1 var(--font-display);
}
.q.r { background: var(--red); }
.q.o { background: var(--orange); }
.q.b { background: var(--blue); }
.q.g { background: var(--green); }

.office-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.o-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 0.9rem/1 var(--font-display);
}
.o-badge.w { background: #2b579a; }
.o-badge.x { background: #217346; }
.o-badge.p { background: #c43e1c; }
.o-badge.t { background: #607d8b; }

.trust-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.trust-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.site-foot {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-foot a,
.linkish {
  color: var(--blue-deep);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-foot a:hover,
.linkish:hover { text-decoration: underline; }

.sep { opacity: 0.5; }

.dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.rtl .dots { right: auto; left: 18px; }

body.rtl .phone-cluster .phone-frame.is-back {
  right: auto;
  left: 4%;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(16, 24, 40, 0.18);
  cursor: pointer;
  transition: height .2s, background .2s, transform .2s;
}

.dot-btn.is-active {
  height: 26px;
  background: var(--blue);
  transform: scale(1.05);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 50;
  min-width: 220px;
  max-width: min(420px, 92vw);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(16, 24, 40, 0.92);
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .top-nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }

  .hero-showcase,
  .showcase-panel,
  .showcase-panel.reverse,
  .get-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .showcase-panel.reverse .showcase-copy,
  .showcase-panel.reverse .showcase-phone {
    order: unset;
  }

  .hero-copy { order: 1; }
  .phone-cluster { order: 2; min-height: 240px; }
  .showcase-copy { order: 1; }
  .showcase-phone { order: 2; }
  .get-copy { grid-column: 1; grid-row: auto; }
  .get-showcase .showcase-phone { grid-column: 1; grid-row: auto; }
  .get-foot { grid-column: 1; }

  .phone-frame { width: min(200px, 58vw); }
  .phone-cluster .phone-frame.is-back { width: min(165px, 48vw); right: 8%; }
  .phone-duo .phone-frame.is-back { width: min(150px, 42vw); }
  .phone-duo .phone-frame.is-front { width: min(185px, 52vw); }
}

@media (max-width: 640px) {
  html { font-size: 14px; }
  .panel {
    padding-top: calc(var(--top) + 12px);
    padding-bottom: 24px;
    padding-left: 14px;
    padding-right: 28px;
  }
  .dots { right: 8px; gap: 8px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.28rem; }
  .hint { display: none; }
  .phone-cluster { min-height: 210px; }
  .showcase-points li { padding: 8px 12px; }
  .tool-chip { font-size: 0.78rem; padding: 5px 10px; }
}

/* Keep each panel readable on short viewports without overlapping text */
@media (max-height: 780px) {
  .panel-inner { gap: 8px; }
  .hero-logo-mark { width: 48px; height: 48px; }
  .get-logo { width: 52px; height: 52px; }
  .phone-frame { width: min(185px, 32vw); padding: 9px 7px 11px; }
  .phone-cluster { min-height: 220px; }
  .phone-cluster .phone-frame.is-back { width: min(155px, 26vw); }
  .phone-duo .phone-frame.is-back { width: min(145px, 24vw); }
  .phone-duo .phone-frame.is-front { width: min(175px, 30vw); }
  .lead, .section-desc { font-size: 0.88rem; }
  .trust-list { font-size: 0.8rem; gap: 6px 12px; }
  .showcase-points li span { font-size: 0.8rem; }
  h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
  h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
}

@media (max-height: 640px) {
  .panel { overflow-y: auto; }
  .eyebrow { font-size: 0.7rem; }
  .phone-cluster { min-height: 180px; }
  .phone-frame { width: min(155px, 28vw); }
  .showcase-points { gap: 6px; }
  .tool-chip-row { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
