/* Web chat base: the app's glossy royal-blue logo look, cool paper backgrounds, frosted glass and the band of light
   that glides across glossy things. The marketing pages use site.css instead. */

:root {
	color-scheme: light;
	--blue: #16428c;
	--blue-light: #6089cd;
	--blue-deep: #06265c;
	--blue-ink: #0b2a5e;
	--accent: #1a4ca0;
	--glow: #c4d8fb;
	--paper: #f6f8fd;
	--paper-shade: #e7edf8;
	--field: #ebf2fd;
	--surface: #ffffff;
	--text: #0d1b36;
	--text-body: #2c3a57;
	--text-muted: #4f5d7a;
	--rim: rgba(96, 137, 205, 0.22);
	--orange: #f26b1d;
	--green: #34c759;
	--radius-xl: 36px;
	--radius-lg: 28px;
	--radius-md: 20px;
	--shadow-card: 0 2px 4px rgba(6, 38, 92, 0.05), 0 22px 44px -20px rgba(22, 66, 140, 0.28);
	--shadow-key: 0 12px 26px -10px rgba(6, 38, 92, 0.6);
	--gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0) 56%);
	--key: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 55%, var(--blue-deep) 100%);
	--font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Noto Sans Armenian", system-ui, sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Inter", "Noto Sans Armenian", system-ui, "Segoe UI", sans-serif;
	--max: 1140px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

body {
	position: relative;
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text-body);
	background: linear-gradient(180deg, #fff 0%, var(--paper) 40%, var(--paper-shade) 100%);
	-webkit-font-smoothing: antialiased;
}

/* The logo's soft blue glow, washing in behind everything. */
body::before,
body::after {
	content: "";
	position: fixed;
	z-index: -1;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(196, 216, 251, 0.85), rgba(196, 216, 251, 0) 68%);
	pointer-events: none;
}

body::before {
	top: -240px;
	right: -160px;
}

body::after {
	bottom: -260px;
	left: -200px;
	opacity: 0.7;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--blue-deep);
}

:focus-visible {
	outline: 3px solid var(--blue-light);
	outline-offset: 3px;
	border-radius: 10px;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 800;
	color: var(--text);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}

.container {
	width: min(100% - 40px, var(--max));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	padding: 10px 16px;
	background: var(--blue);
	color: #fff;
	border-radius: 12px;
	z-index: 100;
}

.skip-link:focus {
	top: 16px;
	color: #fff;
}

.icon {
	width: 24px;
	height: 24px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Glossy pieces ---------- */

/* Royal blue with a glassy reflection over the top half, a lit rim and the passing shine, like the logo. */
.glossy {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--key);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-key);
}

.glossy::before {
	content: "";
	position: absolute;
	inset: 1.5px;
	z-index: -1;
	border-radius: inherit;
	background: var(--gloss);
	pointer-events: none;
}

/* Big glossy panels get a softer reflection so the text on them stays easy to read. */
.glossy.panel {
	background:
		radial-gradient(120% 80% at 15% 0%, rgba(96, 137, 205, 0.75), transparent 60%),
		linear-gradient(165deg, #1c4c9c 0%, var(--blue) 45%, var(--blue-deep) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -28px rgba(6, 38, 92, 0.7);
}

.glossy.panel::before {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 35%, rgba(255, 255, 255, 0) 55%);
}

.shine::after {
	content: "";
	position: absolute;
	top: -50%;
	bottom: -50%;
	left: 0;
	width: 38%;
	z-index: -1;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: translateX(-160%) rotate(22deg);
	animation: shine 4.8s ease-in-out infinite;
	pointer-events: none;
}

.panel.shine::after {
	width: 22%;
	opacity: 0.45;
	animation-duration: 7s;
}

@keyframes shine {
	0%,
	70% {
		transform: translateX(-160%) rotate(22deg);
	}
	100% {
		transform: translateX(420%) rotate(22deg);
	}
}

/* Frosted glass with a lit top rim, for things that float. */
.glass {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: saturate(170%) blur(20px);
	-webkit-backdrop-filter: saturate(170%) blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: inset 0 -1px 0 var(--rim), 0 10px 30px -14px rgba(22, 66, 140, 0.35);
}

/* The glossy logo with its own passing shine, masked to the logo's shape. */
.logo-shine {
	position: relative;
	display: inline-block;
}

.logo-shine img {
	width: 100%;
	height: auto;
}

.logo-shine::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%) no-repeat;
	background-size: 260% 100%;
	background-position: 140% 0;
	-webkit-mask: url("/assets/logo.webp") center / contain no-repeat;
	mask: url("/assets/logo.webp") center / contain no-repeat;
	animation: logo-shine 5.5s ease-in-out infinite;
	pointer-events: none;
}

@keyframes logo-shine {
	0%,
	72% {
		background-position: 140% 0;
	}
	100% {
		background-position: -40% 0;
	}
}


/* ---------- Buttons ---------- */

.button {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 26px;
	border: 0;
	border-radius: 18px;
	font: 700 16px/1.2 var(--font-display);
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s;
}

.button .icon {
	width: 20px;
	height: 20px;
}

.button-primary {
	background: var(--key);
	color: #fff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-key);
}

.button-primary::before {
	content: "";
	position: absolute;
	inset: 1.5px;
	z-index: -1;
	border-radius: inherit;
	background: var(--gloss);
}

.button-primary:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 16px 30px -10px rgba(6, 38, 92, 0.65);
}

.button-primary:active {
	transform: translateY(1px);
}

.button-secondary {
	background: linear-gradient(180deg, #fff, var(--paper));
	color: var(--blue);
	box-shadow: inset 0 0 0 1px rgba(96, 137, 205, 0.45), 0 6px 16px -8px rgba(22, 66, 140, 0.35);
}

.button-secondary:hover {
	color: var(--blue-deep);
	transform: translateY(-1px);
}

.button-small {
	min-height: 40px;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 15px;
}


.bot-tag {
	display: inline-block;
	margin-left: 4px;
	padding: 0 5px;
	border-radius: 5px;
	background: var(--accent);
	color: #fff;
	font-size: 9px;
	letter-spacing: 0.04em;
	vertical-align: 1px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
