:root {
	--scroller-height: 60px;

	--primary-color: #cc122b;
	--secondary-color: #cc122b;
	--accent-color: #a00f23;
	--warning-color: #f39c12;
	--good-color: #27ae60;
	--bad-color: #e74c3c;
	--blue-color: #3498db;
	--gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
	--card-shadow: 0 8px 25px var(--bg-15);

	--text-color: #333;
	--foreground-color: black;
	--background-color: white;
	--light-gray-0: #f8f9fa;
	--light-gray-1: #f5f5f5;
	--light-gray-2: #e9ecef;
	--light-gray-3: #e5e7eb;
	--light-gray-3: #ddd;
	--dark-gray: #666;
	--bg-10: rgba(0, 0, 0, 0.1);
	--bg-15: rgba(0, 0, 0, 0.15);
	--bg-20: rgba(0, 0, 0, 0.2);
	--bg-30: rgba(0, 0, 0, 0.3);
	--fg-95: rgba(255, 255, 255, 0.95);
}

@media (prefers-color-scheme: dark) {
	:root {
		--text-color: #ccc;
		--foreground-color: white;
		--background-color: black;
		--light-gray-0: #070605;
		--light-gray-1: #0a0a0a;
		--light-gray-2: #161310;
		--light-gray-3: #1a1814;
		--light-gray-3: #222;
		--dark-gray: #999;
		--bg-10: rgba(255, 255, 255, 0.1);
		--bg-15: rgba(255, 255, 255, 0.15);
		--bg-20: rgba(255, 255, 255, 0.2);
		--bg-30: rgba(255, 255, 255, 0.3);
		--fg-95: rgba(0, 0, 0, 0.95);
	}

	.light-only {
		display: none !important;
	}
}

@media (prefers-color-scheme: light) {
	.dark-only {
		display: none !important;
	}
}

.grecaptcha-badge {
	bottom: var(--scroller-height) !important;
}

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

body {
	font-family: 'Poppins', sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Hide default header - we'll use a minimal approach */
header {
	display: none;
}

main {
	margin-top: 0;
}

/* Split layout container */
.split-container {
	display: flex;
	min-height: 100vh;
	background: var(--background-color);
}

/* Main hero section - left side */
.hero {
	background: var(--background-color);
	color: var(--text-color);
	padding: 2rem 3rem;
	text-align: left;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	max-width: 50%;
	min-height: 100vh;
}

/* Right side modal/form area */
.right-modal {
	background: var(--background-color);
	flex: 1;
	padding: 4rem 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 50%;
}

.hero-content {
	position: relative;
	z-index: 2;
}

/* PERFIT logo image */
.hero .logo {
	margin-bottom: 2rem;
	display: block;
}

.hero .logo img {
	height: auto;
	width: 600px;
	min-width: 600px;
	/* Prevent shrinking */
	display: block;
}

/* Main tagline */
.hero h1 {
	font-family: 'Poppins', sans-serif;
	font-size: 3rem;
	font-weight: 800;
	color: var(--foreground-color);
	margin-bottom: 2rem;
	line-height: 1.2;
}

/* Feature list styling */
.hero-features {
	list-style: none;
	padding: 0;
	margin-bottom: 4rem;
	margin-left: 30px;
	/* Align with the "T" in the title */
}

.hero-features li {
	font-size: clamp(1rem, 2.5vw, 1.5rem);
	/* Fluid font size */
	font-weight: 400;
	color: var(--text-color);
	margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
	/* Fluid margin */
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.hero-cta {
	display: none;
	/* Hide original CTAs since this design doesn't show them */
}

.btn {
	display: inline-block;
	padding: 14px 28px;
	background-color: var(--accent-color);
	color: var(--background-color);
	text-decoration: none;
	border-radius: 25px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	box-shadow: 0 4px 15px var(--bg-20);
}

.btn:hover {
	background-color: var(--accent-color);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px var(--bg-30);
}

.btn-secondary {
	background-color: transparent;
	border: 2px solid var(--background-color);
	color: var(--background-color);
}

.btn-secondary:hover {
	background-color: var(--background-color);
	color: var(--primary-color);
}

/* Hide all sections except hero and forms */
.features,
.demo-section,
.downloads {
	display: none;
}

/* Modal form styling */
.modal-form {
	background: var(--background-color);
	border-radius: 20px;
	padding: 3rem;
	box-shadow: 0 20px 60px var(--bg-10);
	text-align: left;
	border: 1px solid var(--light-gray-2);
	margin-bottom: var(--scroller-height);
}

.modal-title {
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 1rem;
	text-align: center;
}

.modal-subtitle {
	font-size: clamp(0.9rem, 2.5vw, 1rem);
	color: var(--dark-gray);
	margin-bottom: 2.5rem;
	line-height: 1.5;
	text-align: center;
}

.form-field {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	font-size: clamp(0.9rem, 2vw, 1rem);
	font-weight: 500;
	color: var(--text-color);
	margin-bottom: 0.5rem;
	font-family: 'Poppins', sans-serif;
}

.form-input {
	color: var(--text-color);
	width: 100%;
	padding: clamp(0.8rem, 2vw, 1rem);
	border: 2px solid var(--light-gray-2);
	border-radius: 10px;
	font-size: clamp(0.9rem, 2vw, 1rem);
	transition: border-color 0.3s;
	font-family: 'Poppins', sans-serif;
	background: var(--light-gray-0);
}

.form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	background: var(--background-color);
}

.form-btn {
	width: 100%;
	padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
	background: var(--primary-color);
	color: var(--background-color);
	border: none;
	border-radius: 10px;
	font-size: clamp(0.9rem, 2vw, 1rem);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
	font-family: 'Poppins', sans-serif;
	margin-top: 1rem;
}

.form-btn:hover {
	background: var(--accent-color);
}

.form-message {
	margin-top: 1rem;
	font-size: 0.9rem;
}

/* Hide sections we don't need */
.subscribe-section,
.contact,
footer {
	display: none;
}

.row {
	display: flex;
	justify-content: center;
	width: 100%;
}

.column {
	flex: 1;
	max-width: 500px;
}

.inverse-colors {
	background-color: var(--background-color);
	color: var(--primary-color);
}

.regular-colors {
	background-color: var(--secondary-color);
}

.small-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 1.5rem;
	text-align: center;
}

.form-field {
	margin-bottom: 1rem;
}

.form-field input {
	padding: 12px;
	border: none;
	border-radius: 5px;
	font-size: 1rem;
}

.form-field button {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.3s;
}

.form-field button:hover {
	opacity: 0.9;
}

.contact {
	padding: 4rem 0;
}

.contact h2 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 2.5rem;
}

.contact-form {
	max-width: 600px;
	margin: 0 auto;
	background: var(--background-color);
	padding: 2rem;
	border-radius: 10px;
	box-shadow: var(--card-shadow);
}

.contact-form .form-field input,
.contact-form .form-field textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--light-gray-3);
	border-radius: 5px;
	margin-bottom: 1rem;
}

.contact-form textarea {
	height: 120px;
	resize: vertical;
}

footer {
	background-color: var(--primary-color);
	color: var(--background-color);
	text-align: center;
	padding: 2rem 0;
}

.hidden {
	display: none;
}

/* Animation Classes */
.swell {
	opacity: 0;
	transform: scale(0.8);
	transition: all 0.6s ease;
}

.swell-transition {
	opacity: 1;
	transform: scale(1);
}

.roll-right {
	opacity: 0;
	transform: translateX(-50px) rotate(-10deg);
	transition: all 0.6s ease;
}

.roll-right-transition {
	opacity: 1;
	transform: translateX(0) rotate(0deg);
}

.roll-left {
	opacity: 0;
	transform: translateX(50px) rotate(10deg);
	transition: all 0.6s ease;
}

.roll-left-transition {
	opacity: 1;
	transform: translateX(0) rotate(0deg);
}

.slide-right {
	opacity: 0;
	transform: translateX(-50px);
	transition: all 0.6s ease;
}

.slide-right-transition {
	opacity: 1;
	transform: translateX(0);
}

.slide-left {
	opacity: 0;
	transform: translateX(50px);
	transition: all 0.6s ease;
}

.slide-left-transition {
	opacity: 1;
	transform: translateX(0);
}

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

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

/* Form Status Messages */
.requested {
	color: var(--warning-color);
}

.ok {
	color: var(--good-color);
}

.failed {
	color: var(--bad-color);
}

.verifyEmail {
	color: var(--blue-color);
}

.expired {
	color: var(--bad-color);
}

.invalidEmail {
	color: var(--bad-color);
}

.invalidRecaptcha {
	color: var(--bad-color);
}

.invalidAtName {
	color: var(--bad-color);
}

/* Scrolling Username List */
.username-scroller {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--scroller-height);
	overflow: hidden;
	background: var(--fg-95);
	backdrop-filter: blur(10px);
	z-index: 1000;
}

.username-scroll-track {
	display: flex;
	align-items: center;
	height: 100%;
	animation: scrollLeft 20s linear infinite;
	white-space: nowrap;
}

.username-item {
	display: inline-flex;
	align-items: center;
	flex-direction: row;
	background: var(--background-color);
	border: 2px solid var(--light-gray-3);
	border-radius: 25px;
	padding: 8px 16px;
	margin-right: 16px;
	gap: 8px;
	box-shadow: 0 2px 8px var(--bg-10);
	flex-shrink: 0;
}

.username-claimed-label {
	background: var(--primary-color);
	color: var(--background-color);
	padding: 4px 10px;
	border-radius: 15px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.username-handle {
	color: var(--text-color);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

@keyframes scrollLeft {
	0% {
		transform: translateX(0%);
	}

	100% {
		transform: translateX(-50%);
	}
}

/* Responsive Design */
@media (max-width: 1400px) {
	.split-container {
		flex-direction: column;
	}

	.hero,
	.right-modal {
		max-width: 100%;
		padding: 2rem 1.5rem;
	}

	.hero {
		text-align: center;
		min-height: auto;
		padding-bottom: 0;
		align-items: center;
		justify-content: center;
	}

	.right-modal {
		border-left: none;
		border-top: none;
		padding-top: 0;
		max-width: 600px;
		margin: -6rem auto 0 auto;
	}

	.hero-features {
		margin-left: 0;
		/* Remove left margin for centered layout */
		text-align: center;
	}

	.hero-features li {
		justify-content: center;
		/* Center the flex items */
	}

	.modal-form {
		padding: 1.5rem;
		max-width: 100%;
	}
}

@media (max-width: 620px) {
	.hero .logo img {
		width: 90vw;
		/* Use viewport width on small screens to prevent overflow */
		min-width: unset;
		/* Allow shrinking on small screens */
		max-width: 550px;
	}

	.hero-features li {
		font-size: 1rem;
	}

	.hero,
	.right-modal {
		padding: 1.5rem 1rem;
	}

	.modal-form {
		padding: 1rem;
	}
}