/* ==========================================================================
   TalabFiber — main stylesheet
   Navy + luminous blue + white. Light & dark themes via tokens. RTL/LTR via
   logical properties (works for both Arabic and English).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--bg: #f5f7fb;
	--bg-2: #edf2fa;
	--surface: #ffffff;
	--surface-2: #f3f6fc;
	--input-bg: #f8fafe;
	--text: #0a1530;
	--text-2: #33405f;
	--muted: #5b6886;
	--line: #dde4f0;
	--line-strong: #c6d1e4;
	--brand: #2160f3;
	--brand-strong: #1749c9;
	--cyan: #0ea5dd;
	--brand-soft: rgba(33, 96, 243, 0.09);
	--brand-ring: rgba(33, 96, 243, 0.22);
	--wa: #0e8a5f;
	--wa-strong: #0b734f;
	--danger: #c42a3a;
	--danger-soft: rgba(196, 42, 58, 0.08);
	--success: #0e8a5f;
	--band-from: #0a1633;
	--band-to: #10285e;
	--band-text: #eaf0ff;
	--band-muted: #b7c4e2;
	--footer-bg: #060d1f;
	--header-bg: rgba(245, 247, 251, 0.94);
	--shadow-sm: 0 1px 2px rgba(10, 21, 48, 0.06);
	--shadow: 0 12px 32px -14px rgba(10, 21, 48, 0.2);
	--shadow-lg: 0 32px 64px -28px rgba(10, 21, 48, 0.32);
	--art-grid: rgba(33, 96, 243, 0.08);
	--art-cable: rgba(33, 96, 243, 0.22);
	--art-panel: #ffffff;
	--art-panel-stroke: #c6d1e4;
	--art-slot: #e3eaf6;
	--hero-glow-1: rgba(33, 96, 243, 0.14);
	--hero-glow-2: rgba(14, 165, 221, 0.12);

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--container: 1200px;
	--gutter: 20px;
	--header-h: 72px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--font-ar: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--font-en: "Inter", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #060d1f;
		--bg-2: #0a142b;
		--surface: #0d1a35;
		--surface-2: #12224a;
		--input-bg: #0a1530;
		--text: #eaf0ff;
		--text-2: #c5d0e8;
		--muted: #95a5c6;
		--line: rgba(148, 170, 220, 0.14);
		--line-strong: rgba(148, 170, 220, 0.26);
		--brand: #4583ff;
		--brand-strong: #2f6bff;
		--cyan: #3dd5ff;
		--brand-soft: rgba(69, 131, 255, 0.14);
		--brand-ring: rgba(69, 131, 255, 0.32);
		--danger: #ff6b7a;
		--danger-soft: rgba(255, 107, 122, 0.1);
		--band-from: #081230;
		--band-to: #0d1f4d;
		--footer-bg: #040917;
		--header-bg: rgba(6, 13, 31, 0.92);
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
		--shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.6);
		--shadow-lg: 0 32px 64px -28px rgba(0, 0, 0, 0.75);
		--art-grid: rgba(120, 160, 255, 0.07);
		--art-cable: rgba(120, 160, 255, 0.22);
		--art-panel: #0f1f44;
		--art-panel-stroke: rgba(148, 170, 220, 0.3);
		--art-slot: #18306a;
		--hero-glow-1: rgba(47, 107, 255, 0.24);
		--hero-glow-2: rgba(61, 213, 255, 0.12);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #060d1f;
	--bg-2: #0a142b;
	--surface: #0d1a35;
	--surface-2: #12224a;
	--input-bg: #0a1530;
	--text: #eaf0ff;
	--text-2: #c5d0e8;
	--muted: #95a5c6;
	--line: rgba(148, 170, 220, 0.14);
	--line-strong: rgba(148, 170, 220, 0.26);
	--brand: #4583ff;
	--brand-strong: #2f6bff;
	--cyan: #3dd5ff;
	--brand-soft: rgba(69, 131, 255, 0.14);
	--brand-ring: rgba(69, 131, 255, 0.32);
	--danger: #ff6b7a;
	--danger-soft: rgba(255, 107, 122, 0.1);
	--band-from: #081230;
	--band-to: #0d1f4d;
	--footer-bg: #040917;
	--header-bg: rgba(6, 13, 31, 0.92);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 32px 64px -28px rgba(0, 0, 0, 0.75);
	--art-grid: rgba(120, 160, 255, 0.07);
	--art-cable: rgba(120, 160, 255, 0.22);
	--art-panel: #0f1f44;
	--art-panel-stroke: rgba(148, 170, 220, 0.3);
	--art-slot: #18306a;
	--hero-glow-1: rgba(47, 107, 255, 0.24);
	--hero-glow-2: rgba(61, 213, 255, 0.12);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-ar);
	font-size: 1.0625rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

html[lang="en"] body { font-family: var(--font-en); font-size: 1rem; line-height: 1.65; }

img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.3; font-weight: 800; color: var(--text); }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text,
.sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
	position: absolute; inset-inline-start: 16px; top: -60px; z-index: 1000;
	background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
	min-height: 48px; padding: 0 1.3em; border-radius: 12px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
	transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
	text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1em; font-size: 0.9375rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 1.6em; font-size: 1.0625rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary {
	background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
	color: #fff; box-shadow: 0 10px 24px -12px var(--brand);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -12px var(--brand); transform: translateY(-1px); }

.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -14px var(--wa); }
.btn-whatsapp:hover { background: var(--wa-strong); color: #fff; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-light { background: #fff; color: #0a1633; }
.btn-light:hover { background: #eaf0ff; color: #0a1633; transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

.text-link { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 700; }
.text-link .icon { width: 1.05em; height: 1.05em; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px;
	border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
	cursor: pointer; font-weight: 700; font-size: 0.875rem;
	transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--header-bg);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header[data-scrolled] { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 18px -8px rgba(47, 107, 255, 0.7); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; }
.brand-text small { font-size: 0.75rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }

.primary-nav { margin-inline-start: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; }
.primary-nav a {
	display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 0.975rem;
}
.primary-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-icon { display: inline-flex; }
.theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: inline-flex; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-icon--sun { display: inline-flex; }
	:root:not([data-theme="light"]) .theme-icon--moon { display: none; }
}
.menu-toggle { display: none; }
.menu-icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon--close { display: inline-flex; }
.menu-toggle[aria-expanded="true"] .menu-icon--open { display: none; }

@media (max-width: 1100px) {
	.header-call span { display: none; }
	.header-call { padding: 0 10px; }
}

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.header-call, .header-order { display: none; }
	.primary-nav {
		position: fixed; inset-inline: 0; top: var(--header-h); z-index: 99;
		background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		padding: 12px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
		transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.primary-nav[data-open] { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
	.primary-nav ul { flex-direction: column; gap: 2px; }
	.primary-nav a { padding: 12px 14px; font-size: 1.05rem; }
	.nav-cta { display: grid; gap: 10px; margin-top: 12px; }
	.header-actions { margin-inline-start: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-bg {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(48% 60% at 15% 30%, var(--hero-glow-1), transparent 70%),
		radial-gradient(40% 50% at 85% 10%, var(--hero-glow-2), transparent 70%);
}
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(var(--art-grid) 1px, transparent 1px), linear-gradient(90deg, var(--art-grid) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 75%);
	mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
	padding: 6px 14px 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
	background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 0.9rem;
}
.eyebrow-dot {
	width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
	box-shadow: 0 0 0 4px rgba(14, 165, 221, 0.18); animation: tf-blink 2.4s ease-in-out infinite;
}
.hero-title { font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.22; margin-bottom: 20px; }
html[lang="en"] .hero-title { line-height: 1.08; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 40em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions--center { justify-content: center; }
.hero-call { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--text-2); }
.hero-call:hover { color: var(--brand); }
.hero-call .icon { width: 18px; height: 18px; color: var(--brand); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 0.95rem; }
.hero-points .icon { color: var(--brand); width: 20px; height: 20px; }

.hero-visual { position: relative; padding-bottom: 110px; }
.hero-art { position: relative; }
.fiber-art { display: block; width: 100%; height: auto; }

.journey-card {
	position: absolute; inset-inline-start: 2%; bottom: 0; width: min(250px, 58%);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: 16px 18px;
	animation: tf-float 7s ease-in-out infinite;
}
.journey-card__title { font-size: 0.8rem; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.journey-card ol { list-style: none; display: grid; gap: 10px; }
.journey-card li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; color: var(--muted); }
.journey-card .dot {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none;
}
.journey-card .dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.journey-card .is-done { color: var(--text); }
.journey-card .is-done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.journey-card .is-active { color: var(--text); }
.journey-card .is-active .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); position: relative; }
.journey-card .is-active .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: tf-blink 1.6s ease-in-out infinite; }

.ftth-chip {
	position: absolute; inset-inline-end: 4%; top: 2%;
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
	font-weight: 800; color: var(--text); animation: tf-float 8s ease-in-out infinite reverse;
}
.ftth-chip .icon { color: var(--brand); }
.ftth-chip small { font-weight: 600; color: var(--muted); font-size: 0.78rem; }

/* SVG art */
.stop-cyan { stop-color: var(--cyan); }
.stop-brand { stop-color: var(--brand); }
.stop-glow { stop-color: var(--brand); stop-opacity: 0.32; }
.stop-glow-0 { stop-color: var(--brand); stop-opacity: 0; }
.art-grid-line { stroke: var(--art-grid); stroke-width: 1; }
.art-cable { fill: none; stroke: var(--art-cable); stroke-width: 2.4; stroke-linecap: round; }
.art-pulse {
	fill: none; stroke: url(#tfArtG); stroke-width: 3.4; stroke-linecap: round;
	stroke-dasharray: 22 420; stroke-dashoffset: 442;
	animation: tf-flow 3.4s linear infinite;
}
.art-pulse--t2 { animation-delay: -0.8s; }
.art-pulse--t3 { animation-delay: -1.7s; }
.art-pulse--d1 { animation-delay: -0.4s; animation-duration: 2.8s; }
.art-pulse--d2 { animation-delay: -1.3s; animation-duration: 3s; }
.art-pulse--d3 { animation-delay: -2.1s; animation-duration: 3.2s; }
.art-panel { fill: var(--art-panel); stroke: var(--art-panel-stroke); stroke-width: 1.5; }
.art-slot { fill: var(--art-slot); }
.art-led { fill: var(--cyan); animation: tf-blink 2.4s ease-in-out infinite; }
.art-led--2 { animation-delay: 0.6s; }
.art-led--3 { animation-delay: 1.2s; }
.art-ring { fill: none; stroke: var(--art-cable); stroke-width: 1.2; stroke-dasharray: 3 7; }
.art-ring--2 { stroke-dasharray: none; opacity: 0.6; }
.art-ring-pulse { fill: none; stroke: var(--brand); stroke-width: 1.5; transform-origin: 300px 270px; animation: tf-ring 3.2s ease-out infinite; }
.art-node-core { fill: url(#tfArtG); }
.art-box { fill: var(--cyan); }
.art-stroke { fill: none; stroke: var(--art-panel-stroke); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.art-wifi { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; animation: tf-blink 2.8s ease-in-out infinite; }
.art-wifi--2 { animation-delay: 0.4s; }
.art-window { fill: var(--art-slot); }
.art-window.is-lit { fill: var(--cyan); opacity: 0.7; }

@keyframes tf-flow { to { stroke-dashoffset: 0; } }
@keyframes tf-ring { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes tf-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes tf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--bg-2); }
.section--brand {
	position: relative; overflow: hidden;
	background: linear-gradient(140deg, var(--band-from) 0%, var(--band-to) 100%);
	color: var(--band-text);
}
.section--brand::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(40% 60% at 90% 10%, rgba(61, 213, 255, 0.16), transparent 70%),
		radial-gradient(40% 60% at 0% 100%, rgba(47, 107, 255, 0.25), transparent 70%);
}
.section--brand > .container { position: relative; }
.section--brand h2 { color: #fff; }
.section--brand p { color: var(--band-muted); }
.section--brand a:not(.btn) { color: #9fd8ff; }
.section--brand .check-list .icon { color: #3dd5ff; }
.section--brand .check-list span { color: var(--band-text); }
.section--brand .kicker { color: #9fd8ff; background: rgba(61, 213, 255, 0.1); border-color: rgba(61, 213, 255, 0.25); }
.section--brand .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section--brand .btn-outline:hover { border-color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }
.kicker {
	display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
	font-size: 0.82rem; font-weight: 800; color: var(--brand);
	background: var(--brand-soft); border: 1px solid transparent;
}
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.section-more { text-align: center; margin: 40px 0 0; }

.fine-print { display: flex; gap: 8px; align-items: flex-start; margin: 28px auto 0; max-width: 820px; font-size: 0.9rem; color: var(--muted); justify-content: center; text-align: center; }
.fine-print .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.muted-note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.empty-note { text-align: center; color: var(--muted); padding: 32px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Provider cards ---------- */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.provider-card {
	position: relative; display: flex; flex-direction: column; gap: 20px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
	box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
	overflow: hidden;
}
.provider-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.provider-card.is-fiber::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
	background: linear-gradient(90deg, var(--cyan), var(--brand));
}
.provider-card h3 { font-size: 1.4rem; margin: 14px 0 2px; }
.provider-card__company { color: var(--muted); font-size: 0.92rem; margin: 0; }
.provider-card__summary { color: var(--text-2); margin: 0; }
.provider-card h4 { font-size: 0.85rem; color: var(--muted); font-weight: 800; margin-bottom: 10px; }
html[lang="en"] .provider-card h4 { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
.provider-card__packages { padding: 16px; border-radius: var(--radius); background: var(--surface-2); }
.provider-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }

.tech-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
	font-size: 0.82rem; font-weight: 800; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line);
}
.tech-badge .icon { width: 16px; height: 16px; }
.tech-badge--fiber { color: var(--brand); background: var(--brand-soft); border-color: transparent; }

.package-list { list-style: none; display: grid; gap: 8px; }
.package-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-strong); }
.package-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.package-list__name { font-weight: 700; }
.package-list__speed { color: var(--brand); font-weight: 700; }
.package-list__price { margin-inline-start: auto; font-weight: 800; }
.package-list small { flex-basis: 100%; color: var(--muted); }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--brand); stroke-width: 2.4; }
.check-list span { color: var(--text-2); }
.check-list--neutral .icon { color: var(--muted); stroke-width: 1.8; }

/* ---------- Compare ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
.compare-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.compare-card--fiber { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.compare-card__icon {
	width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
	background: var(--surface-2); color: var(--muted); margin-bottom: 18px;
}
.compare-card--fiber .compare-card__icon { background: linear-gradient(135deg, var(--cyan), var(--brand)); color: #fff; }
.compare-card__icon .icon { width: 26px; height: 26px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step {
	position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px;
}
.step__num {
	position: absolute; inset-inline-end: 20px; top: 14px; font-size: 3rem; font-weight: 800; line-height: 1;
	color: var(--brand); opacity: 0.12;
}
.step__icon {
	display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center;
	background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-layout--page { grid-template-columns: 1.35fr 0.65fr; }
.form-intro { padding-top: 12px; }
.form-intro .check-list { margin: 24px 0 28px; }
.form-intro__contact { display: flex; flex-wrap: wrap; gap: 10px; }
.form-card {
	background: var(--surface); color: var(--text); border: 1px solid var(--line);
	border-radius: var(--radius-lg); padding: clamp(20px, 3.4vw, 36px); box-shadow: var(--shadow-lg);
}
.section--brand .form-card p { color: inherit; }
.section--brand .form-card .field-error { color: var(--danger); }
.section--brand .form-card .field-hint { color: var(--muted); }
.section--brand .form-card a:not(.btn) { color: var(--brand); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; color: var(--text); padding: 0; }
.req { color: var(--danger); }
.optional { color: var(--muted); font-weight: 500; font-size: 0.85rem; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
	border: 1.5px solid var(--line-strong); background: var(--input-bg); color: var(--text);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
	font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field select {
	appearance: none; -webkit-appearance: none; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
	background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
	background-position: left 20px center, left 14px center;
	padding-inline-end: 40px;
}
[dir="ltr"] .field select { background-position: right 14px center, right 20px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.75; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); background: var(--surface);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.field-error { color: var(--danger); font-size: 0.875rem; font-weight: 600; margin: 6px 0 0; }
.field-hint { color: var(--muted); font-size: 0.85rem; margin: 8px 0 0; }

.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented__item { flex: 1 1 0; min-width: 96px; position: relative; margin: 0 !important; }
.segmented__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__item span {
	display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px;
	border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--input-bg);
	font-weight: 700; color: var(--text-2); cursor: pointer; text-align: center;
	transition: all 0.15s var(--ease);
}
.segmented__item:hover span { border-color: var(--muted); }
.segmented__item input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.segmented__item input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-ring); }
fieldset[aria-invalid="true"] .segmented__item span { border-color: var(--danger); }

.consent { gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; font-size: 0.95rem !important; color: var(--text-2) !important; cursor: pointer; margin: 0 !important; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand); flex: none; cursor: pointer; }
.check a { font-weight: 700; }

.form-footer { margin-top: 24px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 0.875rem; color: var(--muted) !important; }
.form-note .icon { width: 16px; height: 16px; margin-top: 4px; }
.form-alert {
	margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; font-weight: 600;
	background: var(--danger-soft); color: var(--danger); border: 1px solid currentColor;
}
.btn[data-submit][aria-busy="true"] { opacity: 0.75; cursor: progress; }
.btn[data-submit][aria-busy="true"] .icon { animation: tf-spin 1s linear infinite; }
@keyframes tf-spin { to { transform: rotate(360deg); } }

.hp-field { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 16px 4px; outline: none; }
.success-icon {
	width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
	background: rgba(14, 138, 95, 0.12); color: var(--success);
}
.success-icon .icon { width: 36px; height: 36px; stroke-width: 2.6; }
.form-success h3 { font-size: 1.6rem; }
.success-ref { font-weight: 800; color: var(--brand) !important; font-size: 1.1rem; }
.form-success p { color: var(--text-2) !important; max-width: 520px; margin-inline: auto; }
.success-wa { margin: 24px 0 8px; display: grid; gap: 12px; justify-items: center; }
.wa-preview { width: 100%; max-width: 520px; text-align: start; }
.wa-preview summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.9rem; text-align: center; }
.wa-preview pre {
	white-space: pre-wrap; word-break: break-word; unicode-bidi: plaintext; font-family: inherit; font-size: 0.9rem;
	background: var(--surface-2); border: 1px solid var(--line); padding: 14px 16px; border-radius: 12px; margin: 10px 0 0;
}

/* ---------- Areas ---------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.area-card { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.area-card__head { display: flex; gap: 14px; align-items: center; }
.area-card__head h3 { margin: 0; font-size: 1.3rem; }
.area-card__head h3 a { color: var(--text); }
.area-card__head h3 a:hover { color: var(--brand); }
.area-card__head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.area-card__icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.area-card__foot { margin-top: auto; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.chips__more { color: var(--brand) !important; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s var(--ease); }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
	list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { display: inline-flex; width: 32px; height: 32px; border-radius: 10px; align-items: center; justify-content: center; background: var(--surface-2); color: var(--brand); flex: none; transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__body { padding: 0 22px 20px; color: var(--text-2); }
.faq-item__body p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(64px, 9vw, 112px); }
.cta-band__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
	background: linear-gradient(135deg, #0a1633 0%, #12307a 100%);
	border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #fff; position: relative; overflow: hidden;
	box-shadow: var(--shadow-lg);
}
.cta-band__inner::after {
	content: ""; position: absolute; inset-inline-end: -10%; top: -40%; width: 60%; height: 180%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(61, 213, 255, 0.22), transparent);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #c2cfec; margin: 0; max-width: 40em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- Page hero / inner pages ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(50% 80% at 85% 0%, var(--hero-glow-1), transparent 70%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero__lead { color: var(--muted); font-size: 1.12rem; max-width: 46em; margin-bottom: 24px; }
.page-hero--compact h1 { margin-bottom: 0; }
.page-hero--center { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.big-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; margin: 0 0 12px; background: linear-gradient(135deg, var(--cyan), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

.city-layout { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.side-stack { display: grid; gap: 20px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.side-card h2 { font-size: 1.2rem; }
.side-card .chips { margin-bottom: 14px; }
.side-card--contact { display: grid; gap: 10px; }
.mini-steps { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; color: var(--text-2); }
.side-stack .fine-print { justify-content: flex-start; text-align: start; margin: 0; }

.prose { font-size: 1.075rem; color: var(--text-2); }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.4em; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: 1.1em; }

.post-list { display: grid; gap: 24px; }
.post-item { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-item h2 { font-size: 1.4rem; }
.post-item h2 a { color: var(--text); }
.post-item__meta { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #b9c5e0; padding: clamp(48px, 7vw, 80px) 0 0; }
.site-footer a { color: #d8e1f5; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: #8b9abd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-tagline { margin: 16px 0 20px; color: #c9d4ee; font-weight: 600; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-contact .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.footer-contact .btn-outline:hover { border-color: #fff; color: #fff; }
.footer-hours { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 0.92rem; }
.footer-hours .icon { width: 18px; height: 18px; }
.footer-col h2 { font-size: 1rem; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 0.95rem; color: #b9c5e0; }
.footer-bottom { margin-top: 48px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(148, 170, 220, 0.14); display: grid; gap: 10px; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: #8b9abd; margin: 0; }
.disclaimer .icon { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.copyright { font-size: 0.85rem; color: #6f7fa3; margin: 0; }

/* ---------- Floating contact ---------- */
.wa-float {
	position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90;
	display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px;
	background: var(--wa); color: #fff; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(14, 138, 95, 0.65);
	font-weight: 700; transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.wa-float:hover { color: #fff; background: var(--wa-strong); transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s var(--ease); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 220px; }

.mobile-bar { display: none; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.steps { grid-template-columns: repeat(2, 1fr); }
	.form-layout, .form-layout--page, .city-layout { grid-template-columns: 1fr; }
	.form-layout--page .side-stack { order: 2; }
}

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { max-width: 560px; margin: 8px auto 0; width: 100%; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
	:root { --gutter: 16px; --header-h: 64px; }
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.brand-text small { display: none; }
	.logo-mark { width: 36px; height: 36px; }
	.lang-switch .icon { display: none; }
	.hero-actions .btn { flex: 1 1 100%; }
	.hero-points { flex-direction: column; gap: 10px; }
	.compare-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.provider-card { padding: 22px; }
	.cta-band__actions { width: 100%; }
	.cta-band__actions .btn { flex: 1 1 100%; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.hero-visual { padding-bottom: 0; }
	.journey-card { position: relative; inset: auto; width: 100%; margin-top: -24px; animation: none; }
	.ftth-chip { font-size: 0.85rem; }
	.wa-float { display: none; }
	.mobile-bar {
		position: fixed; inset-inline: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, 0.35);
	}
	.mobile-bar .btn { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
	.art-pulse, .art-ring-pulse { display: none; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
	.site-header, .mobile-bar, .wa-float, .cta-band, .site-footer { display: none; }
}
