:root {
	--bg: #0f0f12;
	--card: #15151a;
	--muted: #9aa0a6;
	--text: #e8eaed;
	--brand: #6c5ce7;
	--brand-2: #00d1b2;
	--danger: #ef4444;
	--safe-top: env(safe-area-inset-top);
	--safe-right: env(safe-area-inset-right);
	--safe-bottom: env(safe-area-inset-bottom);
	--safe-left: env(safe-area-inset-left);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
	background: radial-gradient(1200px 800px at 80% -10%, rgba(108,92,231,0.15), transparent),
		linear-gradient(180deg, #0f0f12, #0b0b0e);
	color: var(--text);
	padding-top: max(0px, var(--safe-top));
}

/* Accessibility - Visually Hidden */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding-left: calc(16px + var(--safe-left));
	padding-right: calc(16px + var(--safe-right));
}

.header {
	position: sticky;
	top: 0;
	background: rgba(15, 15, 18, 0.95);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(108, 92, 231, 0.2);
	z-index: 50;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@supports not (backdrop-filter: blur(10px)) {
	.header {
		background: rgba(15, 15, 18, 0.98);
	}
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	gap: 20px;
}

.branding { 
	display: flex; 
	align-items: center; 
	gap: 10px;
	flex-shrink: 0;
}
.logo { 
	width: 32px; 
	height: 32px;
	transition: transform 0.3s ease;
}
.logo:hover {
	transform: scale(1.1) rotate(5deg);
}
.site-name { 
	font-size: 18px; 
	margin: 0; 
	font-weight: 800; 
	letter-spacing: .5px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.nav { 
	display: flex; 
	align-items: center; 
	gap: 6px;
	flex-wrap: nowrap;
	overflow-x: auto;
}
.nav a { 
	color: var(--text); 
	text-decoration: none; 
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	opacity: .85;
	transition: all 0.3s ease;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid transparent;
}
.nav a:hover { 
	opacity: 1; 
	color: #fff;
	background: rgba(108, 92, 231, 0.15);
	border-color: rgba(108, 92, 231, 0.3);
	transform: translateY(-1px);
}

.main { 
	padding: 30px 0 60px;
	margin-top: 0;
}

.hero { 
	text-align: center; 
	padding: 40px 0;
}
.hero h2 { 
	font-size: clamp(28px, 5vw, 42px); 
	margin: 0 0 16px; 
	font-weight: 800;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.hero p { 
	margin: 0 0 32px; 
	color: var(--muted); 
	font-size: 18px;
	line-height: 1.6;
}

.download-form { 
	max-width: 800px; 
	margin: 0 auto; 
	text-align: right; 
}
.label { 
	display: block; 
	margin-bottom: 12px; 
	color: #cfd3dc; 
	font-weight: 600;
	font-size: 16px;
}
.input-group { 
	display: grid; 
	grid-template-columns: 1fr auto auto; 
	gap: 12px; 
	align-items: center;
}
.input-group input {
	width: 100%;
	height: 56px;
	background: var(--card);
	border: 2px solid #272833;
	border-radius: 16px;
	color: var(--text);
	padding: 0 18px;
	outline: none;
	transition: all .3s ease;
	font-size: 16px;
	font-family: 'Cairo', sans-serif;
}
.input-group input:focus { 
	border-color: var(--brand); 
	box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
	transform: translateY(-1px);
}
.input-group button {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	border: none;
	border-radius: 16px;
	padding: 0 24px;
	font-weight: 700;
	cursor: pointer;
	transition: all .3s ease;
	min-height: 56px;
	touch-action: manipulation;
	font-size: 16px;
	font-family: 'Cairo', sans-serif;
	box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}
.input-group button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}
.input-group button.secondary {
	background: #1a1b22;
	border: 2px solid #2b2c36;
	color: #cfd3dc;
	box-shadow: none;
}
.input-group button.secondary:hover {
	background: #2a2b32;
	border-color: var(--brand);
	transform: translateY(-1px);
}
.input-group button:active { 
	transform: translateY(0px); 
}
.hint { 
	margin-top: 12px; 
	font-size: 14px; 
	color: var(--muted); 
	text-align: center;
}

.result { 
	margin-top: 32px; 
	background: var(--card); 
	border: 2px solid #272833; 
	border-radius: 20px; 
	padding: 24px; 
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.hidden { display: none; }

/* Primary action buttons */
.actions { 
	display: flex; 
	gap: 16px; 
	justify-content: center; 
	flex-wrap: wrap; 
	margin-top: 20px; 
}
.actions--stack { margin-top: 16px; }
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 24px;
	border-radius: 16px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: all .3s ease;
	font-size: 16px;
	font-family: 'Cairo', sans-serif;
	position: relative;
	overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn-primary { 
	background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
	color: #fff; 
	border: none; 
	box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
}
.btn-outline { 
	background: #1a1b22; 
	color: #cfd3dc; 
	border: 2px solid #2b2c36; 
}
.btn-outline:hover {
	background: #2a2b32;
	border-color: var(--brand);
	transform: translateY(-1px);
}
.btn-audio { 
	background: linear-gradient(135deg, #00b894, #00d1b2); 
	color: #081012; 
	border: none; 
	box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
}
.btn-audio:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(0, 184, 148, 0.4);
}

.link-list { 
	display: grid; 
	gap: 16px; 
	margin-top: 24px; 
}
.link-item { 
	display: flex; 
	align-items: center; 
	justify-content: space-between; 
	gap: 16px; 
	background: #1a1b22; 
	border: 2px solid #2b2c36; 
	border-radius: 16px; 
	padding: 16px 20px; 
	transition: all .3s ease;
}
.link-item:hover {
	background: #2a2b32;
	border-color: var(--brand);
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.link-item a { 
	color: #fff; 
	text-decoration: none; 
	font-weight: 700; 
	font-size: 16px;
	transition: color .3s ease;
}
.link-item a:hover {
	color: var(--brand);
}
.link-item small { 
	color: var(--muted); 
	font-size: 14px;
	background: #272833;
	padding: 4px 8px;
	border-radius: 8px;
}

.features, .how, .faq { margin-top: 56px; }
.features h3, .how h3, .faq h3 { margin: 0 0 16px; font-size: 22px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid #272833; border-radius: 14px; padding: 16px; }
.card h4 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.how ol { margin: 0; padding-right: 18px; color: #cfd3dc; }
.how li { margin-bottom: 8px; }

.faq details { background: var(--card); border: 1px solid #272833; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.footer { border-top: 1px solid #22232b; padding: 18px 0; color: var(--muted); text-align: center; }

/* Download Card Styles */
.download-card {
	padding: 16px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid #272833;
	max-width: 800px;
	margin: 16px auto 0;
}

/* How to Use Section */
.how-to-use {
	margin-top: 60px;
	padding: 40px 0;
}

.how-to-use h3 {
	text-align: center;
	font-size: 28px;
	margin-bottom: 40px;
	color: var(--text);
	font-weight: 800;
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-top: 32px;
}

.step-card {
	background: var(--card);
	border: 2px solid #272833;
	border-radius: 20px;
	padding: 24px;
	text-align: center;
	transition: all 0.3s ease;
}

.step-number {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 800;
	margin: 0 auto 16px;
}

.step-card:nth-child(2) .step-number {
	background: linear-gradient(135deg, #00b894, #00d1b2);
	color: #081012;
}

.step-card:nth-child(3) .step-number {
	background: linear-gradient(135deg, #fd79a8, #e84393);
}

.step-card:nth-child(4) .step-number {
	background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.step-card:nth-child(5) .step-number {
	background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.step-card:nth-child(6) .step-number {
	background: linear-gradient(135deg, #00b894, #00cec9);
}

.step-card h4 {
	color: var(--text);
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
}

.step-card p {
	color: var(--muted);
	margin: 0;
	line-height: 1.6;
}

/* Features Badges Section */
.features-badges {
	margin-top: 48px;
	text-align: center;
}

.features-badges h4 {
	color: var(--text);
	margin: 0 0 32px;
	font-size: 24px;
	font-weight: 800;
}

.badges {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.badge {
	border: none;
	padding: 16px 24px;
	border-radius: 20px;
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.badge:nth-child(1) {
	background: linear-gradient(135deg, #00b894, #00d1b2);
	color: #081012;
	box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.badge:nth-child(2) {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.badge:nth-child(3) {
	background: linear-gradient(135deg, #fd79a8, #e84393);
	color: #fff;
	box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
}

.badge:nth-child(4) {
	background: linear-gradient(135deg, #fdcb6e, #e17055);
	color: #fff;
	box-shadow: 0 6px 20px rgba(225, 112, 85, 0.4);
}

.badge:nth-child(5) {
	background: linear-gradient(135deg, #6c5ce7, #a29bfe);
	color: #fff;
	box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.badge:nth-child(6) {
	background: linear-gradient(135deg, #00cec9, #55efc4);
	color: #081012;
	box-shadow: 0 6px 20px rgba(0, 206, 201, 0.4);
}

.badge:nth-child(7) {
	background: linear-gradient(135deg, #fd79a8, #fdcb6e);
	color: #fff;
	box-shadow: 0 6px 20px rgba(253, 121, 168, 0.4);
}

.badge:nth-child(8) {
	background: linear-gradient(135deg, #74b9ff, #0984e3);
	color: #fff;
	box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
}

.badge:nth-child(9) {
	background: linear-gradient(135deg, #a29bfe, #6c5ce7);
	color: #fff;
	box-shadow: 0 6px 20px rgba(162, 155, 254, 0.4);
}

/* Tips Section */
.tips-section {
	margin-top: 48px;
	padding: 32px;
	background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 184, 148, 0.1));
	border-radius: 20px;
	border: 2px solid rgba(108, 92, 231, 0.2);
}

.tips-section h4 {
	color: var(--text);
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
}

.tips-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
}

.tip-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
}

.tip-item span:first-child {
	font-size: 20px;
}

.tip-item span:last-child {
	color: var(--text);
	font-weight: 600;
}

/* Footer Nav */
.footer .nav {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 10px;
}

@media (max-width: 768px) {
	.header__inner { 
		flex-wrap: wrap;
		height: auto; 
		padding: 12px 0;
		gap: 12px;
	}
	.branding {
		flex: 0 0 auto;
	}
	.nav { 
		flex: 1 1 100%;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 8px;
		overflow-x: auto;
		padding: 4px 0;
	}
	.nav a { 
		padding: 8px 12px; 
		background: rgba(255, 255, 255, 0.05); 
		border: 1px solid rgba(108, 92, 231, 0.2); 
		border-radius: 10px; 
		font-size: 13px;
		flex-shrink: 0;
	}
	.nav a:hover {
		background: rgba(108, 92, 231, 0.15);
		border-color: var(--brand);
	}
	.language-selector-container {
		flex: 0 0 auto;
	}
	.input-group { 
		grid-template-columns: 1fr; 
		gap: 16px;
	}
	.input-group button { 
		height: 56px; 
		width: 100%; 
	}
	.hero { 
		padding: 32px 0; 
	}
	.hero h2 { 
		font-size: clamp(24px, 6vw, 32px); 
	}
	.hero p { 
		font-size: 16px; 
		margin-bottom: 24px;
	}
	.actions { 
		gap: 12px; 
		flex-direction: column;
	}
	.btn { 
		width: 100%; 
		max-width: 300px;
	}
	.result {
		padding: 20px;
		margin-top: 24px;
	}
	.link-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		text-align: right;
	}
	.link-item a {
		width: 100%;
		text-align: center;
		padding: 12px;
		background: var(--brand);
		border-radius: 12px;
		color: #fff;
	}
}

/* Language Selector Styles */
.language-selector-container {
	flex-shrink: 0;
}

.language-selector-container select {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(108, 92, 231, 0.3);
	border-radius: 10px;
	color: var(--text);
	padding: 8px 12px;
	font-family: 'Cairo', sans-serif;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.language-selector-container select:hover {
	border-color: var(--brand);
	background: rgba(108, 92, 231, 0.1);
}

.language-selector-container select:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* How to Use Section Styles */
.how-to-use .step-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
	border-color: var(--brand);
}

.how-to-use .step-number {
	transition: all 0.3s ease;
}

.how-to-use .step-card:hover .step-number {
	transform: scale(1.1);
}

.tips-section .tip-item:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateX(8px);
}

/* Features Badges Styles */
.features-badges .badge {
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	cursor: default;
	position: relative;
	overflow: hidden;
}

.features-badges .badge::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s;
}

.features-badges .badge:hover::before {
	left: 100%;
}

.features-badges .badge:hover {
	transform: translateY(-8px) scale(1.08);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
	filter: brightness(1.1);
}

@media (max-width: 768px) {
	.language-selector-container select {
		padding: 8px 10px;
		font-size: 12px;
	}
	
	.how-to-use .steps-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.how-to-use .step-card {
		padding: 20px;
	}
	
	.how-to-use .tips-grid {
		grid-template-columns: 1fr;
	}
	
	.features-badges .badges {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.features-badges .badge {
		padding: 14px 20px;
		font-size: 15px;
	}
}


