:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --blue: #38bdf8;
  --blue-light: #e0f2fe;
  --success: #22c55e;
  --success-soft: #dcfce7;
  --ink: #0f172a;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary-dark);
}

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  box-shadow: 0 8px 28px -18px rgba(15, 23, 42, 0.35);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-brand img {
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-wrap select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  padding: 7px 28px 7px 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.lang-wrap select:hover {
  border-color: #cbd5e1;
}

.lang-wrap select:disabled {
  opacity: 0.55;
  cursor: wait;
}

.lang-wrap select:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 11px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: #cbd5e1;
  background: var(--bg-alt);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--blue-light);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 75% 0%, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 70%),
    radial-gradient(45% 70% at 10% 20%, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0) 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 88px 24px 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: rgba(224, 242, 254, 0.6);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
}

.hero-sub {
  margin: 0 0 30px;
  max-width: 480px;
  font-size: 17px;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 8px no-repeat;
}

/* ---------- Hero product mock ---------- */

.hero-visual {
  display: flex;
  justify-content: center;
}

.app-frame {
  width: 100%;
  max-width: 400px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 24px 48px -24px rgba(2, 132, 199, 0.28);
  overflow: hidden;
  transform: rotate(0.001deg);
}

.app-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.app-frame-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2e8f0;
}

.app-frame-bar .app-frame-url {
  width: auto;
  height: auto;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.app-shot {
  display: block;
  width: 100%;
}

/* ---------- Screenshots gallery ---------- */

.shots-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 36px;
  align-items: end;
  max-width: 900px;
  margin: 0 auto;
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shot .app-frame {
  max-width: none;
}

.shot figcaption {
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.phone-frame {
  position: relative;
  width: min(100%, 260px);
  margin: 0 auto;
  border-radius: 32px;
  border: 6px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.15),
    0 24px 48px -24px rgba(2, 132, 199, 0.3);
}

.phone-frame .app-shot {
  border-radius: 24px;
}

.phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 16px;
  border-radius: 999px;
  background: var(--ink);
  z-index: 2;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 24px;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--ink);
}

.section-sub {
  margin: 0 auto 48px;
  max-width: 540px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 28px;
}

.feature-card:hover {
  background: var(--bg-alt);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--blue-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- What's new (changelog) ---------- */

.updates-list {
  max-width: 720px;
  margin: 0 auto;
}

.updates-status {
  text-align: center;
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 36px 0;
  margin: 0;
}

.update-card {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.update-card:last-child {
  border-bottom: 0;
}

.update-card.has-image .update-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  display: block;
  background: var(--blue-light);
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.update-kind {
  background: var(--blue-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 3px 8px;
}

.update-kind.kind-version {
  background: var(--success-soft);
  color: #15803d;
}

.update-date {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.update-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.update-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  white-space: pre-line;
}

/* ---------- About ---------- */

.about-inner {
  max-width: 680px;
  text-align: center;
}

.about-inner p {
  color: var(--text-secondary);
  font-size: 16.5px;
  margin: 0 0 14px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.about-history {
  display: inline-block;
  margin-top: 6px;
  font-size: 15px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 100% at 50% 0%, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.cta-inner p {
  margin: 0 0 26px;
  color: #94a3b8;
  font-size: 15.5px;
}

/* ---------- Footer ---------- */

.footer {
  background: #0b1220;
  color: #cbd5e1;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.footer-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.footer-tag {
  font-size: 12.5px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
  color: #94a3b8;
  font-weight: 500;
  font-size: 13.5px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

/* ---------- Hamburger + side menu ---------- */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.hamburger:hover {
  background: var(--bg-alt);
}

body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(320px, 84vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 48px -24px rgba(15, 23, 42, 0.25);
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}

body.menu-open .side-menu {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

.side-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.menu-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close svg {
  width: 16px;
  height: 16px;
}

.menu-close:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.side-links {
  display: flex;
  flex-direction: column;
}

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--bg-alt);
}

.side-links a svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.side-links a:hover {
  color: var(--primary-dark);
}

.side-links a:hover svg {
  transform: translateX(3px);
  color: var(--primary);
}

.side-lang {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.side-lang select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  padding: 11px 34px 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.side-cta {
  width: 100%;
}

.side-note {
  margin: auto 0 0;
  padding-top: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Marquee strip ---------- */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Entrance + scroll reveal ---------- */

.hero-in {
  animation: hero-in 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.hero-visual.hero-in {
  animation-delay: 0.15s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid .feature-card:nth-child(2) {
  transition-delay: 0.05s;
}
.feature-grid .feature-card:nth-child(3) {
  transition-delay: 0.1s;
}
.feature-grid .feature-card:nth-child(4) {
  transition-delay: 0.15s;
}
.feature-grid .feature-card:nth-child(5) {
  transition-delay: 0.2s;
}
.feature-grid .feature-card:nth-child(6) {
  transition-delay: 0.25s;
}

/* ---------- Hero extras ---------- */

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: var(--mx, 70%);
  top: var(--my, 20%);
  transition: left 0.4s ease-out, top 0.4s ease-out;
}

.hero-visual .app-frame {
  animation: float 6s ease-in-out infinite;
}

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

/* ---------- Micro-interactions ---------- */

.feature-card {
  transition: background 0.2s ease;
  position: relative;
}

.feature-card .feature-icon {
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px);
  background: var(--primary);
  color: #fff;
}

.update-card {
  transition: background 0.2s ease;
}

.update-title {
  transition: color 0.15s ease;
}

.update-card:hover .update-title {
  color: var(--primary-dark);
}

.btn-primary {
  position: relative;
}

/* ---------- Update skeletons ---------- */

.update-skeleton {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.update-skeleton i {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 45%, #eef2f7 65%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.update-skeleton .sk-meta {
  width: 140px;
  height: 14px;
  margin-bottom: 12px;
}

.update-skeleton .sk-title {
  width: 55%;
  height: 18px;
  margin-bottom: 10px;
}

.update-skeleton .sk-line {
  width: 100%;
  height: 12px;
  margin-bottom: 8px;
}

.update-skeleton .sk-line.short {
  width: 70%;
}

@keyframes shimmer {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -20% 0;
  }
}

.update-card {
  animation: hero-in 0.45s ease both;
}

/* ---------- Subpage head ---------- */

.hero-compact {
  padding: 64px 24px 56px;
}

.page-head {
  position: relative;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

.back-link svg {
  width: 15px;
  height: 15px;
}

.back-link:hover {
  color: var(--primary-dark);
}

.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---------- Logo timeline ---------- */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    var(--blue-light) 0%,
    var(--blue) 50%,
    var(--primary) 100%
  );
  border-radius: 2px;
}

.tl-item {
  position: relative;
  width: 50%;
  padding-bottom: 56px;
  display: flex;
  justify-content: flex-end;
  animation: hero-in 0.5s ease both;
}

.tl-item.tl-right {
  margin-left: 50%;
  justify-content: flex-start;
}

/* dot where the branch meets the trunk */
.tl-node {
  position: absolute;
  top: 54px;
  right: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
  z-index: 1;
}

.tl-item.tl-right .tl-node {
  right: auto;
  left: -8px;
}

/* horizontal branch from trunk to the mark */
.tl-branch {
  position: absolute;
  top: 62px;
  right: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--primary));
  border-radius: 2px;
}

.tl-item.tl-right .tl-branch {
  right: auto;
  left: 0;
}

/* image with title + description underneath */
.tl-body {
  width: min(240px, calc(100% - 48px));
  margin: 0 40px;
  text-align: center;
  transition: transform 0.18s ease;
}

.tl-body:hover {
  transform: translateY(-3px);
}

.tl-logo {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 14px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 28px -18px rgba(2, 132, 199, 0.35);
}

.tl-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.tl-year {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}

.tl-current {
  display: inline-block;
  background: var(--success-soft);
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 3px 8px;
}

.tl-label {
  margin: 4px 0 4px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.tl-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
}

.tl-skeleton {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px;
  margin: 0 auto 18px;
  max-width: 380px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.tl-skeleton i {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 45%, #eef2f7 65%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.tl-skeleton .sk-logo {
  width: 64px;
  height: 64px;
  flex: none;
}

.tl-skeleton .sk-text {
  flex: 1;
}

.tl-skeleton .sk-year {
  width: 64px;
  height: 20px;
  margin-bottom: 10px;
}

.tl-skeleton .sk-line {
  width: 100%;
  height: 11px;
}

@media (max-width: 640px) {
  .timeline::before {
    left: 9px;
  }

  .tl-item,
  .tl-item.tl-right {
    width: 100%;
    margin-left: 0;
    padding-bottom: 40px;
    justify-content: flex-start;
  }

  .tl-item .tl-node,
  .tl-item.tl-right .tl-node {
    left: 3px;
    right: auto;
  }

  .tl-item .tl-branch,
  .tl-item.tl-right .tl-branch {
    left: 10px;
    right: auto;
    width: 22px;
  }

  .tl-body {
    margin: 0 0 0 34px;
    text-align: left;
  }

  .tl-logo {
    margin-left: 0;
  }

  .tl-head {
    justify-content: flex-start;
  }
}

/* ---------- Chinese edition (ch.home.studily.org) ---------- */

.lang-zh body {
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    "Source Han Sans SC",
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* Chinese edition is always translated — no picker needed */
.lang-zh .lang-wrap,
.lang-zh .side-lang {
  display: none;
}

.zh-badge {
  display: none;
  align-items: center;
  gap: 5px;
  background: var(--blue-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.04em;
}

.lang-zh .zh-badge {
  display: inline-flex;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .hero-visual .app-frame,
  .update-skeleton i,
  .hero-in,
  .update-card {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-actions .lang-wrap {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .hero-points {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero {
    padding: 56px 20px 64px;
  }

  .section {
    padding: 60px 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shots-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
