:root {
  --ink: #0c2340;
  --ink-soft: #17375e;
  --text: #2c4057;
  --muted: #5d7086;
  --blue: #145dda;
  --blue-bright: #2563eb;
  --sky: #eef5ff;
  --mint: #e8fbf8;
  --line: #dbe4f0;
  --paper: #f7faff;
  --card: #ffffff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.carousel-track:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.025em;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 50;
  background: #fff;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid var(--blue);
  font-weight: 600;
}

.skip-link:focus {
  top: 14px;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(20, 93, 218, 0.22);
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 560;
  color: var(--text);
}

.nav-links a:hover {
  color: var(--blue);
}

.lang-pill {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.lang-pill:hover {
  border-color: var(--blue);
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--blue);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Vibbo Hero */
.app-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 12% 14%, rgba(167, 243, 208, 0.38), transparent 62%),
    radial-gradient(760px 520px at 88% 22%, rgba(96, 165, 250, 0.34), transparent 65%),
    linear-gradient(180deg, #f3f9ff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  margin-top: 22px;
}

.app-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #cfe0f7;
  font-size: 12px;
  font-weight: 650;
  color: var(--blue);
  margin-bottom: 18px;
}

.app-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.app-icon-large {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(20, 93, 218, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-subtitle {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 650;
  color: var(--blue);
}

.geo-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 550;
  background: rgba(255, 255, 255, 0.82);
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 24px;
}

.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0b192c;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(11, 25, 44, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.store-btn:hover {
  background: #163152;
}

.store-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 11px;
  line-height: 1.1;
  color: #cbd5e1;
}

.store-btn strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink) !important;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid #c9daef;
  font-size: 14px;
  font-weight: 650;
}

.secondary-btn:hover {
  border-color: var(--blue);
  color: var(--blue) !important;
}

.qr-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 16px 10px 10px;
}

.qr-box img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.qr-box strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 3px;
}

.qr-box span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 210px;
}

.stat-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.stat-pill strong {
  display: block;
  font-size: 18px;
  font-weight: 780;
  color: var(--ink);
}

.stat-pill span {
  font-size: 12px;
  color: var(--muted);
}

.hero-phones {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 18px;
  align-items: center;
}

.phone-shot {
  border-radius: 26px;
  overflow: hidden;
  background: #e6f0ff;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 56px rgba(12, 35, 64, 0.18);
}

.phone-shot.secondary {
  transform: translateY(20px);
}

/* Generic Sections */
.section {
  padding: 68px 0;
}

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

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

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

/* Carousel (modern-web-guidance compliant) */
.carousel {
  position: relative;
}

.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.carousel-controls {
  display: inline-flex;
  gap: 10px;
}

.carousel-controls button {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #b8cbe2;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}

.carousel-controls button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  padding: 6px 4px 16px;
  scrollbar-width: thin;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel-track {
    scroll-behavior: smooth;
  }
}

.carousel-track > * {
  flex: 0 0 min(292px, 78vw);
  scroll-snap-align: center;
}

.carousel-track > :first-child {
  order: clamp(0, var(--current) - (var(--children-count, sibling-count()) - 3), 1);
}

.carousel-track > :last-child {
  order: calc(-1 * clamp(0, 2 - var(--current), 1));
}

.shot-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(12, 35, 64, 0.06);
}

.shot-card a {
  display: block;
  background: #edf4ff;
  padding: 12px 12px 0;
}

.shot-card img {
  border-radius: 16px 16px 0 0;
  width: 100%;
  height: auto;
}

.shot-card figcaption {
  padding: 14px 16px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.shot-card figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}

.carousel-markers {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.carousel-markers button {
  min-width: 28px;
  min-height: 28px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-markers button::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a9c4;
  border: 1px solid #647c99;
}

/* Active state uses BOTH width/shape and color (WCAG 1.4.1) */
.carousel-markers button[aria-current="true"]::before {
  width: 26px;
  background: var(--blue);
  border-color: var(--ink);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(12, 35, 64, 0.04);
}

.feature-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--sky);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
}

.feature-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
}

.feature-card li {
  margin-bottom: 7px;
}

/* Accent chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.chip-list li {
  background: #fff;
  border: 1px solid #cbd9ec;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* Data Spec Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 240px;
  background: #f4f8fe;
  color: var(--ink);
  font-weight: 650;
}

.spec-table a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Topic / Ecosystem Cards */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
  border-color: #93b4e8;
  box-shadow: 0 12px 30px rgba(12, 35, 64, 0.08);
}

.topic-card .intent-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--sky);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.topic-card h3 {
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.topic-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  flex: 1;
}

.topic-card .card-link {
  font-size: 13px;
  font-weight: 650;
  color: var(--blue);
}

/* Topic Detail Page */
.topic-hero {
  background: linear-gradient(180deg, #eff6ff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--line);
  padding: 24px 0 54px;
}

.topic-hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  max-width: 920px;
  margin: 14px 0 18px;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.screen-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.screen-figure a {
  display: block;
  background: #eaf1fb;
  padding: 14px;
}

.screen-figure img {
  border-radius: 8px;
}

.screen-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.steps-list .step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  background: var(--sky);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.steps-list h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.steps-list p {
  font-size: 14px;
  margin: 0;
  color: var(--text);
}

/* Accordion (modern-web-guidance compliant) */
.accordion {
  max-width: 880px;
}

.accordion > details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 0 20px;
}

.accordion > details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65ch;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}

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

.accordion > details > summary::before {
  content: "";
  inline-size: 1em;
  block-size: 1em;
  flex-shrink: 0;
  background-color: var(--blue);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.accordion > details[open] > summary::before {
  rotate: 0deg;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion > details > summary::before {
    transition: rotate 0.2s;
  }
}

.accordion > details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.accordion > details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion > details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.accordion-body {
  padding: 0 0 18px 1.65em;
  font-size: 15px;
  color: var(--text);
}

.accordion-body p:last-child {
  margin-bottom: 0;
}

/* Bottom CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0c2340 0%, #1449a8 100%);
  color: #fff;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 8px;
}

.cta-banner p {
  color: #dbeafe;
  margin: 0;
  max-width: 620px;
  font-size: 15px;
}

.cta-banner .white-btn {
  background: #fff;
  color: var(--ink) !important;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.cta-banner .outline-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 42px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.footer-top p {
  font-size: 13px;
  color: var(--muted);
  max-width: 420px;
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-phones {
    max-width: 520px;
    margin-inline: auto;
  }
  .stat-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid,
  .card-grid-3,
  .steps-list,
  .screen-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav {
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .nav-links {
    gap: 12px;
    font-size: 12px;
  }
  .nav-links .hide-mobile {
    display: none;
  }
  .qr-box {
    display: none;
  }
  .cta-banner {
    padding: 26px;
  }
  .spec-table th {
    width: 130px;
  }
}
