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

:root {
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --teal-darker: #115E59;
  --teal-light: #CCFBF1;
  --teal-xlight: #F0FDFA;
  --bg: #ffffff;
  --bg2: #F8FFFE;
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 64px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 22px;
  color: var(--teal); text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo span { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--text3);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--teal); color: white;
  padding: 8px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--teal-dark); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 6% 80px;
  background: linear-gradient(160deg, #F0FDFA 0%, #ffffff 50%, #F0FDFA 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, #CCFBF1 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center;
  background: var(--teal-light); color: var(--teal-dark);
  font-size: 13px; font-weight: 500;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 28px; letter-spacing: 0.02em;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -2px; color: var(--text);
  margin-bottom: 24px;
}

.hero h1 span { color: var(--teal); }

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text3); max-width: 560px;
  margin: 0 auto 40px; line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.btn-primary {
  background: var(--teal); color: white;
  padding: 14px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn-ghost {
  background: white; color: var(--text);
  padding: 14px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1.5px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); }

.hero-stats {
  display: flex; align-items: center; gap: 32px;
  background: white; border: 1px solid var(--border);
  padding: 20px 40px; border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(13,148,136,0.08);
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat strong { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--teal); }
.stat span { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── SECTIONS COMMON ── */
section { padding: 100px 6%; }

.section-label {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal); margin-bottom: 14px;
}

section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800; letter-spacing: -1px;
  color: var(--text); margin-bottom: 12px;
}

.section-sub {
  font-size: 17px; color: var(--text3);
  max-width: 500px; margin-bottom: 56px;
}

/* ── TOOLS SECTION ── */
.tools-section { background: var(--bg2); }

.tools-category { margin-bottom: 48px; }

.category-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text3); margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.tool-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; gap: 6px;
  align-self: start;
}

.tool-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(13,148,136,0.12);
  transform: translateY(-2px);
}
.tool-card.highlight {
  border-color: var(--teal);
  background: var(--teal-xlight);
}

.tool-icon { font-size: 20px; }
.tool-name { font-size: 13px; font-weight: 500; color: var(--text); }

.tool-badge {
  font-size: 10px; font-weight: 500;
  padding: 2px 8px; border-radius: 50px;
  display: inline-block; width: fit-content;
}
.tool-badge.free { background: var(--teal-light); color: var(--teal-dark); }
.tool-badge.pro { background: #fef3c7; color: #92400e; }



/* ── FEATURES SECTION ── */
.features-section { background: white; }

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

.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(13,148,136,0.1);
  transform: translateY(-3px);
}
.feature-card.big {
  grid-column: span 1;
  background: var(--teal-xlight);
  border-color: var(--teal-light);
}

.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--text3); line-height: 1.7; }

.feature-tag {
  display: inline-block; margin-top: 16px;
  background: var(--teal-light); color: var(--teal-dark);
  font-size: 11px; font-weight: 500;
  padding: 4px 12px; border-radius: 50px;
}

/* ── PRICING SECTION ── */
.pricing-section { background: var(--bg2); text-align: center; }
.pricing-section .section-sub { margin-left: auto; margin-right: auto; }

.billing-toggle {
  display: flex; align-items: center;
  justify-content: center; gap: 12px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 14px; color: var(--text3);
  transition: color .2s;
}
.toggle-label.active { color: var(--text); font-weight: 500; }

.toggle-track {
  width: 50px; height: 28px;
  background: var(--teal); border-radius: 50px;
  border: none; cursor: pointer;
  position: relative; padding: 0;
  transition: background .2s;
}
.toggle-thumb {
  position: absolute; top: 4px; left: 4px;
  width: 20px; height: 20px;
  background: white; border-radius: 50%;
  transition: transform .25s;
}
.toggle-track.annual .toggle-thumb { transform: translateX(22px); }

.save-pill {
  background: var(--teal-light); color: var(--teal-dark);
  font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 50px;
}

.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1000px; margin: 0 auto;
  text-align: left;
}

.plan-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  position: relative; display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.plan-card:hover { box-shadow: 0 8px 32px rgba(13,148,136,0.1); }
.plan-card.featured { border: 2px solid var(--teal); }

.popular-pill {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: white;
  font-size: 11px; font-weight: 500;
  padding: 4px 16px; border-radius: 50px; white-space: nowrap;
}

.plan-name {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text3); margin-bottom: 16px;
}

.plan-price-row { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 6px; }
.plan-price {
  font-family: 'Syne', sans-serif;
  font-size: 42px; font-weight: 800;
  color: var(--text); line-height: 1;
}
.plan-per { font-size: 14px; color: var(--text3); margin-bottom: 6px; }
.plan-note { font-size: 12px; color: var(--text3); margin-bottom: 24px; min-height: 18px; }

.plan-btn {
  display: block; width: 100%;
  padding: 11px; border-radius: 50px;
  font-size: 14px; font-weight: 500;
  text-align: center; text-decoration: none;
  margin-bottom: 24px; transition: opacity .2s, transform .2s;
  cursor: pointer;
}
.plan-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.free-btn { background: var(--bg2); color: var(--text); border: 1.5px solid var(--border); }
.pro-btn { background: var(--teal); color: white; }
.biz-btn { background: var(--teal-darker); color: white; }

.plan-features {
  list-style: none; display: flex;
  flex-direction: column; gap: 10px;
}
.plan-features li {
  font-size: 13px; color: var(--text2);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.4;
}
.plan-features li::before {
  content: '✓'; color: var(--teal);
  font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ── FOOTER ── */
footer {
  background: var(--text); color: white;
  padding: 60px 6%;
}
.footer-inner {
  max-width: 800px; margin: 0 auto;
  text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: 16px;
}
footer .nav-logo { color: var(--teal); }
footer .nav-logo span { color: white; }
.footer-tagline { font-size: 14px; color: #94a3b8; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: #94a3b8; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--teal-light); }
.footer-copy { font-size: 12px; color: #475569; margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { gap: 20px; padding: 16px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* ── UPLOAD SECTION ── */
.upload-section { background: white; }

.upload-box {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  max-width: 600px;
  margin: 0 auto 32px;
  background: var(--bg2);
}
.upload-box:hover { border-color: var(--teal); background: var(--teal-xlight); }
.upload-box.dragover { border-color: var(--teal); background: var(--teal-xlight); }

.upload-icon { font-size: 48px; margin-bottom: 16px; }
.upload-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.upload-hint { font-size: 14px; color: var(--text3); margin-bottom: 16px; }

.upload-btn {
  background: var(--teal); color: white;
  border: none; padding: 10px 28px;
  border-radius: 50px; font-size: 14px;
  font-weight: 500; cursor: pointer;
  transition: background .2s;
  margin-bottom: 16px;
}
.upload-btn:hover { background: var(--teal-dark); }
.upload-limit { font-size: 12px; color: var(--text3); }

/* ── UPLOAD WITH SIDE TOOLS ── */
.upload-layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.side-tools {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.side-tool-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.side-tool-item:hover {
  border-color: var(--teal);
  background: var(--teal-xlight);
}

.side-tool-icon {
  font-size: 1rem;
}

@media(max-width: 768px) {
  .upload-layout {
    grid-template-columns: 1fr;
  }
  .side-tools {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── FILE INFO BAR ── */
.file-info-bar {
  display: flex; align-items: center;
  gap: 24px; flex-wrap: wrap;
  background: var(--teal-xlight);
  border: 1px solid var(--teal-light);
  border-radius: var(--radius);
  padding: 16px 24px;
  max-width: 700px; margin: 0 auto 24px;
}
.file-info-item { display: flex; flex-direction: column; gap: 2px; }
.file-info-label { font-size: 11px; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.file-info-value { font-size: 14px; font-weight: 600; color: var(--text); }
.file-info-divider { width: 1px; height: 32px; background: var(--teal-light); }

.reset-btn {
  margin-left: auto; background: none;
  border: 1px solid var(--border2);
  color: var(--text3); padding: 6px 14px;
  border-radius: 50px; font-size: 12px;
  cursor: pointer; transition: all .2s;
}
.reset-btn:hover { border-color: #ef4444; color: #ef4444; }

/* ── PREVIEW TABLE ── */
.preview-wrap {
  max-width: 100%; margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.preview-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.preview-title { font-size: 13px; font-weight: 500; color: var(--text3); }

.table-scroll { overflow-x: auto; }

.preview-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.preview-table th {
  background: var(--teal); color: white;
  padding: 10px 16px; text-align: left;
  font-weight: 500; white-space: nowrap;
  font-size: 12px; letter-spacing: 0.03em;
}
.preview-table td {
  padding: 9px 16px; border-bottom: 1px solid var(--border);
  color: var(--text2); white-space: nowrap;
  max-width: 200px; overflow: hidden;
  text-overflow: ellipsis;
}
.preview-table tr:nth-child(even) td { background: var(--bg2); }
.preview-table tr:hover td { background: var(--teal-xlight); }
/* ── SUGGESTION BUTTON ── */
.suggest-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 52px; height: 52px;
  background: var(--teal); color: white;
  border-radius: 50%; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999;
  box-shadow: 0 4px 20px rgba(13,148,136,0.4);
  transition: transform .2s, box-shadow .2s;
}
.suggest-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(13,148,136,0.5);
}

.suggest-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000; align-items: center; justify-content: center;
}
.suggest-modal.open { display: flex; }

.suggest-box {
  background: white; border-radius: var(--radius);
  padding: 32px; width: 90%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.suggest-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 8px;
}
.suggest-header span {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--text);
}
.suggest-header button {
  background: none; border: none;
  font-size: 18px; cursor: pointer; color: var(--text3);
}
.suggest-sub { font-size: 14px; color: var(--text3); margin-bottom: 20px; }

.suggest-box textarea {
  width: 100%; height: 120px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; font-size: 14px; font-family: 'DM Sans', sans-serif;
  resize: none; margin-bottom: 12px; color: var(--text);
  outline: none;
}
.suggest-box textarea:focus { border-color: var(--teal); }

.suggest-box input {
  width: 100%; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  margin-bottom: 16px; color: var(--text); outline: none;
}
.suggest-box input:focus { border-color: var(--teal); }

.suggest-submit {
  width: 100%; background: var(--teal); color: white;
  border: none; padding: 12px; border-radius: 50px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .2s;
}
.suggest-submit:hover { background: var(--teal-dark); }

/* ── DOWNLOAD BAR ── */
.download-bar {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%);
  background: white; border: 1.5px solid var(--teal);
  border-radius: var(--radius); padding: 16px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 8px 32px rgba(13,148,136,0.2);
  z-index: 998; min-width: 340px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.download-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.download-icon { font-size: 18px; }
.download-msg { font-size: 14px; font-weight: 500; color: var(--text); }
.download-btn-main {
  background: var(--teal); color: white;
  border: none; padding: 10px 20px;
  border-radius: 50px; font-size: 14px;
  font-weight: 500; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.download-btn-main:hover { background: var(--teal-dark); }
.download-close {
  background: none; border: none;
  color: var(--text3); font-size: 16px;
  cursor: pointer; padding: 4px;
}