/*
	Sleek, Modern Styles for Reaper Script
	Theme: Dark Cyber/Tech with Green Accents
*/

:root {
	/* Palette */
	--bg: #030806;
	--bg-alt: #050d0a;
	
	/* Brand Colors */
	--primary: #22f36b;        /* Neon Green */
	--primary-hover: #36f578;
	--primary-dim: rgba(34, 243, 107, 0.1);
	
	/* Text */
	--text-main: #f3f4f6;
	--text-muted: #9ca3af;
	--text-dark: #111827;

	/* UI Elements */
	--glass-bg: rgba(10, 20, 15, 0.6);
	--glass-border: rgba(255, 255, 255, 0.08);
	--glass-highlight: rgba(255, 255, 255, 0.05);
	
	--card-bg: rgba(11, 25, 18, 0.4);
	--card-border: rgba(34, 243, 107, 0.15);
	
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	
	--container: 1200px;
	--header-height: 80px;

	/* Animation timings */
	--ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	margin: 0;
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	background: var(--bg);
	color: var(--text-main);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
	margin: 0;
	line-height: 1.1;
	font-weight: 700;
	color: white;
}

h1 {
	font-size: clamp(42px, 5vw, 64px);
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

h2 {
	font-size: clamp(32px, 4vw, 48px);
	letter-spacing: -0.01em;
	margin-bottom: 24px;
}

h3 {
	font-size: 24px;
	margin-bottom: 12px;
}

p {
	margin: 0 0 16px;
	color: var(--text-muted);
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

ul, ol {
	padding-left: 20px;
}

/* Utilities */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-weight: 600;
	font-size: 16px;
	border-radius: 100px; /* Pill shape */
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.3s var(--ease-out);
	text-decoration: none;
}

.btn-primary {
	background: var(--primary);
	color: var(--text-dark);
	box-shadow: 0 0 20px rgba(34, 243, 107, 0.3);
}

.btn-primary:hover {
	background: var(--primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(34, 243, 107, 0.5);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.05);
	color: white;
	border-color: var(--glass-border);
	backdrop-filter: blur(4px);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
}

/* Header */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-height);
	z-index: 100;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
	background: rgba(3, 8, 6, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--glass-border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.brand {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: white;
}

.nav {
	display: none;
	gap: 32px;
}

.nav a {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-muted);
}

.nav a:hover {
	color: var(--primary);
}

.edit-controls {
	display: inline-flex;
	gap: 8px;
	margin-left: auto;
	margin-right: 12px;
}

@media (min-width: 768px) {
	.nav { display: flex; }
}

/* Hero Section */
.hero {
	position: relative;
	padding-top: calc(var(--header-height) + 120px);
	padding-bottom: 140px;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero-background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center; /* Anchors video to the left */
	opacity: 0.85;
	filter: brightness(0.7);
	cursor: pointer;
	transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
	transform-origin: center center;
}

.hero-background::after {
	content: '';
	position: absolute;
	inset: 0;
	/* Gradient that stays out of the way on the left, darkening only the right side for text contrast if needed */
	background: linear-gradient(90deg, rgba(3, 8, 6, 0.1) 0%, rgba(3, 8, 6, 0.4) 40%, rgba(3, 8, 6, 0.8) 100%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: flex-end; /* Move text content to the right */
	width: 100%;
}

.hero-copy {
	max-width: 650px; /* Slightly narrower to fit nicely on the right */
	width: 100%;
	text-align: left; /* align text left for better readability on the side */
	margin-right: 5%; /* Spacing from the right edge */
	background: rgba(3, 8, 6, 0.75);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 60px 40px;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: flex-start; /* Align buttons left */
}

/* Responsive adjustments for hero */
@media (max-width: 991px) {
	.hero-inner {
		justify-content: center;
	}
	.hero-copy {
		margin-right: 0;
		text-align: center;
		max-width: 800px;
	}
	.hero-ctas {
		justify-content: center;
	}
	.hero-video {
		object-position: center center; /* On mobile, just center it */
	}
	.hero-background::after {
		background: radial-gradient(circle at center, rgba(3, 8, 6, 0.4) 0%, rgba(3, 8, 6, 0.9) 100%);
	}
}

/* Sections */
.section {
	padding: 100px 0;
	position: relative;
}

.section.alt {
	background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

/* Feature Rows */
.feature-rows {
	display: flex;
	flex-direction: column;
	gap: 120px;
}

.feature-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
	position: relative;
	padding: 40px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.01);
	border: 1px solid transparent;
	transition: all 0.4s var(--ease-out);
	overflow: visible;
}

.feature-row::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(34, 243, 107, 0.08) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.4s var(--ease-out);
	pointer-events: none;
	z-index: 0;
}

.feature-row:hover::before {
	opacity: 1;
}

.feature-row:hover {
	background: rgba(255, 255, 255, 0.02);
	border-color: rgba(34, 243, 107, 0.2);
	transform: translateY(-4px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(34, 243, 107, 0.1);
}

.feature-row > * {
	position: relative;
	z-index: 1;
}

.feature-text {
	transition: transform 0.4s var(--ease-out);
}

/* Adjust text position when video expands to prevent overlap - only on larger screens */
@media (min-width: 992px) {
	.feature-row.video-expanded:not(.reverse) .feature-text {
		transform: translateX(-15%);
	}

	.feature-row.video-expanded.reverse .feature-text {
		transform: translateX(15%);
	}
}

@media (min-width: 992px) {
	.feature-row {
		grid-template-columns: 1fr 1fr;
		gap: 80px;
	}
	
	.feature-row.reverse .feature-text {
		order: 2;
	}
	.feature-row.reverse .feature-media {
		order: 1;
	}
}

.feature-text h3 {
	color: var(--primary);
	font-size: 32px;
	margin-bottom: 16px;
	transition: all 0.3s var(--ease-out);
	position: relative;
	display: inline-block;
}

.feature-row:hover .feature-text h3 {
	transform: translateX(8px);
	text-shadow: 0 0 20px rgba(34, 243, 107, 0.5);
}

.feature-text h3::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--primary), transparent);
	transition: width 0.4s var(--ease-out);
}

.feature-row:hover .feature-text h3::after {
	width: 100%;
}

.feature-points li {
	margin-bottom: 10px;
	position: relative;
	list-style: none;
	padding-left: 24px;
	opacity: 0.8;
	transform: translateX(0);
	transition: all 0.3s var(--ease-out);
}

.feature-row:hover .feature-points li {
	opacity: 1;
}

.feature-points li:hover {
	transform: translateX(8px);
	color: var(--primary);
}

.feature-points li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--primary);
	transition: transform 0.3s var(--ease-out);
}

.feature-points li:hover::before {
	transform: translateX(4px);
}

.media-frame {
	position: relative;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: rgba(0, 0, 0, 0.3);
	transition: all 0.4s var(--ease-out);
	border: 2px solid transparent;
	z-index: 1;
	width: 100%;
}

/* Only enable video expansion on larger screens where layout is side-by-side */
@media (min-width: 992px) {
	.media-frame:hover {
		border-color: rgba(34, 243, 107, 0.3);
		box-shadow: 0 0 30px rgba(34, 243, 107, 0.2), inset 0 0 30px rgba(34, 243, 107, 0.05);
		width: 150%;
		margin-left: -25%;
		margin-right: -25%;
		z-index: 10;
	}
}

.feature-row:hover .media-frame {
	border-color: rgba(34, 243, 107, 0.3);
	box-shadow: 0 0 30px rgba(34, 243, 107, 0.2), inset 0 0 30px rgba(34, 243, 107, 0.05);
}

.feature-media {
	overflow: visible;
}

.media-frame::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(34, 243, 107, 0.1) 0%, transparent 50%);
	opacity: 0;
	transition: opacity 0.4s var(--ease-out);
	pointer-events: none;
	z-index: 1;
}

.feature-row:hover .media-frame::before {
	opacity: 1;
}

.feature-video {
	width: 100%;
	border-radius: var(--radius-sm);
	display: block;
	transition: filter 0.4s var(--ease-out);
	filter: brightness(1) contrast(1);
	cursor: pointer;
}

/* Ensure video stays bright even when controls are shown */
.feature-video:not(:hover) {
	filter: brightness(1) contrast(1);
}

/* Style video controls - make transparent and hide everything except progress bar */
.feature-video::-webkit-media-controls-panel {
	background-color: transparent !important;
	background-image: none !important;
	opacity: 1 !important;
}

/* Hide play/pause button */
.feature-video::-webkit-media-controls-play-button {
	display: none !important;
}

/* Hide volume controls */
.feature-video::-webkit-media-controls-volume-slider,
.feature-video::-webkit-media-controls-mute-button {
	display: none !important;
}

/* Hide time displays */
.feature-video::-webkit-media-controls-current-time-display,
.feature-video::-webkit-media-controls-time-remaining-display {
	display: none !important;
}

/* Hide fullscreen button */
.feature-video::-webkit-media-controls-fullscreen-button {
	display: none !important;
}

/* Style progress bar (timeline) - keep it visible */
.feature-video::-webkit-media-controls-timeline {
	display: block !important;
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	height: 4px;
}

.feature-video::-webkit-media-controls-timeline-container {
	display: block !important;
}

/* Ensure video doesn't darken when controls are shown - remove overlay */
.feature-video::-webkit-media-controls-overlay-enclosure {
	display: none !important;
	opacity: 0 !important;
}

.feature-video::-webkit-media-controls-enclosure {
	background-color: transparent !important;
	opacity: 1 !important;
}

/* For Firefox */
.feature-video::-moz-media-controls {
	background-color: transparent !important;
}

.feature-row:hover .feature-video {
	filter: brightness(1.1) contrast(1.05);
}

.media-frame:hover .feature-video {
	filter: brightness(1.1) contrast(1.05);
}

/* Hero video hover effect */
.hero-background:hover .hero-video {
	transform: scale(1.15);
}

.hero-video::-webkit-media-controls-panel {
	background-color: rgba(0, 0, 0, 0.7);
}

.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-timeline,
.hero-video::-webkit-media-controls-current-time-display,
.hero-video::-webkit-media-controls-time-remaining-display {
	color: var(--primary);
}

/* Scroll Reveal */
[data-reveal] {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].visible {
	opacity: 1;
	transform: translateY(0);
}

/* Parallax effect for feature rows */
.feature-row[data-reveal].visible,
.feature-rows.visible .feature-row {
	animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.feature-row[data-reveal].visible:nth-child(1),
.feature-rows.visible .feature-row:nth-child(1) { animation-delay: 0s; }
.feature-row[data-reveal].visible:nth-child(2),
.feature-rows.visible .feature-row:nth-child(2) { animation-delay: 0.1s; }
.feature-row[data-reveal].visible:nth-child(3),
.feature-rows.visible .feature-row:nth-child(3) { animation-delay: 0.2s; }
.feature-row[data-reveal].visible:nth-child(4),
.feature-rows.visible .feature-row:nth-child(4) { animation-delay: 0.3s; }
.feature-row[data-reveal].visible:nth-child(5),
.feature-rows.visible .feature-row:nth-child(5) { animation-delay: 0.4s; }
.feature-row[data-reveal].visible:nth-child(6),
.feature-rows.visible .feature-row:nth-child(6) { animation-delay: 0.5s; }
.feature-row[data-reveal].visible:nth-child(7),
.feature-rows.visible .feature-row:nth-child(7) { animation-delay: 0.6s; }
.feature-row[data-reveal].visible:nth-child(8),
.feature-rows.visible .feature-row:nth-child(8) { animation-delay: 0.7s; }

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Stagger animation for feature points */
.feature-row[data-reveal].visible .feature-points li,
.feature-rows.visible .feature-points li {
	animation: slideInLeft 0.5s var(--ease-out) backwards;
}

.feature-row[data-reveal].visible .feature-points li:nth-child(1),
.feature-rows.visible .feature-points li:nth-child(1) { animation-delay: 0.1s; }
.feature-row[data-reveal].visible .feature-points li:nth-child(2),
.feature-rows.visible .feature-points li:nth-child(2) { animation-delay: 0.2s; }
.feature-row[data-reveal].visible .feature-points li:nth-child(3),
.feature-rows.visible .feature-points li:nth-child(3) { animation-delay: 0.3s; }
.feature-row[data-reveal].visible .feature-points li:nth-child(4),
.feature-rows.visible .feature-points li:nth-child(4) { animation-delay: 0.4s; }
.feature-row[data-reveal].visible .feature-points li:nth-child(5),
.feature-rows.visible .feature-points li:nth-child(5) { animation-delay: 0.5s; }
.feature-row[data-reveal].visible .feature-points li:nth-child(6),
.feature-rows.visible .feature-points li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 0.8;
		transform: translateX(0);
	}
}

/* Glow effect on scroll */
.feature-row::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(34, 243, 107, 0.1) 0%, transparent 70%);
	opacity: 0;
	animation: pulseGlow 3s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

.feature-row[data-reveal].visible::after,
.feature-rows.visible .feature-row::after {
	animation-delay: 1s;
}

@keyframes pulseGlow {
	0%, 100% {
		opacity: 0;
		transform: scale(0.8);
	}
	50% {
		opacity: 0.3;
		transform: scale(1);
	}
}

/* Pricing */
.pricing {
	max-width: 500px;
	margin: 0 auto;
}

.price-card {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: var(--radius-lg);
	padding: 40px;
	text-align: center;
	position: relative;
	backdrop-filter: blur(10px);
	overflow: hidden;
}

.price-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--primary), transparent);
	opacity: 0.5;
}

.price {
	font-size: 64px;
	font-weight: 800;
	color: white;
	margin: 24px 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	line-height: 0.9;
}

.currency {
	font-size: 24px;
	margin-top: 8px;
	margin-right: 4px;
	color: var(--text-muted);
}

.price-card .list {
	text-align: left;
	margin: 32px 0;
}

.price-card .list li {
	margin-bottom: 12px;
	color: var(--text-main);
}

/* FAQ */
.faq details {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm);
	margin-bottom: 12px;
	transition: background 0.2s;
}

.faq details:hover {
	background: rgba(255, 255, 255, 0.04);
}

.faq summary {
	padding: 20px;
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	position: relative;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: '+';
	position: absolute;
	right: 20px;
	color: var(--primary);
	font-size: 20px;
}

.faq details[open] summary::after {
	content: '-';
}

.faq p {
	padding: 0 20px 20px;
	margin: 0;
	color: var(--text-muted);
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--glass-border);
	padding: 60px 0;
	background: #020504;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-nav a {
	margin-left: 24px;
	color: var(--text-muted);
	font-size: 14px;
}

.footer-nav a:hover {
	color: white;
}

/* Demo Grid */
.demo-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

@media (min-width: 992px) {
	.demo-grid {
		grid-template-columns: 2fr 1fr;
	}
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: black;
	box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

/* Utility: Gradient Text */
.text-gradient {
	background: linear-gradient(135deg, #fff 0%, var(--primary-muted) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 10px;
}

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

::-webkit-scrollbar-thumb {
	background: #1f2937;
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: #374151;
}

/* Editable Styles */
[contenteditable="true"] {
	outline: 2px dashed rgba(34, 243, 107, 0.3);
	outline-offset: 4px;
	border-radius: 4px;
}
