/* SpaceKind official site */
:root {
  --blue: #2f73f5;
  --blue-deep: #1e5ad4;
  --blue-soft: #70b6ff;
  --ink: #152038;
  --ink-soft: #5a6780;
  --surface: #ffffff;
  --surface-soft: #f3f7fd;
  --line: #d9e3f2;
  --glow: rgba(47, 115, 245, 0.28);
  --shadow: 0 24px 60px rgba(21, 32, 56, 0.12);
  --radius: 28px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --lh: 1.5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface-soft);
  line-height: var(--lh);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, select { font: inherit; }

.site-shell {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-padding: 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(243, 247, 253, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.88); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(47,115,245,.25);
}
.brand span { font-size: 15px; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}
.nav a, .nav button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s, transform .2s;
}
.nav a:hover, .nav button:hover { color: var(--blue); transform: translateY(-1px); }
.lang-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-wrap label {
  font-size: 12px;
  color: var(--ink-soft);
}
.lang-wrap select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}
.nav-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(47,115,245,.35);
}
.nav-cta:hover { filter: brightness(1.05); transform: translateY(-2px) !important; }

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 88px clamp(16px, 5vw, 64px) 56px;
}
.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: float 10s ease-in-out infinite;
}
.orb-a { width: 340px; height: 340px; background: rgba(47,115,245,.18); top: 8%; left: -6%; }
.orb-b { width: 280px; height: 280px; background: rgba(112,182,255,.22); bottom: 6%; right: -4%; animation-delay: -3s; }
.orb-c { width: 220px; height: 220px; background: rgba(88,216,205,.16); top: 40%; right: 18%; animation-delay: -6s; }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47,115,245,.1);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
h1, h2, h3 {
  letter-spacing: -0.03em;
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 14px; }
h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 12px; }
h3 { font-size: 17px; margin-bottom: 8px; }
.lead {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: var(--lh);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 14px 30px rgba(47,115,245,.35);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); }
.btn-ghost {
  background: rgba(255,255,255,.75);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue-soft); color: var(--blue-deep); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  text-align: left;
}
.hero-copy { text-align: left; }
.hero-copy .lead { margin-left: 0; }
.hero-copy .btn-row { justify-content: flex-start; }
.art-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}
.art-glow {
  position: absolute;
  width: 72%;
  height: 58%;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(42px);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}
.scene-art {
  width: min(420px, 86%);
  filter: drop-shadow(0 22px 40px rgba(47,115,245,.18));
  animation: phoneFloat 6s ease-in-out infinite;
  transition: transform .35s ease;
}
.scene-art:hover { transform: translateY(-8px) scale(1.02); }
.art-frame {
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(232,241,255,.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s;
}
.art-frame:hover { transform: translateY(-8px) rotate(-1deg); }
.art-frame img {
  width: min(420px, 100%);
  margin: 0 auto;
  border-radius: 22px;
  max-height: min(52vh, 420px);
  object-fit: contain;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.phone {
  width: min(260px, 68vw);
  aspect-ratio: 9/19.2;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #1d2a44, #0f1624);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform .45s ease;
  animation: phoneFloat 6s ease-in-out infinite;
}
.phone:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02); }
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background: #0b1220;
}
.phone-glow {
  position: absolute;
  width: 70%;
  height: 50%;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(40px);
  z-index: -1;
}
@keyframes phoneFloat {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(217,227,242,.9);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 12px 30px rgba(21,32,56,.05);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(47,115,245,.14);
  border-color: rgba(47,115,245,.35);
}
.card-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8f1ff, #d5e7ff);
  color: var(--blue-deep);
  font-size: 18px;
  font-weight: 700;
}
.card p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: var(--lh);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.feature {
  text-align: left;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  min-height: 148px;
  transition: transform .25s, box-shadow .25s;
}
.feature:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow);
}
.feature .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.feature p { color: var(--ink-soft); font-size: 13px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  text-align: left;
}
.split .lead { margin-left: 0; max-width: none; }
.split.reverse .copy { order: 2; }
.split.reverse .media { order: 1; }
.points {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}
.points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 14px;
}
.points li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #58d8cd);
  flex: 0 0 auto;
}
.shot-frame {
  border-radius: 28px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(232,241,255,.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s;
}
.shot-frame:hover { transform: translateY(-8px) rotate(-1deg); }
.shot-frame img {
  width: min(280px, 100%);
  margin: 0 auto;
  border-radius: 22px;
  max-height: min(58vh, 560px);
  object-fit: contain;
  background: #0f1624;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.step {
  background: rgba(255,255,255,.9);
  border-radius: 20px;
  padding: 20px 14px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #58d8cd);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.step:hover::after { transform: scaleX(1); }
.step-num {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.step p { font-size: 13px; color: var(--ink-soft); }

.download-panel {
  background: linear-gradient(145deg, #1e5ad4, #2f73f5 45%, #4aa3ff);
  color: #fff;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 30px 60px rgba(30,90,212,.35);
  position: relative;
  overflow: hidden;
}
.download-panel::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  top: -80px;
  right: -60px;
}
.download-panel .lead { color: rgba(255,255,255,.88); }
.download-panel .btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: none;
}
.download-panel .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.footer-mini {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.footer-mini a { text-decoration: underline; text-underline-offset: 3px; }

.dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: grid;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(90,103,128,.35);
  cursor: pointer;
  transition: transform .2s, background .2s, height .2s;
}
.dot.active {
  background: var(--blue);
  height: 24px;
  border-radius: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.section.in-view .reveal { opacity: 1; transform: none; }
.section.in-view .reveal.d1 { transition-delay: .08s; }
.section.in-view .reveal.d2 { transition-delay: .16s; }
.section.in-view .reveal.d3 { transition-delay: .24s; }
.section.in-view .reveal.d4 { transition-delay: .32s; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 1.8s infinite;
}
.scroll-hint span {
  width: 18px;
  height: 28px;
  border: 2px solid rgba(90,103,128,.45);
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: "";
  width: 3px;
  height: 6px;
  background: var(--blue);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel 1.8s infinite;
}
@keyframes bounce {
  0%,100% { translate: 0 0; }
  50% { translate: 0 6px; }
}
@keyframes wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* Privacy page (normal scroll) */
.privacy-body {
  overflow: auto;
  background:
    radial-gradient(circle at 10% 0%, rgba(47,115,245,.12), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(112,182,255,.16), transparent 35%),
    var(--surface-soft);
}
.privacy-wrap {
  width: min(860px, calc(100% - 32px));
  margin: 96px auto 48px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  text-align: left;
  line-height: var(--lh);
}
.privacy-wrap h1 { text-align: center; margin-bottom: 8px; }
.privacy-wrap .updated {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 22px;
}
.privacy-wrap h2 {
  font-size: 17px;
  margin: 22px 0 8px;
}
.privacy-wrap p, .privacy-wrap li {
  color: var(--ink-soft);
  font-size: 14px;
}
.privacy-wrap ul {
  margin: 8px 0 0 18px;
  display: grid;
  gap: 6px;
}
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

[dir="rtl"] .hero-grid,
[dir="rtl"] .split,
[dir="rtl"] .hero-copy,
[dir="rtl"] .feature,
[dir="rtl"] .privacy-wrap { text-align: right; }
[dir="rtl"] .hero-copy .btn-row,
[dir="rtl"] .points { justify-content: flex-end; }
[dir="rtl"] .points li { flex-direction: row-reverse; }
[dir="rtl"] .dots { right: auto; left: 18px; }

@media (max-width: 960px) {
  .hero-grid, .split, .cards, .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-copy, .split { text-align: center; }
  .hero-copy .lead, .split .lead { margin-left: auto; margin-right: auto; }
  .hero-copy .btn-row { justify-content: center; }
  .phone { transform: none; }
  .split.reverse .copy, .split.reverse .media { order: initial; }
  .feature { text-align: center; min-height: 0; }
  .nav a[data-i18n="nav_features"],
  .nav a[data-i18n="nav_how"] { display: none; }
}
@media (max-width: 640px) {
  .section { padding-top: 78px; padding-bottom: 48px; }
  .steps { grid-template-columns: 1fr; }
  .dots { display: none; }
  .brand span { display: none; }
  .art-stage { min-height: 280px; }
  .scene-art { width: min(340px, 90%); }
  .shot-frame img,
  .art-frame img { max-height: 42vh; }
  .phone-stage { min-height: 300px; }
}
