/* ==========================================================================
   CertAgent 官网样式
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #070d1b;
  --ink-2: #0b1426;
  --ink-3: #111d36;
  --text: #101a2e;
  --muted: #5b6982;
  --muted-2: #5f6c82;
  --line: #e6ebf4;
  --line-soft: #eff3f9;
  --bg: #f6f8fc;
  --paper: #ffffff;

  --brand: #2f6bff;
  --brand-deep: #1746c4;
  --brand-soft: #eaf0ff;
  --mint: #0bd3a5;
  --mint-deep: #079c7b;
  --mint-soft: #e2fbf4;
  --amber: #f7a41d;
  --amber-soft: #fff5e2;
  --red: #f0495a;
  --red-soft: #ffebee;
  --violet: #7b61ff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1200px;
  --header-h: 72px;

  --shadow-sm: 0 2px 8px rgba(16, 30, 54, 0.05);
  --shadow: 0 18px 50px -24px rgba(16, 30, 54, 0.32);
  --shadow-lg: 0 40px 100px -40px rgba(16, 30, 54, 0.45);

  --font: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(47, 107, 255, 0.18);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 104px 0;
  position: relative;
}

.section--tight {
  padding: 76px 0;
}

.section--bg {
  background: var(--bg);
}

.section-head {
  max-width: 780px;
  margin-bottom: 56px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid #dbe5ff;
  border-radius: 999px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-title .grad {
  background: linear-gradient(100deg, var(--brand) 10%, #17a2ff 55%, var(--mint-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
}

.section-head--center .section-desc {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s, border-color 0.2s, color 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #3d7bff, #2456e8);
  box-shadow: 0 12px 28px -12px rgba(47, 107, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary:hover {
  box-shadow: 0 18px 36px -14px rgba(47, 107, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: #c9d5ea;
  background: #fff;
}

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

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4);
}

.btn--sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--brand-deep);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

code {
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 0.88em;
  color: #2b3a54;
  background: #f1f5fc;
  border: 1px solid var(--line);
  border-radius: 5px;
  word-break: break-word;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 30, 54, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 6px 14px rgba(47, 107, 255, 0.35));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__sub {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

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

.nav__link {
  position: relative;
  padding: 9px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: #3a4760;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header__actions .btn--ghost {
  background: transparent;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px 24px 24px;
  display: none;
}

.mobile-nav.is-open {
  display: block;
  animation: drawer 0.22s var(--ease);
}

@keyframes drawer {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav .btn {
  margin-top: 18px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #eaf0ff;
  background: var(--ink);
  overflow: hidden;
  padding: 92px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.048) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  width: 720px;
  height: 720px;
  top: -360px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47, 107, 255, 0.5), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__glow--2 {
  width: 560px;
  height: 560px;
  top: 180px;
  left: auto;
  right: -220px;
  transform: none;
  background: radial-gradient(circle, rgba(11, 211, 165, 0.22), transparent 64%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero__copy,
.hero__visual,
.highlight > *,
.mobile-showcase__inner > *,
.security-grid > *,
.two-col > * {
  min-width: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b9c8e8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero__badge b {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #06122b;
  background: linear-gradient(135deg, #6ff3d0, #2fd8ff);
  border-radius: 999px;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #fff;
}

.hero h1 .grad {
  background: linear-gradient(96deg, #87a6ff 0%, #64dcff 48%, #6ff3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  margin-top: 24px;
  max-width: 560px;
  font-size: 17.5px;
  line-height: 1.8;
  color: #a9b8d6;
}

.hero__desc strong {
  color: #e6eeff;
  font-weight: 600;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn--ghost {
  color: #eaf0ff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero__meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: #7f90b2;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta svg {
  width: 15px;
  height: 15px;
  color: #4fe0bb;
}

/* Hero visual */
.hero__visual {
  position: relative;
  perspective: 1400px;
}

.browser {
  position: relative;
  border-radius: 16px;
  background: #0d1729;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transform-origin: center;
  transition: transform 0.6s var(--ease);
}

.hero__visual:hover .browser {
  transform: rotateY(0) rotateX(0);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #101b30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.browser__dots {
  display: flex;
  gap: 6px;
}

.browser__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35435e;
}

.browser__dots i:nth-child(1) {
  background: #ff6b6b;
}

.browser__dots i:nth-child(2) {
  background: #ffc44d;
}

.browser__dots i:nth-child(3) {
  background: #3ddc97;
}

.browser__url {
  flex: 1;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10.5px;
  color: #7d8cab;
  background: #0a1322;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.browser__url svg {
  width: 10px;
  height: 10px;
  color: #4fe0bb;
}

.browser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(13, 23, 41, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  animation: float 7s ease-in-out infinite;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}

.float-card__icon svg {
  width: 18px;
  height: 18px;
}

.float-card__label {
  font-size: 11px;
  color: #8f9fbe;
  line-height: 1.3;
}

.float-card__value {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.float-card__value em {
  font-style: normal;
  color: #6ff3d0;
}

.float-card--warn {
  top: 12%;
  left: -46px;
  animation-delay: -1.5s;
}

.float-card--warn .float-card__icon {
  background: rgba(247, 164, 29, 0.16);
  color: #ffc44d;
}

.float-card--conflict {
  bottom: 10%;
  right: -34px;
  animation-delay: -3.6s;
}

.float-card--conflict .float-card__icon {
  background: rgba(240, 73, 90, 0.16);
  color: #ff7b88;
}

.float-card--match {
  top: -30px;
  right: 8%;
  animation-delay: -5s;
}

.float-card--match .float-card__icon {
  background: rgba(11, 211, 165, 0.16);
  color: #6ff3d0;
}

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

/* Tech strip */
.tech-strip {
  position: relative;
  z-index: 2;
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.tech-strip__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 22px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tech-strip__inner::-webkit-scrollbar {
  display: none;
}

.tech-strip__label {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #64749a;
  text-transform: uppercase;
}

.tech-strip__items {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.tech-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #93a3c4;
  white-space: nowrap;
}

.tech-strip__item i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #3d5480;
}

.tech-strip__item:nth-child(2) i {
  background: #42b883;
}

.tech-strip__item:nth-child(3) i {
  background: #f29111;
}

.tech-strip__item:nth-child(4) i {
  background: #dc382d;
}

.tech-strip__item:nth-child(5) i {
  background: #6ff3d0;
}

/* ---------- Stats ---------- */
.stats {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 34px 30px;
  border-left: 1px solid var(--line-soft);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat__num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.stat__num small {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
}

.stat__label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.stat__desc {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------- Pain ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pain {
  position: relative;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease),
    box-shadow 0.25s;
}

.pain:hover {
  transform: translateY(-4px);
  border-color: #cfdcf5;
  box-shadow: var(--shadow);
}

.pain__no {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c22d3e;
}

.pain__title {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.pain__desc {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.pain__tag {
  display: inline-flex;
  margin-top: 16px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #c22d3e;
  background: var(--red-soft);
  border-radius: 999px;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  position: relative;
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s,
    border-color 0.28s;
}

.feature::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -90px;
  top: -90px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: #cfdcf5;
  box-shadow: var(--shadow);
}

.feature:hover::after {
  opacity: 1;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #dae4ff;
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature--mint .feature__icon {
  color: var(--mint-deep);
  background: var(--mint-soft);
  border-color: #c8f4e9;
}

.feature--amber .feature__icon {
  color: #c47c06;
  background: var(--amber-soft);
  border-color: #ffe8bd;
}

.feature--violet .feature__icon {
  color: #6347e8;
  background: #f0ecff;
  border-color: #e0d8ff;
}

.feature__title {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature__desc {
  margin-top: 8px;
  font-size: 13.8px;
  line-height: 1.72;
  color: var(--muted);
}

.feature__tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature__tags span {
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  color: #52627e;
  background: #f4f7fc;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

/* ---------- Highlight rows ---------- */
.highlight {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 68px;
  align-items: center;
  padding: 74px 0;
  border-top: 1px solid var(--line-soft);
}

.highlight:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.section-head + .highlight {
  border-top: 0;
  padding-top: 0;
}

.highlight:last-of-type {
  padding-bottom: 0;
}

.highlight--flip .highlight__media {
  order: -1;
}

.highlight__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-deep);
  text-transform: uppercase;
}

.highlight__num::after {
  content: "";
  width: 42px;
  height: 1px;
  background: #c7d6f5;
}

.highlight__title {
  margin-top: 16px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.highlight__desc {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

.highlight__list {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.highlight__list li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #34425c;
}

.highlight__list svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--mint-deep);
}

.highlight__media {
  position: relative;
}

.shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.shot::before {
  content: "";
  display: block;
  height: 34px;
  background: linear-gradient(#fbfcff, #f2f5fb);
  border-bottom: 1px solid var(--line);
}

.shot::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 14px 0 0 #ffc44d, 28px 0 0 #3ddc97;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.shot--offset {
  transform: translateX(18px);
}

.media-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(16, 30, 54, 0.4);
  font-size: 12.5px;
  font-weight: 600;
}

.media-badge svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.media-badge--tl {
  top: -18px;
  left: -22px;
}

.media-badge--br {
  bottom: -18px;
  right: -18px;
}

.media-badge small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-2);
  line-height: 1.35;
}

/* Score panel */
.score-panel {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.score-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.score-panel__person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #1746c4;
  background: linear-gradient(135deg, #dbe6ff, #c3d6ff);
  border: 1px solid #b9ccf8;
}

.score-panel__name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}

.score-panel__meta {
  font-size: 11.5px;
  color: var(--muted-2);
}

.score-total {
  text-align: right;
  line-height: 1;
}

.score-total b {
  font-size: 30px;
  font-weight: 800;
  color: var(--mint-deep);
  letter-spacing: -0.03em;
}

.score-total span {
  font-size: 11.5px;
  color: var(--muted-2);
}

.score-rows {
  margin-top: 8px;
}

.score-row {
  display: grid;
  grid-template-columns: 66px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 12.5px;
}

.score-row__name {
  color: var(--muted);
}

.score-row__track {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: #edf1f8;
  overflow: hidden;
}

.score-row__bar {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3d7bff, #6ff3d0);
  transform-origin: left;
}

.score-row__val {
  text-align: right;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #34425c;
}

.timeline {
  margin-top: 10px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.timeline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

.timeline__head b {
  font-size: 13px;
  color: var(--text);
}

.timeline__steps {
  display: grid;
  gap: 0;
  padding-top: 14px;
}

.tstep {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 16px;
}

.tstep:last-child {
  padding-bottom: 0;
}

.tstep::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.tstep:last-child::before {
  display: none;
}

.tstep__dot {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cdd8ec;
}

.tstep__dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9c6dd;
}

.tstep.is-done .tstep__dot {
  border-color: var(--mint);
  background: var(--mint-soft);
}

.tstep.is-done .tstep__dot::after {
  background: var(--mint-deep);
}

.tstep.is-active .tstep__dot {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

.tstep.is-active .tstep__dot::after {
  background: var(--brand);
}

.tstep__title {
  font-size: 12.5px;
  font-weight: 600;
  color: #34425c;
  line-height: 1.5;
}

.tstep__time {
  font-size: 10.5px;
  color: var(--muted-2);
}

.tstep__tag {
  align-self: center;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  color: #05705a;
  background: var(--mint-soft);
}

.channel-chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #34425c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.channel-chips i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.channel-chips span:nth-child(2) i {
  background: var(--mint);
}

.channel-chips span:nth-child(3) i {
  background: var(--amber);
}

.channel-chips span:nth-child(4) i {
  background: #2bb673;
}

.channel-chips span:nth-child(5) i {
  background: var(--violet);
}

/* ---------- Gallery ---------- */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.gallery-tab {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #52627e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-tab:hover {
  border-color: #c9d5ea;
  color: var(--brand-deep);
}

.gallery-tab.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item__img {
  position: relative;
  overflow: hidden;
  background: #eef2f9;
}

.gallery-item__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.5s var(--ease);
}

.gallery-item--phone .gallery-item__img img {
  object-fit: contain;
  background: #eef2f9;
}

.gallery-item:hover .gallery-item__img img {
  transform: scale(1.025);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 13, 27, 0.42);
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay svg {
  width: 34px;
  height: 34px;
  color: #fff;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.gallery-item__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
}

.gallery-item__cap b {
  font-size: 13.5px;
  font-weight: 600;
}

.gallery-item__cap span {
  font-size: 11px;
  color: var(--muted-2);
}

.gallery-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.lightbox__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-size: 13px;
  color: #c8d4ea;
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
}

/* ---------- Mobile showcase ---------- */
.mobile-showcase {
  position: relative;
  color: #eaf0ff;
  background: var(--ink);
  overflow: hidden;
}

.mobile-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 40%, rgba(47, 107, 255, 0.28), transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(11, 211, 165, 0.12), transparent 60%);
}

.mobile-showcase__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.mobile-showcase .eyebrow {
  color: #8ff5dc;
  background: rgba(11, 211, 165, 0.1);
  border-color: rgba(11, 211, 165, 0.25);
}

.mobile-showcase .eyebrow::before {
  background: #6ff3d0;
  box-shadow: 0 0 0 4px rgba(111, 243, 208, 0.14);
}

.mobile-showcase .section-title {
  color: #fff;
}

.mobile-showcase .section-desc {
  color: #a9b8d6;
}

.mobile-list {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}

.mobile-list li {
  display: flex;
  gap: 14px;
}

.mobile-list__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  color: #6ff3d0;
  background: rgba(11, 211, 165, 0.1);
  border: 1px solid rgba(11, 211, 165, 0.22);
}

.mobile-list__icon svg {
  width: 19px;
  height: 19px;
}

.mobile-list b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.mobile-list p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.65;
  color: #8fa0c0;
}

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 560px;
}

.phone {
  position: relative;
  width: 262px;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #26344f, #0d1526);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 20px;
  border-radius: 0 0 12px 12px;
  background: #0a1220;
  z-index: 2;
}

.phone img {
  width: 100%;
  aspect-ratio: 780 / 1688;
  object-fit: cover;
  object-position: top center;
  border-radius: 29px;
}

.phone--back {
  position: absolute;
  right: 4%;
  bottom: 40px;
  width: 232px;
  transform: rotate(7deg);
  opacity: 0.55;
  filter: saturate(0.85);
}

.phone--back img {
  aspect-ratio: 780 / 1688;
}

.phone--front {
  z-index: 2;
  transform: rotate(-3deg);
}

.phone--front:hover {
  transform: rotate(0);
  transition: transform 0.5s var(--ease);
}

.phone-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.35), transparent 60%);
  filter: blur(20px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Security ---------- */
.security {
  background: linear-gradient(180deg, #fff, var(--bg));
}

.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.security-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sec-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.sec-item:hover {
  transform: translateY(-3px);
  border-color: #cfdcf5;
  box-shadow: var(--shadow-sm);
}

.sec-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid #dbe5ff;
}

.sec-item__icon svg {
  width: 18px;
  height: 18px;
}

.sec-item h3 {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 700;
}

.sec-item p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Deploy ---------- */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.deploy-card {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s,
    border-color 0.25s;
}

.deploy-card:hover {
  transform: translateY(-4px);
  border-color: #cfdcf5;
  box-shadow: var(--shadow);
}

.deploy-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deploy-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}

.deploy-card__icon svg {
  width: 21px;
  height: 21px;
}

.deploy-card__tag {
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #05705a;
  background: var(--mint-soft);
  border-radius: 999px;
}

.deploy-card h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
}

.deploy-card p {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.deploy-card ul {
  margin-top: 16px;
  display: grid;
  gap: 7px;
}

.deploy-card li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: #52627e;
}

.deploy-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}

.deploy-card__more {
  margin-top: 18px;
  padding-top: 15px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-deep);
  border-top: 1px solid var(--line-soft);
}

.deploy-card__more span {
  display: inline-block;
  transition: transform 0.2s;
}

.deploy-card:hover .deploy-card__more span {
  transform: translateX(3px);
}

/* Code block */
.codeblock {
  position: relative;
  margin-top: 18px;
  border-radius: 12px;
  background: #0b1426;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.codeblock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: #7d8cab;
  font-family: var(--mono);
}

.codeblock pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #c9d6f0;
}

.codeblock .c {
  color: #64749a;
}

.codeblock .k {
  color: #7fb2ff;
}

.codeblock .s {
  color: #6ff3d0;
}

.copy-btn {
  padding: 3px 8px;
  font-size: 10.5px;
  color: #9fb0cf;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  cursor: pointer;
}

.copy-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin-inline: auto;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: #cfdcf5;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 18px;
  font-weight: 400;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: var(--ink);
  color: #eaf0ff;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  top: -520px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47, 107, 255, 0.5), transparent 60%);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
}

.cta__inner {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
}

.cta p {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 16px;
  color: #a9b8d6;
}

.cta__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta .btn--ghost {
  color: #eaf0ff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

/* ---------- Footer ---------- */
.footer {
  background: #050a14;
  color: #8f9fbe;
  padding: 66px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer .brand__name {
  color: #fff;
}

.footer .brand__sub {
  color: #8b9bbc;
}

.footer__desc {
  margin-top: 18px;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.8;
  color: #7d8cab;
}

.footer__base {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__base span {
  padding: 4px 9px;
  font-size: 11px;
  color: #8fa0c0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
}

.footer h3 {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d7e0f2;
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  font-size: 13px;
  color: #8f9fbe;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #8494b4;
}

.footer__bottom a {
  color: #8f9fbe;
}

.footer__bottom a:hover {
  color: #fff;
}

/* ---------- Subpage hero ---------- */
.page-hero {
  position: relative;
  padding: 78px 0 64px;
  background: var(--ink);
  color: #eaf0ff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 100% at 20% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 20% 0%, #000, transparent 75%);
}

.page-hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -330px;
  right: -100px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.45), transparent 62%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.page-hero .eyebrow {
  color: #9db6ff;
  background: rgba(47, 107, 255, 0.12);
  border-color: rgba(47, 107, 255, 0.3);
}

.page-hero .eyebrow::before {
  background: #6ff3d0;
  box-shadow: 0 0 0 4px rgba(111, 243, 208, 0.14);
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
}

.page-hero p {
  margin-top: 18px;
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.8;
  color: #a9b8d6;
}

.page-hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero .btn--ghost {
  color: #eaf0ff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #7d8cab;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb svg {
  width: 12px;
  height: 12px;
}

/* ---------- Feature page ---------- */
.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.cat-nav__inner {
  display: flex;
  gap: 6px;
  padding: 12px 24px;
  overflow-x: auto;
  max-width: var(--max);
  margin-inline: auto;
  scrollbar-width: none;
}

.cat-nav__inner::-webkit-scrollbar {
  display: none;
}

.cat-nav a {
  flex: none;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #52627e;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.cat-nav a:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.group {
  padding: 62px 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.group:first-of-type {
  border-top: 0;
}

.group__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.group__no {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid #dbe5ff;
}

.group__title {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.group__desc {
  margin-top: 5px;
  font-size: 14px;
  color: var(--muted);
}

.group__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 46px;
  padding-left: 62px;
}

.module h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 700;
}

.module h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
  flex: none;
}

.module ul {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.module li {
  position: relative;
  padding-left: 17px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.module li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c2cfe4;
}

.group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-left: 62px;
}

.group__tags span {
  padding: 3px 9px;
  font-size: 11px;
  color: #52627e;
  background: #f4f7fc;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

/* Audience cards */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.audience__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 999px;
}

.audience h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.audience p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.audience ul {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.audience li {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: #52627e;
}

.audience li svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  color: var(--mint-deep);
}

/* ---------- Deploy page ---------- */
.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__no {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3d7bff, #2456e8);
  box-shadow: 0 8px 18px -8px rgba(47, 107, 255, 0.8);
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
}

.step p {
  margin-top: 6px;
  font-size: 13.8px;
  line-height: 1.72;
  color: var(--muted);
}

.step .codeblock {
  margin-top: 14px;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.req {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.req b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.req span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b520f;
  background: var(--amber-soft);
  border: 1px solid #ffe6b3;
  border-radius: 12px;
}

.note svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: #c47c06;
}

.note--mint {
  color: #0a5b47;
  background: var(--mint-soft);
  border-color: #bdf0e3;
}

.note--mint svg {
  color: var(--mint-deep);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
  background: var(--bg);
}

.notfound__code {
  font-size: clamp(80px, 16vw, 160px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(120deg, var(--brand), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
}

.notfound p {
  margin-top: 10px;
  color: var(--muted);
}

.notfound__actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero__visual {
    max-width: 720px;
  }

  .hero__desc {
    max-width: 640px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .highlight--flip .highlight__media {
    order: 0;
  }

  .highlight__media {
    max-width: 760px;
  }

  .mobile-showcase__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .phones {
    min-height: 520px;
  }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .req-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .header__actions .btn--ghost {
    display: none;
  }

  .nav {
    gap: 0;
  }

  .nav__link {
    padding: 8px 10px;
    font-size: 14px;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .header__actions .btn {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 26px 22px;
  }

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line-soft);
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .group__body {
    padding-left: 0;
  }

  .group__tags {
    padding-left: 0;
  }

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

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .container {
    padding-inline: 20px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .float-card--warn {
    left: -8px;
    top: 8%;
  }

  .float-card--conflict {
    right: -6px;
    bottom: 6%;
  }

  .float-card--match {
    top: -20px;
    right: 4%;
  }

  .tech-strip__inner {
    gap: 22px;
  }

  .tech-strip__items {
    gap: 22px;
    margin-left: 0;
  }

  .feature-grid,
  .pain-grid,
  .gallery-grid,
  .security-list,
  .repo-grid {
    grid-template-columns: 1fr;
  }

  .gallery-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .gallery-tab {
    flex: none;
  }

  .phones {
    min-height: 480px;
    transform: scale(0.92);
  }

  .phone {
    width: 238px;
  }

  .phone--back {
    width: 206px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .group__head {
    gap: 13px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 56px 0 48px;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 34px;
  }

  .stat__num {
    font-size: 30px;
  }

  .float-card {
    padding: 9px 12px;
    gap: 9px;
  }

  .float-card__icon {
    width: 28px;
    height: 28px;
  }

  .float-card--warn,
  .float-card--conflict {
    display: none;
  }

  .phones {
    transform: scale(0.82);
    min-height: 430px;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .header,
  .mobile-nav,
  .cta,
  .footer,
  .float-card,
  .nav-toggle {
    display: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
