/* Stripe-inspired homepage
   Display: 霞鹜文楷 · Body: 阿里普惠体 / Noto Sans SC fallback */

@font-face {
  font-family: "Alibaba PuHuiTi";
  font-weight: 400;
  font-display: swap;
  src: url("https://puhuiti.oss-cn-hangzhou.aliyuncs.com/AlibabaPuHuiTi-3/AlibabaPuHuiTi-3-55-Regular/AlibabaPuHuiTi-3-55-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  font-weight: 500;
  font-display: swap;
  src: url("https://puhuiti.oss-cn-hangzhou.aliyuncs.com/AlibabaPuHuiTi-3/AlibabaPuHuiTi-3-65-Medium/AlibabaPuHuiTi-3-65-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  font-weight: 700;
  font-display: swap;
  src: url("https://puhuiti.oss-cn-hangzhou.aliyuncs.com/AlibabaPuHuiTi-3/AlibabaPuHuiTi-3-85-Bold/AlibabaPuHuiTi-3-85-Bold.woff2") format("woff2");
}

:root {
  --primary: #533afd;
  --primary-deep: #4434d4;
  --primary-press: #2e2b8c;
  --primary-soft: #665efd;
  --primary-subdued: #b9b9f9;
  --brand-dark: #1c1e54;
  --ink: #0d253d;
  --ink-secondary: #273951;
  --ink-mute: #64748d;
  --on-primary: #ffffff;
  --canvas: #ffffff;
  --canvas-soft: #f6f9fc;
  --hairline: #e3e8ee;
  --hairline-input: #a8c3de;
  --shadow-blue: #003770;

  --font-display: "LXGW WenKai", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Alibaba PuHuiTi", "Noto Sans SC", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --max-width: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 72px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Display titles use 霞鹜文楷（工具名用无衬线，便于扫读） */
.nav-title,
.hero-section h1,
.section-title,
.footer-title {
  font-family: var(--font-display);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(227, 232, 238, 0.75);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(13, 37, 61, 0.04);
}

/* ========== Hero ========== */
.hero-section {
  position: relative;
  padding: 72px 24px 64px;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(72vh, 620px);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 70% at 8% 20%, rgba(245, 233, 212, 0.95) 0%, transparent 58%),
    radial-gradient(ellipse 45% 60% at 28% 10%, rgba(255, 196, 140, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 48% 0%, rgba(185, 185, 249, 0.75) 0%, transparent 58%),
    radial-gradient(ellipse 55% 75% at 72% 18%, rgba(83, 58, 253, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 45% 65% at 92% 28%, rgba(249, 107, 238, 0.38) 0%, transparent 52%),
    radial-gradient(ellipse 40% 50% at 85% 55%, rgba(234, 34, 97, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #f8f4ff 0%, #f6f9fc 55%, #ffffff 100%);
}

.hero-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 40% at 60% 40%, rgba(102, 94, 253, 0.2), transparent 70%),
    radial-gradient(ellipse 25% 35% at 18% 55%, rgba(245, 233, 212, 0.45), transparent 70%);
}

.hero-mesh::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, #ffffff);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-deep);
  margin-bottom: 18px;
}

.hero-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(83, 58, 253, 0.16);
}

.hero-section h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  box-shadow:
    0 1px 2px rgba(0, 55, 112, 0.08),
    0 4px 12px rgba(83, 58, 253, 0.22);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--primary-deep);
  box-shadow:
    0 2px 4px rgba(0, 55, 112, 0.08),
    0 8px 20px rgba(83, 58, 253, 0.28);
}

.btn-primary:active {
  background: var(--primary-press);
  transform: translateY(1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--primary);
  border: 1px solid rgba(83, 58, 253, 0.28);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(83, 58, 253, 0.04);
  border-color: var(--primary);
}

/* Promo card — hover flip to QR */
.hero-promo-block {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-banner-link {
  display: block;
  width: 100%;
  max-width: 400px;
}

.hero-banner-flip {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition:
    transform 0.55s var(--ease),
    min-height 0.45s var(--ease);
}

.hero-banner-link:hover .hero-banner-flip,
.hero-banner-link:focus-visible .hero-banner-flip {
  transform: rotateY(180deg);
  min-height: 300px;
}

.hero-banner-face {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow:
    rgba(0, 55, 112, 0.08) 0 8px 24px,
    rgba(0, 55, 112, 0.04) 0 2px 6px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
}

.hero-banner-front {
  position: relative;
}

.hero-banner-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  overflow: hidden;
}

.hero-banner-link:hover .hero-banner-back,
.hero-banner-link:focus-visible .hero-banner-back {
  min-height: 300px;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.hero-banner-qr-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 0;
  box-sizing: border-box;
}

.hero-banner-qr {
  width: min(88%, 200px);
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.hero-banner-back .hero-banner-meta {
  flex-shrink: 0;
}

.hero-banner-meta {
  padding: 16px 8px 8px;
  text-align: center;
}

.hero-banner-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-subdued);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.hero-banner-subtitle {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
}

/* ========== Search ========== */
.search-wrapper {
  position: relative;
  max-width: 560px;
  margin: 0 auto 56px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  display: flex;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-input);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  box-shadow: rgba(0, 55, 112, 0.06) 0 1px 3px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input::placeholder { color: var(--ink-mute); }

.search-input:focus {
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(83, 58, 253, 0.12),
    rgba(0, 55, 112, 0.06) 0 1px 3px;
}

/* ========== Sections ========== */
.sections-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.tool-section {
  scroll-margin-top: 96px;
}

.section-band {
  position: relative;
  margin-left: -24px;
  margin-right: -24px;
  padding: 40px 24px;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.section-subtitle {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-mute);
  max-width: 36em;
}

.section-counter {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  font-variant-numeric: tabular-nums;
}

/* ========== Cards ========== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  --card-brand-color: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  box-shadow: rgba(0, 55, 112, 0.06) 0 1px 3px;
  color: inherit;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #d4dce6;
  box-shadow:
    rgba(0, 55, 112, 0.08) 0 8px 24px,
    rgba(0, 55, 112, 0.04) 0 2px 6px;
}

/* 推荐卡右上角斜角标 */
.tool-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  z-index: 2;
  width: 120px;
  padding: 5px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #f04343 0%, #e11d2e 55%, #be123c 100%);
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.28);
  transform: rotate(45deg);
  pointer-events: none;
  white-space: nowrap;
}

.tool-ribbon-soon {
  background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.tool-card.featured {
  border-color: rgba(83, 58, 253, 0.18);
  box-shadow:
    rgba(0, 55, 112, 0.06) 0 1px 3px,
    0 0 0 1px rgba(83, 58, 253, 0.04);
}

.tool-card.featured:hover {
  border-color: rgba(83, 58, 253, 0.28);
  box-shadow:
    rgba(0, 55, 112, 0.08) 0 8px 24px,
    rgba(83, 58, 253, 0.1) 0 4px 12px;
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.tool-logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.tool-title-area {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.tool-name-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tool-name {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.tool-badge-pill {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  white-space: nowrap;
}

.tool-description {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 20px;
  flex: 1;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.tool-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  background: var(--canvas-soft);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.go-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.15s ease;
}

.go-btn svg {
  transition: transform 0.2s ease;
}

.tool-card:hover .go-btn {
  color: var(--primary-deep);
}

.tool-card:hover .go-btn svg {
  transform: translateX(3px);
}

/* Coming soon：可点击，跟随卡片品牌色 */
.tool-card.coming-soon {
  cursor: pointer;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--card-brand-color) 10%, white) 0%, rgba(255, 255, 255, 0.95) 42%, #f8fafc 100%);
  border-color: color-mix(in srgb, var(--card-brand-color) 22%, white);
  box-shadow: rgba(0, 55, 112, 0.04) 0 1px 3px;
  opacity: 1;
  filter: none;
}

.tool-card.coming-soon:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-brand-color) 32%, white);
  box-shadow:
    rgba(0, 55, 112, 0.08) 0 8px 24px,
    color-mix(in srgb, var(--card-brand-color) 12%, transparent) 0 4px 12px;
}

.tool-card.coming-soon .tool-name {
  color: color-mix(in srgb, var(--card-brand-color) 72%, #0f172a);
}

.tool-card.coming-soon .tool-description {
  color: #64748d;
}

.tool-card.coming-soon .tool-tag {
  color: var(--card-brand-color);
  background: color-mix(in srgb, var(--card-brand-color) 10%, white);
  border-color: color-mix(in srgb, var(--card-brand-color) 14%, white);
}

.tool-card.coming-soon .tool-footer {
  border-top-color: color-mix(in srgb, var(--card-brand-color) 16%, white);
}

.tool-logo-wrapper.is-mark {
  background: transparent;
  border: none;
  overflow: visible;
}

.tool-logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
}

/* Word / PPT 文件图标 */
.tool-logo-file .file-sheet {
  position: absolute;
  inset: 2px 6px 2px 8px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 18px 6px 7px;
}

.tool-logo-file .file-sheet i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #cbd5e1;
}

.tool-logo-file .file-sheet i:nth-child(1) { width: 88%; }
.tool-logo-file .file-sheet i:nth-child(2) { width: 70%; }
.tool-logo-file .file-sheet i:nth-child(3) { width: 56%; }

.tool-logo-file .file-fold {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #f8fafc 50%, #e2e8f0 50%);
  border-radius: 0 3px 0 0;
  box-shadow: -1px 1px 0 rgba(15, 23, 42, 0.06);
}

.tool-logo-file .file-badge {
  position: absolute;
  left: 2px;
  bottom: 6px;
  width: 22px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18);
}

.tool-logo-word .file-badge {
  background: linear-gradient(145deg, #2b7cd3 0%, #185abd 100%);
}

.tool-logo-word .file-sheet {
  border-color: rgba(43, 124, 211, 0.18);
}

.tool-logo-ppt .file-badge {
  background: linear-gradient(145deg, #ff8f6b 0%, #c43e1c 100%);
}

.tool-logo-ppt .file-sheet {
  border-color: rgba(196, 62, 28, 0.18);
}

.tool-logo-classmate .file-badge {
  background: linear-gradient(145deg, #2dd4bf 0%, #0f766e 100%);
  font-size: 10px;
  letter-spacing: 0;
}

.tool-logo-classmate .file-sheet {
  border-color: rgba(15, 118, 110, 0.18);
}

.soon-preview {
  display: flex;
  gap: 8px;
  margin: 4px 0 18px;
}

.soon-preview-slide {
  flex: 1;
  min-height: 52px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid color-mix(in srgb, var(--card-brand-color) 18%, white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.soon-preview-slide.dim {
  opacity: 0.55;
  transform: scale(0.96);
  transform-origin: left center;
}

.soon-preview-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-brand-color) 28%, white);
  width: 70%;
}

.soon-preview-bar.wide { width: 88%; background: color-mix(in srgb, var(--card-brand-color) 42%, white); }
.soon-preview-bar.short { width: 42%; background: color-mix(in srgb, var(--card-brand-color) 18%, white); }

.go-btn-soon {
  color: #059669;
  cursor: pointer;
  font-weight: 500;
}

.tool-card.coming-soon:hover .go-btn-soon {
  color: #047857;
}

/* Empty / loading */
.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--canvas-soft);
}

.empty-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-mute);
}

.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--ink-mute);
  font-size: 15px;
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 56px 24px 40px;
  margin-top: 24px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.footer-brand p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-mute);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-mail {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-mail:hover {
  text-decoration: underline;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.4s var(--ease) forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-banner-link {
    max-width: 380px;
    margin: 0 auto;
  }

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

  .section-title {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 64px;
    font-size: 14px;
  }

  .navbar { height: 64px; }
  .nav-container { padding: 0 16px; }
  .nav-logo { height: 34px; }
  .nav-title { font-size: 16px; }
  .nav-links { display: none; }

  .hero-section {
    padding: 48px 16px 40px;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .container {
    padding: 0 16px 64px;
  }

  .section-band {
    margin-left: -16px;
    margin-right: -16px;
    padding: 32px 16px;
  }

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

  .tool-card {
    padding: 22px;
    min-height: 0;
  }

  .tool-name {
    font-size: 18px;
  }

  .site-footer {
    padding: 40px 16px 32px;
  }
}

/* ========== Coming soon modal ========== */
body.soon-modal-open {
  overflow: hidden;
}

.soon-modal[hidden] {
  display: none !important;
}

.soon-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.soon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.soon-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 32px 28px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.16),
    0 4px 12px rgba(15, 23, 42, 0.06);
  text-align: center;
  animation: soon-modal-in 0.22s var(--ease);
}

@keyframes soon-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.soon-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.soon-modal-close:hover {
  background: var(--canvas-soft);
  color: var(--ink);
}

.soon-modal-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
}

.soon-modal-icon .file-sheet {
  position: absolute;
  inset: 4px 8px 4px 10px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid rgba(196, 62, 28, 0.18);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 22px 7px 8px;
}

.soon-modal-icon .file-sheet i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #cbd5e1;
}

.soon-modal-icon .file-sheet i:nth-child(1) { width: 88%; }
.soon-modal-icon .file-sheet i:nth-child(2) { width: 70%; }
.soon-modal-icon .file-sheet i:nth-child(3) { width: 56%; }

.soon-modal-icon .file-fold {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #f8fafc 50%, #e2e8f0 50%);
  border-radius: 0 4px 0 0;
}

.soon-modal-icon .file-badge {
  position: absolute;
  left: 4px;
  bottom: 8px;
  width: 26px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #ff8f6b 0%, #c43e1c 100%);
  box-shadow: 0 2px 6px rgba(196, 62, 28, 0.25);
}

.soon-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
}

.soon-modal-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 24px;
}

.soon-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.soon-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.34);
}
