/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: #1c1f23;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }

:root {
  --primary: #ef443b;
  --primary-dark: #d4362e;
  --bg-soft: #f7f8fa;
  --text: #1c1f23;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}
.logo-mark {
  color: var(--primary);
  font-size: 22px;
  transform: translateY(-1px);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-weight: 500;
  color: #2b3138;
  font-size: 15px;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.btn { color: #fff; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #1c1f23;
  border-radius: 2px;
  transition: .3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(20, 20, 30, .55), rgba(20, 20, 30, .25)),
    url('imgs/anydesk-bg.png') center/cover no-repeat,
    linear-gradient(135deg, #b91c1c 0%, #ef443b 70%, #f97316 100%);
  color: #fff;
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 60%;
  background: radial-gradient(ellipse at center top, rgba(255, 255, 255, .12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { min-width: 0; }
.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.hero .lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero .lead strong {
  color: #fff;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  margin: 0;
}
.hero-image {
  position: relative;
  min-width: 0;
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .25), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .35),
    0 10px 24px rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .18);
  transform: translateY(0);
  transition: transform .4s ease;
}
.hero-image img:hover { transform: translateY(-4px); }

/* ===== Trustbar ===== */
.trustbar {
  background: var(--bg-soft);
  text-align: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.trustbar h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.trustbar h2 span { color: var(--primary); }
.trustbar p { color: var(--muted); margin: 0; }

/* ===== Section Headings ===== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ===== Platforms ===== */
.platforms { padding: 80px 0; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.platform-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.platform-card img {
  height: 56px;
  width: auto;
  margin-bottom: 8px;
  object-fit: contain;
}
.platform-card h3 { font-size: 18px; margin: 0; }
.platform-card p { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.dl-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* ===== Features ===== */
.features {
  background: var(--bg-soft);
  padding: 80px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--border);
  transition: all .25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(239, 68, 59, .1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* ===== Pricing ===== */
.pricing { padding: 80px 0; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
}
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.price-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(239,68,59,.18);
}
.price-card .badge {
  position: absolute;
  top: -12px; right: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-tag {
  font-size: 28px;
  font-weight: 800;
  margin: 12px 0 4px;
}
.price-tag span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.price-desc { color: var(--muted); font-size: 14px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  flex: 1;
}
.price-card li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px dashed var(--border);
}
.price-card li:last-child { border-bottom: 0; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  color: var(--primary);
  font-weight: 700;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #1c1f23 0%, #2b1110 100%);
  color: #fff;
  padding: 70px 0;
}
.cta-inner { text-align: center; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); }
.cta p { opacity: .8; margin-bottom: 28px; }

/* ===== Footer ===== */
.site-footer {
  background: #0f1115;
  color: #c8cdd4;
  padding: 60px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #a3a9b1;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--primary); }
.logo-light.flex { display: flex; align-items: center;}
.logo-light .logo-text { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1f242b;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding: 72px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { max-width: 640px; margin: 0 auto; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 14px;
    align-items: stretch;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { padding: 8px 0; }
  .main-nav a.btn { text-align: center; }

  .hero { padding: 56px 0 72px; }
  .hero h1 br { display: none; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero .lead { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 0; }
  .hero-image::before { display: none; }

  .platforms, .features, .pricing { padding: 56px 0; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .platform-grid { grid-template-columns: 1fr; }
}
