/* AI Agent Clean — official site (matches AMCDesignSystem dark chrome) */

:root {
  color-scheme: dark;
  --bg: #060608;
  --bg-elevated: #0f1016;
  --bg-card: #14141c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f3f7;
  --muted: #9aa3b2;
  --accent: #7c8dff;
  --accent-2: #4f46e5;
  --radius: 16px;
  --radius-lg: 22px;
  --max: 1120px;
  --nav-h: 64px;

  /* module theme accents */
  --c-smart: #7c8dff;
  --c-ai: #a78bfa;
  --c-junk: #5bb0ff;
  --c-mail: #46cdf0;
  --c-trash: #43d9a0;
  --c-malware: #ff8a8a;
  --c-privacy: #fbc55a;
  --c-opt: #5be584;
  --c-maint: #43dac8;
  --c-uninst: #ac93fb;
  --c-upd: #46bdf8;
  --c-space: #c88bfc;
  --c-files: #9385ff;
  --c-shred: #fb8593;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(18px);
}

.site-nav .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.lang-btn.active {
  color: #fff;
  background: rgba(124, 141, 255, 0.2);
  border-color: rgba(124, 141, 255, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 16px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 141, 255, 0.22), transparent),
    radial-gradient(ellipse 40% 35% at 80% 20%, rgba(167, 139, 250, 0.12), transparent);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--accent);
  background: rgba(124, 141, 255, 0.12);
  border: 1px solid rgba(124, 141, 255, 0.25);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 20%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34em;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(124, 141, 255, 0.15);
}

.hero-shot img {
  width: 100%;
}

/* —— Sections —— */
section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* —— Highlight cards —— */
.highlight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.highlight-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent));
}

.highlight-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Feature groups —— */
.feature-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-group h3 .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--group-color, var(--accent));
  box-shadow: 0 0 12px var(--group-color, var(--accent));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.feature-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.feature-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.feature-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.feature-item span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.screenshot-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.screenshot-card figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* —— Privacy / pricing —— */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.info-panel h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.info-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.info-panel li {
  margin-bottom: 8px;
}

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

.price-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.price-card.featured {
  border-color: rgba(124, 141, 255, 0.45);
  box-shadow: 0 0 40px rgba(124, 141, 255, 0.12);
}

.price-card .plan {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.price-card .amount {
  margin: 8px 0;
  font-size: 1.75rem;
  font-weight: 800;
}

.price-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.note-box {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(67, 218, 200, 0.08);
  border: 1px solid rgba(67, 218, 200, 0.2);
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Compare table —— */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

table.compare th,
table.compare td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

table.compare th:first-child,
table.compare td:first-child {
  text-align: left;
}

table.compare thead th {
  background: var(--bg-elevated);
  font-weight: 650;
}

table.compare tbody tr:last-child td {
  border-bottom: none;
}

table.compare .yes {
  color: #43d9a0;
  font-weight: 700;
}

/* —— Install —— */
.install-block {
  padding: 20px 22px;
  border-radius: 14px;
  background: #0a0a0e;
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  color: #c8cdd8;
  overflow-x: auto;
  margin: 12px 0;
}

/* —— Footer —— */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-bottom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom > * {
  display: inline;
}

/* —— i18n —— */
[lang="en"] .i18n-zh,
[lang="zh-Hans"] .i18n-en {
  display: none !important;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .highlight-row,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px 20px;
    background: rgba(6, 6, 8, 0.96);
    border-bottom: 1px solid var(--border);
  }

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

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  section {
    padding: 52px 0;
  }

  .hero {
    padding-top: 48px;
  }
}

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