/* ==========================================================================
   HxWarp - Clean, Robust, Modern & High-Legibility CSS
   ========================================================================== */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #182030;
  --bg-card-hover: #1f2a3e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  
  --accent-blue: #38bdf8;
  --accent-blue-hover: #0284c7;
  --accent-green: #34d399;
  --accent-emerald: #10b981;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);

  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-green: #059669;
  --accent-emerald: #059669;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
}

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

html {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header (Strict No-Wrap & Clean Spacing)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  height: 62px;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Header X Link */
.header-x-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.header-x-link:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.icon-btn, .text-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.icon-btn:hover, .text-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

[data-theme="dark"] .sun-icon { display: block; width: 15px; height: 15px; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; width: 15px; height: 15px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: #0284c7;
  color: #ffffff;
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.text-link {
  font-size: 0.85rem;
  color: var(--accent-blue);
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 56px 0 48px 0;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
}

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

.hero-content {
  display: flex;
  flex-direction: column;
}

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

.hero-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-green {
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.highlight-text {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Hero Author / Creator Follow Banner */
.hero-author-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(52, 211, 153, 0.06) 100%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 18px;
}

.author-avatar {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.author-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-msg {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.author-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.author-sub strong {
  color: var(--accent-green);
}

.btn-x-follow-hero {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-x-follow-hero:hover {
  background: #1e293b;
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.hero-meta-bar {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-meta-bar strong {
  color: var(--accent-green);
  font-weight: 700;
}

.sep {
  color: var(--border-strong);
}

/* Hero Live Mockup Showcase (Fixed Height Stage: Zero Jump!) */
.hero-mockup-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
}

.hero-mockup-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.hero-mockup-tab {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.15s ease;
  text-align: center;
}

.hero-mockup-tab:hover {
  color: var(--text-primary);
}

.hero-mockup-tab.active {
  background: var(--accent-blue);
  color: #ffffff;
}

.hero-mockup-stage {
  height: 255px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-mockup-view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hero-mockup-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-mac-frame {
  width: 100%;
  max-height: 250px;
}

.hero-phone-frame {
  height: 250px;
  width: auto;
  aspect-ratio: 9 / 18.5;
  background: #141b2d;
  border: 3px solid #334155;
  border-radius: 26px;
  padding: 6px 5px 8px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-phone-frame .phone-speaker-bar {
  width: 36px;
  height: 3px;
  background: #475569;
  border-radius: 2px;
  margin: 1px auto 6px auto;
  flex-shrink: 0;
}

.hero-phone-frame .phone-mockup-img {
  height: calc(100% - 10px);
  width: auto;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

.hero-mockup-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup-caption strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Sections General
   ========================================================================== */

.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.text-center {
  text-align: center;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}

.feature-box:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.feature-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.feature-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   3 Steps Simple Guide
   ========================================================================== */

.steps-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 36px;
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.2rem;
  color: var(--accent-blue);
  font-weight: 800;
}

/* Usage Tip Banner */
.usage-tip-banner {
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tip-header {
  padding: 12px 18px;
  background: rgba(56, 189, 248, 0.1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.tip-icon {
  font-size: 1.15rem;
}

.tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tip-item {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-direct {
  border-right: 1px solid var(--border);
}

.tip-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.tip-badge-green {
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.tip-badge-blue {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.tip-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tip-item p strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Mockup Frames (Mac & Phone)
   ========================================================================== */

.mac-window-frame {
  background: #141b2d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mac-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0f1523;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mac-dots {
  display: flex;
  gap: 5px;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-dot-red { background: #ff5f56; }
.mac-dot-yellow { background: #ffbd2e; }
.mac-dot-green { background: #27c93f; }

.mac-window-title {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.mac-window-actions {
  font-size: 0.7rem;
}

.mac-badge {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
}

.showcase-img-link {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

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

.phone-mockup-frame {
  width: 260px;
  max-width: 100%;
  background: #141b2d;
  border: 3px solid #334155;
  border-radius: 32px;
  padding: 10px 8px 12px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.phone-speaker-bar {
  width: 45px;
  height: 4px;
  background: #475569;
  border-radius: 2px;
  margin: 0 auto 8px auto;
}

.phone-mockup-img {
  width: 100%;
  border-radius: 22px;
  display: block;
}

/* Dual Comparison Showcase */
.dual-showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.dual-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dual-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.mockup-img-contained {
  width: 100%;
  height: auto;
  display: block;
}

.phone-mockup-contained {
  width: 220px;
  margin: 0 auto;
}

.phone-mockup-img-contained {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.screenshot-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Downloads Section
   ========================================================================== */

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

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
}

.dl-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.dl-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dl-plat-icon {
  font-size: 2rem;
  line-height: 1;
}

.dl-plat-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.dl-file-badge {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: inline-block;
}

.dl-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.dl-stats-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dl-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-sub-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Credits Grid
   ========================================================================== */

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

.credit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease;
}

.credit-card:hover {
  border-color: var(--accent-blue);
}

.credit-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
}

.license-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 1px 5px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-sm);
}

.credit-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.credit-link {
  font-size: 0.78rem;
  color: var(--accent-blue);
  margin-top: auto;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-row {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.faq-q {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-x-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.15s ease;
}

.footer-x-btn:hover {
  border-color: var(--accent-blue);
}

.footer-copy {
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
}

.modal-close {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1;
}

.modal-body {
  padding: 20px;
}

.checksum-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.checksum-filename {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.checksum-hash {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.qr-canvas-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

#qr-canvas {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
}

.qr-target-url {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 6px;
}

.qr-tip-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 990px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .steps-container {
    flex-direction: column;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
  .tip-grid {
    grid-template-columns: 1fr;
  }
  .tip-direct {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .dual-showcase-grid {
    grid-template-columns: 1fr;
  }
  .credits-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 580px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-author-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .header-actions .btn-sm {
    display: none;
  }
}
