:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --text-soft: #64748b;
  --accent: #2563eb;
  --border: #e2e8f0;
  --radius: 24px;
  --container: 900px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { 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); }

/* Main Content */
.main-content { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.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: 3rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-header p { color: var(--text-soft); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

.tool-card { background: white; border-radius: var(--radius); padding: 3rem; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  background: #f8fafc;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--accent); background: #f0f7ff; }
.drop-zone .icon { font-size: 3rem; color: var(--accent); margin-bottom: 1.5rem; }
.drop-zone h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.drop-zone p { color: var(--text-soft); font-size: 0.875rem; }

/* Preview Section */
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.preview-header h3 { font-size: 1.25rem; font-weight: 800; }
.btn-text { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 0.875rem; cursor: pointer; }

.favicon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.favicon-item { text-align: center; }
.icon-preview { 
  width: 100%; aspect-ratio: 1; background: #f1f5f9; border-radius: 12px; 
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  border: 1px solid var(--border); overflow: hidden;
}
.icon-preview img { max-width: 80%; height: auto; image-rendering: pixelated; }
.icon-label { font-size: 0.75rem; font-weight: 700; color: var(--text-soft); }

/* Actions */
.download-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }
.btn-primary { 
  flex: 1; padding: 1.25rem; background: var(--accent); color: white; 
  border: none; border-radius: 100px; font-weight: 800; cursor: pointer; transition: 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary { 
  flex: 1; padding: 1.25rem; background: #f1f5f9; color: var(--text); 
  border: none; border-radius: 100px; font-weight: 800; cursor: pointer; transition: 0.2s;
}
.btn-secondary:hover { background: #e2e8f0; }

/* Snippet */
.code-snippet-box { background: #0f172a; border-radius: 16px; padding: 1.5rem; color: #94a3b8; }
.snippet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.snippet-header span { font-size: 0.75rem; font-weight: 700; color: white; }
.btn-copy { background: rgba(255,255,255,0.1); border: none; color: white; padding: 0.4rem 0.75rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; }
.btn-copy:hover { background: rgba(255,255,255,0.2); }
pre { overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; line-height: 1.6; }
code { color: #38bdf8; }

/* Footer */
.footer { background: #0f172a; color: white; padding: 6rem 0 2rem; margin-top: 4rem; }
.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; }

/* Ad */
.ad-container { margin-top: 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; }

    .mobile-only { display: none; }
    
    .menu-toggle {
      display: none;
      flex-direction: column;
      gap: 6px;
      cursor: pointer;
      padding: 0.5rem;
      z-index: 1001;
      transition: var(--ease);
    }
    .menu-toggle span {
      width: 24px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: 0.3s;
    }
    
    /* Menu Toggle Animation */
    .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 var(--ease);
    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 var(--ease);
    min-width: unset;
    width: 100%;
  }
  
  .nav-item.active .dropdown { height: auto; padding-top: 1rem; }
  .nav-item.active .chevron { transform: rotate(180deg); }
  .chevron { transition: 0.3s; }
}

@media (max-width: 768px) {
  .section-header h1 { font-size: 2.25rem; }
  .tool-card { padding: 1.5rem; }
  .favicon-grid { grid-template-columns: repeat(2, 1fr); }
  .download-actions { flex-direction: column; }
  .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; }
}
