/* ====================================================
   NAVA Innovation - main.css
   Refactored production stylesheet.

   Architecture:
   1. Design tokens and base elements
   2. Layout primitives
   3. Shared components
   4. Page-specific components
   5. Responsive rules
   6. Animation utilities

   Tailwind utilities are provided by cdn.tailwindcss.com.
   This file avoids global utility typography overrides and only uses
   !important where it must defeat inline font-size declarations or
   third-party/utility background decisions that are part of the old markup.
==================================================== */

:root {
	--ink: #ffffff;
	--paper: #0f172a;
	--slate: #f8fafc;
	--muted: #475569;
	--accent: #2f6f4e;
	--green: #2f6f4e;
	--green-light: #4a8f67;
	--teal: #0ea5e9;
	--nav-bg: rgba(255, 255, 255, 0.88);
	--nav-text: #0f172a;
	--nav-muted: #475569;
	--card-bg: #ffffff;
	--card-border: rgba(15, 23, 42, 0.08);
	--soft-band: #f8fafc;
	--soft-band-2: #f1f5f9;
	--line: #e2e8f0;
	--site-font: 'Inter', sans-serif;
	--display-font: 'Outfit', 'Inter', sans-serif;
	--mono-font: 'JetBrains Mono', 'Fira Code', monospace;
	--site-container-max: 1180px;
	--site-gutter: 24px;
	--site-container-edge: max(var(--site-gutter), calc((100vw - var(--site-container-max)) / 2));
	--section-y: clamp(66px, 6.4vw, 104px);
	--section-y-compact: clamp(52px, 5vw, 78px);
	--shadow-soft: 0 12px 34px rgba(24, 34, 28, 0.06);
	--shadow-hover: 0 18px 46px rgba(24, 34, 28, 0.10);
}

@media (min-width: 1440px) {
	:root {
		--site-container-max: 1240px;
	}
}

@media (max-width: 768px) {
	:root {
		--site-gutter: 16px;
	}
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	background: #ffffff;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	background: #ffffff;
	color: var(--paper);
	font-family: var(--site-font);
	font-size: 16px;
	line-height: 1.68;
	letter-spacing: 0;
	font-feature-settings: "kern";
	text-rendering: optimizeLegibility;
}

body::before {
	display: none;
}

body,
button,
input,
select,
textarea,
.font-sans {
	font-family: var(--site-font);
}

.font-display,
h1,
h2,
h3,
h4 {
	font-family: var(--display-font);
}

.font-mono,
.section-label,
.section-badge,
.job-label,
.job-meta,
.chat-lang {
	font-family: var(--mono-font);
}

h1,
h2,
h3,
h4,
.font-display {
	color: var(--paper);
	letter-spacing: 0;
}

h1 {
	font-size: clamp(2.7rem, 5.2vw, 3.75rem) !important;
	font-weight: 800;
	line-height: 1.02 !important;
}

h2 {
	font-size: clamp(1.85rem, 3.4vw, 2.75rem) !important;
	font-weight: 760;
	line-height: 1.08 !important;
}

h3 {
	font-weight: 720;
	line-height: 1.2;
}

main,
main section,
main article {
	background: #ffffff;
	color: var(--paper);
}

main section {
	position: relative;
	padding-top: var(--section-y);
	padding-bottom: var(--section-y);
}

main p,
main li {
	color: var(--muted);
	font-size: clamp(0.96rem, 0.36vw + 0.88rem, 1.04rem);
	line-height: 1.72;
}

em,
main [style*="color:var(--accent)"],
.text-accent,
.section-label,
.section-badge,
.job-label,
.job-meta {
	color: var(--accent);
}

::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: var(--ink);
}

::-webkit-scrollbar-thumb {
	background: var(--green-light);
	border-radius: 3px;
}

/* Layout */
.site-container {
	width: calc(100% - (var(--site-container-edge) * 2));
	max-width: var(--site-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

.bg-ink,
.bg-slate,
.bg-ink\/60,
.bg-ink\/80,
.bg-slate\/80 {
	background: transparent;
}

.text-paper,
.hover\:text-paper:hover,
main strong,
footer strong {
	color: var(--paper);
}

.text-muted {
	color: var(--muted);
}

.text-ink {
	color: #ffffff;
}

.border-muted {
	border-color: rgba(20, 21, 23, 0.14);
}

.rounded-xl,
.rounded-2xl,
.rounded-3xl {
	border-radius: 18px;
}

/* Navigation */
#navbar {
	background: var(--nav-bg);
	backdrop-filter: blur(18px);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
	transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s, padding 0.4s ease;
}

#navbar.scrolled {
	background: var(--nav-bg);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

#navbar>div:first-child {
	padding: 0;
}

#navbar a:first-child {
	margin-right: auto;
}

#navbar .hidden.md\:flex {
	margin-left: auto;
	gap: clamp(18px, 2.2vw, 34px);
	font-size: 0.94rem;
	line-height: 1.2;
}

#navbar .text-paper,
#navbar .text-muted,
#navbar a,
#navbar a:hover,
#navbar .hover\:text-paper:hover {
	color: var(--nav-text);
}

#navbar .text-muted:not(:hover) {
	color: var(--nav-muted);
}

#navbar img {
	width: 52px;
	height: 44px;
	border-radius: 10px;
}

#navbar a:first-child>div>div:first-child {
	font-size: 0.86rem;
}

#navbar .text-\[15px\] {
	font-size: 0.73rem;
	color: var(--nav-muted);
}

#mobile-menu {
	max-height: 0;
	overflow: hidden;
	background: var(--nav-bg);
	margin-top: 14px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	transition: max-height 0.4s ease;
}

#mobile-menu.open {
	max-height: 480px;
}

#mobile-menu a {
	color: var(--nav-muted);
	border-radius: 8px;
}

#mobile-menu a:hover {
	color: var(--nav-text);
	background: rgba(15, 23, 42, 0.04);
}

.ham span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px 0;
	background: var(--nav-text);
	transition: transform 0.3s, opacity 0.3s;
}

.ham.open span:nth-child(1) {
	transform: translateY(9.5px) rotate(45deg);
}

.ham.open span:nth-child(2) {
	opacity: 0;
}

.ham.open span:nth-child(3) {
	transform: translateY(-9.5px) rotate(-45deg);
}

/* Hero */
#hero {
	position: relative;
	/* min-height: clamp(600px, 76dvh, 760px); */
	padding: clamp(112px, 10vw, 142px) 0 clamp(60px, 6.2vw, 86px);
	overflow: hidden;
	border-bottom: 1px solid var(--card-border);
	background:
		radial-gradient(circle at 82% 32%, rgba(47, 111, 78, 0.10), transparent 36%),
		linear-gradient(180deg, #ffffff 0%, #f9faf7 100%);
}

#hero-content {
	position: relative;
	z-index: 2;
	padding: 0;
	text-align: left;
}

#hero-content .mb-8 {
	margin-bottom: 22px;
}

#hero-content p {
	margin-left: 0;
	margin-right: 0;
	font-size: clamp(1rem, 0.42vw + 0.92rem, 1.12rem);
	line-height: 1.68;
}

#hero .italic {
	display: inline-block;
	padding-right: 0.12em;
	line-height: 1.13;
	margin-left: -0.06em;
}

.italic {
	font-style: italic;
	padding-right: 0.12em;
}

.hero-image-card {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--soft-band-2);
	border: 1px solid rgba(24, 34, 28, 0.08);
	border-radius: 22px;
	box-shadow: 0 24px 68px rgba(24, 34, 28, 0.13);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 28px 76px rgba(24, 34, 28, 0.16);
}

.hero-image-card img,
#hero-img img,
#hero-video-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: none;
}

.hero-overlay {
	display: none;
}

#hero-img,
#hero-video-wrap {
	right: var(--site-container-edge);
	width: min(43vw, 560px);
	border-radius: 22px;
	overflow: hidden;
	background: var(--soft-band-2);
	border: 1px solid rgba(24, 34, 28, 0.08);
	box-shadow: 0 24px 68px rgba(24, 34, 28, 0.13);
}

/* Shared components */
.card,
.pricing-card,
.sku-card,
.job-card,
.bg-ink .job-card,
[class*="bg-ink"][class*="border"] {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 14px;
	box-shadow: var(--shadow-soft);
	color: var(--paper);
	transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover,
.pricing-card:hover,
.job-card:hover,
.glass-panel-hover:hover {
	transform: translateY(-3px);
	border-color: rgba(47, 111, 78, 0.28);
	box-shadow: var(--shadow-hover);
}

.card h2,
.card h3,
.pricing-card h3,
.sku-card h3,
.job-card h3 {
	color: var(--paper);
	margin-bottom: 12px;
}

.card h3,
.pricing-card h3,
.sku-card h3 {
	font-size: clamp(1.14rem, 0.72vw + 0.98rem, 1.44rem);
	line-height: 1.22;
}

.card p,
.pricing-card p,
.sku-card p,
.job-card p {
	color: var(--muted);
}

#problem .card {
	border-left-color: var(--card-border);
}

.glass-panel {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(15, 23, 42, 0.06);
}

.glass-panel-hover {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-label,
.section-badge,
.job-label,
.job-meta {
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.section-label {
	font-size: 0.72rem;
	margin-bottom: 16px;
}

.section-badge,
.inline-block.border.border-accent\/30,
.job-label {
	display: inline-block;
	background: rgba(47, 111, 78, 0.08);
	border: 1px solid rgba(47, 111, 78, 0.20);
	border-radius: 999px;
	color: var(--accent);
	padding: 5px 12px;
}

.section-badge {
	font-size: 0.68rem;
}

.btn-accent,
.btn-outline,
.btn-sap,
.job-apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--site-font);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-accent,
.btn-sap,
.career-tab:hover,
.career-tab[style*="background:var(--accent)"],
.bg-accent {
	background: var(--accent);
	border: 2px solid var(--accent);
	color: #ffffff;
}

.btn-accent,
.btn-outline {
	padding: 15px 32px;
}

.btn-outline {
	background: transparent;
	border: 1px solid rgba(47, 111, 78, 0.34);
	color: var(--accent);
}

.btn-outline:hover {
	border-color: #24583d;
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(47, 111, 78, 0.22);
}

.job-apply:hover {
	background: #24583d;
	border-color: #24583d;
	color: #ffffff;
}

.btn-accent:hover {
	background: #24583d;
	border-color: #24583d;
	color: #ffffff;
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(47, 111, 78, 0.22);
}

.btn-sap {
	padding: 13px 24px;
	border-radius: 12px;
}

.form-input,
input,
select,
textarea {
	width: 100%;
	min-height: 50px;
	padding: 14px 16px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--paper);
	box-shadow: 0 1px 0 rgba(24, 34, 28, 0.03);
	font-size: 0.96rem;
	line-height: 1.55;
	outline: none;
	transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.form-input:focus,
input:focus,
select:focus,
textarea:focus {
	border-color: rgba(47, 111, 78, 0.55);
	box-shadow: 0 0 0 4px rgba(47, 111, 78, 0.10);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
	color: #858b92;
}

/* Google Form-parity registration fields */
.registration-required-note {
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 0.78rem;
}

.registration-section {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
}

.registration-section:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.registration-section-title {
	grid-column: 1 / -1;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--paper);
}

.registration-grid,
.registration-corporate {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.registration-corporate {
	grid-column: 1 / -1;
}

.registration-corporate[hidden] {
	display: none;
}

.branched-registration-form .registration-section > fieldset,
.branched-registration-form .registration-section > .registration-grid,
.branched-registration-form .registration-field:has(textarea),
.branched-registration-form .pt-4 {
	grid-column: 1 / -1;
}

.registration-field {
	min-width: 0;
}

.registration-label {
	display: block;
	margin-bottom: 10px;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.5;
}

.registration-label span {
	color: #b42318;
}

.registration-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.registration-choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	padding: 12px 14px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--paper);
	font-size: 0.88rem;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.registration-choice:hover,
.registration-choice:focus-within {
	border-color: rgba(47, 111, 78, 0.55);
	box-shadow: 0 0 0 3px rgba(47, 111, 78, 0.08);
}

.registration-choice input[type="radio"],
.registration-choice input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-height: 18px;
	margin: 1px 0 0;
	padding: 0;
	flex: 0 0 18px;
	accent-color: var(--accent);
	box-shadow: none;
}

.registration-choice span {
	min-width: 0;
	overflow-wrap: anywhere;
}

@media (max-width: 640px) {
	.registration-section,
	.registration-grid,
	.registration-corporate,
	.registration-choices {
		grid-template-columns: 1fr;
	}

	.registration-section {
		padding: 16px 0;
		gap: 14px;
	}
}

/* Timeline, media, and demo */
.timeline-line,
.tl-line,
#solution .relative>.tl-line,
#solution .relative>.timeline-line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, transparent, rgba(47, 111, 78, 0.55), transparent);
	transform: translateX(-50%);
	pointer-events: none;
}

.timeline-dot,
.tl-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	border: 3px solid #ffffff;
	box-shadow: 0 0 0 6px rgba(47, 111, 78, 0.12);
	flex-shrink: 0;
}

.stat-num {
	color: var(--accent);
	font-family: var(--site-font);
	font-size: clamp(2.15rem, 4.4vw, 3.65rem);
	font-weight: 800;
	line-height: 1;
}

.stat-divider {
	width: 40px;
	height: 2px;
	margin: 12px 0;
	background: var(--accent);
}

main img,
main video {
	box-shadow: none;
}

main .rounded-xl.overflow-hidden,
main .rounded-2xl.overflow-hidden,
main .rounded-3xl.overflow-hidden,
#demo-frame {
	background: #ffffff;
	border: 1px solid var(--line);
	box-shadow: 0 18px 54px rgba(24, 34, 28, 0.10);
}

#demo-frame {
	max-width: 920px;
	border-radius: 22px;
}

#demo-video {
	object-fit: contain;
	max-height: 100%;
	background: #eef2ea;
}

#demo-counter,
#demo-tap-hint,
#demo-label {
	background: rgba(255, 255, 255, 0.84);
	color: var(--paper);
	border: 1px solid rgba(24, 34, 28, 0.10);
	box-shadow: 0 10px 30px rgba(24, 34, 28, 0.10);
	backdrop-filter: blur(14px);
	text-shadow: none;
}

#demo-label {
	display: inline-block;
	padding: 10px 14px;
	border-radius: 12px;
}

/* SAPER technical specifications */
#specs .rounded-2xl {
	border-color: var(--line);
}

#specs .rounded-2xl:focus-within {
	border-color: var(--line);
	box-shadow: 0 18px 54px rgba(24, 34, 28, 0.10);
}

#specs table {
	font-size: 0.94rem;
	line-height: 1.48;
}

#specs thead tr {
	font-size: 0.82rem;
	line-height: 1.35;
}

#specs th,
#specs td {
	padding: 18px 20px;
	vertical-align: top;
}

#specs tbody {
	font-size: 0.94rem;
	line-height: 1.48;
}

#specs tbody td:first-child {
	font-weight: 700;
}

#specs :is(a, button, input, select, textarea, [tabindex]):focus,
#specs :is(a, button, input, select, textarea, [tabindex]):focus-visible {
	border-color: var(--line);
	outline: 1px solid rgba(47, 111, 78, 0.28);
	outline-offset: 2px;
	box-shadow: none;
}

/* FAQ, team, and utility behavior */
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
	max-height: 400px;
}

.faq-toggle svg {
	transition: transform 0.3s ease;
}

.faq-toggle.open svg {
	transform: rotate(45deg);
}

.team-card img {
	filter: grayscale(30%) contrast(1.05);
	transition: filter 0.4s;
}

.team-card:hover img {
	filter: grayscale(0%) contrast(1.1);
}

.clip-diag {
	clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.mkt-row:nth-child(even) {
	background: rgba(47, 111, 78, 0.03);
}

.mkt-row:hover {
	background: rgba(47, 111, 78, 0.07);
}

.parallax-section {
	transform: translateY(var(--parallax-y, 0px));
}

/* Chat and fixed UI */
#sticky-cta {
	position: fixed;
	right: 24px;
	bottom: 72px;
	z-index: 50;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 0.4s, transform 0.4s;
}

#sticky-cta.show {
	opacity: 1;
	pointer-events: all;
	transform: translateY(0);
}

#footer-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 48;
	background: var(--nav-bg);
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 -12px 30px rgba(24, 34, 28, 0.06);
	color: var(--nav-text);
	backdrop-filter: blur(12px);
}

footer,
footer[style] {
	background: #f8f9f5;
	border-top: 1px solid var(--line);
	color: var(--paper);
}

footer .text-paper,
footer .font-bold,
footer strong {
	color: var(--paper);
}

footer .text-muted,
footer a {
	color: var(--muted);
}

footer a:hover {
	color: var(--accent);
}

#chat-trigger {
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: calc(18px + env(safe-area-inset-bottom));
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	background: var(--accent);
	color: #ffffff;
	border-radius: 50%;
	box-shadow: 0 18px 42px rgba(47, 111, 78, 0.26);
	cursor: pointer;
	transition: transform 0.3s, border-radius 0.3s, box-shadow 0.3s;
	touch-action: manipulation;
}

#chat-trigger:hover {
	transform: scale(1.05);
}

#chat-trigger.is-open {
	border-radius: 18px;
	box-shadow: 0 16px 42px rgba(47, 111, 78, 0.28);
}

#chat-trigger svg {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

#nava-win {
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: calc(88px + env(safe-area-inset-bottom) + var(--chat-keyboard-offset, 0px));
	z-index: 10049;
	display: none;
	flex-direction: column;
	width: min(390px, calc(100vw - 36px));
	height: min(560px, max(220px, calc(100dvh - 116px - env(safe-area-inset-bottom) - var(--chat-keyboard-offset, 0px))));
	max-height: max(220px, calc(100dvh - 116px - env(safe-area-inset-bottom) - var(--chat-keyboard-offset, 0px)));
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 22px;
	box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

#nava-win.show {
	display: flex;
}

#nava-win>div:first-child {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex: 0 0 auto;
	min-height: 64px;
	padding: 14px 16px;
	background: #ffffff;
	border-bottom: 1px solid var(--line);
}

#chat-msgs {
	display: flex;
	flex: 1;
	min-height: 0;
	flex-direction: column;
	gap: 12px;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 18px 16px;
	background: #f8fafc;
	scrollbar-width: thin;
}

.chat-msg-user,
.chat-msg-bot {
	max-width: min(86%, 300px);
	padding: 11px 14px;
	border-radius: 16px;
	font-size: 0.88rem;
	line-height: 1.48;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: pre-wrap;
}

.chat-msg-user {
	align-self: flex-end;
	background: var(--accent);
	color: #ffffff;
	border-bottom-right-radius: 2px;
	font-weight: 500;
}

.chat-msg-bot {
	align-self: flex-start;
	background: #ffffff;
	color: var(--paper);
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-bottom-left-radius: 2px;
}

.chat-lang {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 36px;
	padding: 6px 10px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--muted);
	cursor: pointer;
	font-size: 0.72rem;
	line-height: 1;
	transition: all 0.2s;
	touch-action: manipulation;
}

.chat-lang.on {
	background: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
	font-weight: 600;
}

#nava-win>div:last-child {
	flex: 0 0 auto;
	padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
	background: #ffffff;
	border-top: 1px solid var(--line);
}

#nava-win>div:last-child>div {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	min-width: 0;
}

#chat-inp {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	min-height: 44px;
	max-height: 96px;
	padding: 11px 13px;
	border-radius: 12px;
	font-size: 0.92rem;
	line-height: 1.35;
	overflow-y: auto;
}

#chat-send-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 74px;
	width: 74px;
	min-width: 74px;
	height: 44px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 12px;
	font-size: 0.86rem;
	line-height: 1;
	white-space: nowrap;
	touch-action: manipulation;
}

.chat-typing span {
	width: 6px;
	height: 6px;
	background: var(--muted);
	border-radius: 50%;
	animation: chat-bounce 1.4s infinite ease-in-out both;
}

.chat-typing span:nth-child(1) {
	animation-delay: -0.32s;
}

.chat-typing span:nth-child(2) {
	animation-delay: -0.16s;
}

@media (max-width: 480px) {
	#chat-trigger {
		right: max(14px, env(safe-area-inset-right));
		bottom: calc(14px + env(safe-area-inset-bottom));
		width: 54px;
		height: 54px;
		min-width: 54px;
		min-height: 54px;
	}

	#nava-win {
		right: max(10px, env(safe-area-inset-right));
		bottom: calc(76px + env(safe-area-inset-bottom) + var(--chat-keyboard-offset, 0px));
		width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
		height: min(560px, max(180px, calc(100dvh - 98px - env(safe-area-inset-bottom) - var(--chat-keyboard-offset, 0px))));
		max-height: max(180px, calc(100dvh - 98px - env(safe-area-inset-bottom) - var(--chat-keyboard-offset, 0px)));
		border-radius: 18px;
	}

	#nava-win>div:first-child {
		min-height: 58px;
		padding: 12px 14px;
	}

	#chat-msgs {
		gap: 10px;
		padding: 14px 12px;
	}

	.chat-msg-user,
	.chat-msg-bot {
		max-width: 88%;
		padding: 10px 12px;
		font-size: 0.86rem;
	}

	.chat-lang {
		min-width: 40px;
		min-height: 34px;
		padding: 6px 9px;
	}

	#nava-win>div:last-child {
		padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
	}

	#chat-inp {
		min-height: 44px;
		padding: 10px 12px;
		font-size: 0.9rem;
	}

	#chat-send-btn {
		flex-basis: 68px;
		width: 68px;
		min-width: 68px;
		padding-inline: 12px;
		font-size: 0.82rem;
	}
}

@media (max-width: 340px) {
	#nava-win {
		right: 8px;
		width: calc(100vw - 16px);
	}

	#nava-win>div:first-child,
	#nava-win>div:last-child {
		padding-left: 10px;
		padding-right: 10px;
	}

	#chat-msgs {
		padding-left: 10px;
		padding-right: 10px;
	}

	#chat-send-btn {
		flex-basis: 64px;
		width: 64px;
		min-width: 64px;
	}
}

/* Career pages */
.career-page section {
	scroll-margin-top: 96px;
}

.career-page #hero {
	min-height: clamp(580px, 72dvh, 720px);
	padding-top: clamp(114px, 10vw, 144px);
	padding-bottom: clamp(66px, 6vw, 92px);
}

.career-page #hero-content h1 {
	font-size: clamp(2.65rem, 5.4vw, 3.85rem) !important;
	line-height: 1.02 !important;
	margin-bottom: 28px !important;
}

.career-page #hero-content p {
	max-width: 700px;
	font-size: clamp(1rem, 0.4vw + 0.92rem, 1.1rem);
	line-height: 1.72;
}

.career-intro,
.career-page #fresher-openings,
.career-page #experienced-openings,
.career-page #openings,
.career-page #job-application {
	padding-top: var(--section-y);
	padding-bottom: var(--section-y);
}

.career-intro h2,
.career-page #fresher-openings h2,
.career-page #experienced-openings h2,
.career-page #openings h2 {
	font-size: clamp(1.8rem, 3.4vw, 2.7rem) !important;
	line-height: 1.08 !important;
	letter-spacing: 0;
}

.career-intro p,
.career-page #fresher-openings p,
.career-page #experienced-openings p,
.career-page #openings>div>p,
.career-page #openings .max-w-xl {
	color: var(--muted);
	font-size: clamp(0.96rem, 0.36vw + 0.88rem, 1.04rem);
	line-height: 1.72;
}

.career-intro .card {
	padding: 30px;
}

.career-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	max-width: 640px;
	margin: 0 auto;
}

.career-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 10px 26px rgba(24, 34, 28, 0.05);
	color: var(--paper);
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	padding: 19px 22px;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.career-tab:hover {
	color: #ffffff;
	transform: translateY(-3px);
	box-shadow: 0 18px 38px rgba(47, 111, 78, 0.18);
}

/* ── Job carousel layout ── */
.carousel-wrapper {
	position: relative;
}

.job-rail {
	display: grid;
	grid-template-columns: repeat(var(--carousel-cols, 4), 1fr);
	gap: 24px;
	width: 100%;
	padding: 6px 0 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--accent) #e8eee4;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

/* Carousel active state — injected by JS when cards > 4 */
.job-rail.is-carousel {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	padding-bottom: 12px;
}

.job-rail.is-carousel::-webkit-scrollbar {
	height: 5px;
}

.job-rail.is-carousel::-webkit-scrollbar-track {
	background: #e8eee4;
	border-radius: 999px;
}

.job-rail.is-carousel::-webkit-scrollbar-thumb {
	background: var(--accent);
	border-radius: 999px;
}

.job-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	width: 100%;
	min-width: 0;
	min-height: 460px;
	padding: 32px;
	scroll-snap-align: start;
	flex-shrink: 0;
}

/* Card width when carousel is active — accounts for gap: 24px */
.job-rail.is-carousel .job-card {
	/* Desktop default: 4 visible = (100% - 3×24px) / 4 */
	flex: 0 0 calc(25% - 18px);
	width: calc(25% - 18px);
	max-width: none;
	box-sizing: border-box;
}

/* ── Carousel navigation bar ── */
.carousel-nav {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 28px;
}

.carousel-nav.is-visible {
	display: flex;
}

.carousel-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	background: #ffffff;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	color: var(--paper);
	cursor: pointer;
	transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
	touch-action: manipulation;
	flex-shrink: 0;
}

.carousel-arrow:hover:not(:disabled) {
	background: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
	transform: scale(1.06);
	box-shadow: 0 8px 22px rgba(47, 111, 78, 0.22);
}

.carousel-arrow:disabled {
	opacity: 0.32;
	cursor: not-allowed;
	transform: none;
}

.carousel-arrow svg {
	pointer-events: none;
}

.carousel-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	max-width: 180px;
}

.carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(47, 111, 78, 0.2);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.25s, transform 0.25s, width 0.25s;
	touch-action: manipulation;
	flex-shrink: 0;
}

.carousel-dot.is-active {
	background: var(--accent);
	transform: scale(1.25);
	width: 22px;
	border-radius: 4px;
}

.job-card>div {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.job-label {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-bottom: 18px;
	padding: 7px 12px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
}

.job-card h3 {
	margin: 0 0 24px;
	color: var(--paper);
	font-size: clamp(1.45rem, 1.45vw + 1.05rem, 2.05rem);
	font-weight: 700;
	line-height: 1.12;
}

.job-details {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0 0 24px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.job-details div {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	gap: 16px;
	align-items: baseline;
}

.job-details dt {
	color: var(--accent);
	font-family: var(--mono-font);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	line-height: 1.35;
	text-transform: uppercase;
}

.job-details dd,
.job-details span {
	margin: 0;
	color: #2f3b33;
	font-size: 0.96rem;
	font-weight: 600;
	line-height: 1.45;
}

.job-details span {
	position: relative;
	padding-left: 14px;
}

.job-details span::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.67em;
	width: 5px;
	height: 5px;
	background: var(--accent);
	border-radius: 999px;
}

.job-card p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.7;
}

.job-meta {
	font-size: 0.68rem;
}

.job-apply {
	width: 100%;
	margin-top: auto;
	padding: 15px 22px;
	font-size: 0.82rem;
}

.career-page #job-application .sku-card {
	padding: clamp(30px, 4vw, 46px);
	border-radius: 20px;
	box-shadow: var(--shadow-soft);
}

.career-page #job-application h3 {
	font-size: clamp(1.75rem, 3vw, 2.45rem) !important;
	line-height: 1.08 !important;
	margin-bottom: 16px !important;
}

.career-page #job-application p {
	margin-bottom: 30px !important;
	font-size: 0.98rem;
	line-height: 1.7;
}

.career-page #job-application label {
	margin-bottom: 10px !important;
	font-size: 0.68rem;
	letter-spacing: 0.16em;
}

.career-page #job-application textarea.form-input {
	min-height: 150px;
	line-height: 1.7;
}

/* Responsive rules */
@media (max-width: 980px) {
	#hero {
		display: block;
		min-height: auto;
		padding-top: 112px;
	}

	#hero-content {
		text-align: left;
	}

	#hero-img,
	#hero-video-wrap {
		position: relative;
		inset: auto;
		width: calc(100% - (var(--site-container-edge) * 2));
		height: auto;
		aspect-ratio: 16 / 10;
		margin: 42px auto 0;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 16px;
		line-height: 1.68;
	}

	main section {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	main p,
	main li {
		font-size: 1rem;
		line-height: 1.7;
	}

	h1 {
		font-size: clamp(2.55rem, 12vw, 4.2rem) !important;
		line-height: 1.02 !important;
	}

	h2 {
		font-size: clamp(1.95rem, 9vw, 3rem) !important;
	}

	#navbar {
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-top: 16px;
		padding-bottom: 0px;
	}

	#navbar img {
		width: 48px;
		height: 48px;
	}

	#hero {
		padding-top: 112px;
		padding-bottom: 64px;
	}

	#hero-content {
		text-align: center;
	}

	#hero-content p {
		font-size: 1rem;
		line-height: 1.7;
	}

	#specs table {
		font-size: 0.84rem;
		line-height: 1.42;
	}

	#specs thead tr {
		font-size: 0.72rem;
	}

	#specs th,
	#specs td {
		padding: 14px 12px;
	}

	.timeline-line,
	.tl-line,
	#solution .relative>.tl-line,
	#solution .relative>.timeline-line {
		left: 20px;
		top: 8px;
		bottom: 8px;
		opacity: 0.8;
	}

	.timeline-item-left,
	.timeline-item-right,
	.tl-r,
	.tl-l {
		padding-left: 52px;
		text-align: left;
	}

	.timeline-dot-wrap,
	.tl-d {
		left: 14px !important;
		right: auto !important;
	}

	.career-tabs {
		grid-template-columns: 1fr;
	}

	.career-page #hero {
		min-height: 76dvh;
		padding: 126px 0 92px;
	}

	.career-page #hero-content h1 {
		font-size: clamp(2.75rem, 14vw, 4.2rem) !important;
	}

	.career-intro,
	.career-page #fresher-openings,
	.career-page #experienced-openings,
	.career-page #openings,
	.career-page #job-application {
		padding-top: 96px;
		padding-bottom: 96px;
	}

	.job-card {
		min-height: 520px;
		padding: 28px;
	}

	.job-details div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	/* Mobile: 1 column for grid mode + 1 card visible in carousel */
	.job-rail {
		--carousel-cols: 1;
	}

	.job-rail.is-carousel .job-card {
		/* Show ~1 card + a peek of the next card as a scroll hint */
		flex: 0 0 calc(88vw - 24px);
		width: calc(88vw - 24px);
	}

	.carousel-dot {
		width: 7px;
		height: 7px;
	}

	.carousel-dot.is-active {
		width: 18px;
	}
}

/* Tablet: 2 cards visible in carousel */
@media (min-width: 769px) and (max-width: 1200px) {
	.job-rail {
		--carousel-cols: 2;
	}

	.job-rail.is-carousel .job-card {
		flex: 0 0 calc(50% - 12px);
		width: calc(50% - 12px);
	}
}

/* Desktop: 4 cards in grid / carousel */
@media (min-width: 1201px) {
	.job-rail {
		--carousel-cols: 4;
	}
}

/* Animations */
.fade-up {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
	opacity: 1;
	transform: translateY(0);
}

.fade-in {
	opacity: 0;
	transition: opacity 0.8s ease;
}

.fade-in.visible {
	opacity: 1;
}

.reveal-left,
.reveal-right {
	opacity: 0;
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
	transform: translateX(-30px);
}

.reveal-right {
	transform: translateX(30px);
}

.reveal-left.visible,
.reveal-right.visible {
	opacity: 1;
	transform: translateX(0);
}

@keyframes chat-bounce {

	0%,
	80%,
	100% {
		transform: scale(0);
	}

	40% {
		transform: scale(1);
	}
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-6px);
	}
}

.animate-float {
	animation: float 6s ease-in-out infinite;
}

@keyframes glow-pulse {

	0%,
	100% {
		box-shadow: 0 0 15px rgba(16, 185, 129, 0.04);
		border-color: rgba(16, 185, 129, 0.10);
	}

	50% {
		box-shadow: 0 0 25px rgba(16, 185, 129, 0.08);
		border-color: rgba(16, 185, 129, 0.20);
	}
}

.animate-glow {
	animation: glow-pulse 3s ease-in-out infinite;
}
