/* Hive marketing site — light minimal (aligned with apps/lib/theme/app_theme.dart) */
:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f4;
  --text: #1a1a1a;
  --text-muted: #6e6e6e;
  --border: #e8e8e8;
  --border-strong: #d9d9d9;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.08);
  --max-width: 1080px;
  --header-h: 3.75rem;
  --radius: 16px;
  --radius-pill: 999px;
  --gap-grid: 1rem;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, sans-serif;
  --font-en: "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img:not(.logo__mark) {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}

a:hover {
  opacity: 0.7;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.accent-line {
  width: 3rem;
  height: 1px;
  margin: 1.25rem auto;
  background: var(--border-strong);
  border: none;
}

.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.section-lead strong {
  color: var(--text);
  font-weight: 600;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.logo:hover {
  opacity: 1;
}

.logo__mark {
  flex-shrink: 0;
  display: block;
  width: 30px;
  height: 30px;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  vertical-align: middle;
  /* Match apps/lib/pages/splash_page.dart: BorderRadius.circular(size * 0.22) */
  border-radius: 22%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.nav a:not(.btn):hover {
  color: var(--text);
  opacity: 1;
}

.nav .btn {
  padding: 0.38rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  opacity: 1;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--text);
  opacity: 1;
}

/* Hero */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}

.hero__title {
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__en {
  font-family: var(--font-en);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero__vision {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 28rem;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sections */
section {
  padding: 5.5rem 0;
}

section:nth-child(even) {
  background: var(--bg-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-lead {
  margin-bottom: 0;
}

/* Grids */
.grid {
  display: grid;
  gap: var(--gap-grid);
  align-items: stretch;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

section:nth-child(even) .card {
  background: var(--bg);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  color: var(--text-muted);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card__index {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.card p + p {
  margin-top: 0.65rem;
}

.card__highlight {
  margin-top: 0.75rem !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
}

/* Pain list */
.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--gap-grid);
  grid-template-columns: repeat(3, 1fr);
}

.pain-list li {
  padding: 1.35rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.pain-list li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.pain-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.pain-list span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.callout {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.15rem 1.5rem;
  background: var(--bg-muted);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Product hub */
.hub {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.hub__base {
  text-align: center;
  padding: 2rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hub__base-badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hub__base-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hub__base-desc {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hub__flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 2rem;
  color: var(--border-strong);
}

.hub__flow-line {
  width: 1px;
  flex: 1;
  background: var(--border-strong);
}

.hub__flow-node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hub__flow-branches {
  display: none;
}

.hub__platforms {
  padding: 0;
}

.hub__platforms-label {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
  width: 100%;
}

.platform-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 5rem;
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.platform-pill:hover,
.platform-pill:focus-visible {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  opacity: 1;
}

.platform-pill strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.platform-section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.platform-section .card {
  height: 100%;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-muted);
  color: var(--text-muted);
  border-radius: 6px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 0.75rem;
}

.stats-table th,
.stats-table td {
  padding: 0.5rem 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.stats-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.stats-table td {
  color: var(--text-muted);
}

.stats-table td:first-child {
  color: var(--text);
}

.highlight-metric {
  color: var(--text);
  font-weight: 600;
}

.funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-grid);
  counter-reset: step;
}

.funnel__step {
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  counter-increment: step;
  transition: box-shadow 0.2s, transform 0.2s;
}

.funnel__step:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.funnel__step::before {
  content: counter(step);
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.funnel__step h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.funnel__step p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.contact {
  text-align: center;
}

.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 26rem;
  margin: 1.5rem auto 0;
  padding: 1.85rem 2.25rem 1.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.contact__role {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.18rem 0.7rem;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
}

.contact__name {
  margin: 0.7rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  width: 100%;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: transparent;
  border-radius: 8px;
  transition: background 0.15s;
}

.contact__channel:hover {
  background: var(--bg-muted);
  opacity: 1;
}

.contact__channel-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-radius: 7px;
}

.contact__channel-icon svg {
  width: 14px;
  height: 14px;
}

.contact__channel-value {
  font-variant-numeric: tabular-nums;
}

.contact__actions {
  margin-top: 2.25rem;
}

.site-footer {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.site-footer p {
  margin: 0.2rem 0;
}

/* Download page */
.page--download .site-header {
  border-bottom-color: var(--border);
}

.btn--disabled,
.btn--disabled:hover {
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.download-hero {
  padding: calc(var(--header-h) + 4rem) 0 2.5rem;
  text-align: center;
}

.download-hero .section-label {
  display: inline-block;
}

.download-hero .section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.download-hero .section-lead {
  margin-bottom: 0.75rem;
}

.download-hero__sep {
  margin: 0 0.4rem;
  color: var(--border-strong);
}

.download-hero__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.download-platforms {
  padding: 2rem 0 4.5rem;
}

.download-platforms .container {
  background: transparent;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
  max-width: 56rem;
  margin: 0 auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.4rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.download-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.download-card.is-current {
  border-color: var(--text);
  order: -1;
}

.download-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.download-card__head > div {
  flex: 1;
  min-width: 0;
}

.download-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  color: var(--text);
  border-radius: 10px;
}

.download-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.download-card__meta {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.download-card__badge {
  display: none;
  flex-shrink: 0;
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.download-card.is-current .download-card__badge {
  display: inline-flex;
  align-items: center;
}

.download-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.download-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.download-card__actions .btn {
  flex: 1;
  min-width: 9rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

.download-enterprise {
  padding: 3.5rem 0 5rem;
}

.download-enterprise__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 2.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.download-enterprise__card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background-image: radial-gradient(circle, rgba(26, 26, 26, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  transform: translate(70px, -70px);
  pointer-events: none;
}

.download-enterprise__body {
  position: relative;
  z-index: 1;
}

.download-enterprise__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.22rem 0.7rem;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
}

.download-enterprise__card h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.download-enterprise__card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 38rem;
}

.download-enterprise__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
}

.download-enterprise__actions .btn {
  min-width: 9rem;
}

.download-faq {
  background: var(--bg-subtle);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
  margin: 0 auto;
}

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.faq-list details[open] {
  border-color: var(--border-strong);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::after {
  content: "+";
  margin-left: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .grid--3,
  .pain-list,
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .download-enterprise__card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.25rem 1.75rem;
  }

  .download-enterprise__actions .btn {
    width: 100%;
  }

  .download-enterprise__card::before {
    width: 200px;
    height: 200px;
    transform: translate(60px, -60px);
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .grid--3,
  .grid--2,
  .pain-list,
  .platform-grid,
  .funnel,
  .download-grid {
    grid-template-columns: 1fr;
  }
}

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

  .card:hover,
  .platform-pill:hover,
  .pain-list li:hover,
  .funnel__step:hover,
  .download-card:hover {
    transform: none;
  }
}
