@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg:          #0d1117;
  --surface:     #161b22;
  --surface2:    #1f2937;
  --border:      #30363d;
  --accent:      #f97316;
  --accent-dark: #ea6c08;
  --accent-glow: rgba(249,115,22,.25);
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --success:     #22c55e;
  --error:       #ef4444;
  --radius:      14px;
  --shadow:      0 8px 32px rgba(0,0,0,.45);
  --transition:  .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 62px;
  background: rgba(13,17,23,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.3px;
}
.navbar-brand .logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 1rem;
  box-shadow: 0 0 16px var(--accent-glow);
}
.navbar-brand span { color: var(--accent); }

.navbar-links { display: flex; gap: 1.4rem; }
.navbar-links a {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition);
}
.navbar-links a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(249,115,22,.15), transparent),
    var(--bg);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.3);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 1.4rem;
  letter-spacing: .04em; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -.5px;
  line-height: 1.15;
  max-width: 720px; margin: 0 auto .9rem;
}
.hero h1 span { color: var(--accent); }

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

/* ── Tools Grid ───────────────────────────────────────────────────────── */
.tools-section {
  max-width: 1200px; margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.tools-section h2 {
  font-size: 1.05rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

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

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.tool-card:hover::before { opacity: 1; }

.tool-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.2);
  position: relative; z-index: 1;
}

.tool-card h3 {
  font-size: 1rem; font-weight: 700;
  position: relative; z-index: 1;
}
.tool-card p {
  font-size: .82rem; color: var(--text-muted); line-height: 1.5;
  position: relative; z-index: 1;
}
.tool-card .card-link {
  display: flex; align-items: center; gap: .3rem;
  font-size: .82rem; font-weight: 600; color: var(--accent);
  margin-top: auto; position: relative; z-index: 1;
}

/* ── Tool Page Layout ─────────────────────────────────────────────────── */
.tool-page {
  max-width: 780px; margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.tool-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.tool-header .tool-icon-lg {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  box-shadow: 0 0 20px var(--accent-glow);
}
.tool-header h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.3px; }
.tool-header p  { font-size: .9rem; color: var(--text-muted); margin-top: .2rem; }

/* ── Panel ────────────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.25rem;
}

/* ── Drop Zone ────────────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(249,115,22,.07);
}
.drop-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.drop-zone .dz-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.drop-zone h3 { font-size: 1rem; font-weight: 600; margin-bottom: .35rem; }
.drop-zone p  { font-size: .83rem; color: var(--text-muted); }
.drop-zone .file-list {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.drop-zone .file-item {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface2); border-radius: 8px; padding: .5rem .75rem;
  font-size: .83rem; color: var(--text);
}
.drop-zone .file-item .fi-icon { color: var(--accent); }

/* ── Form Controls ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45rem;
  color: var(--text);
}
.form-group select,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"] {
  width: 100%; padding: .65rem .85rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: .9rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group select option { background: var(--surface2); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.6rem;
  border: none; border-radius: 10px;
  font-size: .93rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
  width: 100%; padding: .9rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-download {
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: #fff;
  padding: .85rem 2rem;
  box-shadow: 0 4px 14px rgba(34,197,94,.3);
  font-size: 1rem; width: 100%;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,197,94,.4); }

.btn-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; color: var(--text-muted); font-weight: 500;
  margin-bottom: 1.5rem; transition: color var(--transition);
}
.btn-back:hover { color: var(--text); }

/* ── Spinner ──────────────────────────────────────────────────────────── */
.spinner-wrap {
  display: none; flex-direction: column; align-items: center; gap: 1rem;
  padding: 2rem;
}
.spinner-wrap.visible { display: flex; }
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-wrap p { color: var(--text-muted); font-size: .9rem; }

/* ── Result Card ──────────────────────────────────────────────────────── */
.result-card {
  display: none; flex-direction: column; align-items: center;
  gap: 1rem; text-align: center;
}
.result-card.visible { display: flex; }
.result-card .result-icon { font-size: 3rem; }
.result-card h3 { font-size: 1.15rem; font-weight: 700; }
.result-card p  { font-size: .87rem; color: var(--text-muted); }

/* ── Alert ────────────────────────────────────────────────────────────── */
.alert {
  display: none;
  padding: .9rem 1.1rem;
  border-radius: 10px; font-size: .88rem; font-weight: 500;
  margin-top: 1rem;
}
.alert.visible { display: block; }
.alert-error   { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.3);  color: #86efac; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  text-align: center; padding: 2rem;
  font-size: .82rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
footer span { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .navbar { padding: 0 1rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .tool-page { padding: 2rem 1rem 4rem; }
  .panel { padding: 1.25rem; }
  .tools-section { padding: 1.5rem 1rem 3rem; }
}

/* ── New Landing Page Styles ─────────────────────────────────────────── */

.section-container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: .8rem; color: var(--text); text-transform: none; }
.section-header h2 span { color: var(--accent); }
.section-header p { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ── Main Hero Refine ─────────────────────────────────────────────────── */
.main-hero {
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 1.5rem 6rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(249,115,22,.1), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(249,115,22,.08), transparent 50%),
    var(--bg);
  min-height: 80vH;
}
.hero-content { max-width: 800px; text-align: center; }
.hero-content h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 1.5rem; line-height: 1.1; }
.hero-content p { font-size: 1.25rem; max-width: 600px; line-height: 1.5; margin-bottom: 2.5rem; }

.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.btn-large { padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-secondary { background: var(--surface2); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--border); border-color: var(--text-muted); }

/* ── Info & Features ─────────────────────────────────────────────────── */
.info-section { padding: 6rem 1.5rem; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.info-card {
  padding: 2.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}
.info-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.info-icon { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--accent); }
.info-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.info-card p { font-size: .95rem; color: var(--text-muted); line-height: 1.6; }

/* ── How It Works ─────────────────────────────────────────────────────── */
.how-it-works { padding: 6rem 1.5rem; background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.step-item { text-align: center; position: relative; }
.step-number {
  width: 50px; height: 50px; background: var(--accent); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800; margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px var(--accent-glow);
}
.step-item h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.step-item p { font-size: .95rem; color: var(--text-muted); }

/* ── Final CTA ───────────────────────────────────────────────────────── */
.final-cta { padding: 4rem 1.5rem 8rem; text-align: center; }
.final-cta .panel {
  max-width: 900px; margin: 0 auto;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--surface), var(--bg));
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.final-cta h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.final-cta p { font-size: 1.1rem; color: var(--text-muted); }

/* ── Floating Icons Animation ───────────────────────────────────────── */
.hero-visual { display: none; }

@media (min-width: 1024px) {
  .main-hero { text-align: left; justify-content: space-between; }
  .hero-content { text-align: left; }
  .hero-ctas { justify-content: flex-start; }
  .hero-visual {
    display: block; width: 40%; position: relative; height: 400px;
  }
}

.floating-icons { position: absolute; inset: 0; }
.f-icon {
  position: absolute; font-size: 3.5rem; width: 100px; height: 100px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; display: grid; place-items: center;
  animation: float 4s ease-in-out infinite; box-shadow: var(--shadow);
}
.f-icon:nth-child(1) { top: 0; left: 10%; animation-delay: 0s; }
.f-icon:nth-child(2) { top: 40%; left: 50%; animation-delay: 1s; }
.f-icon:nth-child(3) { bottom: 0; left: 20%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

