/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Georgia', 'Times New Roman', serif; font-size: 16px; line-height: 1.7; color: #1a1a2e; background: #fff; }

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1340a8;
  --primary-light: #e8f0fe;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1a1a2e;
  --text-light: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --bg-light: #f7f9fc;
  --bg-section: #f0f4ff;
  --white: #ffffff;
  --green: #10b981;
  --red: #ef4444;
  --shadow: 0 2px 16px rgba(26,86,219,0.10);
  --shadow-lg: 0 8px 32px rgba(26,86,219,0.15);
  --radius: 10px;
  --radius-lg: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== CONTAINER ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAV ===== */
.site-header { background: var(--white); border-bottom: 2px solid var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(26,86,219,0.08); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo { font-family: 'Arial Black', 'Arial', sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--primary); letter-spacing: -0.5px; text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a { font-family: Arial, sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--text-light); padding: 6px 12px; border-radius: 6px; transition: all 0.2s; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-light); color: var(--primary); }
.nav-toggle { display: none; background: none; border: 2px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn-primary { display: inline-block; background: var(--primary); color: #fff; font-family: Arial, sans-serif; font-size: 0.95rem; font-weight: 700; padding: 12px 24px; border-radius: var(--radius); border: none; cursor: pointer; text-align: center; text-decoration: none; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-secondary { display: inline-block; background: var(--white); color: var(--primary); font-family: Arial, sans-serif; font-size: 0.9rem; font-weight: 600; padding: 10px 20px; border-radius: var(--radius); border: 2px solid var(--primary); cursor: pointer; text-align: center; text-decoration: none; transition: all 0.2s; margin-top: 8px; }
.btn-secondary:hover { background: var(--primary-light); text-decoration: none; }
.btn-outline { display: inline-block; background: transparent; color: var(--primary); font-family: Arial, sans-serif; font-size: 0.95rem; font-weight: 600; padding: 10px 24px; border-radius: var(--radius); border: 2px solid var(--primary); text-decoration: none; transition: all 0.2s; }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ===== HERO / TOOL ===== */
.hero-section { background: linear-gradient(135deg, #1a56db 0%, #1340a8 60%, #0f2d7a 100%); padding: 60px 0 50px; }
.hero-text { text-align: center; margin-bottom: 36px; }
.hero-text h1 { font-family: Arial, sans-serif; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; color: #fff; line-height: 1.25; margin-bottom: 14px; }
.hero-sub { font-family: Arial, sans-serif; font-size: 1.08rem; color: rgba(255,255,255,0.85); max-width: 660px; margin: 0 auto; }

/* TOOL BOX */
.tool-box { background: #fff; border-radius: var(--radius-lg); padding: 36px 40px; max-width: 780px; margin: 0 auto; box-shadow: 0 12px 48px rgba(0,0,0,0.2); }
.tool-header { text-align: center; margin-bottom: 24px; }
.tool-badge { background: var(--green); color: #fff; font-family: Arial, sans-serif; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px; }
.tool-header h2 { font-family: Arial, sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 10px 0 6px; }
.tool-header p { font-family: Arial, sans-serif; color: var(--text-muted); font-size: 0.92rem; }

.input-row { display: flex; gap: 10px; margin-bottom: 10px; }
.url-input { flex: 1; padding: 14px 18px; border: 2px solid var(--border); border-radius: var(--radius); font-family: Arial, sans-serif; font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s; }
.url-input:focus { border-color: var(--primary); }
.url-input::placeholder { color: var(--text-muted); }
.btn-download { background: var(--accent); color: #fff; font-family: Arial, sans-serif; font-size: 1rem; font-weight: 800; padding: 14px 28px; border: none; border-radius: var(--radius); cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.btn-download:hover { background: var(--accent-dark); }

.example-links { font-family: Arial, sans-serif; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.example-links code { background: var(--bg-light); padding: 2px 6px; border-radius: 4px; font-size: 0.78rem; color: var(--primary); }

/* PROGRESS */
.progress-area { display: none; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--bg-light); }
.progress-area.active { display: block; }
.progress-steps { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.step { font-family: Arial, sans-serif; font-size: 0.85rem; color: var(--text-muted); padding: 4px 10px; border-radius: 6px; transition: all 0.3s; }
.step.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.step.done { color: var(--green); }
.progress-bar-wrap { background: var(--border); border-radius: 10px; height: 18px; position: relative; overflow: hidden; margin-bottom: 10px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 10px; width: 0%; transition: width 0.4s ease; }
.progress-pct { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: Arial, sans-serif; font-size: 0.78rem; font-weight: 700; color: #fff; mix-blend-mode: difference; }
.progress-status { font-family: Arial, sans-serif; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* STOPPED NOTICE */
.stopped-notice { display: none; margin-top: 20px; text-align: center; background: #fff8f0; border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.stopped-notice.active { display: block; }
.notice-icon { font-size: 2rem; margin-bottom: 8px; }
.stopped-notice h3 { font-family: Arial, sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.stopped-notice p { font-family: Arial, sans-serif; font-size: 0.92rem; color: var(--text-light); margin-bottom: 16px; }

.tool-features { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.tool-features span { font-family: Arial, sans-serif; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* ===== SECTIONS COMMON ===== */
section { padding: 70px 0; }
.section-label { font-family: Arial, sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; text-align: center; }
.section-title { font-family: Arial, sans-serif; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--text); text-align: center; margin-bottom: 14px; line-height: 1.3; }
.section-sub { font-family: Arial, sans-serif; font-size: 1rem; color: var(--text-muted); text-align: center; max-width: 620px; margin: 0 auto 48px; }

/* ===== RECOMMENDED SECTION ===== */
.recommended-section { background: var(--bg-section); }
.app-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.app-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px; border: 1px solid var(--border); position: relative; text-align: center; box-shadow: var(--shadow); }
.app-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.card-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-family: Arial, sans-serif; font-size: 0.78rem; font-weight: 700; padding: 4px 16px; border-radius: 20px; white-space: nowrap; }
.app-icon { font-size: 2.6rem; margin-bottom: 14px; }
.app-card h3 { font-family: Arial, sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.app-card p { font-family: Arial, sans-serif; font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }
.card-features { text-align: left; margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.card-features li { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--text-light); }
.app-card .btn-primary, .app-card .btn-secondary { width: 100%; display: block; }

/* ===== HOW IT WORKS MINI ===== */
.how-mini-section { background: var(--white); }
.steps-row { display: flex; align-items: flex-start; gap: 0; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.step-card { background: var(--bg-light); border-radius: var(--radius); padding: 28px 24px; text-align: center; flex: 1; min-width: 220px; max-width: 300px; border: 1px solid var(--border); }
.step-num { width: 44px; height: 44px; background: var(--primary); color: #fff; font-family: Arial, sans-serif; font-size: 1.3rem; font-weight: 900; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.step-card h3 { font-family: Arial, sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step-card p { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--text-muted); }
.step-arrow { font-size: 1.8rem; color: var(--primary); padding: 0 10px; align-self: center; font-weight: 700; }
.how-cta { text-align: center; }

/* ===== FORMATS SECTION ===== */
.formats-section { background: var(--bg-section); }
.formats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.format-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.format-icon { font-size: 2rem; margin-bottom: 10px; }
.format-card h3 { font-family: Arial, sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.format-card p { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--text-light); }

/* ===== WHY SECTION ===== */
.why-section { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.why-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.why-card h3 { font-family: Arial, sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.why-card p { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--text-light); }

/* ===== CONTENT + SIDEBAR ===== */
.content-section { background: var(--bg-light); padding: 70px 0; }
.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.main-content h2 { font-family: Arial, sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--text); margin: 30px 0 12px; }
.main-content h2:first-child { margin-top: 0; }
.main-content p { font-family: Georgia, serif; font-size: 0.97rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.main-content strong { color: var(--text); }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.sidebar-widget h3 { font-family: Arial, sans-serif; font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.sidebar-widget ul { display: flex; flex-direction: column; gap: 8px; }
.sidebar-widget ul li a { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--primary); text-decoration: none; }
.sidebar-widget ul li a:hover { text-decoration: underline; }
.sidebar-widget ul li { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--text-light); }
.highlight-widget { background: var(--primary-light); border-color: var(--primary); }
.highlight-widget h3 { border-color: var(--primary); color: var(--primary); }
.highlight-widget p { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--text-light); margin-bottom: 14px; }
.review { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.review:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.stars { font-size: 0.9rem; margin-bottom: 4px; }
.review p { font-family: Arial, sans-serif; font-size: 0.83rem; color: var(--text-light); font-style: italic; margin-bottom: 4px; }
.review small { font-family: Arial, sans-serif; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

/* ===== FAQ ===== */
.faq-mini-section { background: var(--white); }
.faq-list { max-width: 780px; margin: 0 auto 32px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { font-family: Arial, sans-serif; font-size: 0.97rem; font-weight: 700; color: var(--text); padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--bg-light); user-select: none; }
.faq-q:hover { background: var(--primary-light); color: var(--primary); }
.faq-q span { font-size: 1.2rem; color: var(--primary); font-weight: 700; }
.faq-a { font-family: Arial, sans-serif; font-size: 0.9rem; color: var(--text-light); padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-a.open { max-height: 200px; padding: 14px 20px; }
.faq-cta { text-align: center; }

/* ===== STATS ===== */
.stats-section { background: var(--primary); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat-card { text-align: center; }
.stat-number { font-family: Arial, sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat-label { font-family: Arial, sans-serif; font-size: 0.9rem; color: rgba(255,255,255,0.75); font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer { background: #0f1c3a; color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: Arial, sans-serif; font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-col p { font-family: Arial, sans-serif; font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { font-family: Arial, sans-serif; font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-family: Arial, sans-serif; font-size: 0.88rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; text-align: center; }
.footer-bottom p { font-family: Arial, sans-serif; font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 6px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, #1a56db 0%, #1340a8 100%); padding: 50px 0; text-align: center; }
.page-hero h1 { font-family: Arial, sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: #fff; margin-bottom: 12px; }
.page-hero p { font-family: Arial, sans-serif; font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--bg-light); padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb span, .breadcrumb a { font-family: Arial, sans-serif; font-size: 0.83rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; }

/* ===== BLOG CARDS ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-bottom: 40px; }
.blog-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.blog-card-img { background: linear-gradient(135deg, var(--primary-light), var(--bg-section)); height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 22px; }
.blog-tag { font-family: Arial, sans-serif; font-size: 0.75rem; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card-body h3 { font-family: Arial, sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.blog-card-body h3 a { color: var(--text); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; }
.blog-meta { font-family: Arial, sans-serif; font-size: 0.8rem; color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 640px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { font-family: Arial, sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: Arial, sans-serif; font-size: 0.92rem; color: var(--text); outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ===== ABOUT PAGE ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius); padding: 28px 20px; border: 1px solid var(--border); }
.team-avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 14px; }
.team-card h3 { font-family: Arial, sans-serif; font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-card p { font-family: Arial, sans-serif; font-size: 0.83rem; color: var(--text-muted); }

/* ===== GENERIC CONTENT PAGE ===== */
.page-content { padding: 60px 0; }
.page-content-wrap { max-width: 820px; margin: 0 auto; }
.page-content-wrap h2 { font-family: Arial, sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 32px 0 12px; }
.page-content-wrap h3 { font-family: Arial, sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.page-content-wrap p { font-family: Georgia, serif; font-size: 0.97rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.page-content-wrap ul, .page-content-wrap ol { padding-left: 24px; margin-bottom: 14px; }
.page-content-wrap li { font-family: Arial, sans-serif; font-size: 0.92rem; color: var(--text-light); margin-bottom: 6px; list-style: disc; }

/* ===== CTA BANNER ===== */
.cta-banner { background: linear-gradient(135deg, #1a56db, #0f2d7a); padding: 50px 0; text-align: center; }
.cta-banner h2 { font-family: Arial, sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-banner p { font-family: Arial, sans-serif; font-size: 1rem; color: rgba(255,255,255,0.8); margin-bottom: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-widget { flex: 1; min-width: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step-arrow { display: none; }
  .steps-row { gap: 16px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; width: 100%; background: #fff; padding: 12px 0; position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 24px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .navbar { position: relative; flex-wrap: wrap; }
  .tool-box { padding: 24px 18px; }
  .input-row { flex-direction: column; }
  .btn-download { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .progress-steps { flex-direction: column; gap: 8px; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.bg-light { background: var(--bg-light); }