/* maraccess interactive widgets — scoped, theme-independent styles */

:root {
	--mar-ink-950: #0a0b10;
	--mar-ink-900: #121319;
	--mar-ink-800: #191b24;
	--mar-ink-line: rgba(255, 255, 255, 0.09);
	--mar-violet-700: #5b4fe0;
	--mar-violet-600: #6d5ef5;
	--mar-violet-500: #8b7ffb;
	--mar-cyan-400: #4dd8e8;
	--mar-cyan-300: #7ee6f0;
	--mar-emerald-500: #10b981;
	--mar-rose-500: #f43f5e;
	--mar-amber: #f5a524;
	--mar-white: #ffffff;
	--mar-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--mar-shadow-lg: 0 30px 70px -24px rgba(8, 8, 14, 0.45);
}

.mar-demo, .mar-form { box-sizing: border-box; }
.mar-demo *, .mar-form *, .mar-demo *::before, .mar-demo *::after { box-sizing: border-box; }

/* --- Demo walkthrough --- */
.mar-demo { max-width: 720px; margin: 0 auto; }
.mar-demo__frame {
	position: relative;
	background: linear-gradient(165deg, var(--mar-ink-900), var(--mar-ink-950));
	border: 1px solid var(--mar-ink-line);
	border-radius: 22px;
	padding: 22px 28px 28px;
	color: var(--mar-white);
	box-shadow: var(--mar-shadow-lg);
	min-height: 320px;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mar-demo__topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.mar-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mar-dot--red { background: #f87171; }
.mar-dot--yellow { background: #fbbf24; }
.mar-dot--green { background: #4ade80; }
.mar-demo__url { margin-left: 14px; font-size: 0.78rem; color: #9295aa; font-family: var(--mar-mono); }

.mar-slide { display: none; flex: 1; animation: mar-fade-in 0.4s ease; }
.mar-slide.is-active { display: block; }
.mar-slide__step { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mar-cyan-300); margin: 0 0 6px; font-weight: 700; }
.mar-demo h3 { color: var(--mar-white); font-size: 1.2rem; margin: 0 0 20px; font-weight: 700; }

.mar-brandmark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 6px;
	background: linear-gradient(135deg, var(--mar-violet-600), var(--mar-cyan-400));
	color: var(--mar-white); font-weight: 700; font-size: 0.75rem;
}

.mar-terminal {
	background: var(--mar-ink-950);
	border: 1px solid var(--mar-ink-line);
	border-radius: 12px;
	padding: 18px 20px;
	font-family: var(--mar-mono);
	font-size: 0.88rem;
	overflow-x: auto;
}
.mar-terminal p { margin: 0 0 8px; color: var(--mar-white); word-break: break-word; }
.mar-terminal__prompt { color: var(--mar-cyan-300); }
.mar-terminal__muted { color: #9295aa; }
.mar-cursor { animation: mar-blink 1s step-start infinite; }
.mar-terminal__table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 0.82rem; }
.mar-terminal__table th, .mar-terminal__table td { text-align: left; padding: 6px 12px; border-bottom: 1px solid var(--mar-ink-line); color: #d7d9e6; }
.mar-terminal__table th { color: #9295aa; font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.04em; }

.mar-login {
	background: var(--mar-ink-950);
	border: 1px solid var(--mar-ink-line);
	border-radius: 12px;
	padding: 22px 24px;
	max-width: 380px;
}
.mar-login__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 18px; }
.mar-login__field { margin-bottom: 14px; }
.mar-login__field label { display: block; font-size: 0.72rem; color: #9295aa; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.mar-login__input {
	background: var(--mar-ink-900);
	border: 1px solid var(--mar-ink-line);
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 0.9rem;
	color: var(--mar-white);
	font-family: var(--mar-mono);
}
.mar-login__otp { display: flex; gap: 6px; }
.mar-login__otp span {
	width: 30px; height: 36px;
	background: var(--mar-ink-900);
	border: 1px solid rgba(139, 127, 251, 0.35);
	border-radius: 6px;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--mar-mono);
	font-size: 0.95rem;
	color: var(--mar-violet-500);
}
.mar-login__status {
	margin-top: 18px; padding-top: 16px;
	border-top: 1px solid var(--mar-ink-line);
	font-size: 0.85rem; color: #d7d9e6;
	display: flex; align-items: center; gap: 8px;
}
.mar-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mar-emerald-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); flex-shrink: 0; }

.mar-reslist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mar-reslist li {
	display: flex; align-items: center; gap: 14px;
	background: var(--mar-ink-900);
	border: 1px solid var(--mar-ink-line);
	border-radius: 10px;
	padding: 12px 16px;
}
.mar-reslist__icon {
	flex-shrink: 0; width: 40px; height: 40px; border-radius: 9px;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.7rem; font-weight: 700; font-family: var(--mar-mono);
}
.mar-reslist__icon--ssh { background: rgba(109, 94, 245, 0.18); color: #b3aaff; }
.mar-reslist__icon--k8s { background: rgba(77, 216, 232, 0.18); color: var(--mar-cyan-300); }
.mar-reslist__icon--rdp { background: rgba(245, 165, 36, 0.18); color: #ffc670; }
.mar-reslist__icon--db { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.mar-reslist__meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mar-reslist__meta strong { font-size: 0.92rem; color: var(--mar-white); }
.mar-reslist__meta span { font-size: 0.78rem; color: #9295aa; }
.mar-reslist__btn { flex-shrink: 0; background: rgba(255,255,255,0.08); color: var(--mar-white); font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; }

.mar-rdp { background: var(--mar-ink-900); border: 1px solid var(--mar-ink-line); border-radius: 12px; overflow: hidden; max-width: 460px; }
.mar-rdp__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 0.78rem; color: #d7d9e6; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--mar-ink-line); }
.mar-rdp__timer { margin-left: auto; font-family: var(--mar-mono); color: #9295aa; }
.mar-rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mar-rose-500); animation: mar-blink 1.2s step-start infinite; }
.mar-rdp__screen { height: 150px; background: linear-gradient(135deg, var(--mar-violet-700), var(--mar-ink-950) 70%); display: flex; align-items: center; justify-content: center; gap: 16px; }
.mar-rdp__win { width: 120px; height: 84px; background: rgba(255,255,255,0.92); border-radius: 6px; box-shadow: 0 16px 36px -14px rgba(23,24,31,0.5); }
.mar-rdp__win--sm { width: 70px; height: 54px; background: rgba(255,255,255,0.55); margin-top: 40px; }
.mar-rdp__caption { padding: 12px 14px 14px; font-size: 0.8rem; color: #9295aa; margin: 0; }

.mar-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mar-activity li { font-size: 0.92rem; color: #d7d9e6; display: flex; align-items: center; gap: 10px; }
.mar-activity em { font-style: normal; color: #82859a; margin-left: auto; font-size: 0.8rem; }
.mar-activity__dot { width: 9px; height: 9px; border-radius: 50%; background: #9295aa; flex-shrink: 0; }
.mar-activity__dot--a { background: var(--mar-violet-500); }
.mar-activity__dot--b { background: var(--mar-emerald-500); }
.mar-activity__dot--c { background: var(--mar-rose-500); }

.mar-demo__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.mar-demo__arrow {
	background: rgba(255,255,255,0.06); border: 1px solid var(--mar-ink-line); color: var(--mar-white);
	width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 0.9rem;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.mar-demo__arrow:hover { background: rgba(109, 94, 245, 0.25); border-color: var(--mar-violet-500); }
.mar-demo__dots { display: flex; gap: 8px; }
.mar-demo__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); border: none; padding: 0; cursor: pointer; }
.mar-demo__dots button.is-active { background: linear-gradient(90deg, var(--mar-violet-500), var(--mar-cyan-300)); width: 22px; border-radius: 4px; }
.mar-demo__disclaimer { text-align: center; font-size: 0.78rem; color: #8a8d9e; margin: 14px 0 0; }

/* --- Book a demo form --- */
.mar-form {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(16px);
	border-radius: 18px;
	padding: 30px;
	max-width: 440px;
	box-shadow: var(--mar-shadow-lg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mar-form__row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.mar-form__row label { font-size: 0.85rem; font-weight: 600; color: #e4e5ef; }
.mar-form__row input, .mar-form__row textarea {
	background: rgba(10, 11, 16, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: var(--mar-white);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.95rem;
	font-family: inherit;
	resize: vertical;
}
.mar-form__row input::placeholder, .mar-form__row textarea::placeholder { color: #74778c; }
.mar-form__row input:focus, .mar-form__row textarea:focus { outline: 2px solid var(--mar-violet-500); outline-offset: 1px; }
.mar-form__status { margin: 12px 0 0; font-size: 0.88rem; min-height: 1.2em; color: #c9cbdb; }
.mar-form__status.is-success { color: #6ee7b7; }
.mar-form__status.is-error { color: #fca5a5; }

.mar-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: 999px; padding: 12px 24px; font-weight: 600; font-size: 0.95rem;
	text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mar-btn--primary {
	background: linear-gradient(135deg, var(--mar-violet-600), var(--mar-violet-700));
	color: var(--mar-white);
	box-shadow: 0 10px 26px -10px rgba(109, 94, 245, 0.55);
}
.mar-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -10px rgba(109, 94, 245, 0.65); }
.mar-btn--block { width: 100%; }

@keyframes mar-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mar-blink { 50% { opacity: 0; } }

@media (max-width: 560px) {
	.mar-demo__frame { padding: 18px 16px 20px; }
	.mar-reslist li { flex-wrap: wrap; }
	.mar-reslist__btn { margin-left: 54px; }
	.mar-form { padding: 22px; }
}
