/* ==================== CSS Variables ==================== */
:root {
  --teal: #02c0a2;
  --teal-2: #00b698;
  --teal-press: #00aa8f;
  --ink: #fff;
  --bg: #ededed;
  --panel: #fff;
  --border: rgba(0, 0, 0, 0.12);
  --text: rgba(0, 0, 0, 0.86);
  --muted: rgba(0, 0, 0, 0.55);
  --radius: 8px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ==================== Global Styles ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== Hero Section ==================== */
.hero {
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--teal) 100%);
  color: var(--ink);
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

.logo-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}

.logo-mark svg {
  width: 40px;
  height: 40px;
  color: var(--ink);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-slogan {
  font-size: 20px;
  margin-bottom: 20px;
  opacity: 0.95;
  font-weight: 400;
}

.hero-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--ink);
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-download svg {
  width: 22px;
  height: 22px;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.95);
}

.btn-download:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-download.secondary {
  background: var(--teal-2);
  color: var(--ink);
  border-color: transparent;
}

.btn-download.secondary:hover {
  background: var(--teal);
}

.btn-download.secondary:active {
  background: var(--teal-press);
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.85;
}

/* ==================== Features Section ==================== */
.features {
  padding: 80px 0;
  background: var(--panel);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(2, 192, 162, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(2, 192, 162, 0.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--teal);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==================== Demo Section ==================== */
.demo {
  padding: 80px 0;
  background: var(--bg);
}

.demo-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.step {
  flex: 0 0 auto;
  text-align: center;
  max-width: 240px;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--teal-2);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}

.step-content {
  background: var(--panel);
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.step-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
}

.step-arrow {
  font-size: 32px;
  color: var(--teal);
  font-weight: 800;
  flex: 0 0 auto;
}

.demo-cta {
  text-align: center;
}

/* ==================== Footer ==================== */
.footer {
  background: var(--panel);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-company {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}

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

.footer-icp a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp a:hover {
  color: var(--teal);
}

/* ==================== Responsive Design ==================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 40px;
  }

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

  .demo-steps {
    flex-wrap: wrap;
    gap: 32px;
  }

  .step-arrow {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .hero-tags {
    flex-wrap: wrap;
  }

  .btn-download {
    padding: 14px 32px;
    font-size: 16px;
  }

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

  .features {
    padding: 60px 0;
  }

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

  .feature-card {
    padding: 24px 20px;
  }

  .demo {
    padding: 60px 0;
  }

  .demo-steps {
    flex-direction: column;
    gap: 24px;
  }

  .step {
    max-width: 100%;
  }

  .footer {
    padding: 32px 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .btn-download {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ==================== Animations ==================== */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .btn-download,
  .step-content {
    transition: all 0.3s ease;
  }
}

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