/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --green-light: #f2fff5;
  --green-mid: #e0fae9;
  --text: #1a1a2e;
  --text-muted: #5a6474;
  --border: #d4f5e2;
  --shadow: 0 4px 24px rgba(46,204,113,0.10);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--green-light);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(46,204,113,0.07);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--green); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: var(--green-dark); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #f2fff5 0%, #e6fced 60%, #d8fae5 100%);
  padding: 72px 24px 48px;
  text-align: center;
  border-bottom: 1.5px solid var(--border);
}

.hero-content { max-width: 680px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: var(--green-mid);
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.accent-word { color: var(--green); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== TOOL SECTION ===== */
.tool-section {
  padding: 48px 24px 56px;
  max-width: 760px;
  margin: 0 auto;
}

.tool-card {
  background: var(--white);
  border-radius: 24px;
  border: 1.5px solid var(--border);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

/* Upload Zone */
.upload-zone {
  border: 2.5px dashed var(--green);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--green-light);
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  background: var(--green-mid);
  border-color: var(--green-dark);
}

.upload-icon { margin: 0 auto 16px; width: fit-content; }
.upload-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.upload-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.upload-note { color: var(--text-muted); font-size: 0.8rem; margin-top: 14px; }

.btn-upload {
  background: var(--green);
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(46,204,113,0.3);
}
.btn-upload:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(46,204,113,0.4);
}

/* Progress */
.progress-section {
  padding: 32px 0 8px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.progress-track {
  height: 10px;
  background: var(--green-mid);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 100px;
  width: 0%;
  transition: width 0.3s ease;
}

/* Result */
.result-section { padding-top: 28px; }

.result-preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.preview-box {
  flex: 1;
  min-width: 140px;
  max-width: 280px;
  text-align: center;
}
.preview-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}
.preview-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.preview-box--result img { border-color: var(--green); }
.preview-size {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.preview-arrow {
  font-size: 2rem;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.result-stats {
  display: flex;
  gap: 16px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 24px;
  justify-content: space-around;
  flex-wrap: wrap;
  border: 1.5px solid var(--border);
}
.stat { text-align: center; }
.stat-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--green-dark); }

.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-download {
  flex: 1;
  background: var(--green);
  color: white;
  border: none;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 18px rgba(46,204,113,0.3);
  text-align: center;
  min-width: 200px;
}
.btn-download:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-reset {
  background: var(--white);
  color: var(--green-dark);
  border: 1.5px solid var(--green);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-reset:hover { background: var(--green-mid); }

/* ===== CONTENT SECTIONS ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.content-section { padding: 72px 24px; }
.content-section--alt { background: var(--white); }

.content-section h2, .content-section--alt h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  margin-top: -28px;
  margin-bottom: 36px;
  font-size: 0.95rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.step-num {
  width: 40px; height: 40px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--green-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Features List */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.features-list li {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* Affiliate */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.affiliate-card {
  background: var(--green-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.affiliate-icon { font-size: 2.2rem; }
.affiliate-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); }
.affiliate-card p { font-size: 0.88rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.btn-affiliate {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: background var(--transition);
}
.btn-affiliate:hover { background: var(--green-dark); text-decoration: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--green-light); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--green); font-weight: 300; flex-shrink: 0; transition: transform var(--transition); }
.faq-q[aria-expanded="true"]::after { content: '−'; transform: rotate(0deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-a.open { max-height: 300px; padding: 0 22px 18px; }
.faq-a p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: #b0b8c8;
  padding: 48px 24px 32px;
}
.footer-container { max-width: 1080px; margin: 0 auto; }

.footer-brand { margin-bottom: 28px; }
.footer-brand .logo { color: white; margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: #8895a7; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 28px;
}
.footer-nav a {
  color: #b0b8c8;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--green); }

.footer-copy {
  font-size: 0.82rem;
  color: #6b7685;
  line-height: 1.7;
  border-top: 1px solid #2a2f38;
  padding-top: 20px;
}
.footer-copy a { color: var(--green); }

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===== LEGAL / INNER PAGES ===== */
.page-hero {
  background: linear-gradient(135deg, #f2fff5, #e6fced);
  padding: 56px 24px 40px;
  border-bottom: 1.5px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 10px;
}
.page-hero p { color: var(--text-muted); font-size: 0.95rem; }

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
}
.page-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content li { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.65; }
.page-content a { color: var(--green-dark); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  background: var(--green);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  width: fit-content;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--green-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .tool-card { padding: 24px 18px; }
  .upload-zone { padding: 36px 16px; }
  .preview-arrow { transform: rotate(90deg); }
  .result-preview-row { flex-direction: column; }
  .preview-box { max-width: 100%; }
  .nav-links { gap: 16px; }
  .result-actions { flex-direction: column; }
  .btn-download { min-width: unset; }
}

@media (max-width: 420px) {
  .nav-links { display: none; }
}
