/* ── Root Variables ──────────────────────────────────────────────────── */
:root {
  --primary:       #1A73E8;
  --primary-dark:  #1558B0;
  --primary-light: #E8F0FE;
  --text:          #1C2033;
  --text-muted:    #5F6B7C;
  --border:        #DDE1E7;
  --bg-white:      #FFFFFF;
  --bg-gray:       #F7F8FA;
  --bg-hero:       #0A1628;
  --success:       #1E8A44;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.14);
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font); color: var(--text); background: var(--bg-white); margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
p { line-height: 1.75; color: var(--text-muted); margin-bottom: 1rem; }

/* ── Navbar ──────────────────────────────────────────────────────────── */
#mainNav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: -.5px;
}
.brand-dot { color: var(--text-muted); font-weight: 400; }
.navbar-nav .nav-link { color: var(--text-muted) !important; font-weight: 500; font-size: .9rem; padding: .4rem .75rem !important; border-radius: 6px; transition: color .15s, background .15s; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; background: var(--primary-light); }
.navbar-toggler { border: 1px solid var(--border); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; border-radius: var(--radius-sm); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ── Hero Section ────────────────────────────────────────────────────── */
.hero-section {
  background: var(--bg-hero);
  background-image: radial-gradient(ellipse at 60% 0%, rgba(26,115,232,.25) 0%, transparent 60%),
                    radial-gradient(ellipse at 10% 80%, rgba(26,115,232,.12) 0%, transparent 50%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-block;
  background: rgba(26,115,232,.18);
  color: #82b4ff;
  border: 1px solid rgba(26,115,232,.35);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .35rem 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: .75rem 0 1rem;
  letter-spacing: -.5px;
}
.hero-accent { color: #60a5fa; }
.hero-sub { color: #9bb8d8; font-size: 1.05rem; margin-bottom: 2.5rem; }

/* ── Tool Card ───────────────────────────────────────────────────────── */
.tool-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

/* Input + Button stacked layout (mobile-first) */
.tool-field-wrap {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.tool-input {
  width: 100%;
  background: rgba(255,255,255,.96);
  border: 1.5px solid rgba(255,255,255,.25) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text);
  font-size: .95rem;
  height: 52px;
  padding: 0 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.tool-input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,115,232,.25) !important;
  border-color: var(--primary) !important;
  outline: none;
}
.tool-input.is-invalid { border-color: #f87171 !important; }
.btn-shorten {
  width: 100%;
  height: 50px;
  font-size: .95rem;
  font-weight: 700;
  border-radius: var(--radius-sm) !important;
  letter-spacing: .01em;
}
.invalid-msg { color: #f87171; font-size: .83rem; text-align: left; }

/* Desktop: side-by-side */
@media (min-width: 576px) {
  .tool-field-wrap { flex-direction: row; gap: 0; }
  .tool-input {
    border-right: none !important;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    flex: 1;
  }
  .btn-shorten {
    width: auto;
    padding: 0 1.6rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    white-space: nowrap;
  }
}

/* ── Result animation + copy state ───────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
#copyBtn.copied { background: #16a34a !important; }

.tool-note { color: rgba(155,184,216,.4); font-size: .78rem; }

/* ── Section styles ──────────────────────────────────────────────────── */
.section-white { background: var(--bg-white); }
.section-gray  { background: var(--bg-gray); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: .5rem; letter-spacing: -.3px; }
.section-sub   { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 0; }
.section-body  { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 1rem; }

/* ── Step Cards ──────────────────────────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.step-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.step-desc  { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── Feature Cards ───────────────────────────────────────────────────── */
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon  { font-size: 1.8rem; margin-bottom: .6rem; }
.feature-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.feature-desc  { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-accordion { border-radius: var(--radius); overflow: hidden; }
.faq-item { border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; margin-bottom: .5rem; overflow: hidden; }
.faq-btn {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-white);
  padding: 1rem 1.25rem;
}
.faq-btn:not(.collapsed) { color: var(--primary); background: var(--primary-light); }
.faq-btn::after { filter: none; }
.faq-body { font-size: .9rem; color: var(--text-muted); padding: .75rem 1.25rem 1rem; line-height: 1.7; }

/* ── CTA Section ─────────────────────────────────────────────────────── */
.cta-section { background: var(--bg-hero); }
.cta-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.cta-sub   { color: #9bb8d8; margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-brand { color: #e2e8f0 !important; font-weight: 700; font-size: 1.1rem; display: block; margin-bottom: .25rem; }
.footer-tagline { color: #6b7280; font-size: .82rem; margin: 0; }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-nav a { color: #9ca3af; font-size: .88rem; transition: color .15s; }
.footer-nav a:hover { color: #e2e8f0; text-decoration: none; }
.footer-copy { color: #6b7280; font-size: .82rem; margin: 0; }

/* ── Page Hero (inner pages) ─────────────────────────────────────────── */
.page-hero {
  background: var(--bg-hero);
  padding: 3.5rem 0 3rem;
}
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: .5rem; }
.page-sub   { color: #9bb8d8; font-size: 1rem; margin: 0; }

/* ── About page ──────────────────────────────────────────────────────── */
.content-h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-top: 2rem; margin-bottom: .75rem; }
.info-box { background: var(--bg-gray); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.25rem 1.5rem; }
.info-box-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: .6rem; }
.info-box code { color: var(--text-muted); font-size: .84rem; word-break: break-all; }
.compare-table { border-radius: var(--radius-sm); overflow: hidden; font-size: .9rem; }
.compare-table thead th { background: var(--primary); color: #fff; border: none; font-weight: 600; padding: .75rem 1rem; }
.compare-table tbody tr:nth-child(even) { background: var(--bg-gray); }
.compare-table td, .compare-table th { padding: .65rem 1rem; border-color: var(--border); vertical-align: middle; }

/* ── Contact card ────────────────────────────────────────────────────── */
.contact-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-control { border-radius: var(--radius-sm); border: 1.5px solid var(--border); padding: .6rem .85rem; font-size: .93rem; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,.12); outline: none; }
.form-label { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.fw-500 { font-weight: 500; }

/* ── Privacy page ────────────────────────────────────────────────────── */
.legal-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-top: 2.25rem; margin-bottom: .6rem; }
.legal-content ul { color: var(--text-muted); line-height: 1.8; padding-left: 1.5rem; }
.legal-content p  { color: var(--text-muted); }
.privacy-highlight {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  font-size: .93rem; color: var(--text-muted);
}
.privacy-highlight strong { color: var(--text); }
.ph-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ── Error page ──────────────────────────────────────────────────────── */
.error-section { background: var(--bg-hero); min-height: 70vh; display: flex; align-items: center; }
.error-icon  { font-size: 4rem; margin-bottom: 1rem; opacity: .7; }
.error-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.error-sub   { color: #9bb8d8; max-width: 500px; margin: 0 auto; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .hero-section { padding: 3.5rem 0 3rem; }
  .tool-card { padding: 1.1rem; }
  .hero-title { font-size: 1.85rem; }
}

/* ── Blog Tool Widget ─────────────────────────────────────────────────── */
.blog-tool-widget {
  background: linear-gradient(135deg, #0f2040 0%, #1a3a6b 100%);
  border: 1px solid rgba(26,115,232,.4);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.btw-label {
  font-size: .8rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .85rem;
}
.btw-field-wrap { display:flex; flex-direction:column; gap:.5rem; }
.btw-input {
  background: rgba(255,255,255,.96) !important;
  border: 1.5px solid rgba(255,255,255,.2) !important;
  border-radius: 8px !important;
  color: #1C2033 !important;
  height: 46px;
  font-size: .92rem;
}
.btw-input:focus { border-color: #1A73E8 !important; box-shadow: 0 0 0 3px rgba(26,115,232,.2) !important; }
.btw-btn { height: 46px; font-weight: 700; border-radius: 8px !important; }
@media (min-width:576px) {
  .btw-field-wrap { flex-direction:row; gap:0; }
  .btw-input { border-right:none !important; border-radius:8px 0 0 8px !important; flex:1; }
  .btw-btn { border-radius:0 8px 8px 0 !important; padding:0 1.4rem; white-space:nowrap; }
}

/* ── Blog Layout ─────────────────────────────────────────────────────── */
.blog-hero { background: var(--bg-hero); padding: 3rem 0 2.5rem; }
.blog-hero-badge { display:inline-block; background:rgba(26,115,232,.18); color:#82b4ff; border:1px solid rgba(26,115,232,.3); border-radius:50px; font-size:.75rem; font-weight:600; padding:.3rem .9rem; margin-bottom:.75rem; letter-spacing:.04em; }
.blog-title { font-size:clamp(1.7rem,4vw,2.6rem); font-weight:800; color:#fff; line-height:1.2; margin-bottom:.75rem; letter-spacing:-.3px; }
.blog-meta { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.blog-meta span { font-size:.8rem; color:#9bb8d8; display:flex; align-items:center; gap:.35rem; }

.blog-body { padding: 2.5rem 0 3rem; }
.blog-content { max-width: 760px; }
.blog-content h2 { font-size:1.45rem; font-weight:700; color:var(--text); margin:2.5rem 0 .8rem; padding-bottom:.4rem; border-bottom:2px solid var(--primary-light); }
.blog-content h3 { font-size:1.15rem; font-weight:700; color:var(--text); margin:1.8rem 0 .6rem; }
.blog-content p { font-size:1rem; color:var(--text-muted); line-height:1.85; margin-bottom:1.1rem; }
.blog-content ul, .blog-content ol { color:var(--text-muted); font-size:1rem; line-height:1.85; padding-left:1.5rem; margin-bottom:1.1rem; }
.blog-content li { margin-bottom:.4rem; }
.blog-content a { color:var(--primary); }
.blog-content strong { color:var(--text); font-weight:600; }
.blog-content table { width:100%; border-collapse:collapse; margin:1.5rem 0; font-size:.93rem; }
.blog-content table th { background:var(--primary); color:#fff; padding:.65rem .9rem; font-weight:600; text-align:left; }
.blog-content table td { padding:.6rem .9rem; border-bottom:1px solid var(--border); }
.blog-content table tr:nth-child(even) td { background:var(--bg-gray); }

.callout { background:var(--primary-light); border-left:4px solid var(--primary); border-radius:0 10px 10px 0; padding:1rem 1.25rem; margin:1.5rem 0; }
.callout p { margin:0; color:var(--text); font-size:.95rem; }

.step-list { list-style:none; padding:0; counter-reset:steps; }
.step-list li { counter-increment:steps; display:flex; gap:1rem; margin-bottom:1.1rem; align-items:flex-start; }
.step-list li::before { content:counter(steps); display:flex; align-items:center; justify-content:center; width:28px; height:28px; background:var(--primary); color:#fff; border-radius:50%; font-weight:700; font-size:.82rem; flex-shrink:0; margin-top:.15rem; }

.toc { background:var(--bg-gray); border:1px solid var(--border); border-radius:10px; padding:1.25rem 1.5rem; margin-bottom:2rem; }
.toc-title { font-size:.85rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); margin-bottom:.75rem; }
.toc ol { margin:0; padding-left:1.25rem; }
.toc li { font-size:.9rem; line-height:1.7; }
.toc a { color:var(--primary); }

.blog-sidebar .related-card { background:var(--bg-white); border:1px solid var(--border); border-radius:10px; padding:1.1rem 1.25rem; margin-bottom:.75rem; transition:box-shadow .2s; }
.blog-sidebar .related-card:hover { box-shadow:var(--shadow-sm); }
.blog-sidebar .related-card a { color:var(--text); font-weight:600; font-size:.9rem; }
.blog-sidebar .related-card p { font-size:.8rem; color:var(--text-muted); margin:.3rem 0 0; }

.blog-card { background:var(--bg-white); border:1px solid var(--border); border-radius:12px; padding:1.5rem; height:100%; transition:box-shadow .2s,transform .2s; }
.blog-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.blog-card-tag { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--primary); margin-bottom:.5rem; }
.blog-card-title { font-size:1rem; font-weight:700; color:var(--text); margin-bottom:.5rem; line-height:1.35; }
.blog-card-title a { color:var(--text); }
.blog-card-title a:hover { color:var(--primary); text-decoration:none; }
.blog-card-desc { font-size:.85rem; color:var(--text-muted); margin-bottom:.75rem; line-height:1.6; }
.blog-card-meta { font-size:.75rem; color:var(--text-muted); }

/* ── Blog CTA Box ────────────────────────────────────────────────────── */
.blog-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #0f2040 0%, #1a3a6b 100%);
  border: 1px solid rgba(26,115,232,.35);
  border-left: 4px solid #1A73E8;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}
.blog-cta-text {
  color: #94a3b8;
  font-size: .93rem;
  line-height: 1.5;
  flex: 1;
}
.blog-cta-text strong { color: #e2e8f0; }
.blog-cta-btn {
  white-space: nowrap;
  font-weight: 700;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .blog-cta-box { flex-direction: column; align-items: flex-start; }
  .blog-cta-btn { width: 100%; text-align: center; justify-content: center; }
}

/* ── Article feature image ───────────────────────────────────────────── */
.article-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: block;
}
