/* ============================================
   ForDev.tools - Shared Styles
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg-base: #0d1117;
	--bg-section-alt: #0a0f16;
	--bg-footer: #070a0f;
	--card-bg: rgba(255, 255, 255, 0.03);
	--card-border: rgba(255, 255, 255, 0.06);
	--card-border-hover: rgba(255, 255, 255, 0.08);
	--text-primary: #f3f4f6;
	--text-muted: #9ca3af;
	--text-nav: #e5e7eb;
	--accent-mint: #5eead4;
	--accent-purple: #a78bfa;
	--accent-cyan: #22d3ee;
	--accent-blue: #60a5fa;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: var(--bg-base);
	color: var(--text-primary);
	line-height: 1.5;
	letter-spacing: -0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 68px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	z-index: 100;
	background: transparent;
	transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled,
.nav.nav-solid {
	background: rgba(13, 17, 23, 0.9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--card-border);
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 18px;
	color: var(--text-nav);
	text-decoration: none;
}

.nav-logo img {
	height: 60px;
	border-radius: 6px;
}

.nav-links {
	display: flex;
	gap: 24px;
}

.nav-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}

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

/* ============================================
   Sections & Containers
   ============================================ */
section {
	padding: 60px 20px;
}

.container {
	max-width: 960px;
	margin: 0 auto;
}

/* ============================================
   Typography
   ============================================ */
.section-title {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	margin-bottom: 16px;
	line-height: 1.2;
}

.section-subtitle {
	font-size: 17px;
	color: var(--text-muted);
	max-width: 600px;
	line-height: 1.6;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
	color: #0d1117;
	font-weight: 600;
	font-size: 15px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
	transform: scale(1.02);
	box-shadow: 0 0 30px rgba(94, 234, 212, 0.3);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	color: var(--text-primary);
	font-weight: 500;
	font-size: 14px;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
	border-color: var(--card-border-hover);
	background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Cards
   ============================================ */
.card {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 14px;
	padding: 24px;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
	transform: scale(1.02);
	border-color: var(--card-border-hover);
}

.highlight-box {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 12px;
	padding: 20px 24px;
	margin: 24px 0;
}

.highlight-box p {
	margin-bottom: 0;
}

.warning-box {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.2);
	border-radius: 12px;
	padding: 20px 24px;
	margin: 24px 0;
}

.warning-box p {
	margin-bottom: 0;
	color: #fca5a5;
}

/* ============================================
   Footer
   ============================================ */
footer {
	background: var(--bg-footer);
	padding: 48px 32px;
	border-top: 1px solid var(--card-border);
}

.footer-content {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 32px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 16px;
	color: var(--text-muted);
	text-decoration: none;
}

.footer-brand img {
	height: 50px;
	border-radius: 5px;
}

.footer-links {
	display: flex;
	gap: 32px;
}

.footer-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}

.footer-links a:hover {
	color: var(--accent-cyan);
}

.footer-info {
	color: #6b7280;
	font-size: 13px;
	text-align: right;
}

.footer-info p {
	margin-bottom: 4px;
}

/* ============================================
   Page Content (Legal/Info Pages)
   ============================================ */
main.page-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 120px 32px 80px;
	line-height: 1.7;
}

.page-header {
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--card-border);
}

.page-header h1 {
	font-size: 40px;
	font-weight: 700;
	margin-bottom: 12px;
	background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.page-header .last-updated {
	color: var(--text-muted);
	font-size: 14px;
}

.content-section {
	margin-bottom: 40px;
}

.content-section h2 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 16px;
	color: var(--text-primary);
}

.content-section h3 {
	font-size: 17px;
	font-weight: 600;
	margin: 24px 0 12px;
	color: var(--text-primary);
}

.content-section p {
	color: var(--text-muted);
	margin-bottom: 16px;
	font-size: 15px;
}

.content-section ul,
.content-section ol {
	color: var(--text-muted);
	margin-bottom: 16px;
	padding-left: 24px;
	font-size: 15px;
}

.content-section li {
	margin-bottom: 8px;
}

.content-section a {
	color: var(--accent-cyan);
	text-decoration: none;
}

.content-section a:hover {
	text-decoration: underline;
}

/* ============================================
   Hero Section (Landing Page)
   ============================================ */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at top center, #1e2635 0%, #0d1117 70%);
	padding-top: 68px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(
		circle,
		rgba(94, 234, 212, 0.08) 0%,
		rgba(167, 139, 250, 0.06) 40%,
		transparent 70%
	);
	pointer-events: none;
}

.hero-card {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 24px;
	padding: 64px 48px;
	text-align: center;
	max-width: 786px;
	position: relative;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-logo {
	width: 80px;
	height: 80px;
	margin-bottom: 24px;
	border-radius: 16px;
}

.hero h1 {
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 16px;
	background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero p {
	font-size: 18px;
	color: var(--text-muted);
	max-width: 540px;
	margin: 0 auto 32px;
	line-height: 1.6;
}

.hero-link {
	display: block;
	margin-top: 16px;
	color: var(--text-muted);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hero-link:hover {
	color: var(--accent-cyan);
}

/* ============================================
   Landing Page Sections
   ============================================ */
.custom-tools {
	background: var(--bg-section-alt);
}

.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.code-block {
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid var(--card-border);
	border-radius: 16px;
	padding: 24px;
	font-family: "SF Mono", "Fira Code", monospace;
	font-size: 14px;
	color: var(--text-muted);
	overflow-x: auto;
}

.code-block .keyword {
	color: var(--accent-purple);
}
.code-block .function {
	color: var(--accent-cyan);
}
.code-block .string {
	color: var(--accent-mint);
}
.code-block .comment {
	color: #6b7280;
}

.free-tools {
	background: var(--bg-base);
}

.free-tools .section-header,
.dx-features .section-header {
	text-align: center;
	margin-bottom: 48px;
}

.free-tools .section-subtitle,
.dx-features .section-subtitle {
	margin: 0 auto;
}

.tools-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.tool-card {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 14px;
	padding: 24px;
	text-align: center;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
	transform: scale(1.02);
	border-color: var(--card-border-hover);
}

.tool-card svg {
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	color: var(--accent-cyan);
}

.tool-card h3 {
	font-size: 15px;
	font-weight: 600;
}

.tool-card p {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 6px;
}

/* Tier Labels */
.tier-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent-cyan);
	margin-bottom: 20px;
	margin-top: 48px;
	text-align: center;
}

.tier-label:first-of-type {
	margin-top: 0;
}

/* 3-column grid */
.tools-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

/* Featured tool cards (Tier 1) */
.tool-card-featured {
	background: linear-gradient(135deg, rgba(94, 234, 212, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
	border-color: rgba(94, 234, 212, 0.2);
}

.tool-card-featured:hover {
	border-color: rgba(94, 234, 212, 0.4);
	box-shadow: 0 0 30px rgba(94, 234, 212, 0.1);
}

.tool-card-featured svg {
	color: var(--accent-mint);
}

/* Remix section */
.remix-section {
	background: linear-gradient(to bottom, var(--bg-section-alt) 0%, var(--bg-base) 100%);
}

.remix-section .section-header {
	text-align: center;
	margin-bottom: 48px;
}

.remix-section .section-subtitle {
	margin: 0 auto;
}

/* Remix tool cards (Tier 3) */
.tool-card-remix {
	background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(96, 165, 250, 0.05) 100%);
	border-color: rgba(167, 139, 250, 0.2);
}

.tool-card-remix:hover {
	border-color: rgba(167, 139, 250, 0.4);
	box-shadow: 0 0 30px rgba(167, 139, 250, 0.1);
}

.tool-card-remix svg {
	color: var(--accent-purple);
}

.marketplace {
	background: linear-gradient(to bottom, #0a0f16 0%, #121821 100%);
	text-align: center;
}

.marketplace .section-subtitle {
	margin: 0 auto 48px;
}

.ecosystem-graphic {
	width: 100%;
	max-width: 600px;
	height: 200px;
	margin: 0 auto;
	background: radial-gradient(
		ellipse at center,
		rgba(94, 234, 212, 0.1) 0%,
		rgba(167, 139, 250, 0.05) 50%,
		transparent 70%
	);
	border-radius: 50%;
	position: relative;
}

.ecosystem-graphic::before {
	content: "";
	position: absolute;
	inset: 20%;
	background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
	border-radius: 50%;
	animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 0.5;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.1);
	}
}

.dx-features {
	background: var(--bg-section-alt);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.feature-card {
	background: rgba(255, 255, 255, 0.02);
	border-radius: 14px;
	padding: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.feature-card svg {
	width: 24px;
	height: 24px;
	color: var(--accent-mint);
	flex-shrink: 0;
}

.feature-card span {
	font-size: 15px;
	font-weight: 500;
}

.cta-section {
	background: var(--bg-base);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cta-section::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 400px;
	background: radial-gradient(circle at bottom, #2b6777 0%, transparent 55%);
	opacity: 0.3;
	pointer-events: none;
}

.cta-section .container {
	position: relative;
}

.cta-section .section-title {
	font-size: clamp(36px, 5vw, 56px);
	margin-bottom: 16px;
}

.cta-section .section-subtitle {
	margin: 0 auto 32px;
}

/* ============================================
   About & Contact Page Specific
   ============================================ */
.about-hero,
.contact-hero {
	padding-top: 140px;
	padding-bottom: 80px;
	text-align: center;
	background: radial-gradient(circle at top center, #1e2635 0%, #0d1117 70%);
}

.about-hero .hero-logo,
.contact-hero .hero-logo {
	width: 64px;
	height: 64px;
	margin-bottom: 24px;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.info-card {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 16px;
	padding: 32px;
}

.info-card h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--text-primary);
}

.info-card p {
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.6;
}

.info-card a {
	color: var(--accent-cyan);
	text-decoration: none;
}

.info-card a:hover {
	text-decoration: underline;
}

.contact-methods {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 48px;
}

.contact-card {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 16px;
	padding: 32px;
	text-align: center;
}

.contact-card svg {
	width: 32px;
	height: 32px;
	color: var(--accent-cyan);
	margin-bottom: 16px;
}

.contact-card h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
	color: var(--text-muted);
	font-size: 14px;
}

.contact-card a {
	color: var(--accent-cyan);
	text-decoration: none;
}

.contact-card a:hover {
	text-decoration: underline;
}

/* 2-column contact methods */
.contact-methods-2col {
	grid-template-columns: repeat(2, 1fr);
}

/* ============================================
   Forms
   ============================================ */
.notify-form {
	display: flex;
	gap: 12px;
	max-width: 480px;
	margin: 0 auto;
}

.notify-form input[type="email"] {
	flex: 1;
	padding: 14px 20px;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s ease;
}

.notify-form input[type="email"]:focus {
	border-color: var(--accent-cyan);
}

.notify-form input[type="email"]::placeholder {
	color: var(--text-muted);
}

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

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

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

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

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 14px 16px;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 10px;
	color: var(--text-primary);
	font-size: 15px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s ease;
	resize: vertical;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: var(--text-muted);
}

.contact-form .btn-primary {
	width: 100%;
	justify-content: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
	.two-col {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tools-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.info-grid {
		grid-template-columns: 1fr;
	}

	.contact-methods,
	.contact-methods-2col {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	section {
		padding: 80px 20px;
	}

	.nav {
		padding: 0 20px;
	}

	.nav-links {
		display: none;
	}

	.hero-card {
		padding: 40px 24px;
	}

	.tools-grid,
	.tools-grid-3 {
		grid-template-columns: 1fr;
	}

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

	main.page-content {
		padding: 100px 20px 60px;
	}

	.page-header h1 {
		font-size: 28px;
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
	}

	.footer-info {
		text-align: center;
	}

	.footer-links {
		flex-wrap: wrap;
		justify-content: center;
		gap: 16px;
	}

	.notify-form {
		flex-direction: column;
	}

	.form-row {
		grid-template-columns: 1fr;
	}
}
