/* =========================================================
   SupraHost — tokens
   ========================================================= */
:root {
	--font-display: 'Rajdhani', sans-serif;
	--font-body: 'Work Sans', sans-serif;
	--font-mono: 'JetBrains Mono', monospace;

	--accent: #FF4B1F;
	--accent-2: #38F2A0;
	--metal: #8B93A1;

	--radius: 14px;
	--radius-sm: 8px;
	--container: 1180px;
}

html[data-theme="dark"] {
	--bg: #0B0D10;
	--bg-alt: #14171C;
	--bg-alt-2: #1C2027;
	--text: #E9EBEE;
	--text-muted: #9AA1AC;
	--border: rgba(255,255,255,0.08);
	--shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}

html[data-theme="light"] {
	--bg: #EDEFF2;
	--bg-alt: #FFFFFF;
	--bg-alt-2: #E2E5EA;
	--text: #14171C;
	--text-muted: #5B6270;
	--border: rgba(20,23,28,0.1);
	--shadow: 0 20px 40px -22px rgba(20,23,28,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.5;
	transition: background .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; margin: 0 0 .4em; letter-spacing: .01em; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sh-eyebrow {
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .72rem;
	color: var(--accent);
	margin-bottom: .6em;
}

/* =========================================================
   Buttons
   ========================================================= */
.sh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	padding: .65em 1.3em;
	border-radius: var(--radius-sm);
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: .02em;
	font-size: .92rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
	white-space: nowrap;
}
.sh-btn--solid { background: var(--accent); color: #fff; }
.sh-btn--solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(255,75,31,.55); }
.sh-btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.sh-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.sh-btn--lg { padding: .85em 1.7em; font-size: 1.02rem; }

/* =========================================================
   Header
   ========================================================= */
.sh-shell { min-height: 100vh; display: flex; flex-direction: column; }
.sh-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.sh-header__inner { max-width: var(--container); margin: 0 auto; padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }

.sh-logo { display: flex; align-items: center; gap: .5rem; margin-right: auto; }
.sh-logo__mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(140deg, var(--accent), #B8300D); color: #fff; font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sh-logo__text { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; font-size: 1.05rem; }
.sh-logo__text b { font-weight: 700; color: var(--accent); }

.sh-nav__list { display: flex; gap: 1.6rem; }
.sh-nav__list a { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--text-muted); }
.sh-nav__list a:hover { color: var(--accent); }

.sh-header__actions { display: flex; align-items: center; gap: .6rem; }

.sh-theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-alt); cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; }
.sh-theme-toggle__icon { position: absolute; font-size: .95rem; transition: opacity .2s ease, transform .2s ease; }
.sh-theme-toggle__icon--sun { opacity: 0; transform: scale(.6) rotate(-90deg); }
.sh-theme-toggle__icon--moon { opacity: 1; }
html[data-theme="light"] .sh-theme-toggle__icon--sun { opacity: 1; transform: scale(1) rotate(0); }
html[data-theme="light"] .sh-theme-toggle__icon--moon { opacity: 0; transform: scale(.6) rotate(90deg); }

.sh-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.sh-burger span { width: 22px; height: 2px; background: var(--text); }

/* =========================================================
   Hero / dashboard console
   ========================================================= */
.sh-hero { max-width: var(--container); margin: 0 auto; padding: 4rem 1.5rem 3rem; }
.sh-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.sh-hero__title { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; }
.sh-hero__subtitle { font-size: 1.08rem; max-width: 46ch; }
.sh-hero__cta { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }

.sh-dash {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.sh-dash__topbar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-alt-2); }
.sh-dash__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sh-dash__dot--r { background: #FF5F57; }
.sh-dash__dot--y { background: #FEBC2E; }
.sh-dash__dot--g { background: #28C840; }
.sh-dash__title { margin-left: .6rem; font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); }

.sh-dash__body { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.1rem; align-items: center; }

.sh-console {
	font-family: var(--font-mono);
	font-size: .78rem;
	line-height: 1.55;
	color: var(--accent-2);
	background: transparent;
	margin: 0;
	min-height: 210px;
	white-space: pre-wrap;
	word-break: break-word;
}
.sh-console .sh-console__cursor { display: inline-block; width: .5em; background: var(--accent-2); animation: sh-blink 1s steps(1) infinite; }
@keyframes sh-blink { 50% { opacity: 0; } }

.sh-gauge { position: relative; width: 120px; height: 120px; flex: 0 0 auto; }
.sh-gauge__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sh-gauge__track { fill: none; stroke: var(--border); stroke-width: 9; }
.sh-gauge__fill {
	fill: none;
	stroke: var(--accent-2);
	stroke-width: 9;
	stroke-linecap: round;
	stroke-dasharray: 314.159;
	stroke-dashoffset: 314.159;
	transition: stroke-dashoffset .25s linear, stroke .25s ease;
}
.sh-gauge__readout { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-mono); }
.sh-gauge__value { font-size: 1.3rem; font-weight: 600; color: var(--text); }
.sh-gauge__label { font-size: .65rem; letter-spacing: .1em; color: var(--text-muted); }

/* =========================================================
   Strip
   ========================================================= */
.sh-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.sh-strip__inner { max-width: var(--container); margin: 0 auto; padding: .9rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; font-family: var(--font-mono); font-size: .8rem; color: var(--text-muted); }

/* =========================================================
   Section head
   ========================================================= */
.sh-section-head { max-width: var(--container); margin: 0 auto; padding: 3.5rem 1.5rem 1.5rem; text-align: center; }
.sh-section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.sh-section-sub { max-width: 56ch; margin: 0 auto; }

/* =========================================================
   Plans
   ========================================================= */
.sh-plans { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem 4rem; }
.sh-plans__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.sh-plan {
	position: relative;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.6rem 1.4rem;
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, border-color .18s ease;
}
.sh-plan:hover { transform: translateY(-4px); border-color: var(--metal); }
.sh-plan--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.sh-plan--featured::before {
	content: "";
	position: absolute; inset: 0;
	border-radius: var(--radius);
	padding: 1px;
	background: linear-gradient(160deg, var(--accent), transparent 60%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	pointer-events: none;
}
.sh-plan__badge { align-self: flex-start; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; margin-bottom: .8rem; }
.sh-plan__name { font-size: 1.25rem; margin-bottom: .1em; }
.sh-plan__ram { font-family: var(--font-mono); color: var(--accent-2); font-size: .82rem; margin-bottom: 1rem; }
.sh-plan__price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--text); margin-bottom: .7rem; }
.sh-plan__currency { font-size: 1.1rem; vertical-align: top; margin-right: 2px; }
.sh-plan__period { font-family: var(--font-body); font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.sh-plan__desc { font-size: .88rem; min-height: 4.4em; }
.sh-plan__specs { margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .45rem; }
.sh-plan__specs li { font-size: .84rem; padding-left: 1.3em; position: relative; color: var(--text-muted); }
.sh-plan__specs li::before { content: "▸"; position: absolute; left: 0; color: var(--accent-2); }
.sh-plan__cta { margin-top: auto; }

/* =========================================================
   Features
   ========================================================= */
.sh-features { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem 4rem; }
.sh-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sh-feature { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.sh-feature__icon { font-size: 1.5rem; display: inline-block; margin-bottom: .5rem; }
.sh-feature h3 { font-size: 1.05rem; }
.sh-feature p { font-size: .88rem; margin-bottom: 0; }

/* =========================================================
   CTA
   ========================================================= */
.sh-cta { background: linear-gradient(135deg, var(--bg-alt), var(--bg-alt-2)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sh-cta__inner { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.sh-cta__inner h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }

/* =========================================================
   Blog fallback
   ========================================================= */
.sh-main--blog { max-width: var(--container); margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.sh-blog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.sh-blog__card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }

/* =========================================================
   Footer
   ========================================================= */
.sh-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-alt); }
.sh-footer__inner { max-width: var(--container); margin: 0 auto; padding: 3rem 1.5rem 1.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.sh-footer__brand { display: flex; flex-direction: column; gap: .5rem; }
.sh-footer__brand .sh-logo__mark { width: 30px; height: 30px; }
.sh-footer__tag { font-size: .85rem; max-width: 34ch; }
.sh-footer__col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .8rem; }
.sh-footer__col li { margin-bottom: .5rem; font-size: .9rem; }
.sh-footer__col a:hover { color: var(--accent); }
.sh-footer__bottom { border-top: 1px solid var(--border); padding: 1rem 1.5rem; text-align: center; font-size: .78rem; color: var(--text-muted); }

/* =========================================================
   Cookies
   ========================================================= */
.sh-cookies {
	position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100;
	max-width: 560px; margin: 0 auto;
	background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.1rem 1.3rem;
	display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; justify-content: space-between;
}
.sh-cookies p { margin: 0; font-size: .82rem; flex: 1 1 260px; }
.sh-cookies__actions { display: flex; gap: .6rem; }
.sh-cookies[hidden] { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
	.sh-hero__grid { grid-template-columns: 1fr; }
	.sh-plans__grid { grid-template-columns: repeat(2, 1fr); }
	.sh-features__grid { grid-template-columns: repeat(2, 1fr); }
	.sh-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.sh-nav { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 1.5rem; transform: translateY(-110%); transition: transform .25s ease; }
	.sh-nav.is-open { transform: translateY(0); }
	.sh-nav__list { flex-direction: column; gap: 1rem; }
	.sh-header__actions { display: none; }
	.sh-header__actions.is-open { display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 64px; left: 0; right: 0; padding: 1rem 1.5rem; background: var(--bg); z-index: 49; }
	.sh-burger { display: flex; }
	.sh-plans__grid { grid-template-columns: 1fr; }
	.sh-features__grid { grid-template-columns: 1fr; }
	.sh-footer__inner { grid-template-columns: 1fr; }
	.sh-blog__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
