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

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

:root {
  --bg: #f8f9fb;
  --surface: #fff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #4f6cf7;
  --accent-hover: #3b5de7;
  --accent-subtle: rgba(79, 108, 247, 0.06);
  --accent-ring: rgba(79, 108, 247, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ===== Top Bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.topbar-brand img {
  border-radius: 6px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.lang-btn:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.topbar-right .btn {
  padding: 7px 16px;
  font-size: 13px;
}

.topbar-right .btn-primary {
  box-shadow: 0 2px 8px var(--accent-ring);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  line-height: 1.3;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 12px var(--accent-ring);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-ring);
}

.btn-secondary {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-ring);
}

.btn-secondary:hover {
  background: rgba(79,108,247,0.1);
  transform: translateY(-1px);
}

/* ===== Hero Split ===== */
.hero-split {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 56px 0 64px;
}

.hero-text {
  flex: 0.65;
  min-width: 0;
}

.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
  color: var(--text);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

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

/* Hero visual - window mockup */
.hero-visual {
  flex: 1.35;
  min-width: 0;
}

.hero-window {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  background: #fafafa;
  transition: box-shadow 0.3s;
}

.hero-window:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.04);
}

.hero-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f1f3f5;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.hero-window-bar span:nth-child(1) { background: #ff5f57; }
.hero-window-bar span:nth-child(2) { background: #febc2e; }
.hero-window-bar span:nth-child(3) { background: #28c840; }

.hero-window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Feature Rows ===== */
.feature-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 64px 0;
  border-top: 1px solid var(--border-light);
}

.feature-row-full {
  display: block;
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
}

.feature-row-section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.feature-row-section-title h2 {
  font-size: 22px;
  font-weight: 700;
}

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

.feature-row-media {
  flex: 1.6;
  min-width: 0;
}

.feature-row-text {
  flex: 0.6;
  min-width: 0;
}

.feature-row-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 3px 12px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.feature-row-text h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: var(--text);
}

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

/* Window frame for feature screenshots */
.window-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  background: #fafafa;
  transition: box-shadow 0.3s, transform 0.3s;
}

.window-frame:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f1f3f5;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
}

.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }

.window-bar span:nth-child(4) {
  all: unset;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-muted);
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}

.window-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== More Features Grid ===== */
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.more-item {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: #fafcfe;
  transition: all 0.2s;
}

.more-item:hover {
  background: var(--surface);
  border-color: var(--accent-ring);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.more-item span {
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}

.more-item h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.more-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Downloads ===== */
.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--border-light);
}

.download-copy {
  max-width: 520px;
}

.download-copy h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-copy p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.download-link:hover {
  color: var(--accent);
  border-color: var(--accent-ring);
  background: var(--surface);
}

/* ===== Installation Steps (Horizontal) ===== */
.install-section {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.install-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}

.install-steps-h {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.install-step-h {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  flex: 1;
  max-width: 200px;
}

.step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.install-step-h p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 3px;
}

.install-step-h code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.install-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 18px;
  padding: 2px 12px 0;
}

/* ===== CTA Section (Video) ===== */
.video-section {
  padding: 0 0 20px;
}

.video-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--border-light);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border-light);
  background: #fafcfe;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-brand img {
  border-radius: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links .footer-sep {
  color: var(--border);
  margin: 0 10px;
  font-size: 13px;
}

.footer-links span:not(.footer-sep) {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-made {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-made a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: var(--border);
  margin: 0 8px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  main { padding: 0 20px 60px; }

  .hero-split {
    flex-direction: column;
    gap: 32px;
    padding: 40px 0 48px;
  }

  .hero-text { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-visual { width: 100%; }

  .feature-row {
    flex-direction: column !important;
    gap: 28px;
    padding: 40px 0;
  }

  .feature-row-text { text-align: center; }
  .feature-row-media { width: 100%; }
  .feature-row-text h2 { font-size: 22px; }

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

  .download-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

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

  .install-steps-h {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .install-step-h {
    max-width: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .install-arrow {
    display: none;
  }

  .topbar-inner { padding: 8px 20px; }
  .topbar-right .btn { display: none; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 12px;
  }
}
