/* === Reset & Base === */
:root {
	--navy: #0B1D3A;
	--teal: #00B4D8;
	--teal-dark: #0096B7;
	--slate: #334155;
	--light: #F1F5F9;
	--white: #FFFFFF;
	--accent: #38BDF8;
	--gold: #FBBF24;
}

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

body {
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	color: var(--slate);
	line-height: 1.6;
	background: var(--white);
}

/* ─── NAV ─── */
nav {
	position: fixed; top: 0; width: 100%; z-index: 100;
	background: rgba(11,29,58,.95);
	backdrop-filter: blur(10px);
	padding: 0 2rem;
	display: flex; align-items: center; justify-content: space-between;
	height: 64px;
}
.logo {
	font-size: 1.35rem; font-weight: 700; color: var(--white);
	letter-spacing: .5px;
}
.logo span { color: var(--teal); }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav a {
	color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem;
	transition: color .2s;
}
nav a:hover { color: var(--teal); }
.nav-cta {
	background: var(--teal); color: var(--white) !important;
	padding: .5rem 1.25rem; border-radius: 6px; font-weight: 600;
}
.nav-cta:hover { background: var(--teal-dark); }

/* ─── HERO ─── */
.hero {
	min-height: 100vh;
	background: linear-gradient(160deg, var(--navy) 0%, #132B50 50%, #0B1D3A 100%);
	display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 6rem 2rem 4rem;
	position: relative; overflow: hidden;
}
.hero::before {
	content: ''; position: absolute; inset: 0;
	background:
			radial-gradient(circle at 20% 50%, rgba(0,180,216,.08) 0%, transparent 50%),
			radial-gradient(circle at 80% 30%, rgba(56,189,248,.06) 0%, transparent 40%);
}
.hero-content { position: relative; max-width: 780px; }
.hero-badge {
	display: inline-block;
	background: rgba(0,180,216,.15); color: var(--teal);
	padding: .35rem 1rem; border-radius: 50px; font-size: .8rem;
	font-weight: 600; letter-spacing: .5px; margin-bottom: 1.5rem;
	border: 1px solid rgba(0,180,216,.25);
}
.hero h1 {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	color: var(--white); font-weight: 800;
	line-height: 1.15; margin-bottom: 1.25rem;
}
.hero h1 em {
	font-style: normal;
	background: linear-gradient(135deg, var(--teal), var(--accent));
	-webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
	font-size: 1.15rem; color: rgba(255,255,255,.7);
	max-width: 600px; margin: 0 auto 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .85rem 2rem; border-radius: 8px;
	font-size: 1rem; font-weight: 600; text-decoration: none;
	transition: all .25s;
}
.btn-primary {
	background: var(--teal); color: var(--white);
	box-shadow: 0 4px 20px rgba(0,180,216,.35);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline {
	border: 2px solid rgba(255,255,255,.25); color: var(--white);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ─── TRUST BAR ─── */
.trust-bar {
	background: var(--light); padding: 2.5rem 2rem;
	text-align: center;
}
.trust-bar p { font-size: .85rem; color: #94A3B8; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.trust-items { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; align-items: center; }
.trust-item {
	font-size: 1rem; font-weight: 700; color: var(--slate); opacity: .5;
	display: flex; align-items: center; gap: .5rem;
}
.trust-num { font-size: 1.8rem; color: var(--teal); opacity: 1; }

/* ─── SECTIONS ─── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
	text-transform: uppercase; font-size: .8rem; font-weight: 700;
	color: var(--teal); letter-spacing: 1.5px; margin-bottom: .5rem;
}
.section-title {
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	color: var(--navy); font-weight: 800; margin-bottom: 1rem;
	line-height: 1.2;
}
.section-sub {
	font-size: 1.05rem; color: #64748B; max-width: 640px; margin-bottom: 3rem;
}

/* ─── SERVICES ─── */
.services-section { background: var(--white); }
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}
.service-card {
	background: var(--white);
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	padding: 2.25rem 2rem;
	transition: all .3s;
	position: relative;
	overflow: hidden;
}
.service-card::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0;
	height: 4px; background: linear-gradient(90deg, var(--teal), var(--accent));
	opacity: 0; transition: opacity .3s;
}
.service-card:hover {
	border-color: var(--teal);
	box-shadow: 0 8px 30px rgba(0,180,216,.1);
	transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
	width: 56px; height: 56px; border-radius: 12px;
	background: linear-gradient(135deg, rgba(0,180,216,.1), rgba(56,189,248,.1));
	display: flex; align-items: center; justify-content: center;
	font-size: 1.5rem; margin-bottom: 1.25rem;
}
.service-card h3 {
	font-size: 1.2rem; color: var(--navy); margin-bottom: .75rem; font-weight: 700;
}
.service-card > p {
	font-size: .95rem; color: #64748B; margin-bottom: 1.25rem; line-height: 1.7;
}
.service-details {
	list-style: none; padding: 0; margin-bottom: 1.25rem;
}
.service-details li {
	font-size: .88rem; color: var(--slate); padding: .3rem 0;
	padding-left: 1.4rem; position: relative;
}
.service-details li::before {
	content: '✓'; position: absolute; left: 0;
	color: var(--teal); font-weight: 700;
}
.service-value {
	background: rgba(0,180,216,.06);
	border-left: 3px solid var(--teal);
	padding: .75rem 1rem; border-radius: 0 8px 8px 0;
	font-size: .85rem; color: var(--navy); font-weight: 500;
}

/* ─── VALUE PROPS ─── */
.value-section { background: var(--navy); color: var(--white); }
.value-section .section-label { color: var(--gold); }
.value-section .section-title { color: var(--white); }
.value-section .section-sub { color: rgba(255,255,255,.6); }
.value-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2.5rem;
}
.value-card {
	display: flex; gap: 1.25rem;
}
.value-icon {
	flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.3rem;
}
.vi-time { background: rgba(251,191,36,.15); }
.vi-money { background: rgba(52,211,153,.15); }
.vi-scale { background: rgba(139,92,246,.15); }
.value-card h3 { font-size: 1.1rem; margin-bottom: .4rem; font-weight: 700; }
.value-card p { font-size: .92rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ─── PROCESS ─── */
.process-section { background: var(--light); }
.process-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem; counter-reset: step;
}
.step {
	text-align: center; padding: 1.5rem;
	position: relative;
}
.step-num {
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--teal); color: var(--white);
	font-size: 1.1rem; font-weight: 800;
	display: inline-flex; align-items: center; justify-content: center;
	margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .5rem; }
.step p { font-size: .88rem; color: #64748B; }

/* ─── CTA ─── */
.cta-section {
	background: linear-gradient(160deg, var(--navy), #132B50);
	text-align: center; padding: 5rem 2rem;
}
.cta-section h2 {
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	color: var(--white); font-weight: 800; margin-bottom: 1rem;
}
.cta-section p {
	font-size: 1.05rem; color: rgba(255,255,255,.65);
	max-width: 540px; margin: 0 auto 2rem;
}

/* ─── FOOTER ─── */
footer {
	background: #060F1F; padding: 3rem 2rem 2rem;
	text-align: center;
}
.footer-logo { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.footer-logo span { color: var(--teal); }
footer p { font-size: .82rem; color: #475569; margin-top: .75rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin: 1rem 0; }
.footer-links a { color: #94A3B8; text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: var(--teal); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
	nav ul { display: none; }
	.trust-items { gap: 1.5rem; }
	.service-card { padding: 1.75rem 1.5rem; }
	.value-grid { gap: 2rem; }
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; background: #1a1b2c; color: #e0e0e0; }
a { color: #00B4D8; }
a:hover { color: var(--teal-dark) }

/* === Layout === */
page-content {
	display: block;
	max-width: 999px;
	margin: 3rem auto;
	padding: 0 1rem;
	line-height: 1.7;
}

page-content[wide] {
	max-width: 900px;
}

/* === Card === */
card {
	display: block;
	background: #222339;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* === Centered layout (auth pages) === */
center-page {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

center-page > card {
	width: 100%;
	max-width: 400px;
	text-align: center;
}

/* === Typography === */
h1 { font-size: 2rem; margin: 0 0 0.25rem; color: #fff; }
h2 { margin: 0 0 1.5rem; color: #fff; }

publish-date {
	display: block;
	font-size: 0.85rem;
	color: #888;
	margin: 0 0 2rem;
}

/* === Public Navigation === */
pub-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: #131422;
	padding: 0.6rem 1.5rem;
}

pub-nav > a { display: flex; align-items: center; line-height: 0; }

nav-links {
	display: flex;
	gap: 1.25rem;
}

nav-links a {
	color: #aaa;
	text-decoration: none;
	font-size: 0.9rem;
	white-space: nowrap;
}

nav-links a:hover { color: #00B4D8; }

a[nav-cta] {
	background: var(--teal);
	color: #fff !important;
	padding: 0.9rem 1.8rem;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	margin-left: auto;
}

a[nav-cta]:hover { background: var(--teal-dark); }

#nav-toggle {
	display: none;
	background: none;
	border: none;
	color: #aaa;
	padding: 0.25rem;
	cursor: pointer;
}

#nav-toggle:hover { color: #00B4D8; }

@media (max-width: 600px) {
	pub-nav { flex-wrap: wrap; }

	nav-links {
		display: none;
		flex-direction: column;
		width: 100%;
		gap: 0;
		order: 3;
	}

	nav-links[open] { display: flex; }

	nav-links a {
		padding: 0.6rem 0;
		border-top: 1px solid #2a2b40;
	}

	a[nav-cta] { margin-left: 0; }

	#nav-toggle {
		display: block;
		margin-left: 0;
	}
}

/* === Admin Navigation === */
site-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #131422;
	color: white;
	padding: 1rem 2rem;
}

site-nav h1 { font-size: 1.25rem; color: white; }
site-nav a { color: #00B4D8; text-decoration: none; }

/* === Forms === */
field {
	display: block;
	margin-bottom: 1rem;
}

label { display: block; font-weight: 600; margin: 0 0 0.25rem; color: #ccc; }

input[type="text"],
input[type="email"],
input[type="datetime-local"],
select,
textarea {
	width: 100%;
	padding: 0.5rem;
	background: #1a1b2c;
	color: #e0e0e0;
	border: 1px solid #3a3b50;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: #00B4D8;
}

textarea { min-height: 300px; resize: vertical; }

/* === Buttons === */
button, a[role="button"] {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #00B4D8;
	color: #fff;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	font-size: 0.9rem;
	cursor: pointer;
}

button:hover, a[role="button"]:hover { background: #00cc90; }
button[large], a[role="button"][large] { padding: 0.75rem 1.5rem; font-size: 1rem; }
button[wide] { width: 100%; margin-top: 1rem; }
button[small], a[role="button"][small] { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
button[danger] { background: #d32f2f; }
button[danger]:hover { background: #b71c1c; }
button[ghost] { background: transparent; border: 1px solid currentColor; color: #e0e0e0; }
a[role="button"][secondary] { background: #2a2b40; color: #e0e0e0; border: 1px solid #3a3b50; }
a[role="button"][secondary]:hover { background: #3a3b50; }

actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

/* === Table === */
table {
	width: 100%;
	border-collapse: collapse;
	background: #222339;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #2a2b40; }
th { background: #1a1b2c; font-weight: 600; color: #ccc; }

/* === Status badges === */
status-badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
	font-size: 0.75rem;
	font-weight: 600;
}

status-badge[published] { background: #1a3a2a; color: #00B4D8; }
status-badge[scheduled] { background: #1a2a3a; color: #4a9eff; }
status-badge[draft] { background: #3a2a1a; color: #e6a040; }

/* === Row layout === */
row-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

/* === Spinner === */
spinner {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid #3a3b50;
	border-top-color: #00B4D8;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin-top: 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === Utility === */
empty-state {
	display: block;
	text-align: center;
	padding: 3rem;
	color: #888;
}

error-text {
	display: block;
	color: #ff6b6b;
}
