/* Xshell Download Landing — original design, no third-party logos */

:root {
  --red-primary: #e53935;
  --red-dark: #c62828;
  --red-gradient-start: #e53935;
  --red-gradient-end: #ff7043;
  --text-dark: #1a1a1a;
  --text-muted: #5f6368;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

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

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

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--bg-light);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--text-dark);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red-primary);
}

.nav-links a.active {
  border-bottom: 2px solid var(--red-primary);
  padding-bottom: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.06) 0%, transparent 40%),
    linear-gradient(135deg, var(--red-gradient-start) 0%, var(--red-gradient-end) 100%);
  color: var(--white);
  padding: 72px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 55% 45%,
    transparent 0,
    transparent 48px,
    rgba(255, 255, 255, 0.04) 48px,
    rgba(255, 255, 255, 0.04) 50px
  );
  pointer-events: none;
}

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

.hero-content {
  z-index: 1;
}

.hero-badge {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-badge svg {
  width: 40px;
  height: 40px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 2px solid transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red-primary);
}

.btn-solid {
  background: var(--white);
  color: var(--red-primary);
  border-color: var(--white);
}

.btn-solid:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Hero banner image */
.hero-visual {
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(229, 57, 53, 0.1);
  color: var(--red-primary);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Intro */
.intro {
  padding: 80px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.intro-text h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: 16px;
}

.intro-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.intro-list {
  list-style: none;
  margin-top: 20px;
}

.intro-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-muted);
}

.intro-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red-primary);
  font-weight: 700;
}

.download-box {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
}

.download-box h3 {
  margin-bottom: 8px;
}

.download-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.platform-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.platform-btn:hover {
  border-color: var(--red-primary);
  background: rgba(229, 57, 53, 0.04);
}

.platform-btn.primary {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
}

.platform-btn.primary:hover {
  background: var(--red-dark);
}

/* Footer */
.site-footer {
  background: #1e1e1e;
  color: #bbb;
  padding: 48px 0 24px;
}

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

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 80px;
  min-height: 60vh;
}

.legal-page h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--text-dark);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-primary);
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

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

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

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

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual img {
    max-width: min(800px, 100%);
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 24px);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.open {
    max-height: 240px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
  }

  .nav-links a.active {
    border-bottom: none;
    padding-bottom: 14px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .features,
  .intro {
    padding: 56px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 22px;
  }

  .download-box {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .legal-page {
    padding: 32px 0 56px;
  }

  .legal-page h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 20px);
  }

  .header-inner {
    height: 56px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-badge {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .hero-badge svg {
    width: 32px;
    height: 32px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .features,
  .intro {
    padding: 40px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .site-footer {
    padding: 36px 0 20px;
  }
}
