@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #fdfbff;
  --surface-color: #f5f3ff;
  --primary-text-color: #2c2a3e;
  --secondary-text-color: #7a798c;
  --accent-gradient: linear-gradient(135deg, #a78bfa, #c4b5fd);
  --accent-color-primary: #8b5cf6;
  --border-color: #e0ddee;
  --shadow-color: rgba(139, 92, 246, 0.05);
  --shadow-color-hover: rgba(139, 92, 246, 0.12);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-md: 10px;
  --radius-lg: 16px;
  --success-color: #10b981;
  --error-color: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--primary-text-color);
  line-height: 1.6;
}

.body-no-scroll {
  overflow: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: fixed;
  width: 100%;
  padding: 1rem 0;
  background: rgba(253, 251, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-text-color);
}

.logo-subtitle {
  margin-top: -4px;
  font-size: 0.8rem;
  color: var(--secondary-text-color);
}

.nav {
  display: none;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary-text-color);
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--primary-text-color);
}

.hamburger-menu {
  display: block;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}

.hamburger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px 0;
  background-color: var(--primary-text-color);
  transition: var(--transition-smooth);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1100;
}

.mobile-nav-overlay.active {
  transform: translateY(0);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 20px;
  font-size: 3rem;
  background: none;
  border: none;
  color: var(--primary-text-color);
  cursor: pointer;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-nav-menu a {
  text-decoration: none;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--primary-text-color);
  transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main {
  padding-top: 65px;
}

section {
  padding: 60px 0;
}

.hero {
  padding-top: 80px;
  padding-bottom: 60px;
  text-align: center;
}

.hero-title {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  font-size: 1.2rem;
  color: var(--secondary-text-color);
}

.dropzone-area {
  max-width: 600px;
  margin: 0 auto;
  border: 2px dashed var(--accent-color-primary);
  border-radius: var(--radius-lg);
  background-color: var(--surface-color);
  padding: 3rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dropzone-area:hover,
.dropzone-area.dragover {
  background-color: rgba(139, 92, 246, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.hidden-input {
  display: none;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-icon {
  margin-bottom: 1.5rem;
  color: var(--accent-color-primary);
  background: #fff;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.dropzone-area:hover .upload-icon {
  transform: scale(1.1);
}

.dropzone-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dropzone-subtext {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
}

.upload-options {
  max-width: 600px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-color-primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.option-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.option-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-text-color);
}

.option-desc {
  font-size: 0.8rem;
  color: var(--secondary-text-color);
}

.upload-status {
  max-width: 600px;
  margin: 2rem auto 0;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.hidden {
  display: none;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: var(--surface-color);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.processing-text {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--secondary-text-color);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.error-message {
  max-width: 600px;
  margin: 1.5rem auto 0;
  padding: 1rem;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--error-color);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
}

.result-section {
  max-width: 600px;
  margin: 2rem auto 0;
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}

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

.success-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--success-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.result-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.6rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.result-box input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--primary-text-color);
  padding: 0 0.5rem;
}

.result-box button {
  padding: 10px 20px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.result-box button:hover {
  opacity: 0.9;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  padding: 0 0.5rem;
  margin-bottom: 2rem;
}

.result-meta a {
  color: var(--accent-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.btn-reset {
  background: none;
  border: none;
  color: var(--secondary-text-color);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.stats-section {
  padding-top: 0;
  margin-bottom: -50px;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 150px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-text-color);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.disk-bar-mini {
  width: 60px;
  height: 4px;
  background: #e0ddee;
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.disk-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--success-color);
  transition: width 0.5s ease;
}

.section-title {
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
  text-align: center;
  font-weight: 700;
}

.section-subtitle {
  margin-bottom: 3.5rem;
  text-align: center;
  color: var(--secondary-text-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  text-align: center;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color-hover);
}

.feature-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  color: white;
  background: var(--accent-gradient);
  border-radius: 50%;
}

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

.feature-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--secondary-text-color);
  font-size: 0.95rem;
}

.footer {
  padding: 2.5rem 0;
  font-size: 0.9rem;
  text-align: center;
  color: var(--secondary-text-color);
  border-top: 1px solid var(--border-color);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

@media (min-width: 769px) {
  .nav {
    display: block;
  }
  .hamburger-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .stats-container {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .stat-item {
    min-width: 100%;
    margin-bottom: 1rem;
  }
  .stat-item:last-child {
    margin-bottom: 0;
  }
}
