@font-face {
  font-family: 'Oxanium';
  src: url('../../font/Oxanium-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oxanium';
  src: url('../../font/Oxanium-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ruin-backdrop-top: #050b05;
  --ruin-backdrop-mid: #0a120a;
  --ruin-backdrop-bottom: #060b06;
  --ruin-surface: rgba(9, 12, 11, 0.74);
  --ruin-surface-soft: rgba(9, 12, 11, 0.56);
  --ruin-border: rgba(112, 140, 114, 0.18);
  --ruin-border-strong: rgba(112, 140, 114, 0.32);
  --ruin-accent: #708c72;
  --ruin-text: #f2f4f5;
  --ruin-text-soft: rgba(233, 238, 240, 0.82);
  --ruin-text-muted: rgba(186, 196, 199, 0.68);
}

html {
  min-height: 100%;
  background: linear-gradient(180deg, var(--ruin-backdrop-top) 0%, var(--ruin-backdrop-mid) 40%, var(--ruin-backdrop-bottom) 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  isolation: isolate;
  background: transparent !important;
  color: var(--ruin-text);
  display: flex;
  flex-direction: column;
  font-family: Oxanium, Arial, sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--ruin-backdrop-top) 0%, var(--ruin-backdrop-mid) 40%, var(--ruin-backdrop-bottom) 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(7, 10, 14, 0.16) 0%, rgba(7, 10, 14, 0.28) 28%, rgba(7, 10, 14, 0.62) 56%, rgba(8, 14, 10, 0.84) 76%, rgba(10, 18, 10, 0.96) 90%, rgba(6, 11, 6, 1) 100%),
    linear-gradient(90deg, rgba(7, 10, 14, 0.72) 0%, rgba(7, 10, 14, 0.18) 38%, rgba(7, 10, 14, 0.40) 100%),
	url('../../content/images/websitebg.webp');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.95;
}

body.builder-page {
  background: transparent !important;
  --builder-class-backdrop: none;
}

body.builder-page::after {
  background-image: var(--builder-class-backdrop) !important;
  background-position: left top !important;
  background-repeat: no-repeat !important;
  background-size: 50% auto !important;
  opacity: 1;
}

.shared-site-header,
.shared-builder-subnav,
.shared-page-intro,
.shared-site-footer {
  width: 100%;
}

.shared-site-header {
  position: relative;
  z-index: 60;
  background: rgba(6, 9, 8, 0.78);
  border-bottom: 1px solid var(--ruin-border);
  backdrop-filter: blur(10px);
}

.shared-site-header-inner,
.shared-site-footer-inner,
.shared-page-intro-inner,
.ruin-home-shell,
.shared-content-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.shared-site-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.shared-site-brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  color: var(--ruin-text);
}

.shared-site-brand .logo {
  line-height: 1;
  font-size: 62px;
}

.shared-site-brand-accent {
  color: #708c72;
}

.shared-site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shared-site-nav-link,
.shared-site-footer-links a,
.shared-builder-subnav-link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-family: Oxanium, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shared-site-nav-link:hover,
.shared-site-nav-link.is-active,
.shared-site-footer-links a:hover,
.shared-builder-subnav-link:hover,
.shared-builder-subnav-link.is-active {
  color: var(--ruin-accent);
}

.shared-builder-subnav {
  border-bottom: 1px solid var(--ruin-border);
  background: rgba(6, 10, 8, 0.52);
  backdrop-filter: blur(8px);
}

.shared-builder-subnav-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.shared-builder-subnav-label,
.shared-page-intro-kicker,
.ruin-video-kicker,
.ruin-block-kicker {
  color: rgba(165, 178, 190, 0.86);
  font-family: Oxanium, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shared-page-intro {
  padding: 32px 0 12px;
}

.shared-page-intro-title {
  margin: 12px 0 0;
  color: #f0f4f7;
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: 0;
}

.shared-page-intro-text {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ruin-text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.shared-page-intro.is-hero {
	padding: 74px 0 62px;
	border-bottom: 1px solid var(--ruin-border);
	background: rgba(5, 9, 7, 0.68);
}

.shared-page-intro.is-hero .shared-page-intro-title {
	margin-top: 10px;
	font-size: 56px;
	line-height: 1.05;
}

.shared-page-intro.is-hero .shared-page-intro-text {
	max-width: 800px;
	margin-top: 16px;
}

.shared-page-intro-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 20px;
	color: rgba(184, 198, 188, 0.76);
	font-size: 12px;
	text-transform: uppercase;
}

.shared-page-intro-meta > * + *::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin: 0 18px 3px 0;
	border-radius: 50%;
	background: var(--ruin-accent);
}

.ruin-content-band {
	position: relative;
	flex: 1 0 auto;
	background: linear-gradient(180deg, rgba(3, 7, 5, 0.82) 0%, rgba(5, 10, 7, 0.94) 52%, rgba(4, 8, 6, 0.98) 100%);
	box-shadow: inset 0 22px 42px rgba(0, 0, 0, 0.18);
}

.shared-site-footer {
  margin-top: auto;
  border-top: 1px solid var(--ruin-border);
  background: rgba(5, 7, 7, 0.74);
  backdrop-filter: blur(8px);
}

.shared-site-footer-inner {
  padding: 30px 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.shared-site-footer-copy { max-width: 620px; }
.shared-site-footer-copy .logo { font-size: 58px; }
.shared-site-footer-copy p {
  margin: 14px 0 0;
  color: var(--ruin-text-soft);
  font-family: Oxanium, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.shared-site-footer-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 18px;
	padding-top: 8px;
}

.shared-site-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shared-site-social-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.shared-site-social-link {
	display: block;
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.shared-site-social-link:hover {
	filter: brightness(1.14);
	transform: translateY(-2px);
}

.shared-site-social-link:focus-visible {
	outline: 2px solid var(--ruin-accent);
	outline-offset: 3px;
}

.shared-site-social-icon {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.ruin-home-hero {
	position: relative;
	height: clamp(440px, calc(100svh - 160px), 620px);
	min-height: 440px;
	overflow: hidden;
	border-bottom: 1px solid var(--ruin-border);
}

.ruin-home-shell,
.shared-content-shell {
	position: relative;
	z-index: 1;
}

.ruin-home-carousel-viewport,
.ruin-home-carousel-shade {
	position: absolute;
	inset: 0;
}

.ruin-home-carousel-viewport {
	overflow: hidden;
}

.ruin-home-carousel-track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.7s ease;
}

.ruin-home-slide {
	width: 100%;
	height: 100%;
	min-width: 100%;
	margin: 0;
}

.ruin-home-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ruin-home-carousel-shade {
	z-index: 1;
	pointer-events: none;
	background: rgba(3, 7, 6, 0.42);
	box-shadow: inset 0 -170px 170px rgba(2, 5, 4, 0.56);
}

.ruin-home-carousel-controls {
	position: absolute;
	right: max(24px, calc((100% - 1120px) / 2));
	bottom: 30px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
}

.ruin-home-carousel-arrow {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(218, 229, 219, 0.38);
	background: rgba(4, 8, 7, 0.74);
	color: #f3f6f4;
	font: inherit;
	font-size: 21px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.ruin-home-carousel-arrow:hover {
	border-color: rgba(218, 229, 219, 0.68);
	background: rgba(112, 140, 114, 0.36);
}

.ruin-home-carousel-arrow:focus-visible,
.ruin-home-carousel-dot:focus-visible {
	outline: 2px solid #b2c4b4;
	outline-offset: 3px;
}

.ruin-home-carousel-dots {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 2px;
}

.ruin-home-carousel-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid rgba(225, 234, 226, 0.58);
	border-radius: 50%;
	background: rgba(4, 8, 7, 0.56);
	cursor: pointer;
}

.ruin-home-carousel-dot.is-active {
	border-color: #b2c4b4;
	background: #b2c4b4;
}

.ruin-feature-number {
	color: var(--ruin-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.ruin-home-main {
	position: relative;
	z-index: 1;
}

.ruin-overview-band {
	padding: 82px 0;
	border-bottom: 1px solid var(--ruin-border);
	background: rgba(5, 8, 7, 0.58);
	scroll-margin-top: 24px;
}

.ruin-overview-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
	gap: 70px;
	align-items: center;
}

.ruin-copy-block h2,
.ruin-section-heading h2,
.shared-section-title {
	margin: 12px 0 0;
	color: #f0f4f1;
	font-size: 38px;
	line-height: 1.16;
	letter-spacing: 0;
}

.ruin-copy-block p,
.ruin-section-heading p,
.ruin-feature-item p,
.shared-body-text {
	margin: 18px 0 0;
	color: rgba(201, 210, 204, 0.88);
	font-size: 16px;
	line-height: 1.82;
}

.ruin-video-panel {
	min-width: 0;
	scroll-margin-top: 24px;
}

.ruin-video-kicker {
	margin-bottom: 12px;
}

.ruin-video-frame {
	position: relative;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--ruin-border-strong);
	background: rgba(7, 10, 10, 0.72);
	box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

.ruin-video-frame::before {
	content: '';
	display: block;
	padding-top: 56.25%;
}

.ruin-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ruin-feature-band {
	padding: 78px 0 96px;
	background: rgba(5, 9, 7, 0.42);
}

.ruin-section-heading {
	max-width: 760px;
	margin-bottom: 46px;
}

.ruin-section-heading p {
	max-width: 680px;
}

.ruin-feature-band .ruin-section-heading,
.ruin-feature-band .ruin-section-heading p {
	max-width: 100%;
}

.ruin-keypoints {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 34px;
	row-gap: 34px;
}

.ruin-feature-item {
	min-width: 0;
	min-height: 212px;
	padding: 20px 0 8px;
	border-top: 1px solid var(--ruin-border-strong);
}

.ruin-feature-item h3 {
	margin: 10px 0 0;
	color: #eef2ef;
	font-size: 22px;
	line-height: 1.28;
	letter-spacing: 0;
}

.ruin-feature-item p {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.75;
}

.shared-body-text,
.ruin-copy-block p,
.ruin-section-heading p,
.ruin-feature-item p {
	font-family: Oxanium, Arial, sans-serif;
}

.shared-form-control {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 0;
	background: rgba(1, 4, 3, 0.68);
	color: #eef3f0;
	color-scheme: dark;
	font-family: Oxanium, Arial, sans-serif;
	font-size: 14px;
	padding: 0 14px;
	box-sizing: border-box;
}

select.shared-form-control {
	cursor: pointer;
}

textarea.shared-form-control {
	padding: 12px 14px;
}

.shared-form-control::placeholder {
	color: rgba(225, 232, 227, 0.6);
	opacity: 1;
}

.shared-form-control:focus,
.shared-form-control:focus-visible {
	outline: 2px solid #8ca68e;
	outline-offset: 0;
	box-shadow: none;
}

.shared-form-control:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.shared-form-control option {
	background: #111a15;
	color: #eef3f0;
}

@media (max-width: 980px) {
	.ruin-overview-grid {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.ruin-copy-block {
		max-width: 760px;
	}

	.ruin-keypoints {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
  .shared-site-header-inner,
  .shared-site-footer-inner,
  .shared-page-intro-inner,
  .ruin-home-shell,
  .shared-content-shell {
    width: calc(100% - 28px);
    max-width: 1120px;
    min-width: 0;
  }

  .shared-site-header-inner {
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }

  .shared-site-nav,
  .shared-site-footer-links,
  .shared-site-social-links,
  .shared-builder-subnav-inner {
    justify-content: center;
  }

	.shared-site-footer-inner {
		align-items: center;
		text-align: center;
	}

	.shared-site-footer-copy {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.shared-site-footer-copy p {
		overflow-wrap: anywhere;
	}

	.shared-site-footer-actions {
		width: 100%;
		align-items: center;
	}

  .shared-site-nav {
    width: 100%;
    gap: 14px;
  }

  .shared-site-nav-link {
    font-size: 13px;
  }

	.shared-page-intro.is-hero {
		padding: 52px 0 46px;
	}

	.shared-page-intro.is-hero .shared-page-intro-title {
		font-size: 42px;
	}

	.shared-page-intro-meta {
		align-items: flex-start;
		gap: 8px;
		flex-direction: column;
	}

	.shared-page-intro-meta > * + *::before {
		display: none;
	}

	.ruin-home-hero {
		height: 480px;
		min-height: 480px;
	}

	.ruin-home-carousel-controls {
		right: 50%;
		bottom: 20px;
		transform: translateX(50%);
	}

	.ruin-overview-band {
		padding: 58px 0 62px;
	}

	.ruin-overview-grid,
	.ruin-overview-grid > *,
	.ruin-keypoints,
	.ruin-feature-item {
		min-width: 0;
		width: 100%;
	}

	.ruin-copy-block h2,
	.ruin-section-heading h2 {
		font-size: 32px;
	}

	.ruin-feature-band {
		padding: 58px 0 72px;
	}

	.ruin-section-heading {
		margin-bottom: 34px;
	}

	.ruin-keypoints {
		grid-template-columns: 1fr;
		row-gap: 22px;
	}

	.ruin-feature-item {
		min-height: 0;
	}

	.ruin-copy-block p,
	.ruin-copy-block h2,
	.ruin-section-heading p,
	.ruin-section-heading h2,
	.ruin-feature-item p,
	.ruin-feature-item h3 {
		max-width: 100%;
		overflow-wrap: anywhere;
	}

  .shared-site-brand .logo { font-size: 52px; }
  .shared-page-intro-title { font-size: 36px; }
  .shared-page-intro { padding-top: 26px; }
}

@media (max-width: 480px) {
	.ruin-home-carousel-arrow {
		width: 42px;
		height: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ruin-home-carousel-track {
		transition: none;
	}
}
