:root {
  --ink: #0d1f38;
  --muted: #62738c;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --cyan: #06b6d4;
  --sky: #eaf7ff;
  --line: #e2ecf5;
  --soft: #f6fbff;
  --white: #fff;
  --shadow-sm: 0 4px 14px rgba(24, 66, 110, .06);
  --shadow: 0 18px 44px rgba(26, 72, 118, .10);
  --shadow-lg: 0 30px 70px rgba(26, 72, 118, .16);
  --glow: 0 16px 34px rgba(37, 99, 235, .28);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 88% -60px, rgba(99, 102, 241, .10), transparent 65%),
    radial-gradient(760px 480px at -10% 8%, rgba(6, 182, 212, .12), transparent 62%),
    var(--white);
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: "Manrope", sans-serif; margin: 0; overflow-wrap: break-word; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.gradient-text { color: transparent; background: linear-gradient(100deg, #06b6d4 5%, #3b82f6 45%, #7c3aed 95%); background-clip: text; -webkit-background-clip: text; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; padding: 12px 0; transition: .3s; }
.site-header.stuck { padding: 6px 0; background: rgba(255,255,255,.72); backdrop-filter: blur(18px); box-shadow: 0 10px 30px rgba(24,66,110,.07); }
.nav {
  height: 66px; display: flex; align-items: center; gap: 30px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 18px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(20px); box-shadow: var(--shadow-sm);
}
.site-header.stuck .nav { border-color: transparent; background: transparent; box-shadow: none; backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 11px; font: 800 21px "Manrope"; letter-spacing: -.7px; }
.brand-logo { display: block; width: 210px; height: 52px; object-fit: contain; object-position: left center; }
.brand-mark {
  position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; font-size: 17px;
  border-radius: 13px; background: linear-gradient(140deg, #22d3ee, #3b82f6 55%, #6366f1);
  box-shadow: 0 10px 22px rgba(59,130,246,.35);
}
.brand-mark::after { content: ""; position: absolute; inset: 0; border-radius: 13px; background: linear-gradient(180deg, rgba(255,255,255,.45), transparent 60%); }
.brand em { font-style: normal; color: transparent; background: linear-gradient(100deg, #06b6d4, #4f46e5); background-clip: text; -webkit-background-clip: text; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 9px 14px; border-radius: 11px; color: #52647d; font-size: 14px; font-weight: 600; transition: .2s; }
.nav-links a:hover { color: var(--blue); background: rgba(234,247,255,.9); }
.nav-links a.active { color: #0b4fd1; background: linear-gradient(120deg, #e6f6ff, #eef2ff); box-shadow: inset 0 0 0 1px rgba(99,155,255,.25); }
.nav-links small { font-size: 10px; color: #0891b2; background: #e0fbff; padding: 2px 5px; border-radius: 6px; margin-left: 4px; }
.nav-drop { position: relative; }
.nav-drop-btn {
  padding: 9px 14px; border-radius: 11px; color: #52647d; font-size: 14px; font-weight: 600;
  background: none; border: 0; cursor: pointer; font-family: inherit; transition: .2s;
}
.nav-drop-btn::after { content: " ▾"; font-size: 10px; }
.nav-drop-btn:hover, .nav-drop:hover .nav-drop-btn { color: var(--blue); background: rgba(234,247,255,.9); }
.nav-drop-btn.active { color: #0b4fd1; background: linear-gradient(120deg, #e6f6ff, #eef2ff); box-shadow: inset 0 0 0 1px rgba(99,155,255,.25); }
.nav-sub {
  display: none; position: absolute; top: calc(100% - 2px); left: 0; min-width: 230px;
  padding: 8px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); z-index: 40;
  flex-direction: column; gap: 2px;
}
.nav-drop:hover .nav-sub, .nav-drop.open .nav-sub, .nav-drop:focus-within .nav-sub { display: flex; }
.nav-sub a { display: block; padding: 10px 12px; border-radius: 10px; white-space: nowrap; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-trigger { width: 240px; padding: 10px 12px; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: #8a99ad; border-radius: 12px; cursor: pointer; font-size: 13px; transition: .2s; }
.search-trigger:hover { border-color: #a5d8ee; box-shadow: 0 6px 18px rgba(24,66,110,.08); }
.kbd { margin-left: auto; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; background: #fff; font-size: 11px; color: #7b8ba0; }
.menu-btn { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(120deg, #06b6d4, #3b82f6 55%, #4f46e5); box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 20px 40px rgba(37,99,235,.36); }
.btn-secondary { color: #1d4ed8; background: linear-gradient(120deg, #eef6ff, #eff0ff); box-shadow: inset 0 0 0 1px rgba(125,171,255,.35); }
.btn-ghost { color: #55677e; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn-white { background: #fff; color: #1d4ed8; box-shadow: 0 14px 30px rgba(3, 30, 80, .22); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 84px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,181,220,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(148,181,220,.14) 1px, transparent 1px);
  background-size: 54px 54px; -webkit-mask-image: radial-gradient(circle at 50% 35%, #000, transparent 72%); mask-image: radial-gradient(circle at 50% 35%, #000, transparent 72%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 16s ease-in-out infinite; }
.blob-a { width: 380px; height: 380px; left: -120px; top: -60px; background: radial-gradient(circle, #67e8f9, transparent 70%); }
.blob-b { width: 420px; height: 420px; right: -140px; top: -90px; background: radial-gradient(circle, #a5b4fc, transparent 70%); animation-delay: -5s; }
.blob-c { width: 320px; height: 320px; left: 42%; bottom: -180px; background: radial-gradient(circle, #bae6fd, transparent 70%); animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(18px,-26px,0) scale(1.08); } }
.hero > .container { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: #0b6f86; background: linear-gradient(120deg, #e8fbff, #eef3ff); box-shadow: inset 0 0 0 1px rgba(96,197,222,.4); font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.pill-dot { width: 7px; height: 7px; background: #16c79a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(22,199,154,.16); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(22,199,154,0); } }
.hero h1 { max-width: 880px; margin: 22px auto 18px; font-size: clamp(42px, 6.4vw, 72px); line-height: 1.03; letter-spacing: -3px; }
.hero-copy { margin: 0 auto; max-width: 660px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-search { position: relative; max-width: 660px; margin: 32px auto 20px; display: flex; padding: 8px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); }
.hero-search::before { content: ""; position: absolute; inset: -2px; border-radius: 20px; background: linear-gradient(120deg, #22d3ee, #6366f1, #a855f7); opacity: .35; z-index: -1; filter: blur(6px); }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 12px 16px; min-width: 0; color: var(--ink); background: transparent; }
.trust-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); color: #56687f; font-weight: 600; }
.trust-row span::before { content: "✓"; color: #0ea97e; font-weight: 800; }
.hero-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: #46586f; transition: .25s; }
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 1px transparent; color: var(--blue); }
.chip i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-size: 11px; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.stats { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 840px; margin-inline: auto; }
.stat { padding: 22px 16px; border-radius: 18px; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(226,236,245,.9); }
.stat strong { display: block; font: 800 27px "Manrope"; letter-spacing: -1px; color: transparent; background: linear-gradient(120deg, #0891b2, #4f46e5); background-clip: text; -webkit-background-clip: text; }
.stat span { color: #7e8da1; font-size: 12px; font-weight: 600; }

/* ---------- sections ---------- */
.section { position: relative; padding: 84px 0; }
.section-soft { background: linear-gradient(180deg, rgba(240,249,255,.85), rgba(248,250,255,.95)); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 32px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-block; color: transparent; background: linear-gradient(100deg, #0891b2, #6366f1); background-clip: text; -webkit-background-clip: text; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.6px; }
.section-sub { color: var(--muted); margin: 10px 0 0; line-height: 1.65; max-width: 560px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 14px; white-space: nowrap; }
.text-link:hover { gap: 10px; transition: gap .2s; }

/* ---------- tool cards ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card {
  position: relative; display: flex; min-height: 142px; gap: 14px; padding: 20px; overflow: hidden;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s;
}
.tool-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--g1), var(--g2)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.tool-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); opacity: 0; transition: opacity .3s; filter: blur(34px); }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), inset 0 0 0 1px transparent; }
.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover::after { opacity: .22; }
.tool-icon { position: relative; flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 10px 20px rgba(37,99,235,.18); }
.tool-icon::after { content: ""; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.4), transparent 60%); }
.tool-card h3 { position: relative; font-size: 15px; letter-spacing: -.3px; margin: 3px 0 6px; }
.tool-card p { position: relative; color: #7b8a9d; font-size: 12.5px; line-height: 1.5; margin: 0; }
.tool-tag { position: relative; display: inline-block; margin-top: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: transparent; background: linear-gradient(100deg, var(--g1), var(--g2)); background-clip: text; -webkit-background-clip: text; }
.card-arrow { position: absolute; right: 14px; bottom: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #9fb0c2; background: #f3f8fc; font-size: 13px; transition: .25s; }
.tool-card:hover .card-arrow { color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); transform: translateX(3px); }
.hot-badge { position: absolute; right: 14px; top: 14px; font-size: 9.5px; font-weight: 800; letter-spacing: .6px; padding: 3px 8px; border-radius: 999px; color: #b45309; background: linear-gradient(120deg, #fff2cc, #ffe4c4); }

/* ---------- categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { position: relative; overflow: hidden; padding: 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s; }
.category-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); opacity: .10; transition: .35s; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 0 0 1px transparent; }
.category-card:hover::before { transform: scale(1.5); opacity: .18; }
.category-top { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.category-icon { position: relative; width: 54px; height: 54px; display: grid; place-items: center; font-size: 23px; color: #fff; border-radius: 17px; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 14px 26px rgba(37,99,235,.2); }
.category-icon::after { content: ""; position: absolute; inset: 0; border-radius: 17px; background: linear-gradient(180deg, rgba(255,255,255,.4), transparent 60%); }
.category-count { position: relative; font-size: 11.5px; font-weight: 700; color: #5d7086; padding: 5px 11px; border-radius: 999px; background: #f2f7fb; }
.category-card h3 { position: relative; font-size: 19px; letter-spacing: -.5px; }
.category-card p { position: relative; color: var(--muted); font-size: 13px; min-height: 40px; line-height: 1.5; }

/* ---------- features & steps ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.feature { padding: 30px 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: .28s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon { width: 58px; height: 58px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 18px; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 14px 26px rgba(37,99,235,.18); }
.feature h3 { font-size: 18px; letter-spacing: -.4px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 8px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 46px; }
.step { position: relative; text-align: center; padding: 18px; }
.step-num { position: relative; margin: 0 auto 18px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 800 18px "Manrope"; background: linear-gradient(135deg, #22d3ee, #4f46e5); box-shadow: 0 14px 30px rgba(37,99,235,.28); }
.step-num::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(79,70,229,.3); }
.step:not(:last-child)::after { content: ""; position: absolute; height: 2px; width: 58%; top: 44px; left: 71%; background: repeating-linear-gradient(90deg, #c7ddf0 0 7px, transparent 7px 14px); }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { position: relative; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-cover { position: relative; height: 168px; overflow: hidden; background: #e2e8f0; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-cover span { position: relative; z-index: 1; }
.blog-time { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.blog-content { padding: 22px; }
.blog-meta { font-size: 11.5px; color: #8093a8; font-weight: 600; margin-bottom: 10px; }
.blog-card h3 { font-size: 17.5px; line-height: 1.35; letter-spacing: -.4px; }
.blog-card p { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- page hero / catalog ---------- */
.page-hero { position: relative; overflow: hidden; padding: 66px 0 46px; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 300px at 50% -40px, rgba(99,102,241,.14), transparent 70%); }
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -2px; margin: 14px 0; }
.page-hero p { color: var(--muted); max-width: 660px; margin: auto; line-height: 1.7; }
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; overflow: auto; padding-bottom: 6px; }
.filter-bar::-webkit-scrollbar { height: 5px; }
.filter-bar::-webkit-scrollbar-thumb { background: #d6e4f0; border-radius: 9px; }
.filter-btn { white-space: nowrap; background: #fff; color: #5c6d82; padding: 10px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.filter-btn:hover { color: var(--blue); box-shadow: inset 0 0 0 1px #a9d7ef; }
.filter-btn.active { color: #fff; background: linear-gradient(120deg, #06b6d4, #4f46e5); box-shadow: var(--glow); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catalog-grid .tool-card { min-height: 128px; }

/* ---------- tool page ---------- */
.tool-page { padding: 42px 0 84px; }
.breadcrumbs { font-size: 12.5px; color: #8697aa; margin-bottom: 26px; }
.breadcrumbs a { color: var(--blue); font-weight: 600; }
.tool-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.tool-panel { border-radius: 24px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.tool-panel-head { position: relative; display: flex; gap: 16px; align-items: center; padding: 26px; overflow: hidden; background: linear-gradient(120deg, rgba(236,250,255,.9), rgba(238,242,255,.9)); }
.tool-panel-head::before { content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); opacity: .18; filter: blur(30px); }
.tool-panel-head h1 { position: relative; font-size: 26px; letter-spacing: -.9px; }
.tool-panel-head p { position: relative; margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.tool-workspace { padding: 26px; }
.tool-workspace.video-workspace { padding: 0; overflow: hidden; }
.video-embed { display:block; width:100%; min-height: 920px; border:0; background:#fff; }
.tool-textarea { width: 100%; min-height: 220px; border: 0; border-radius: 14px; padding: 16px; resize: vertical; outline: 0; line-height: 1.6; color: var(--ink); background: #f8fbfe; box-shadow: inset 0 0 0 1px #d9e6f1; transition: .2s; }
.tool-textarea:focus, .field input:focus, .field select:focus { background: #fff; box-shadow: inset 0 0 0 1px #5fc4dd, 0 0 0 4px rgba(6,182,212,.12); }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.result-box { margin-top: 20px; padding: 18px; border-radius: 14px; background: linear-gradient(120deg, #f0fbff, #f2f6ff); box-shadow: inset 0 0 0 1px #cbe8f2; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 58px; font-size: 14px; line-height: 1.6; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.metric { padding: 15px; text-align: center; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.metric strong { display: block; font: 800 22px "Manrope"; color: transparent; background: linear-gradient(120deg, #0891b2, #4f46e5); background-clip: text; -webkit-background-clip: text; }
.metric span { font-size: 11px; color: var(--muted); font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fields.one { grid-template-columns: 1fr; }
.fields.three { grid-template-columns: repeat(3, 1fr); }
.field { min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; color: #52647a; }
.field input, .field select, .field textarea { width: 100%; padding: 13px; border: 0; border-radius: 12px; outline: 0; background: #f8fbfe; box-shadow: inset 0 0 0 1px #d9e6f1; transition: .2s; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input[type="range"] { padding: 0; background: transparent; box-shadow: none; accent-color: #3b82f6; }
.field .hint { display: block; margin-top: 6px; font-size: 11px; color: #7b8a9d; }
.preview-wrap { margin-top: 18px; padding: 14px; border-radius: 16px; background: #f7fbff; box-shadow: inset 0 0 0 1px #d9e6f1; overflow: auto; text-align: center; }
.preview-wrap canvas, .preview-wrap img, .preview-wrap svg { max-width: 100%; height: auto; border-radius: 10px; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 12px; color: #5d7086; font-weight: 600; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: #eef7ff; font-size: 12px; font-weight: 600; color: #35567a; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.md-preview { text-align: left; color: #3d5168; line-height: 1.7; }
.md-preview h1, .md-preview h2, .md-preview h3 { margin: 16px 0 8px; }
.md-preview code { background: #eef4fb; padding: 1px 6px; border-radius: 6px; }
.handwriting { font-family: "Segoe Script","Bradley Hand",cursive; font-size: 28px; line-height: 1.8; color: #1e3a5f; text-align: left; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.swatch { width: 54px; height: 54px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sci-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.sci-pad button { padding: 14px 8px; border: 0; border-radius: 12px; background: #f4f8fc; font-weight: 700; cursor: pointer; color: #2b4158; }
.sci-pad button:hover { background: #e8f2fb; }
.sci-pad .op { background: #eaf2ff; color: #1d4ed8; }
.sci-pad .eq { background: linear-gradient(120deg, #06b6d4, #4f46e5); color: #fff; }
.sig-pad { width: 100%; height: 160px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #d9e6f1; cursor: crosshair; touch-action: none; }
.busy { opacity: .7; pointer-events: none; }
.result-box.has-html { white-space: normal; }
.result-box table { width: 100%; border-collapse: collapse; font-size: 13px; }
.result-box th, .result-box td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #dce8f1; }
.doc-sheet { background:#fff; border-radius:16px; padding:24px; box-shadow:inset 0 0 0 1px #d9e6f1; text-align:left; color:#1e3a5f; }
.doc-top { display:flex; justify-content:space-between; gap:16px; margin-bottom:18px; }
.doc-mark { font:800 14px Manrope,sans-serif; letter-spacing:1.5px; color:#4f46e5; }
.doc-meta { display:flex; justify-content:space-between; gap:16px; margin-bottom:16px; font-size:13px; }
.doc-table { width:100%; border-collapse:collapse; font-size:13px; }
.doc-table th, .doc-table td { padding:8px 6px; border-bottom:1px solid #e2eaf3; text-align:left; }
.doc-totals { margin-top:14px; text-align:right; font-size:14px; }
.doc-notes { color:#6b7c90; font-size:12px; margin-top:18px; }
.fancy-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #edf2f7; }
.fancy-row code { flex:1; font-size:16px; overflow-wrap:anywhere; }
.vcard-preview { width:min(100%, 360px); min-height:180px; margin:8px auto; padding:22px; border-radius:18px; background:linear-gradient(135deg,#0f2740,#1d4ed8); color:#fff; text-align:left; }
.vcard-preview strong { display:block; font-size:22px; }
.vcard-preview span, .vcard-preview em { display:block; opacity:.85; margin-top:4px; }
.yt-preview { text-align:left; }
.yt-preview strong { display:block; font-size:16px; }
.yt-preview span, .yt-preview small { display:block; color:#66788c; font-size:12px; margin-top:4px; }
.util-bill { background:#fff; border-radius:18px; padding:22px; box-shadow:inset 0 0 0 1px #d5e4f2; text-align:left; color:#12324f; }
.util-bill-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:8px; }
.util-co { font:800 18px Manrope,sans-serif; }
.util-sub { color:#6b7c90; font-size:13px; margin-top:2px; }
.util-badge { background:#1d4ed8; color:#fff; font:800 12px Manrope,sans-serif; letter-spacing:1px; padding:8px 10px; border-radius:10px; }
.util-ref { background:linear-gradient(120deg,#eef6ff,#f4fbff); border-radius:14px; padding:12px 16px; margin:14px 0; }
.util-ref span { display:block; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#5b7190; }
.util-ref strong { display:block; font-size:26px; letter-spacing:.08em; margin-top:4px; }
.util-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:8px 0 14px; }
.util-grid span { display:block; color:#6b7c90; font-size:11px; }
.util-grid b { font-size:13.5px; }
.util-addr { color:#4d6178; font-size:13px; margin:0 0 10px; }
.util-pay { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.util-pay div { background:#f3f8ff; border-radius:12px; padding:12px 14px; }
.util-pay span { display:block; font-size:12px; color:#5b7190; }
.util-pay strong { display:block; font-size:20px; margin-top:4px; color:#1d4ed8; }
.util-note { font-size:12px; color:#6b7c90; margin:12px 0 0; }
.bill-barcode { display:block; max-width:100%; height:56px; margin-top:10px; }
.hint { color:#66788c; font-size:13px; line-height:1.55; margin:10px 0 0; }
.billcheck-grid { display:grid; grid-template-columns: 1fr auto auto; gap:12px; align-items:end; }
.billcheck[data-mode="portal"] .billcheck-grid { grid-template-columns: 1fr auto auto auto; }
.billcheck-grid input, .billcheck-grid select { height:48px; }
.billcheck-grid .btn-primary { height:48px; padding:0 18px; }
.billcheck-ref { min-width:0; }
.billcheck-error { margin-top:12px; padding:12px 14px; border-radius:12px; background:#fff7ed; box-shadow:inset 0 0 0 1px #fed7aa; color:#b45309; font-size:13.5px; }
.billcheck-result { margin-top:18px; }
.billcheck-bar { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; margin-bottom:12px; }
.billcheck-bar p { margin:0; font-weight:600; color:#1e3a5f; }
.billcheck-bar code { font-family:ui-monospace,Consolas,monospace; background:#eef6ff; color:#1d4ed8; padding:2px 8px; border-radius:6px; }
.billcheck-actions { display:flex; gap:8px; flex-wrap:wrap; }
.billcheck-frame { position:relative; border-radius:16px; overflow:hidden; min-height:760px; background:#fff; box-shadow:inset 0 0 0 1px #d5e4f2; }
.billcheck-frame.loading::after { content:"Loading bill…"; position:absolute; inset:0; display:grid; place-items:center; background:rgba(247,251,255,.94); color:#66788c; font-weight:600; z-index:2; }
.billcheck-frame iframe { width:100%; height:900px; border:0; display:block; background:#fff; }
@media (max-width: 720px) {
  .billcheck-grid { grid-template-columns: 1fr 1fr; }
  .billcheck-ref { grid-column: 1 / -1; }
  .billcheck-grid .btn-primary { grid-column: 1 / -1; }
  .billcheck-frame { min-height:560px; }
  .billcheck-frame iframe { height:700px; }
}
@media (max-width: 680px) {
  .util-grid, .util-pay { grid-template-columns:1fr 1fr; }
}
.portal-list { margin:8px 0 0; padding-left:18px; line-height:1.85; }
.portal-list a { color:#2563eb; font-weight:600; }
.fb-preview { max-width:420px; background:#fff; border-radius:12px; box-shadow:0 8px 24px rgba(16,36,62,.12); text-align:left; overflow:hidden; }
.fb-preview header { display:flex; gap:10px; align-items:center; padding:12px 14px; }
.fb-preview header b { display:block; font-size:14px; }
.fb-preview header span { color:#657789; font-size:12px; }
.fb-preview .fb-body { padding:0 14px 14px; font-size:15px; }
.color-dot { display:inline-block; width:14px; height:14px; border-radius:50%; vertical-align:middle; margin-right:6px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.12); }
@media (max-width: 680px) {
  .fields.three, .compare-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
}
.upload-zone { display: block; text-align: center; padding: 48px 20px; border-radius: 18px; background: linear-gradient(120deg, #f5fcff, #f4f7ff); box-shadow: inset 0 0 0 2px #c5e2ef; cursor: pointer; transition: .25s; }
.upload-zone:hover { box-shadow: inset 0 0 0 2px #7cc8e4; transform: translateY(-2px); }
.upload-zone input { display: none; }
.upload-zone .big-icon { width: 74px; height: 74px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 32px; color: #fff; border-radius: 22px; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 16px 30px rgba(37,99,235,.22); }
.upload-zone p { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }
.sidebar-card { border-radius: 20px; padding: 22px; margin-bottom: 16px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.sidebar-card h3 { font-size: 15.5px; margin-bottom: 14px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 0; font-size: 13px; font-weight: 600; color: #4d5f76; transition: .2s; }
.side-link + .side-link { border-top: 1px solid #eef3f8; }
.side-link:hover { color: var(--blue); }
.side-link .tool-icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.perk-list { display: grid; gap: 10px; }
.perk-list span { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #4d5f76; font-weight: 600; }
.perk-list span::before { content: "✓"; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; color: #fff; background: linear-gradient(135deg, #34d399, #06b6d4); }
.info-section { margin-top: 26px; padding: 28px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.info-section h2 { font-size: 21px; letter-spacing: -.6px; margin-top: 22px; }
.info-section h2:first-child { margin-top: 0; }
.info-section p, .info-section li { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ---------- prompts ---------- */
.prompt-card { position: relative; display: block; padding: 24px; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: .28s; }
.prompt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prompt-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--g1), var(--g2)); }
.prompt-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.prompt-card h3 { font-size: 17px; letter-spacing: -.4px; }
.prompt-text { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 8px 0 16px; }

/* ---------- article ---------- */
.article { max-width: 810px; margin: auto; padding: 48px 0 84px; }
.article h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.16; letter-spacing: -1.9px; }
.article-meta { color: #7688a0; margin: 16px 0 30px; font-size: 13px; font-weight: 600; }
.article-cover-photo { margin: 0 0 34px; }
.article-cover-photo img { width: 100%; height: auto; border-radius: 26px; display: block; box-shadow: var(--shadow-lg); background: #e2e8f0; }
.article-cover-photo figcaption, .article-body figcaption { color: #7688a0; font-size: 13px; margin-top: 8px; text-align: center; }
.article-body { font-size: 16.5px; color: #4a5c73; line-height: 1.85; }
.article-body h2 { color: var(--ink); margin-top: 36px; font-size: 26px; letter-spacing: -.8px; }
.article-body h3 { color: var(--ink); margin-top: 22px; font-size: 19px; letter-spacing: -.4px; }
.article-body figure { margin: 28px 0; }
.article-body figure img { width: 100%; height: auto; border-radius: 18px; display: block; background: #f1f5f9; }
.article-body ul, .article-body ol { margin: 12px 0 12px 22px; }
.article-body li { margin: 6px 0; }
.article-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-related h2 { font-size: 20px; margin-bottom: 12px; }
.article-related a { display: block; margin: 8px 0; color: #2563eb; font-weight: 600; }

/* ---------- cta & footer ---------- */
.cta { position: relative; padding: 62px 30px; text-align: center; color: #fff; border-radius: 30px; overflow: hidden; background: linear-gradient(125deg, #06b6d4, #3b82f6 48%, #6366f1); box-shadow: 0 30px 70px rgba(37,99,235,.32); }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; bottom: -220px; border-radius: 50%; background: rgba(255,255,255,.16); }
.cta::after { content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -170px; border-radius: 50%; background: rgba(255,255,255,.13); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(27px, 4vw, 38px); letter-spacing: -1.3px; }
.cta p { color: #e4f5ff; margin: 12px 0 22px; }
.site-footer { position: relative; margin-top: 10px; padding: 62px 0 24px; background: linear-gradient(160deg, #0a2036, #0d1b36); color: #c2d3e2; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7); }
.site-footer::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.18), transparent 70%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-logo { filter: none; background: #fff; padding: 6px 10px; border-radius: 10px; }
.site-footer .brand em { color: #67e8f9; background: none; -webkit-background-clip: initial; }
.footer-intro { max-width: 330px; font-size: 13px; line-height: 1.75; color: #9fb4c7; margin-top: 16px; }
.footer-col h4 { color: #fff; font: 700 14px "Manrope"; margin: 0 0 16px; }
.footer-col a { display: block; font-size: 12.5px; margin: 11px 0; color: #a7bccd; transition: .2s; }
.footer-col a:hover { color: #67e8f9; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); font-size: 11.5px; color: #8199ad; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 13px 20px; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(120deg, #0f2740, #1e3a8a); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .28s; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .tools-grid, .category-grid, .catalog-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .tool-shell { grid-template-columns: 1fr; }
  .search-trigger { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 26px, 1180px); }
  .site-header { padding: 8px 0; }
  .nav { height: 58px; gap: 14px; }
  .nav-links, .nav-actions .btn { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .nav-links.open { display: flex; position: absolute; left: 12px; right: 12px; top: 64px; flex-direction: column; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
  .nav-drop { width: 100%; }
  .nav-drop-btn { width: 100%; text-align: left; }
  .nav-sub { position: static; box-shadow: none; background: #f7fbff; margin: 4px 0 0; display: none; }
  .nav-drop.open .nav-sub, .nav-drop:focus-within .nav-sub { display: flex; }
  .nav-drop:hover .nav-sub { display: none; }
  .nav-drop.open:hover .nav-sub { display: flex; }
  .hero { padding: 46px 0 60px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 44px); letter-spacing: -1.4px; }
  .page-hero h1, .article h1 { font-size: clamp(27px, 7.6vw, 38px); letter-spacing: -1.2px; }
  .hero-copy { font-size: 15.5px; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .tools-grid, .category-grid, .catalog-grid, .blog-grid, .features, .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .fields, .metric-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .article-cover { height: 210px; font-size: 62px; }
  .cta { padding: 44px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
