/*!
Theme Name: 爱思助手 (i4 Tool)
Theme URI: https://www.i4.cn/
Author: i4 Tool Team
Author URI: https://www.i4.cn/
Description: 爱思助手苹果设备管理工具官网主题，专业软件产品风格。支持设备检测、备份恢复、刷机服务、文件传输、工具下载与技术支持展示。集成 WP Customizer 配置主题颜色、Logo、版本信息、下载链接与客服入口。
Version: 1.1.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wm-i4tool
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, wide-blocks

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Design Tokens (CSS Custom Properties)
# Generic - Reset & Box-sizing
# Base - Typography, Elements, Links, Forms
# Layout - Container, Grid, Sections
# Components
  - Header & Navigation
  - Hero
  - Features Grid
  - Workflow / Steps
  - Tool Cards
  - Stats / Data Management
  - Download CTA
  - Support / FAQ
  - Footer
  - Buttons
  - Cards
  - Badges
# Utilities - Accessibility, Alignments, Animations
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Design Tokens
--------------------------------------------------------------*/
:root {
  /* Brand colors - configurable via Customizer */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-soft: rgba(37, 99, 235, 0.08);
  --color-secondary: #0F172A;
  --color-secondary-soft: rgba(15, 23, 42, 0.6);
  --color-accent: #38BDF8;
  --color-accent-hover: #0EA5E9;

  /* Surfaces */
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;

  /* Text */
  --color-text: #0F172A;
  --color-text-secondary: #334155;
  --color-muted: #64748B;
  --color-muted-light: #94A3B8;
  --color-on-primary: #FFFFFF;
  --color-on-secondary: #FFFFFF;

  /* Status */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #3B82F6;

  /* Spacing scale (8px rhythm) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows (lightweight) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.10);
  --shadow-primary: 0 8px 24px rgba(37, 99, 235, 0.24);

  /* Typography */
  --font-sans: 'Inter', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */
  --fs-2xl: 1.875rem;   /* 30px */
  --fs-3xl: 2.25rem;    /* 36px */
  --fs-4xl: 3rem;       /* 48px */
  --fs-5xl: 3.75rem;    /* 60px */

  --lh-tight: 1.25;
  --lh-snug: 1.4;
  --lh-base: 1.6;
  --lh-loose: 1.75;

  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-3);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 320ms;

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
}

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-2);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-2);
  color: var(--color-text-secondary);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

.wm-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.wm-section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.wm-section--xl {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.wm-section--dark {
  background: var(--color-secondary);
  color: var(--color-on-secondary);
}

.wm-section--dark h1,
.wm-section--dark h2,
.wm-section--dark h3,
.wm-section--dark h4 {
  color: var(--color-on-secondary);
}

.wm-section--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.wm-section--gradient {
  background: linear-gradient(135deg, #F0F7FF 0%, #F8FAFC 100%);
}

.wm-grid {
  display: grid;
  gap: var(--space-3);
}

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

.wm-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.wm-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.wm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.wm-section-title {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  margin-bottom: var(--space-2);
}

.wm-section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto var(--space-5);
}

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

/*--------------------------------------------------------------
# Components - Buttons
--------------------------------------------------------------*/

.wm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
}

.wm-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.wm-btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-primary);
}

.wm-btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.30);
}

.wm-btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.wm-btn--secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.wm-btn--ghost {
  background: transparent;
  color: var(--color-text);
}

.wm-btn--ghost:hover {
  background: var(--color-surface-alt);
}

.wm-btn--light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.wm-btn--light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.wm-btn--lg {
  padding: 16px 32px;
  font-size: var(--fs-md);
}

.wm-btn--block {
  display: flex;
  width: 100%;
}

.wm-btn .wm-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/*--------------------------------------------------------------
# Components - Header
--------------------------------------------------------------*/

.wm-site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.wm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 68px;
}

.wm-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--color-text);
}

.wm-header__brand img {
  height: 36px;
  width: auto;
}

.wm-header__nav {
  display: none;
}

.wm-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.wm-header__nav-link {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 8px 4px;
  transition: color var(--dur-fast) var(--ease-out);
}

.wm-header__nav-link:hover,
.wm-header__nav-link:focus-visible {
  color: var(--color-primary);
}

.wm-header__nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.wm-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.wm-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.wm-header__toggle:hover {
  background: var(--color-surface-alt);
}

.wm-header__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.wm-header__toggle svg {
  width: 22px;
  height: 22px;
}

.wm-mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-2) 0;
}

.wm-mobile-nav.is-open {
  display: block;
}

.wm-mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wm-mobile-nav__link {
  display: block;
  padding: 12px var(--space-2);
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.wm-mobile-nav__link:hover,
.wm-mobile-nav__link:focus-visible {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.wm-mobile-nav__actions {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

@media (min-width: 1024px) {
  .wm-header__nav { display: block; }
  .wm-header__toggle { display: none; }
  .wm-mobile-nav { display: none !important; }
}

/*--------------------------------------------------------------
# Components - Hero
--------------------------------------------------------------*/

.wm-hero {
  position: relative;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.10), transparent 50%),
    var(--color-bg);
}

.wm-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.wm-hero__content {
  max-width: 620px;
}

.wm-hero__title {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.wm-hero__title-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wm-hero__subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--lh-loose);
}

.wm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.wm-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.wm-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wm-hero__meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

.wm-hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(15, 23, 42, 0.95));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.wm-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.35), transparent 60%);
  pointer-events: none;
}

.wm-mock-window {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.wm-mock-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wm-mock-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.wm-mock-window__body {
  padding: var(--space-3);
  color: #fff;
}

.wm-mock-device {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: center;
}

.wm-mock-device__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wm-mock-device__icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.wm-mock-device__info h4 {
  margin: 0 0 4px;
  font-size: var(--fs-md);
  color: #fff;
}

.wm-mock-device__info p {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
}

.wm-mock-status {
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.wm-mock-status__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: wm-pulse 2s infinite;
}

@keyframes wm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.wm-mock-actions {
  display: flex;
  gap: 8px;
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.wm-mock-action {
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: #fff;
  text-align: center;
}

@media (min-width: 1024px) {
  .wm-hero { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .wm-hero__inner { grid-template-columns: 1.05fr 1fr; gap: var(--space-6); }
}

/*--------------------------------------------------------------
# Components - Stats Bar
--------------------------------------------------------------*/

.wm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.wm-stat {
  text-align: center;
  padding: var(--space-2);
}

.wm-stat__value {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.wm-stat__label {
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

@media (min-width: 768px) {
  .wm-stats { grid-template-columns: repeat(4, 1fr); }
}

/*--------------------------------------------------------------
# Components - Feature Cards
--------------------------------------------------------------*/

.wm-feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  height: 100%;
}

.wm-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-soft);
}

.wm-feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}

.wm-feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.wm-feature-card__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0;
}

.wm-feature-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  margin: 0;
  line-height: var(--lh-loose);
}

.wm-feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding-top: var(--space-1);
}

.wm-feature-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.wm-feature-card__link:hover svg {
  transform: translateX(3px);
}

/*--------------------------------------------------------------
# Components - Workflow Steps
--------------------------------------------------------------*/

.wm-workflow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  counter-reset: wm-step;
}

.wm-step {
  position: relative;
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  counter-increment: wm-step;
}

.wm-step__num {
  position: absolute;
  top: -16px;
  left: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-md);
  box-shadow: var(--shadow-primary);
}

.wm-step__num::before {
  content: counter(wm-step, decimal-leading-zero);
}

.wm-step__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: var(--space-1) 0 var(--space-1);
}

.wm-step__desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

@media (min-width: 768px) {
  .wm-workflow { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}

@media (min-width: 1024px) {
  .wm-workflow { gap: var(--space-5); }
}

/*--------------------------------------------------------------
# Components - Tool Cards
--------------------------------------------------------------*/

.wm-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.wm-tool-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

.wm-tool-card__badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: 4px 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.wm-tool-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.wm-tool-card__icon svg {
  width: 28px;
  height: 28px;
}

.wm-tool-card__title {
  font-size: var(--fs-lg);
  margin: 0 0 var(--space-1);
}

.wm-tool-card__meta {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-1) 0 var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

.wm-tool-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wm-tool-card__desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  margin: 0 0 var(--space-2);
  flex: 1;
}

.wm-tool-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.wm-tool-card__actions .wm-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: var(--fs-sm);
}

@media (min-width: 768px) {
  .wm-tools { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .wm-tools { grid-template-columns: repeat(3, 1fr); }
}

/*--------------------------------------------------------------
# Components - Download Section
--------------------------------------------------------------*/

.wm-download {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--color-primary), #1E40AF);
  border-radius: var(--radius-xl);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.wm-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.35), transparent 60%);
  pointer-events: none;
}

.wm-download__info {
  position: relative;
}

.wm-download__version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: var(--space-2);
  backdrop-filter: blur(8px);
}

.wm-download__title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  color: #fff;
  margin-bottom: var(--space-2);
}

.wm-download__desc {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-3);
  max-width: 520px;
}

.wm-download__platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
  position: relative;
}

.wm-platform-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  color: #fff;
  transition: background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.wm-platform-btn:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.wm-platform-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

.wm-platform-btn__label {
  display: block;
  font-size: var(--fs-xs);
  opacity: 0.75;
}

.wm-platform-btn__name {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
}

@media (min-width: 768px) {
  .wm-download { grid-template-columns: 1.4fr 1fr; gap: var(--space-5); align-items: center; padding: var(--space-6); }
  .wm-download__platforms { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
# Components - Data Management Showcase
--------------------------------------------------------------*/

.wm-data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.wm-data-card {
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.wm-data-card:hover {
  border-color: var(--color-primary-soft);
}

.wm-data-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}

.wm-data-card__name {
  font-weight: 600;
  margin: 0;
  font-size: var(--fs-base);
}

.wm-data-card__count {
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

.wm-data-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  overflow: hidden;
  position: relative;
}

.wm-data-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
}

@media (min-width: 768px) {
  .wm-data-grid { grid-template-columns: repeat(2, 1fr); }
}

/*--------------------------------------------------------------
# Components - Support / FAQ
--------------------------------------------------------------*/

.wm-support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.wm-support-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.wm-support-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.wm-support-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-1);
}

.wm-support-card__icon svg {
  width: 28px;
  height: 28px;
}

.wm-support-card__title {
  margin: 0;
  font-size: var(--fs-lg);
}

.wm-support-card__desc {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

@media (min-width: 768px) {
  .wm-support-grid { grid-template-columns: repeat(3, 1fr); }
}

/*--------------------------------------------------------------
# Components - Footer
--------------------------------------------------------------*/

.wm-site-footer {
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-6) 0 var(--space-3);
  margin-top: var(--space-6);
}

.wm-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wm-footer__brand {
  max-width: 360px;
}

.wm-footer__brand img {
  height: 36px;
  margin-bottom: var(--space-2);
}

.wm-footer__brand-name {
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-lg);
  margin: 0 0 var(--space-1);
}

.wm-footer__brand-desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.wm-footer__col h4 {
  color: #fff;
  font-size: var(--fs-base);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.wm-footer__list li {
  margin-bottom: 10px;
}

.wm-footer__list a {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease-out);
}

.wm-footer__list a:hover,
.wm-footer__list a:focus-visible {
  color: #fff;
}

.wm-footer__list a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.wm-footer__bottom {
  padding-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  text-align: center;
}

.wm-footer__legal {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.wm-footer__legal a {
  color: rgba(255, 255, 255, 0.65);
}

.wm-footer__legal a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .wm-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-5); }
  .wm-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .wm-footer__legal { justify-content: flex-end; }
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

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

.wm-sr-only:focus {
  background: var(--color-surface);
  color: var(--color-primary);
  clip: auto !important;
  width: auto;
  height: auto;
  padding: 12px 20px;
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.wm-fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.wm-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wm-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-3) 0;
}

/*--------------------------------------------------------------
# Reduced motion
--------------------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wm-mock-status__pulse {
    animation: none;
  }
}

/*--------------------------------------------------------------
# WordPress Core
--------------------------------------------------------------*/

.alignleft {
  float: left;
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
}

.alignright {
  float: right;
  margin-left: var(--space-2);
  margin-bottom: var(--space-2);
}

.aligncenter {
  display: block;
  margin: 0 auto var(--space-2);
}

.wp-caption {
  margin-bottom: var(--space-2);
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  text-align: center;
  margin-top: 8px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 2px var(--color-primary);
  clip: auto !important;
  clip-path: none;
  color: var(--color-primary);
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}
