:root {
  --primary-bg: #1a1a2e;
  --secondary-bg: #16213e;
  --card-bg: #0f3460;
  --accent: #4a90d9;
  --accent-hover: #5da0e9;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: rgba(74, 144, 217, 0.15);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --radius: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--accent-hover); }

button, .btn, .download-btn, .tab-btn, .faq-question {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb { background: var(--card-bg); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

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

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(74, 144, 217, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.nav-toggle:hover {
  background: rgba(74, 144, 217, 0.1);
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 40px 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(74, 144, 217, 0.12);
  border: 1px solid rgba(74, 144, 217, 0.25);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(74, 144, 217, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(74, 144, 217, 0.08);
  border-color: var(--accent);
  color: var(--text-primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.hero-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hero-card-dot.r { background: #ff5f57; }
.hero-card-dot.y { background: #ffbd2e; }
.hero-card-dot.g { background: #28c840; }

.hero-card-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-left: auto;
}

.hero-card-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card-bg);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-line .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-line .status-dot.on { background: #28c840; box-shadow: 0 0 8px rgba(40, 200, 64, 0.4); }
.hero-line .status-dot.off { background: #666; }
.hero-line .status-dot.warn { background: #ffbd2e; }

.hero-line .label {
  color: var(--text-primary);
  font-weight: 500;
  min-width: 64px;
}

.hero-line .value {
  margin-left: auto;
  font-size: 0.82rem;
}

/* Section common */
.section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.section-header .accent-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  cursor: default;
}

.feature-card:hover {
  border-color: rgba(74, 144, 217, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(74, 144, 217, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Feature detail tabs */
.feature-detail {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 16px 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(74, 144, 217, 0.05);
}

.tab-btn.active {
  color: var(--accent);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.tab-content {
  padding: 40px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.tab-panel h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.tab-panel > div p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-visual {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.mock-bar .bar {
  flex: 1;
  height: 6px;
  background: rgba(74, 144, 217, 0.15);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.mock-bar .bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6ab0ff);
  border-radius: 3px;
  transition: width 1s ease;
}

.mock-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.mock-table th,
.mock-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.mock-table th {
  color: var(--text-secondary);
  font-weight: 500;
}

.mock-table td {
  color: var(--text-primary);
}

.mock-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.mock-tag.blue { background: rgba(74, 144, 217, 0.15); color: var(--accent); }
.mock-tag.green { background: rgba(40, 200, 64, 0.15); color: #28c840; }
.mock-tag.yellow { background: rgba(255, 189, 46, 0.15); color: #ffbd2e; }

/* Download section */
.download-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.download-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-info .version {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.download-info .desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.download-btn:hover {
  border-color: var(--accent);
  background: rgba(74, 144, 217, 0.08);
  transform: translateX(4px);
}

.download-btn .dl-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.download-btn .dl-info {
  flex: 1;
}

.download-btn .dl-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.download-btn .dl-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.download-btn .dl-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.changelog {
  margin-top: 32px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.changelog h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.changelog-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.changelog-item:last-child { border-bottom: none; }

.changelog-item .tag {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.changelog-item .tag.new { background: rgba(40, 200, 64, 0.15); color: #28c840; }
.changelog-item .tag.fix { background: rgba(255, 189, 46, 0.15); color: #ffbd2e; }
.changelog-item .tag.upd { background: rgba(74, 144, 217, 0.15); color: var(--accent); }

.changelog-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Guide section */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.guide-step {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.guide-step .step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.guide-step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  background: rgba(74, 144, 217, 0.05);
}

.faq-question .icon {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-card .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.about-card .contact-item .c-icon {
  width: 32px;
  height: 32px;
  background: rgba(74, 144, 217, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.license-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--card-bg);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

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

/* Responsive - Tablet & Small Laptop */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 { font-size: 2.4rem; }
  .hero-visual { order: -1; }

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

  .tab-panel.active {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

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

/* Responsive - Large Phone / Small Tablet */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    gap: 0;
  }

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

  .nav-links a {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    background: rgba(74, 144, 217, 0.12);
    color: var(--accent);
  }

  .nav-toggle {
    display: block;
    -webkit-tap-highlight-color: transparent;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-card {
    padding: 20px;
  }

  .hero-line {
    padding: 10px 12px;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .hero-line .value {
    margin-left: 0;
    width: 100%;
    padding-left: 18px;
  }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.6rem; }
  .section-header p { font-size: 0.92rem; }

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

  .feature-card {
    padding: 20px;
  }

  .tab-content { padding: 20px; }
  .tab-btn {
    padding: 14px 16px;
    font-size: 0.82rem;
    flex: 1;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .tab-btn.active::after {
    left: 8px;
    right: 8px;
  }

  .tab-panel h3 {
    font-size: 1.2rem;
  }

  .tab-panel > div p {
    font-size: 0.88rem;
  }

  .feature-visual {
    padding: 16px;
    min-height: auto;
  }

  .download-card {
    padding: 24px;
  }

  .download-info h3 {
    font-size: 1.3rem;
  }

  .download-btn {
    padding: 14px 16px;
    gap: 10px;
  }

  .download-btn:hover {
    transform: none;
  }

  .changelog {
    padding: 16px;
  }

  .guide-step {
    padding: 20px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .faq-answer p {
    padding: 0 16px 14px;
    font-size: 0.85rem;
  }

  .about-card {
    padding: 24px;
  }

  .tech-stack { grid-template-columns: 1fr; }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-links a {
    font-size: 0.85rem;
    padding: 4px 0;
  }
}

/* Responsive - Small Phone */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-badge { font-size: 0.75rem; padding: 4px 12px; }

  .section-header h2 { font-size: 1.3rem; }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .feature-card h3 { font-size: 1rem; }
  .feature-card p { font-size: 0.85rem; }

  .tab-btn {
    padding: 10px 10px;
    font-size: 0.75rem;
  }

  .mock-table {
    font-size: 0.7rem;
  }

  .mock-table th,
  .mock-table td {
    padding: 4px 6px;
  }

  .download-btn .dl-icon { font-size: 1.2rem; }
  .download-btn .dl-name { font-size: 0.85rem; }
  .download-btn .dl-meta { font-size: 0.72rem; }
}

/* ===== Animations ===== */

/* Base fade-in (enhanced) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card entrance */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.00s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.06s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.12s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.18s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.24s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.30s; }

.guide-steps .guide-step:nth-child(1) { transition-delay: 0.00s; }
.guide-steps .guide-step:nth-child(2) { transition-delay: 0.10s; }
.guide-steps .guide-step:nth-child(3) { transition-delay: 0.20s; }

/* Hero title gradient shift */
.hero h1 {
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating decorative orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -30%;
  right: -10%;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.10) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  bottom: -20%;
  left: -5%;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.06) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  top: 30%;
  left: 40%;
  background: radial-gradient(circle, rgba(106, 176, 255, 0.05) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

/* Status dot pulse */
.status-dot.on {
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.3); }
}

/* Badge entrance */
.hero-badge {
  animation: badgeSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

@keyframes badgeSlideIn {
  0%   { opacity: 0; transform: translateY(-10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Primary button glow */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6ab0ff, var(--accent));
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
  animation: shimmer 3s ease-in-out infinite;
}

.btn-primary:hover::after {
  opacity: 1;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Feature card hover glow */
.feature-card {
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.3), transparent, rgba(74, 144, 217, 0.15));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  border-color: transparent;
}

/* Feature icon entrance */
.feature-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(74, 144, 217, 0.2);
}

/* Tab panel slide */
.tab-panel.active {
  animation: tabSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tabSlideIn {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Progress bar fill animation */
.bar .fill {
  transform: scaleX(0);
  transform-origin: left;
}

.feature-visual.visible .bar .fill {
  animation: fillBar 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.feature-visual.visible .bar:nth-child(1) .fill { animation-delay: 0.0s; }
.feature-visual.visible .bar:nth-child(2) .fill { animation-delay: 0.1s; }
.feature-visual.visible .bar:nth-child(3) .fill { animation-delay: 0.2s; }
.feature-visual.visible .bar:nth-child(4) .fill { animation-delay: 0.3s; }

@keyframes fillBar {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Step number scale entrance */
.guide-step .step-num {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.guide-step:hover .step-num {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.4);
}

/* Download button arrow slide */
.download-btn .dl-arrow {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-btn:hover .dl-arrow {
  transform: translateX(4px);
}

/* Footer fade-in */
.footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accent line expand */
.section-header .accent-line {
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.section-header.visible .accent-line {
  transform: scaleX(1);
}

/* Navbar logo shine */
@keyframes logoShine {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

.logo-icon {
  animation: logoShine 4s ease-in-out infinite;
}

/* Contact icon hover */
.about-card .contact-item .c-icon {
  transition: transform 0.3s ease, background 0.3s ease;
}

.about-card .contact-item:hover .c-icon {
  transform: scale(1.15);
  background: rgba(74, 144, 217, 0.2);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  pointer-events: none;
  animation: rippleAnim 0.6s ease-out forwards;
}

@keyframes rippleAnim {
  0%   { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(6); opacity: 0; }
}

.btn, .download-btn {
  position: relative;
  overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero h1 {
    background-size: 100% 100%;
    animation: none;
  }

  .status-dot.on {
    animation: none;
  }

  .hero-badge {
    opacity: 1;
    animation: none;
  }

  .footer {
    opacity: 1;
    transform: none;
  }

  .section-header .accent-line {
    transform: scaleX(1);
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
