/* PMmana Official Website */

:root {
  --bg: #f7f8fb;
  --bg-alt: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --cyan: #13c2c2;
  --purple: #722ed1;
  --indigo: #2f54eb;
  --green: #52c41a;
  --orange: #fa8c16;
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  /** 产品截图窗口圆角（略大于 macOS 10pt，官网展示更柔和） */
  --macos-window-radius: 18px;
  --container: 1120px;
  --font: "DM Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

main section[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 40px, 760px);
}

.section {
  padding: 96px 0;
}

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

.section-head {
  text-align: center;
  margin: 0 auto 56px;
}

.section-head-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 520px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.section-desc,
.hero-desc {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(90deg, #1677ff 0%, #13c2c2 45%, #722ed1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.34);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(22, 119, 255, 0.35);
  background: #fff;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: var(--header-bg);
  border-bottom-color: rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.site-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  background: rgba(22, 119, 255, 0.08);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(22, 119, 255, 0.12), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(19, 194, 194, 0.1), transparent 38%),
    radial-gradient(circle at 70% 80%, rgba(114, 46, 209, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.badge-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.12), rgba(19, 194, 194, 0.1));
  border: 1px solid rgba(22, 119, 255, 0.2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.badge-muted {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.brand-logo {
  flex-shrink: 0;
}

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

.hero-screenshot {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #151b28;
  background: #fff;
}

.mock-app-hero {
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mock app UI */
.mock-app {
  display: flex;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1.05;
  border-radius: 20px;
  overflow: hidden;
  background: #151b28;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-app-wide {
  max-width: 100%;
  aspect-ratio: 16 / 10;
}

.mock-sidebar {
  width: 18%;
  padding: 16px 8px;
  background: #111722;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mock-sidebar-reports {
  width: 28%;
  padding: 14px;
  align-items: stretch;
}

.mock-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #863bff, #47bfff);
}

.mock-nav-item {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mock-nav-item.active {
  background: rgba(22, 119, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.35);
}

.mock-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #efefef;
}

.mock-welcome {
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.12), #fff 72%);
}

.mock-welcome.wide {
  height: 48px;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

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

.mock-stat {
  height: 52px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.mock-stat.sm {
  height: 44px;
}

.mock-chart {
  flex: 1;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.mock-chart.tall {
  min-height: 140px;
}

.mock-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
  flex: 1;
}

.mock-calendar {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.mock-breadcrumb {
  height: 20px;
  width: 40%;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
}

.mock-tabs {
  display: flex;
  gap: 8px;
}

.mock-tabs span {
  width: 56px;
  height: 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

.mock-tabs span.on {
  background: rgba(22, 119, 255, 0.18);
}

.mock-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.mock-table.dense .mock-row {
  height: 14px;
}

.mock-row {
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
}

.mock-filter {
  height: 80px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mock-type-grid {
  flex: 1;
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.mock-master-detail .mock-main {
  flex-direction: row;
  gap: 8px;
}

.mock-list-pane {
  width: 34%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-detail-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-list-pane .mock-filter {
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
}

/* Vision */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}

.vision-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.vision-pain {
  background: #fff;
}

.vision-solution {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.06), rgba(114, 46, 209, 0.04));
}

.vision-card h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.vision-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.vision-card li + li {
  margin-top: 10px;
}

.vision-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 28px;
  padding-top: 48px;
}

.belief-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.belief-strip span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.06);
  border: 1px solid rgba(22, 119, 255, 0.12);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* Module map */
.module-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.module-node {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-alt + .section .module-node,
.section:not(.section-alt) .module-node {
  background: #fff;
}

.module-node:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(22, 119, 255, 0.25);
}

.module-primary {
  grid-column: span 1;
}

.module-secondary {
  grid-column: span 1;
}

.module-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 14px;
}

.module-node strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.module-node p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Platform grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.platform-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
}

.platform-card img {
  margin-bottom: 14px;
}

.platform-card h3 {
  margin-bottom: 10px;
}

.platform-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.platform-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 20px;
}

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

.info-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.info-card h3 {
  margin: 16px 0 8px;
}

.info-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.icon-blue { background: linear-gradient(135deg, #1677ff, #69b1ff); }
.icon-cyan { background: linear-gradient(135deg, #13c2c2, #5cdbd3); }
.icon-purple { background: linear-gradient(135deg, #722ed1, #b37feb); }
.icon-indigo { background: linear-gradient(135deg, #2f54eb, #85a5ff); }
.icon-green { background: linear-gradient(135deg, #52c41a, #95de64); }
.icon-orange { background: linear-gradient(135deg, #fa8c16, #ffc069); }

/* Highlights */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.highlight-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.highlight-num {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.highlight-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.highlight-card p {
  margin: 0;
  color: var(--text-secondary);
}

/* Preview tabs */
.preview-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.preview-tab {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-weight: 500;
}

.preview-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.preview-stage {
  border-radius: var(--macos-window-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.preview-panel {
  display: none;
  overflow: hidden;
  border-radius: var(--macos-window-radius);
}

.preview-panel.active {
  display: block;
}

.preview-image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #151b28;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

/* Features */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.section-alt + .section .feature-row,
.section:not(.section-alt) .feature-row {
  background: #fff;
}

.feature-row.reverse {
  grid-template-columns: 220px 1fr;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-copy p {
  margin: 12px 0 0;
  color: var(--text-secondary);
}

.feature-bullets {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.feature-bullets li + li {
  margin-top: 6px;
}

.feature-icon-block {
  width: 120px;
  height: 120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow);
}

/* Steps */
.steps {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.step-card {
  flex: 1;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
}

.step-badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(22, 119, 255, 0.1);
  color: var(--primary);
  font-weight: 700;
}

.step-card p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.step-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 24px;
  flex-shrink: 0;
}

/* Download */
.download-groups {
  display: grid;
  gap: 40px;
}

.download-group h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.download-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}

.download-icon-img {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
}

.download-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(250, 140, 22, 0.1);
  color: #d46b08;
  font-size: 12px;
  font-weight: 600;
}

.download-badge.is-ready {
  background: rgba(82, 196, 26, 0.1);
  color: #389e0d;
}

.download-link[hidden],
.download-placeholder[hidden] {
  display: none !important;
}

.download-card h4 {
  margin-bottom: 6px;
}

.download-card p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.download-card-rich {
  text-align: left;
}

.download-card-rich .download-icon-img {
  margin: 0 0 14px;
}

.download-platform-desc {
  margin: 0 0 12px !important;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.download-card-rich .platform-tag {
  margin-bottom: 10px;
}

.download-sys-note {
  margin: 0 0 8px !important;
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.trust-item {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(22, 119, 255, 0.04);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.trust-item strong {
  display: block;
  margin-bottom: 6px;
}

.trust-item span {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* About + Contact */
.about-grid,
.about-contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-block h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.contact-block-desc {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-copy p {
  color: var(--text-secondary);
}

.about-copy p + p {
  margin-top: 14px;
}

.about-meta {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.about-meta div {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.about-meta span {
  width: 88px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.about-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(114, 46, 209, 0.06));
  border: 1px solid var(--border);
}

.about-card-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.about-card li + li {
  margin-top: 10px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-secondary);
}

.faq-item p a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.contact-card strong {
  font-size: 1.05rem;
}

.contact-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* Footer */
.site-footer {
  padding: 56px 0 24px;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 260px;
  font-size: 14px;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
  margin: 0;
}

.mobile-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.35);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--primary);
  border-color: rgba(22, 119, 255, 0.35);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  flex-shrink: 0;
}

/* Sub pages */
.legal-page {
  padding: 120px 0 80px;
}

.legal-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
}

.legal-card h1 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.legal-card .back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 14px;
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
}

.legal-card ul {
  padding-left: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .vision-arrow {
    justify-content: center;
    padding: 0;
    transform: rotate(90deg);
  }

  .hero-grid,
  .about-grid,
  .about-contact-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .mock-app-hero {
    max-width: 360px;
  }

  .hero-screenshot {
    max-width: 100%;
  }

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

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual {
    order: unset;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

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

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

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .hero {
    padding-top: 112px;
  }

  .highlight-grid,
  .download-grid,
  .download-grid-4,
  .platform-grid,
  .module-map {
    grid-template-columns: 1fr;
  }

  .steps-4 {
    flex-direction: column;
  }

  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .feature-row {
    padding: 24px;
  }

  .mobile-cta {
    display: inline-flex;
  }

  .back-to-top {
    right: 16px;
    bottom: 76px;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

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

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .preview-tabs {
    flex-wrap: wrap;
  }
}
