/* SnapWordz homepage (index.php) — scoped to .swh */
.swh {
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--soft: #f8fafc;
	--brand: #4f46e5;
	--brand-2: #7c3aed;
	--accent: #f97316;
	--pink: #ed1f57;
	--ok: #10b981;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .18);
	color: var(--ink);
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	overflow-x: hidden;
}
.swh *, .swh *::before, .swh *::after { box-sizing: border-box; }
.swh a { display: inline; text-decoration: none; }
.swh p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin: 0; }
.swh h1, .swh h2, .swh h3 { color: var(--ink); margin: 0; letter-spacing: -.02em; }
.swh-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.swh-section { padding: 88px 0; }
.swh-section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.swh-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.swh-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.swh-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.2; margin: 12px 0 14px; }
.swh-head p { font-size: 17px; color: var(--muted); }

/* Buttons */
.swh-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 14px; font-size: 16px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.swh-btn svg { width: 18px; height: 18px; flex: none; }
.swh-btn-primary { color: #fff !important; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .7); }
.swh-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(79, 70, 229, .8); color: #fff; }
.swh-btn-ghost { color: var(--ink) !important; background: #fff; border: 1px solid var(--line); }
.swh-btn-ghost:hover { border-color: #c7d2fe; background: #f5f7ff; transform: translateY(-2px); }

/* Hero */
/* No isolation/z-index here: the language dropdown must be able to sit above the stats card that overlaps the hero. */
.swh-hero { position: relative; padding: 72px 0 88px; }
.swh-hero-grid { position: relative; z-index: 5; }
.swh-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 60% at 12% 10%, rgba(99, 102, 241, .18), transparent 60%),
		radial-gradient(50% 50% at 92% 18%, rgba(249, 115, 22, .14), transparent 60%),
		radial-gradient(60% 60% at 70% 100%, rgba(124, 58, 237, .14), transparent 60%),
		linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
}
.swh-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.swh-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.swh-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.swh-pill b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--pink)); color: #fff; font-size: 12px; font-weight: 600; }
.swh-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.08; margin: 22px 0 20px; }
.swh-grad { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 45%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.swh-hero-lead { font-size: 18px !important; color: var(--muted) !important; max-width: 560px; }
.swh-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.swh-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding: 0; list-style: none; }
.swh-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.swh-trust svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* Language finder */
.swh-finder { position: relative; margin-top: 28px; max-width: 520px; }
.swh-finder label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.swh-finder-box { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.swh-finder-box:focus-within { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, .15), var(--shadow); }
.swh-finder-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.swh-finder-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.swh-finder-box button { height: 42px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.swh-finder-box button:hover { background: #1e293b; }
.swh-finder-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .3); }
.swh-finder-list[hidden] { display: none; }
.swh-finder-list a { display: flex !important; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.swh-finder-list a span { color: var(--muted); font-size: 14px; }
.swh-finder-list a:hover, .swh-finder-list a.is-active { background: #eef2ff; }
.swh-finder-empty { padding: 8px 12px 6px; color: var(--muted); font-size: 13px; }

/* Hero preview card */
.swh-demo { position: relative; }
.swh-demo-card { position: relative; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(226, 232, 240, .9); border-radius: 24px; box-shadow: 0 30px 70px -30px rgba(30, 27, 75, .45); overflow: hidden; }
.swh-demo-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.swh-dots { display: flex; gap: 6px; }
.swh-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.swh-dots i:nth-child(1) { background: #fca5a5; } .swh-dots i:nth-child(2) { background: #fcd34d; } .swh-dots i:nth-child(3) { background: #86efac; }
.swh-demo-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.swh-modes { display: flex; gap: 6px; padding: 14px 18px 0; flex-wrap: wrap; }
.swh-modes span { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.swh-modes span.on { color: #fff; background: var(--ink); border-color: var(--ink); }
.swh-demo-body { display: grid; gap: 12px; padding: 16px 18px 18px; }
.swh-demo-pane { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.swh-demo-pane small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.swh-demo-pane p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.swh-demo-pane.out { border-color: #c7d2fe; background: linear-gradient(180deg, #f5f7ff, #fff); }
.swh-demo-pane.out small { color: var(--brand); }
.swh-demo-pane mark { background: rgba(99, 102, 241, .14); color: var(--ink); padding: 1px 4px; border-radius: 5px; }
.swh-demo-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.swh-demo-foot b { color: var(--ok); font-weight: 600; }
.swh-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--ink); }
.swh-float em { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 13px; }
.swh-float.f1 { left: -26px; bottom: -22px; } .swh-float.f1 em { background: linear-gradient(135deg, var(--ok), #059669); }
.swh-float.f2 { right: -18px; top: -18px; } .swh-float.f2 em { background: linear-gradient(135deg, var(--accent), var(--pink)); }

/* Stats */
.swh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -40px; position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.swh-stat { padding: 26px 24px; text-align: center; }
.swh-stat + .swh-stat { border-left: 1px solid var(--line); }
.swh-stat strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.swh-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Tool groups */
.swh-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.swh-group { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.swh-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.swh-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; flex: none; }
.swh-ico svg { width: 22px; height: 22px; }
.swh-ico.c1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.swh-ico.c2 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.swh-ico.c3 { background: linear-gradient(135deg, #f97316, #ed1f57); }
.swh-group h3 { font-size: 19px; font-weight: 700; }
.swh-group-head p { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.swh-links { display: grid; gap: 8px; align-content: start; margin: 0; padding: 0; list-style: none; flex: 1; }
.swh-links a { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--ink); background: var(--soft); border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; }
.swh-links a:hover { background: #fff; border-color: #c7d2fe; transform: translateX(3px); }
.swh-links a strong { display: block; font-size: 15px; font-weight: 600; }
.swh-links a small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.swh-links a svg { width: 16px; height: 16px; color: #94a3b8; flex: none; }
.swh-group-more { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand) !important; }
.swh-group-more svg { width: 16px; height: 16px; flex: none; }

/* Languages */
.swh-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.swh-chip { display: inline-flex !important; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 500; transition: border-color .2s, transform .2s, box-shadow .2s; }
.swh-chip span { color: var(--muted); font-size: 14px; }
.swh-chip:hover { border-color: #a5b4fc; transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.swh-chip.all { background: var(--ink); border-color: var(--ink); color: #fff; }
.swh-chip.all:hover { color: #fff; }

/* Steps */
.swh-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.swh-step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.swh-step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--brand); background: #eef2ff; }
.swh-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.swh-step p { font-size: 14.5px; color: var(--muted); }

/* Features */
.swh-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.swh-feature { padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.swh-feature .swh-eyebrow { font-size: 12px; }
.swh-feature h2 { font-size: 21px; font-weight: 700; line-height: 1.3; margin: 10px 0 12px; }
.swh-feature p { font-size: 15px; }
.swh-feature p + p { margin-top: 12px; }

/* FAQ */
.swh-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.swh-faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.swh-faq details[open] { border-color: #c7d2fe; box-shadow: var(--shadow); }
.swh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; color: var(--ink); }
.swh-faq summary::-webkit-details-marker { display: none; }
.swh-faq summary::after { content: "+"; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--soft); color: var(--brand); font-size: 20px; font-weight: 500; transition: transform .2s; }
.swh-faq details[open] summary::after { transform: rotate(45deg); }
.swh-faq details p { padding: 0 22px 20px; font-size: 15.5px; }

/* CTA */
.swh-cta { position: relative; overflow: hidden; padding: 56px; border-radius: 28px; background: radial-gradient(80% 120% at 0% 0%, #6366f1 0%, transparent 55%), radial-gradient(70% 120% at 100% 100%, #ed1f57 0%, transparent 55%), #1e1b4b; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.swh-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.2; }
.swh-cta p { color: rgba(255, 255, 255, .8); margin-top: 10px; }
.swh-cta .swh-btn-primary { background: #fff; color: var(--ink) !important; box-shadow: none; }
.swh-cta .swh-btn-primary:hover { color: var(--ink) !important; }

/* Reveal on scroll (only when JS adds .swh-js, so content is never hidden for crawlers) */
.swh-js .swh-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.swh-js .swh-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.swh-js .swh-reveal { opacity: 1; transform: none; transition: none; }
	.swh-btn, .swh-links a, .swh-chip { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
	.swh-float.f1 { left: 10px; } .swh-float.f2 { right: 10px; }
}
@media (max-width: 991px) {
	.swh-hero { padding: 48px 0 80px; }
	.swh-hero-grid { grid-template-columns: 1fr; gap: 44px; }
	.swh-hero-lead, .swh-finder { max-width: none; }
	.swh-groups, .swh-features { grid-template-columns: 1fr 1fr; }
	.swh-groups .swh-group:last-child, .swh-features .swh-feature:last-child { grid-column: 1 / -1; }
	.swh-steps { grid-template-columns: 1fr 1fr; }
	.swh-cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (max-width: 767px) {
	.swh-section { padding: 64px 0; }
	.swh-wrap { padding: 0 16px; }
	.swh-stats { grid-template-columns: 1fr 1fr; }
	.swh-stat:nth-child(3) { border-left: 0; }
	.swh-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
	.swh-groups, .swh-features, .swh-steps { grid-template-columns: 1fr; }
	.swh-head { margin-bottom: 32px; }
	.swh-hero-cta .swh-btn { flex: 1 1 100%; }
	.swh-float { display: none; }
	.swh-cta { padding: 32px 22px; border-radius: 22px; }
	.swh-cta .swh-btn { width: 100%; }
	.swh-finder-box button { padding: 0 14px; }
}
