/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(162,155,254,0.08));
  color: #6c5ce7;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(108,92,231,0.15);
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1a1a2e 0%, #6c5ce7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 768px) {
  .section-title { font-size: 1.8rem; }
}
.section-desc {
  color: #6a6a7a;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,92,231,0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,92,231,0.35);
}
.btn--ghost {
  background: transparent;
  color: #6c5ce7;
  border: 1px solid rgba(108,92,231,0.25);
}
.btn--ghost:hover {
  border-color: #6c5ce7;
  background: rgba(108,92,231,0.05);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: #1a1a2e;
  border: 1px solid rgba(0,0,0,0.15);
}
.btn--outline:hover {
  border-color: #6c5ce7;
  color: #6c5ce7;
  transform: translateY(-2px);
}
.btn--lg { padding: 14px 32px; font-size: 1rem; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.nav--scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #5a5a6a;
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  transition: width 0.3s;
}
.nav__link:hover { color: #1a1a2e; }
.nav__link:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__cta { display: inline-flex; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    align-items: flex-start;
  }
  .nav__links.open { right: 0; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ===== Lang Button ===== */
.lang-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a5a6a;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.lang-btn:hover {
  color: #1a1a2e;
  border-color: rgba(0,0,0,0.25);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0efff 50%, #f8f0ff 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}
.hero__shape--1 {
  width: 500px; height: 500px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.hero__shape--2 {
  width: 400px; height: 400px;
  background: linear-gradient(135deg, #00cec9, #55efc4);
  bottom: -10%; right: -5%;
  animation-delay: -7s;
}
.hero__shape--3 {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, #fd79a8, #fab1a0);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 0 80px;
}
.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(108,92,231,0.08);
  border: 1px solid rgba(108,92,231,0.15);
  color: #6c5ce7;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero__title {
  margin-bottom: 24px;
}
.hero__title-line {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a2e;
}
.hero__title-line--accent {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe, #00cec9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 768px) {
  .hero__title-line { font-size: 2.2rem; }
}
.hero__desc {
  color: #5a5a6a;
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #8a8a9a;
  font-size: 0.8rem;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (max-width: 480px) {
  .hero__scroll { display: none; }
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  position: relative;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--icon-color, #6c5ce7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  background: #f8f8ff;
  border-color: rgba(108,92,231,0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108,92,231,0.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(162,155,254,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--icon-color, #6c5ce7);
  margin-bottom: 16px;
}
.feature-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
}
.feature-card__desc {
  font-size: 0.88rem;
  color: #6a6a7a;
  line-height: 1.5;
}

/* ===== How It Works ===== */
.steps {
  padding: 100px 0;
  background: #f8f9fa;
}
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps__grid::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, #6c5ce7, #a29bfe, #00cec9);
  opacity: 0.3;
}
@media (max-width: 768px) {
  .steps__grid { grid-template-columns: 1fr; }
  .steps__grid::before { display: none; }
}
.step-card {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}
.step-card__num {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: 8px;
}
.step-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(162,155,254,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #6c5ce7;
  margin: 0 auto 20px;
  border: 1px solid rgba(108,92,231,0.15);
}
.step-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
}
.step-card__desc {
  font-size: 0.9rem;
  color: #6a6a7a;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== Gallery ===== */
.gallery {
  padding: 100px 0;
}
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .gallery__grid { grid-template-columns: 1fr; }
}
.compare-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: #f0f0f5;
}
.compare__before,
.compare__after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.compare__after { z-index: 1; }
.compare__before { z-index: 2; clip-path: inset(0 50% 0 0); }
.compare__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__label {
  position: absolute;
  bottom: 16px;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  z-index: 3;
  pointer-events: none;
}
.compare__label--left { left: 16px; }
.compare__label--right { right: 16px; }
.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(255,255,255,0.9);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare__handle i {
  background: #ffffff;
  color: #1a1a2e;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* ===== Use Cases ===== */
.use-cases {
  padding: 100px 0;
  background: #f8f9fa;
}
.cases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cases__grid { grid-template-columns: 1fr; }
}
.case-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--case-color, #6c5ce7);
  box-shadow: 0 8px 30px rgba(108,92,231,0.1);
}
.case-card__icon {
  font-size: 2rem;
  color: var(--case-color, #6c5ce7);
  margin-bottom: 16px;
}
.case-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
}
.case-card__desc {
  font-size: 0.88rem;
  color: #6a6a7a;
}

/* ===== Footer ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}
.footer__logo {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__tagline {
  color: #6a6a7a;
  margin-top: 8px;
  font-size: 0.9rem;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 480px) {
  .footer__links { grid-template-columns: 1fr; }
}
.footer__col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  color: #5a5a6a;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__col a:hover { color: #6c5ce7; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: #8a8a9a;
  font-size: 0.85rem;
}
@media (max-width: 480px) {
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Selection ===== */
::selection {
  background: rgba(108,92,231,0.2);
  color: #1a1a2e;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #aaaaaa; }
