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

:root {
	--primary: #10b981;
	--primary-dark: #059669;
	--text: #1e293b;
	--text-light: #52627a;
	--border: #e2e8f0;
	--bg-subtle: #f8fafc;
	--error: #dc2626;
	--error-bg: #fee2e2;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	color: var(--text);
	background: #ffffff;
	line-height: 1.6;
}

/* Accessibility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

/* Emoji Rain Game */
.emoji-rain {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	overflow: hidden;
}

.falling-emoji {
	cursor: pointer;
	pointer-events: all;
	transition: transform 0.1s;
	user-select: none;
}

.falling-emoji:hover {
	transform: scale(1.2);
}

.game-score {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 200px;
	font-weight: 900;
	color: rgba(16, 185, 129, 0.15);
	pointer-events: none;
	z-index: 9998;
	opacity: 0;
	transition: opacity 0.3s;
	user-select: none;
}

.game-score.active {
	opacity: 1;
}

@keyframes fall {
	0% {
		top: -10%;
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		top: 110%;
		opacity: 0;
	}
}

@keyframes sway {
	0%, 100% {
		transform: translateX(0) rotate(0deg);
	}
	25% {
		transform: translateX(20px) rotate(5deg);
	}
	75% {
		transform: translateX(-20px) rotate(-5deg);
	}
}

@keyframes explode {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(2.5);
		opacity: 0.8;
	}
	100% {
		transform: scale(0);
		opacity: 0;
	}
}

/* Navigation */
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
	z-index: 100;
	padding: 16px 0;
}

.nav-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
}

.logo-icon {
	font-size: 24px;
	cursor: pointer;
	transition: transform 0.2s;
}

.logo-icon:hover {
	transform: scale(1.1);
}

.nav-links {
	display: flex;
	gap: 32px;
	align-items: center;
}

.nav-links a {
	color: var(--text-light);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 101;
}

.hamburger {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--text);
	position: relative;
	transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
	content: '';
	position: absolute;
	width: 24px;
	height: 2px;
	background: var(--text);
	transition: transform 0.3s;
}

.hamburger::before {
	top: -8px;
}

.hamburger::after {
	bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
	background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
	transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active .hamburger::after {
	transform: rotate(-45deg) translateY(-8px);
}

/* Hero */
.hero {
	padding: 140px 0 100px;
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
}

.hero .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

.hero-content {
	max-width: 600px;
}

.hero-badge {
	display: inline-block;
	padding: 8px 16px;
	background: rgba(16, 185, 129, 0.1);
	color: var(--primary-dark);
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
}

.hero-stats {
	display: flex;
	gap: 40px;
	margin-bottom: 32px;
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.stat strong {
	font-size: 28px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.5px;
}

.stat span {
	font-size: 14px;
	color: var(--text-light);
	font-weight: 500;
}

.hero-title {
	font-size: 56px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -1.5px;
	margin-bottom: 20px;
	color: var(--text);
}

.hero-subtitle {
	font-size: 20px;
	line-height: 1.6;
	color: var(--text-light);
	margin-bottom: 40px;
}

.hero-buttons {
	display: flex;
	justify-content: flex-start;
}

.app-store-badge {
	display: inline-block;
	transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}

.app-store-badge img {
	height: 54px;
	width: auto;
}

/* Phone Mockup */
.phone-mockup {
	max-width: 320px;
	margin: 0 auto;
	aspect-ratio: 9/19;
	background: #1e293b;
	border-radius: 40px;
	padding: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.phone-screen {
	width: 100%;
	height: 100%;
	background: #ffffff;
	border-radius: 32px;
	overflow: hidden;
}

.app-preview {
	padding: 48px 20px 20px;
	height: 100%;
	background: #f8fafc;
}

.preview-header {
	font-size: 24px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 20px;
}

.preview-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.preview-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	font-size: 16px;
	color: var(--text);
}

.checkbox {
	width: 20px;
	height: 20px;
	border: 2px solid var(--border);
	border-radius: 6px;
	flex-shrink: 0;
}

/* Features */
.features {
	padding: 100px 0;
}

.section-title {
	font-size: 42px;
	font-weight: 700;
	text-align: center;
	letter-spacing: -1px;
	margin-bottom: 12px;
	color: var(--text);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	max-width: 1100px;
	margin: 0 auto;
}

.feature-card {
	text-align: left;
	padding: 32px;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 16px;
	transition: all 0.3s;
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	border-color: var(--primary);
}

.feature-icon {
	font-size: 40px;
	margin-bottom: 16px;
	display: block;
}

.feature-card h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 8px;
	letter-spacing: -0.3px;
	color: var(--text);
}

.feature-card p {
	color: var(--text-light);
	font-size: 16px;
	line-height: 1.6;
}

/* Smart Suggestions */
.smart-suggestions {
	padding: 100px 0;
	background: #ffffff;
}

.suggestions-content {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	max-width: 1100px;
	margin: 0 auto;
}

.suggestion-feature {
	text-align: center;
}

.suggestion-icon {
	font-size: 56px;
	margin-bottom: 16px;
	display: block;
}

.suggestion-feature h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 8px;
	letter-spacing: -0.3px;
	color: var(--text);
}

.suggestion-feature p {
	color: var(--text-light);
	font-size: 16px;
	line-height: 1.6;
}

/* Presets */
.presets {
	padding: 100px 0;
	background: var(--bg-subtle);
}

.section-subtitle {
	font-size: 18px;
	text-align: center;
	color: var(--text-light);
	margin-bottom: 48px;
}

.preset-category-title {
	font-size: 24px;
	font-weight: 600;
	color: var(--text);
	margin-top: 48px;
	margin-bottom: 24px;
	text-align: center;
	letter-spacing: -0.5px;
}

.preset-category-title:first-of-type {
	margin-top: 0;
}

.presets-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	max-width: 1100px;
	margin: 0 auto;
}

.preset-card {
	padding: 36px 28px;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 16px;
	text-align: center;
	transition: all 0.3s;
}

.preset-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	border-color: var(--primary);
}

.preset-icon {
	font-size: 56px;
	margin-bottom: 16px;
	display: block;
}

.preset-card h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 8px;
	letter-spacing: -0.3px;
	color: var(--text);
}

.preset-card p {
	color: var(--text-light);
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 16px;
}

.preset-btn {
	width: 100%;
	padding: 10px 20px;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s;
}

.preset-btn:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
}

/* Preset Modal */
.preset-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
}

.preset-modal.active {
	display: flex;
}

.preset-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.preset-modal-content {
	position: relative;
	background: white;
	border-radius: 20px;
	padding: 48px 40px;
	max-width: 500px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.preset-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 32px;
	color: var(--text-light);
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.preset-modal-close:hover {
	color: var(--text);
}

.preset-modal-icon {
	font-size: 64px;
	margin-bottom: 16px;
}

.preset-modal-content h3 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--text);
}

.preset-modal-content p {
	font-size: 16px;
	color: var(--text-light);
	margin-bottom: 32px;
	line-height: 1.6;
}

.preset-modal-cta {
	display: inline-block;
	transition: transform 0.2s;
}

.preset-modal-cta:hover {
	transform: scale(1.05);
}

/* FAQ Section */
.faq {
	padding: 100px 0;
	background: #ffffff;
}

.faq-grid {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.faq-item {
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: white;
	transition: all 0.3s;
}

.faq-item:hover {
	border-color: var(--primary);
}

.faq-question {
	width: 100%;
	padding: 20px 24px;
	background: none;
	border: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	color: var(--text);
	text-align: left;
	font-family: inherit;
	transition: background 0.2s;
}

.faq-question:hover {
	background: var(--bg-subtle);
}

.faq-icon {
	font-size: 24px;
	color: var(--primary);
	font-weight: 400;
	transition: transform 0.3s;
	flex-shrink: 0;
	margin-left: 16px;
}

.faq-item.active .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
	max-height: 300px;
}

.faq-answer p {
	padding: 0 24px 24px;
	color: var(--text-light);
	line-height: 1.7;
	font-size: 16px;
}

/* Contact */
.contact {
	padding: 100px 0;
	background: #ffffff;
}

.contact-form {
	max-width: 600px;
	margin: 0 auto;
}

.form-group {
	margin-bottom: 24px;
}

.form-group label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 14px 16px;
	font-size: 16px;
	font-family: inherit;
	color: var(--text);
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 12px;
	transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input.error,
.form-group textarea.error {
	border-color: var(--error);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
	display: block;
	color: var(--error);
	font-size: 14px;
	margin-top: 6px;
	min-height: 20px;
}

.required {
	color: var(--error);
}

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

.submit-btn {
	width: 100%;
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	color: white;
	background: var(--primary);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.submit-btn:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.submit-btn:active {
	transform: translateY(0);
}

.submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.form-message {
	padding: 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 15px;
	text-align: center;
	display: none;
}

.form-message.success {
	display: block;
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #10b981;
}

.form-message.error {
	display: block;
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #dc2626;
}

/* CTA */
.cta {
	padding: 100px 0;
	text-align: center;
	background: var(--primary);
}

.cta-content h2 {
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: -1px;
	color: white;
}

.cta-subtitle {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 32px;
}

/* Legal Pages */
.legal-page {
	padding: 140px 0 80px;
	background: #ffffff;
}

.legal-content {
	max-width: 800px;
	margin: 0 auto;
}

.legal-content h1 {
	font-size: 42px;
	font-weight: 700;
	letter-spacing: -1px;
	margin-bottom: 12px;
	color: var(--text);
}

.last-updated {
	color: var(--text-light);
	font-size: 15px;
	margin-bottom: 48px;
}

.legal-content h2 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.5px;
	margin-top: 48px;
	margin-bottom: 16px;
	color: var(--text);
}

.legal-content h3 {
	font-size: 20px;
	font-weight: 600;
	margin-top: 24px;
	margin-bottom: 12px;
	color: var(--text);
}

.legal-content p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	margin-bottom: 16px;
}

.legal-content ul {
	margin: 16px 0 24px 24px;
	line-height: 1.8;
}

.legal-content li {
	font-size: 16px;
	color: var(--text);
	margin-bottom: 8px;
}

.legal-content a {
	color: var(--primary);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}

.legal-content a:hover {
	border-bottom-color: var(--primary);
}

.placeholder-section {
	background: #fee2e2;
	border: 2px solid #dc2626;
	border-radius: 12px;
	padding: 24px;
	margin: 24px 0;
}

.placeholder-section p:first-child {
	color: #991b1b;
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 16px;
}

.placeholder-section ul {
	margin: 12px 0 0 0;
}

.placeholder-section strong {
	color: #991b1b;
}

/* Footer */
.footer {
	background: var(--text);
	color: white;
	padding: 60px 0 32px;
}

.footer-content {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 60px;
	margin-bottom: 48px;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 12px;
}

.footer-section p {
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.6;
	font-size: 15px;
}

.footer-section ul {
	list-style: none;
	display: flex;
	gap: 24px;
}

.footer-section ul li {
	margin: 0;
}

.footer-section a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 15px;
	transition: color 0.2s;
}

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

.footer-bottom {
	text-align: center;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block;
	}

	.nav-links {
		position: fixed;
		top: 69px;
		right: -100%;
		width: 250px;
		height: calc(100vh - 69px);
		background: white;
		flex-direction: column;
		padding: 24px;
		gap: 20px;
		box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
		transition: right 0.3s;
		z-index: 100;
	}

	.nav-links.open {
		right: 0;
	}

	.nav-links a {
		font-size: 18px;
		padding: 12px 0;
		border-bottom: 1px solid var(--border);
	}

	.hero {
		padding: 100px 0 60px;
	}

	.hero .container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero-image {
		order: -1;
	}

	.hero-content {
		text-align: center;
	}

	.hero-buttons {
		justify-content: center;
	}

	.hero-title {
		font-size: 40px;
	}

	.hero-subtitle {
		font-size: 18px;
	}

	.hero-badge {
		font-size: 12px;
		padding: 6px 12px;
	}

	.hero-stats {
		flex-wrap: wrap;
		gap: 24px;
	}

	.stat strong {
		font-size: 24px;
	}

	.stat span {
		font-size: 13px;
	}

	.features {
		padding: 60px 0;
	}

	.section-title {
		font-size: 32px;
		margin-bottom: 40px;
	}

	.features-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.suggestions-content {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.presets-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.faq-question {
		font-size: 16px;
		padding: 16px 20px;
	}

	.faq-answer p {
		font-size: 15px;
		padding: 0 20px 20px;
	}

	.preset-modal-content {
		padding: 40px 24px;
		width: 95%;
	}

	.preset-modal-content h3 {
		font-size: 20px;
	}

	.preset-modal-icon {
		font-size: 48px;
	}

	.cta-content h2 {
		font-size: 32px;
	}

	.cta-subtitle {
		font-size: 16px;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.footer-section ul {
		flex-direction: column;
		gap: 12px;
	}
}
