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

:root {
  --primary: #e74c3c;
  --primary-hover: #c0392b;
  --primary-light: rgba(231, 76, 60, 0.1);
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --text-light: #999;
  --bg-page: #f5f5f5;
  --bg-white: #fff;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-dark: #1a1a2e;
  --border-color: #e8e8e8;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-nav: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========== NAV ========== */
.nav-wrapper {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow-nav);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-right: 8px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
  margin-left: 4px;
}

.nav-download:hover {
  background: var(--primary-hover);
}

/* ========== HERO ========== */
.hero {
  text-align: center;
  padding: 140px 20px 40px;
  background: var(--bg-page);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
}

.btn-download:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(231, 76, 60, 0.4);
}

.btn-download .apple-icon,
.btn-download .win-icon {
  width: 20px;
  height: 20px;
}

.hero-web-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-web-link:hover {
  color: var(--text-primary);
}

.hero-web-link .arrow {
  transition: transform 0.2s;
}

.hero-web-link:hover .arrow {
  transform: translateX(3px);
}

/* ========== TERMINAL MOCKUP ========== */
.app-mockup-section {
  padding: 20px 20px 60px;
  display: flex;
  justify-content: center;
}

.terminal-mockup {
  width: 100%;
  max-width: 720px;
  background: #1e1e2e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.terminal-header {
  background: #2d2d3f;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: #888;
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 20px 24px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
  color: #cdd6f4;
}

.terminal-line {
  margin-bottom: 2px;
}

.terminal-prompt {
  color: #a6e3a1;
  margin-right: 8px;
}

.terminal-cmd {
  color: #89b4fa;
}

.terminal-output {
  color: #9399b2;
  padding-left: 4px;
}

.terminal-output.highlight {
  color: #f9e2af;
}

.terminal-output.success {
  color: #a6e3a1;
}

/* ========== FEATURES SECTION ========== */
.features-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== FEATURES TABS ========== */
.features-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-white);
  border-radius: 50px;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== FEATURE CARDS ========== */
.feature-card {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 48px;
  padding: 40px;
  background: var(--bg-white);
  border-radius: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-card.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  min-width: 280px;
}

.feature-number {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 8px;
}

.feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-visual {
  flex: 1.2;
  min-width: 280px;
}

.feature-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

/* Feature Demo Boxes */
.feature-demo {
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  color: #fff;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.feature-demo.demo-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.feature-demo.demo-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.feature-demo.demo-teal { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.feature-demo.demo-orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.feature-demo.demo-red { background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%); }
.feature-demo.demo-dark { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }

.demo-icon {
  font-size: 56px;
  line-height: 1;
}

.demo-label {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
}

.demo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.demo-badge {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 13px;
  backdrop-filter: blur(4px);
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-section > h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.testimonials-section > p {
  text-align: center;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.testimonials-grid {
  columns: 3;
  column-gap: 20px;
}

.testimonial-card {
  break-inside: avoid;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.testimonial-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========== QUICK START ========== */
.quickstart-section {
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.quickstart-section > h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.quickstart-section > p {
  text-align: center;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.install-block {
  background: #1e1e2e;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.install-header {
  background: #2d2d3f;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.install-title {
  font-size: 13px;
  color: #888;
  font-family: var(--font-mono);
}

.install-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
  color: #cdd6f4;
  overflow-x: auto;
}

.install-line {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.install-comment {
  color: #6c7086;
}

.install-prompt {
  color: #a6e3a1;
  margin-right: 8px;
  user-select: none;
}

.install-cmd {
  color: #89b4fa;
}

/* ========== INTEGRATIONS ========== */
.integrations-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.integrations-section > h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.integrations-section > p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 32px;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-white);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.integration-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.integration-icon {
  font-size: 20px;
  line-height: 1;
}

.integrations-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* ========== FEATURES GRID (6 cards) ========== */
.features-grid-section {
  padding: 60px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid-section > h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.features-grid-section > p {
  text-align: center;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

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

.feature-mini-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-mini-icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-mini-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-mini-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== BOTTOM CTA ========== */
.cta-section {
  text-align: center;
  padding: 80px 20px 60px;
  background: var(--bg-page);
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* ========== SPONSORS ========== */
.sponsors-section {
  padding: 40px 20px 80px;
  text-align: center;
}

.sponsors-section > h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.sponsors-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sponsors-grid img {
  height: 28px;
  opacity: 0.5;
  transition: opacity 0.2s;
  filter: grayscale(100%);
}

.sponsors-grid img:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

/* ========== FOOTER ========== */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 16px;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-info span {
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 32px;
  }

  .section-header h2,
  .features-grid-section > h2,
  .testimonials-section > h2,
  .quickstart-section > h2,
  .integrations-section > h2 {
    font-size: 30px;
  }

  .feature-card {
    flex-direction: column !important;
    gap: 30px;
    padding: 24px;
  }

  .feature-text,
  .feature-visual {
    min-width: unset;
    width: 100%;
  }

  .feature-text h3 {
    font-size: 24px;
  }

  .nav-links {
    display: none;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .features-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    columns: 2;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
  }

  .footer-info {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 26px;
  }

  .btn-download {
    padding: 12px 28px;
    font-size: 16px;
  }

  .features-mini-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    columns: 1;
  }

  .terminal-body {
    font-size: 12px;
  }
}
