:root {
  --bg-color: #ffffff;
  --text-color: #0f172a;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #edf2f7;
  --font-family: 'Inter', system-ui, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}



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

.logo-img {
  height: 48px;
  display: block;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 1;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  border: none;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}



.hero-section {
  padding: 100px 0;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}

.tagline {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-ctas .btn {
  margin-right: 15px;
}

.hero-graphic {
  flex: 1;
}

.hero-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tool-section, .features-section, .pricing-section, .faq-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  font-weight: 800;
}

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

.tool-box h2 {
  margin-bottom: 15px;
}

.file-upload-zone {
  border: 2px dashed rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.01);
}

.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.03);
}

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

.upload-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  color: var(--primary-color);
  opacity: 0.8;
}

.dropzone-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.dropzone-subtitle {
  font-size: 0.85rem;
  opacity: 0.6;
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  display: inline-flex;
}

.file-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.file-name {
  font-weight: 600;
  font-size: 1rem;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-file {
  cursor: pointer;
  color: #ef4444;
  font-weight: bold;
  font-size: 1.25rem;
  margin-left: 8px;
  transition: color 0.2s;
}

.remove-file:hover {
  color: #dc2626;
}

.tool-interface textarea {
  width: 100%;
  height: 150px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 15px;
  resize: vertical;
  background-color: transparent;
  color: inherit;
}

.spinner-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--secondary-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.output-container {
  margin-top: 25px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.output-content h1, .output-content h2, .output-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-color);
}
.output-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.output-content ul {
  margin-bottom: 15px;
  padding-left: 20px;
  list-style-type: disc;
}
.output-content li {
  margin-bottom: 5px;
  line-height: 1.5;
}
.output-content hr {
  margin: 25px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.output-content strong {
  font-weight: 600;
}
.output-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.output-content th, .output-content td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  text-align: left;
}
.output-content th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary-color);
  border-width: 2px;
}

.pricing-card .badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin: 20px 0;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-card ul li {
  margin: 10px 0;
  opacity: 0.9;
}

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

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.faq-answer {
  opacity: 0.8;
}

footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px 0;
  text-align: center;
  opacity: 0.8;
}

.footer-container {
  display: flex;
  justify-content: space-between;
}

.hidden {
  display: none !important;
}

@media(max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
  .pricing-grid {
    flex-direction: column;
  }
}
