/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #faf9f7;
  color: #1a1714;
  line-height: 1.6;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== CSS VARIABLES ===== */
:root {
  --brand: #E8593C;
  --brand-hover: #cf4a2d;
  --brand2: #3B8BD4;
  --dark: #1a1714;
  --bg: #faf9f7;
  --bg-alt: #f3f1ed;
  --white: #ffffff;
  --border: #ebe8e2;
  --muted: #7a7570;
  --text: #1a1714;
  --pdf-bg: #fff3f0;
  --pdf-text: #c0371c;
  --pdf-border: #fcd5cb;
  --img-bg: #eef5ff;
  --img-text: #1a5fb0;
  --img-border: #c3d9f7;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
  --transition: all .2s ease;
}

/* ===== CONTAINER ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
#navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 64px;
}
.logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: -0.5px; flex-shrink: 0;
}
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: var(--transition); padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--brand); color: #fff; border: none; border-radius: 9px;
  padding: 9px 22px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: var(--transition); white-space: nowrap; font-family: 'DM Sans', sans-serif;
}
.nav-cta:hover { background: var(--brand-hover); transform: translateY(-1px); }
.hamburger {
  display: none; background: none; border: none; font-size: 22px;
  cursor: pointer; margin-left: auto; padding: 4px;
}
.mobile-menu {
  display: none; flex-direction: column; border-top: 1px solid var(--border);
  background: var(--white); padding: 12px 24px 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  min-height: 88vh; display: flex; align-items: center;
  padding: 60px 24px; max-width: 1160px; margin: 0 auto; gap: 60px;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px; font-size: 13px;
  font-weight: 500; color: var(--muted); margin-bottom: 28px;
}
.badge-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; flex-shrink: 0; }
.hero-content h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(42px, 6vw, 68px); line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 22px;
}
.accent-pdf { color: var(--brand); }
.accent-img { color: var(--brand2); }
.hero-sub {
  font-size: 18px; color: var(--muted); line-height: 1.7;
  max-width: 480px; margin-bottom: 36px; font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 44px; flex-wrap: wrap; }
.btn-primary {
  background: var(--brand); color: #fff; padding: 14px 32px;
  border-radius: 11px; font-size: 15px; font-weight: 500;
  transition: var(--transition); display: inline-block;
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,89,60,.3); }
.btn-ghost {
  background: transparent; color: var(--text); padding: 14px 28px;
  border-radius: 11px; font-size: 15px; font-weight: 500; border: 1.5px solid var(--border);
  transition: var(--transition); display: inline-block;
}
.btn-ghost:hover { background: var(--white); border-color: #ccc; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.hstat strong { display: block; font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 700; }
.hstat span { font-size: 13px; color: var(--muted); }
.hstat-div { width: 1px; height: 36px; background: var(--border); }
/* Hero Visual */
.hero-visual { flex: 1; position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.hero-blob {
  width: 320px; height: 320px; background: radial-gradient(circle, #ffeee9 0%, #eef5ff 60%, transparent 100%);
  border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 0;
}
.floating-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow); z-index: 1; white-space: nowrap;
}
.floating-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); transition: var(--transition); }
.fc1 { top: 20px; left: -20px; animation: float1 4s ease-in-out infinite; }
.fc2 { top: 50%; right: -30px; transform: translateY(-50%); animation: float2 4.5s ease-in-out infinite; }
.fc3 { bottom: 20px; left: 0; animation: float3 5s ease-in-out infinite; }
.fc-icon { font-size: 28px; }
.pdf-icon { background: var(--pdf-bg); padding: 8px; border-radius: 10px; }
.img-icon { background: var(--img-bg); padding: 8px; border-radius: 10px; }
.fc-title { font-size: 13px; font-weight: 500; }
.fc-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.fc-check { color: #22c55e; font-size: 18px; margin-left: 8px; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float2 { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(calc(-50% - 10px))} }
@keyframes float3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ===== UPLOAD SECTION ===== */
.upload-section { padding: 0 0 80px; }
.upload-card {
  background: var(--dark); border-radius: 24px; padding: 52px 48px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.upload-bg-deco {
  position: absolute; top: -100px; right: -100px; width: 300px; height: 300px;
  background: var(--brand); opacity: .12; border-radius: 50%; pointer-events: none;
}
.upload-card h2 { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; margin-bottom: 10px; position: relative; }
.upload-card p { font-size: 15px; color: rgba(255,255,255,.55); margin-bottom: 28px; position: relative; font-weight: 300; }
.upload-area {
  border: 1.5px dashed rgba(255,255,255,.2); border-radius: 16px;
  padding: 44px 24px; background: rgba(255,255,255,.04); cursor: pointer;
  transition: var(--transition); position: relative;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--brand); background: rgba(232,89,60,.06);
}
.upload-icon-wrap { font-size: 44px; margin-bottom: 12px; }
.upload-main-text { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.upload-sub-text { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.upload-btn {
  background: var(--brand); color: #fff; border: none; border-radius: 9px;
  padding: 11px 28px; font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: var(--transition); margin-bottom: 20px;
}
.upload-btn:hover { background: var(--brand-hover); }
.format-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pill {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 6px;
}
.upload-result {
  margin-top: 20px; background: rgba(255,255,255,.08); border-radius: 12px;
  padding: 20px; display: flex; align-items: center; gap: 14px; text-align: left;
}
.result-icon { font-size: 28px; }
.result-text { font-size: 15px; font-weight: 500; }
.result-suggest { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ===== TOOLS SECTION ===== */
.tools-section { padding: 80px 0; }
.tools-section-alt { background: var(--white); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 6px; margin-bottom: 8px;
}
.pdf-tag { background: var(--pdf-bg); color: var(--pdf-text); }
.img-tag { background: var(--img-bg); color: var(--img-text); }
.section-title { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; }
.see-all { font-size: 14px; color: var(--brand); font-weight: 500; transition: var(--transition); }
.see-all:hover { opacity: .75; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tool-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; cursor: pointer; transition: var(--transition); position: relative;
  color: var(--text);
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #ddd; }
.tool-icon-wrap { font-size: 26px; width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; flex-shrink: 0; }
.pdf-wrap { background: var(--pdf-bg); }
.img-wrap { background: var(--img-bg); }
.tool-name { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.tool-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.tool-badge { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; margin-top: 12px; align-self: flex-start; }
.hot { background: #fef3c7; color: #92400e; }
.pdf-badge { background: var(--pdf-bg); color: var(--pdf-text); }
.img-badge { background: var(--img-bg); color: var(--img-text); }
.new-badge { background: #ecfdf5; color: #065f46; }

/* ===== WHY SECTION ===== */
.why-section { padding: 90px 0; background: var(--bg-alt); }
.why-header { text-align: center; margin-bottom: 52px; }
.why-header h2 { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.why-header p { font-size: 16px; color: var(--muted); font-weight: 300; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.why-icon { font-size: 36px; margin-bottom: 16px; }
.why-card h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: rgba(255,255,255,.85); padding: 60px 0 0; }
.footer-top { display: flex; gap: 60px; padding-bottom: 48px; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.7; font-weight: 300; max-width: 260px; }
.footer-links-group { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; letter-spacing: .3px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.45); transition: var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 10px;
}

/* ===== TOOL PAGE ===== */
.tool-page-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 60px 0 48px; }
.tool-page-hero .section-tag { margin-bottom: 12px; }
.tool-page-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.tool-page-hero p { font-size: 17px; color: var(--muted); font-weight: 300; max-width: 520px; }
.tool-work-area { padding: 60px 0; }
.work-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 40px; max-width: 700px; margin: 0 auto; }
.work-upload { border: 2px dashed var(--border); border-radius: 14px; padding: 52px 24px; text-align: center; cursor: pointer; transition: var(--transition); }
.work-upload:hover { border-color: var(--brand); background: #fff9f8; }
.work-upload-icon { font-size: 48px; margin-bottom: 14px; }
.work-upload h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.work-upload p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.btn-upload { background: var(--brand); color: #fff; border: none; border-radius: 9px; padding: 12px 28px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: var(--transition); }
.btn-upload:hover { background: var(--brand-hover); }
.steps-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.step-item { display: flex; align-items: flex-start; gap: 14px; }
.step-num { width: 28px; height: 28px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.step-text strong { display: block; font-weight: 500; font-size: 14px; }
.step-text span { font-size: 13px; color: var(--muted); }

/* ===== PAGE: ALL TOOLS ===== */
.page-hero { padding: 60px 0 48px; text-align: center; }
.page-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: var(--muted); font-weight: 300; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: auto; padding: 48px 24px; gap: 40px; }
  .hero-visual { display: none; }
  .footer-top { flex-direction: column; gap: 36px; }
}
@media (max-width: 600px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .hero-content h1 { font-size: 42px; letter-spacing: -1.5px; }
  .upload-card { padding: 28px 20px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links-group { gap: 28px; }
}
@media (max-width: 400px) {
  .tool-grid { grid-template-columns: 1fr; }
}
