/*
Theme Name: Klvn Store
Description: Dark blue/gold theme for the Klvn Store wholesale SMM provider panel.
Author: somo8
Version: 3.3.0
Text Domain: smm-panel
*/

:root {
	--bg: #000000;
	--bg-2: #05070d;
	--surface: #0b0f18;
	--surface-2: #111726;
	--line: #1c2434;
	--line-soft: #141a28;
	--ink: #ffffff;
	--muted: #99a3b8;
	--dim: #6a7487;

	/* Pulled from the logo gradient */
	--brand: #0b5fff;
	--brand-2: #1fa2ff;
	--brand-deep: #0a3fb8;

	/* Pulled from the banner */
	--gold: #ffd100;
	--gold-2: #ffb800;

	--green: #34d399;
	--red: #f87171;
	--radius: 16px;
	--wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }

h1, h2, h3 { line-height: 1.12; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.03em; }
h1 { font-size: clamp(36px, 5.4vw, 60px); }
h2 { font-size: clamp(27px, 3.8vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.brand-gradient {
	background: linear-gradient(100deg, var(--brand-2), var(--brand) 60%, var(--brand-deep));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.gold-text { color: var(--gold); }

/* -------------------------------------------------------------- header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line-soft);
}

/* Three columns so the logo stays optically centred whatever the nav width. */
.header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	min-height: 82px;
}

.brand { display: flex; align-items: center; justify-content: center; }
.brand img { height: 50px; width: auto; display: block; }

.nav-left,
.nav-right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-left a,
.nav-right a {
	padding: 8px 14px;
	border-radius: 9px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
	transition: color 0.15s, background 0.15s;
}

.nav-left a:hover,
.nav-right a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border-radius: 11px;
	font-weight: 700;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.2s, filter 0.15s;
	white-space: nowrap;
}

.btn-primary {
	background: linear-gradient(135deg, var(--brand-2), var(--brand));
	color: #fff !important;
	box-shadow: 0 8px 26px -10px rgba(11, 95, 255, 1);
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }

.btn-gold {
	background: linear-gradient(135deg, var(--gold), var(--gold-2));
	color: #0a0a0a !important;
	box-shadow: 0 8px 26px -10px rgba(255, 209, 0, 0.9);
}

.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn-ghost { background: var(--surface-2); color: var(--ink) !important; border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: #27324a; }

.nav-right .btn { padding: 10px 18px; }

/* ---------------------------------------------------------------- hero */

.hero {
	position: relative;
	padding: 76px 0 84px;
	overflow: hidden;
	border-bottom: 1px solid var(--line-soft);
}

.hero::before {
	content: "";
	position: absolute;
	top: -240px;
	left: -10%;
	width: 780px;
	height: 620px;
	background: radial-gradient(ellipse at center, rgba(11, 95, 255, 0.28), transparent 68%);
	pointer-events: none;
}

.hero::after {
	content: "";
	position: absolute;
	bottom: -260px;
	right: -6%;
	width: 620px;
	height: 520px;
	background: radial-gradient(ellipse at center, rgba(255, 209, 0, 0.1), transparent 70%);
	pointer-events: none;
}

.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 15px 6px 7px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	font-size: 13.5px;
	color: var(--muted);
	margin-bottom: 24px;
}

.eyebrow .pill {
	background: linear-gradient(135deg, var(--gold), var(--gold-2));
	color: #0a0a0a;
	padding: 2px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.hero .lead { font-size: 18.5px; color: var(--muted); max-width: 520px; margin: 0 0 32px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-note { margin-top: 20px; font-size: 14px; color: var(--dim); }

/* Banner artwork */
.hero-art { position: relative; justify-self: center; max-width: 380px; width: 100%; }

.hero-art img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
	border: 1px solid var(--line);
	box-shadow: 0 30px 80px -30px rgba(11, 95, 255, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/*
 * Hotspot over the ORDER NOW button painted into hero-banner.jpg.
 * Percentages were measured from the 900x1600 source (x 242-657, y 1264-1330),
 * so it tracks the button at any rendered size. Re-measure if the banner changes.
 */
.hero-order {
	position: absolute;
	left: 26.9%;
	top: 79%;
	width: 46.1%;
	height: 4.2%;
	border-radius: 999px;
	transition: box-shadow 0.2s, transform 0.15s;
}

.hero-order:hover {
	box-shadow: 0 0 0 2px rgba(255, 209, 0, 0.9), 0 0 28px 4px rgba(255, 209, 0, 0.55);
	transform: translateY(-1px);
}

.hero-order:focus-visible {
	outline: 3px solid var(--brand-2);
	outline-offset: 3px;
}

/* Stat strip */
.stat-strip {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: var(--line-soft);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	overflow: hidden;
	margin-top: 64px;
}

.stat-strip div { background: var(--bg-2); padding: 24px 18px; text-align: center; }
.stat-strip strong { display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.stat-strip span { font-size: 13.5px; color: var(--dim); }

/* ------------------------------------------------------------ sections */

.section { padding: 92px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.kicker {
	color: var(--gold);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 12px;
}

.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: #27324a; transform: translateY(-2px); }

.card .icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(11, 95, 255, 0.3), rgba(31, 162, 255, 0.14));
	border: 1px solid rgba(31, 162, 255, 0.34);
	display: grid;
	place-items: center;
	font-size: 20px;
	margin-bottom: 18px;
}

.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: s; }

.step { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.step::before {
	counter-increment: s;
	content: "0" counter(s);
	display: block;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.08em;
	color: var(--gold);
	margin-bottom: 12px;
}

.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Code panel */
.code-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.code-panel header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--line);
	background: var(--surface-2);
	font-size: 13px;
	color: var(--dim);
}

.code-panel .dot { width: 10px; height: 10px; border-radius: 50%; background: #27324a; }

.code-panel pre {
	margin: 0;
	padding: 22px;
	overflow-x: auto;
	font-size: 13.5px;
	line-height: 1.8;
	font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
	color: #ccd5e6;
}

.code-panel .k { color: var(--brand-2); }
.code-panel .s { color: var(--gold); }
.code-panel .c { color: var(--dim); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 24px 0 0; }
.split li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--muted); }
.split li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 800; }

/* Pricing tiles, echoing the banner */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

.tier {
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	background: var(--surface);
	text-align: center;
}

.tier .qty {
	background: linear-gradient(135deg, var(--gold), var(--gold-2));
	color: #0a0a0a;
	font-weight: 900;
	font-size: 22px;
	padding: 14px 8px;
	letter-spacing: -0.02em;
}

.tier .price { padding: 16px 8px; font-size: 21px; font-weight: 800; }

/* CTA */
.cta {
	position: relative;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 64px 28px;
	background: linear-gradient(160deg, var(--surface), var(--bg-2));
	overflow: hidden;
}

.cta::before {
	content: "";
	position: absolute;
	inset: -60% 18% auto;
	height: 320px;
	background: radial-gradient(ellipse at center, rgba(11, 95, 255, 0.26), transparent 70%);
}

.cta > * { position: relative; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* -------------------------------------------------------------- pages */

.page-hero { padding: 62px 0 42px; border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.page-hero h1 { font-size: clamp(30px, 4vw, 40px); margin: 0; }
.content { padding: 56px 0 90px; }

/* ------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0; background: var(--bg-2); font-size: 14px; color: var(--dim); }
.footer-inner { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-logo { height: 30px; width: auto; }
.footer-links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; gap: 44px; }
	.hero-art { max-width: 330px; order: -1; }
	.split { grid-template-columns: 1fr; gap: 32px; }
}

/* Keep the header one compact row as long as it fits; stacking it into three
   rows made a ~180px bar that stayed pinned over the page. */
@media (max-width: 720px) {
	.hero { padding: 52px 0 60px; }
	.section { padding: 62px 0; }
	.stat-strip { margin-top: 44px; }
	.header-inner { min-height: 64px; gap: 10px; }
	.brand img { height: 40px; }
	.nav-left a,
	.nav-right a { padding: 7px 10px; font-size: 14px; }
	.nav-right .btn { padding: 8px 14px; }
}

/* Phones: logo and account button on one row, page links below, and the bar
   scrolls away with the page instead of covering it. */
@media (max-width: 560px) {
	.site-header { position: static; }
	.header-inner {
		grid-template-columns: auto 1fr;
		grid-template-areas: "brand auth" "links links";
		row-gap: 8px;
		/* Block padding only: a `padding: 10px 0` shorthand wiped the .wrap side
		   gutters and pushed the logo and button against the screen edges. */
		padding-block: 10px;
	}
	.brand { grid-area: brand; justify-content: flex-start; }
	.nav-right { grid-area: auth; }
	.nav-left {
		grid-area: links;
		justify-content: center;
		border-top: 1px solid var(--line-soft);
		padding-top: 6px;
	}
}
