@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --surface: #1c1c28;
  --border: #2a2a3d;
  --accent: #ff5533;
  --accent2: #ff8866;
  --accent3: #ffcc44;
  --text: #f0f0f5;
  --text2: #9999bb;
  --text3: #6666888;
  --radius: 14px;
  --radius-lg: 24px;
}

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

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 40px;
  height: 64px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 8px; list-style: none;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-cta {
  background: var(--accent);
  color: white !important;
  font-weight: 500;
}
.nav-cta:hover { background: #e04422 !important; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 800px 500px at 50% 0%, rgba(255,85,51,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 80%, rgba(255,204,68,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.8rem; color: var(--text2); margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #44dd88;
  box-shadow: 0 0 8px #44dd88;
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 44px;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  background: var(--accent);
  color: white; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 500;
  padding: 14px 32px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #e04422; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,85,51,0.35); }

.btn-secondary {
  background: var(--surface);
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 500;
  padding: 14px 32px; border-radius: 10px;
  text-decoration: none; border: 1px solid var(--border); cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
/* Override for the glowing "See All Tools" button */
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #ff5500, #ff9500, #ff5500);
  background-size: 200% 200%;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  animation: gradientShift 2.5s ease infinite, pulseGlow 2s ease-in-out infinite;
  box-shadow:
    0 0 12px rgba(255, 120, 0, 0.6),
    0 0 30px rgba(255, 80, 0, 0.35),
    0 0 60px rgba(255, 60, 0, 0.15);
  z-index: 1;
  overflow: hidden;
}

/* Animated shimmer sweep */
.btn-glow::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  animation: shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

/* Ripple ring */
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(255, 140, 0, 0.7);
  animation: ringPulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(255, 120, 0, 0.55),
      0 0 25px rgba(255, 80, 0, 0.3),
      0 0 50px rgba(255, 60, 0, 0.12);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 18px rgba(255, 140, 0, 0.85),
      0 0 45px rgba(255, 100, 0, 0.55),
      0 0 80px rgba(255, 70, 0, 0.25);
    transform: scale(1.04);
  }
}

@keyframes shimmer {
  0%   { left: -75%; }
  60%, 100% { left: 125%; }
}

@keyframes ringPulse {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

.btn-glow:hover {
  background: linear-gradient(135deg, #ff6a00, #ffaa00, #ff6a00);
  background-size: 200% 200%;
  transform: scale(1.07) !important;
  box-shadow:
    0 0 22px rgba(255, 140, 0, 0.95),
    0 0 55px rgba(255, 100, 0, 0.65),
    0 0 90px rgba(255, 70, 0, 0.3) !important;
  animation: gradientShift 1.2s ease infinite !important;
}
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 64px; padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat { text-align: center; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--text);
}
.stat-label { font-size: 0.82rem; color: var(--text2); margin-top: 2px; }

/* TOOLS GRID */
.tools-section {
  padding: 100px 40px;
  max-width: 1200px; margin: 0 auto;
}

.section-header {
  text-align: center; margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc { color: var(--text2); font-size: 1.05rem; }

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

.tool-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  transition: all 0.25s;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  cursor: pointer;
}

.tool-card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.3s;
}

.tool-card:hover {
  border-color: var(--card-accent, var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.tool-card:hover::before { opacity: 1; }

.tool-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: var(--card-bg, rgba(255,85,51,0.12));
  color: var(--card-accent, var(--accent));
}

.tool-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text);
}

.tool-desc { font-size: 0.82rem; color: var(--text2); line-height: 1.5; }

.tool-arrow {
  margin-top: auto;
  font-size: 0.8rem; color: var(--text2);
  display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.tool-card:hover .tool-arrow { gap: 8px; color: var(--card-accent, var(--accent)); }

/* CONVERTER TOOL */
.converter-page {
  padding: 120px 40px 80px;
  max-width: 900px; margin: 0 auto;
}

.page-breadcrumb {
  font-size: 0.82rem; color: var(--text2);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 8px;
}
.page-breadcrumb a { color: var(--text2); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--accent); }

.page-hero { margin-bottom: 48px; }
.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-hero p { color: var(--text2); font-size: 1.05rem; }

/* DROP ZONE */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  background: var(--bg3);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(255,85,51,0.05);
}

.drop-icon {
  font-size: 3rem; margin-bottom: 16px;
  display: block;
}

.drop-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 8px;
}

.drop-sub { color: var(--text2); font-size: 0.9rem; margin-bottom: 24px; }

.drop-input { display: none; }

.file-list {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}

.file-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: left;
}

.file-item-icon { font-size: 1.4rem; }
.file-item-name { font-size: 0.9rem; font-weight: 500; flex: 1; }
.file-item-size { font-size: 0.78rem; color: var(--text2); }
.file-item-remove {
  background: none; border: none; color: var(--text2);
  cursor: pointer; font-size: 1.1rem; padding: 4px;
  border-radius: 6px; transition: all 0.2s;
}
.file-item-remove:hover { color: var(--accent); background: rgba(255,85,51,0.1); }

/* OPTIONS */
.tool-options {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 20px;
}

.options-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700; margin-bottom: 20px;
  font-size: 1rem;
}

.options-row {
  display: flex; gap: 16px; flex-wrap: wrap;
}

.option-group { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 160px; }
.option-label { font-size: 0.8rem; color: var(--text2); font-weight: 500; }

.option-select, .option-range {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  appearance: none;
}
.option-select:focus, .option-range:focus {
  outline: none; border-color: var(--accent);
}

input[type=range] {
  -webkit-appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  padding: 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%; cursor: pointer;
}

.convert-btn-wrap {
  margin-top: 24px; text-align: center;
}

.btn-convert {
  background: var(--accent);
  color: white; font-family: 'Syne', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  padding: 16px 48px; border-radius: 12px;
  border: none; cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-convert:hover { background: #e04422; transform: translateY(-2px); box-shadow: 0 10px 35px rgba(255,85,51,0.4); }
.btn-convert:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.progress-bar-wrap {
  margin-top: 16px;
  display: none;
}
.progress-bar-wrap.show { display: block; }
.progress-bar {
  height: 4px; background: var(--border); border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 4px; width: 0%;
  transition: width 0.3s;
  box-shadow: 0 0 12px rgba(255,85,51,0.5);
}

/* RESULTS */
.results-section {
  margin-top: 32px;
  display: none;
}
.results-section.show { display: block; }
.results-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.results-title { font-family: 'Syne', sans-serif; font-weight: 700; }
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.result-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.result-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.result-card-bottom { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.result-name { font-size: 0.75rem; color: var(--text2); }
.btn-dl {
  background: var(--accent); color: white;
  border: none; padding: 5px 12px; border-radius: 6px;
  font-size: 0.75rem; cursor: pointer; font-family: 'DM Sans';
  transition: all 0.2s;
}
.btn-dl:hover { background: #e04422; }

/* HOW IT WORKS */
.how-section {
  padding: 80px 40px;
  background: var(--bg2);
}
.how-inner { max-width: 1100px; margin: 0 auto; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 56px;
}

.step {
  text-align: center; padding: 32px 24px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem; font-weight: 800;
  color: var(--border); margin-bottom: 16px;
  line-height: 1;
}

.step-icon { font-size: 1.8rem; margin-bottom: 16px; display: block; }
.step-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.step-desc { color: var(--text2); font-size: 0.88rem; line-height: 1.6; }

/* BENEFITS */
.benefits-section {
  padding: 100px 40px;
  max-width: 1200px; margin: 0 auto;
}

.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 56px;
}

.benefit-card {
  padding: 28px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.benefit-icon {
  font-size: 1.8rem; margin-bottom: 14px; display: block;
}
.benefit-title { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 8px; }
.benefit-desc { color: var(--text2); font-size: 0.88rem; line-height: 1.6; }

/* FAQ */
.faq-section {
  padding: 80px 40px;
  background: var(--bg2);
}
.faq-inner { max-width: 760px; margin: 0 auto; }

.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  padding: 20px 24px;
  font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  transition: color 0.2s;
  user-select: none;
}
.faq-q:hover { color: var(--accent); }

.faq-icon {
  font-size: 1.2rem; transition: transform 0.3s;
  flex-shrink: 0; color: var(--text2);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  color: var(--text2); font-size: 0.9rem; line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* FOOTER */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 40px 32px;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p { color: var(--text2); font-size: 0.88rem; margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-col-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text2);
  max-width: 1200px; margin: 0 auto;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 32px; }
  .tools-section, .converter-page, .benefits-section { padding: 60px 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .how-section, .faq-section { padding: 60px 20px; }
}

/* NOTIFICATION */
.toast {
  position: fixed; bottom: 32px; right: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; z-index: 999;
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.1rem; }
