:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --text-soft: #64748b;
  --accent: #2563eb;
  --border: #e2e8f0;
  --radius: 24px;
  --container: 900px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  background: var(--bg); 
  color: var(--text);
  line-height: 1.5;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.nav { padding: 1.5rem 0; background: white; border-bottom: 1px solid var(--border); }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.25rem; font-weight: 800; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; }
.nav-link { text-decoration: none; color: var(--text-soft); font-size: 0.875rem; font-weight: 600; }
.nav-cta { background: var(--text); color: white; padding: 0.5rem 1.25rem; border-radius: 100px; text-decoration: none; font-size: 0.875rem; font-weight: 700; }

.nav-item { position: relative; }
.nav-item .chevron { transition: transform 0.3s; }
.nav-item:hover .chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: white; border: 1px solid var(--border); border-radius: 16px; padding: 1rem;
  width: 280px; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 100;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.dropdown-item {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem;
  text-decoration: none; color: var(--text); border-radius: 12px; transition: background 0.2s;
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item .icon { font-size: 1.25rem; }
.dropdown-item .text { display: flex; flex-direction: column; }
.dropdown-item .title { display: block; font-weight: 700; font-size: 0.875rem; }
.dropdown-item .desc { display: block; font-size: 0.75rem; color: var(--text-soft); }

/* Mobile Nav */
.mobile-only { display: none; }
.desktop-only { display: flex; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: all 0.3s ease;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 991px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .nav-link { font-size: 1.25rem; }
  .dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    border: none;
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: unset;
  }
  .nav-item.active .dropdown { height: auto; padding-top: 1rem; }
  .nav-item.active .chevron { transform: rotate(180deg); }
  .chevron { transition: 0.3s; }
}

/* Header */
.section-header { padding: 4rem 0 3rem; text-align: center; }
.label { font-size: 0.75rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.section-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-header p { color: var(--text-soft); font-size: 1.125rem; }

/* Tool Card */
.tool-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; margin-bottom: 4rem; }

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fbfcfe;
}
.drop-zone:hover { border-color: var(--accent); background: #eff6ff; }
.drop-zone .icon { font-size: 3rem; margin-bottom: 1rem; }
.drop-zone h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.drop-zone p { color: var(--text-soft); font-size: 0.875rem; }

/* File List */
.file-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.file-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem; background: #f8fafc; border-radius: 12px;
}
.file-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.file-name { flex: 1; font-size: 0.875rem; font-weight: 600; }
.btn-remove { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 1.25rem; }
.btn-remove:hover { color: #ef4444; }

/* Actions */
.tool-actions { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.settings-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.setting label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-soft); margin-bottom: 0.5rem; text-transform: uppercase; }
select, input { width: 100%; padding: 0.75rem; border-radius: 10px; border: 1px solid var(--border); font-family: inherit; font-size: 0.875rem; font-weight: 600; }

.btn-primary {
  width: 100%; padding: 1rem; background: var(--accent); color: white; border: none;
  border-radius: 100px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { background: #cbd5e1; cursor: not-allowed; }

/* Ad */
.ad-container { margin-bottom: 4rem; text-align: center; }
.ad-label { font-size: 0.625rem; font-weight: 800; color: #94a3b8; margin-bottom: 0.5rem; text-transform: uppercase; }
.ad-placeholder { height: 90px; background: white; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #94a3b8; }

/* Footer */
.footer { background: #0f172a; color: white; padding: 6rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand .logo { color: white; margin-bottom: 1.5rem; text-decoration: none; font-size: 1.5rem; font-weight: 800; display: block; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { color: #94a3b8; font-size: 0.875rem; line-height: 1.6; max-width: 300px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 800; margin-bottom: 1.25rem; text-transform: uppercase; color: #f8fafc; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 2rem; color: #475569; font-size: 0.75rem; display: flex; justify-content: space-between; align-items: center; }
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-socials a:hover { color: white; }

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-width: 640px) {
  .settings-bar { grid-template-columns: 1fr; }
}
