/*
Theme Name: StorDock
Theme URI: https://stordock.example
Author: StorDock
Author URI: https://stordock.example
Description: A dark, high-contrast block theme for StorDock, an external PCIe GPU and storage chassis. One-page landing design built with core blocks and editable in the Site Editor. Styled from the StorDock Figma mockup.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stordock
Tags: block-theme, full-site-editing, one-column, custom-colors, editor-style, featured-images, translation-ready
*/


/* ==========================================================================
   Tokens (from the StorDock Figma mockup)
   ========================================================================== */

:root {
	--sd-black: #12141d;
	--sd-white: #fafafa;
	--sd-cloud: #f7f6f6;
	--sd-yellow: #ffc947;
	--sd-mint: #c2dddb;
	--sd-watercourse: #055f5b;
	--sd-text-soft: rgba(18, 20, 29, 0.7);
	--sd-text-soft-inv: rgba(250, 250, 250, 0.7);
	--sd-glass-bg: rgba(255, 255, 255, 0.1);
	--sd-glass-border: rgba(255, 255, 255, 0.5);
	--sd-shadow: 0 4px 60px rgba(0, 0, 0, 0.08);
	--sd-radius: 5px;
	--sd-section-y: clamp(4rem, 7.5vw, 7.5rem);
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	color: var(--sd-black);
}

img {
	display: block;
}

/* Anchor the overlay header to the page, not the window, so it stays in
   place below the WordPress admin bar when logged in. */
.wp-site-blocks {
	position: relative;
}

/* Sections butt up against each other, as in the mockup. */
.wp-site-blocks > *,
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

a {
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--sd-yellow);
	outline-offset: 3px;
}

/* Headings: Lexend Exa Bold with tight tracking (42px / 48px, -4px). */
h1, h2, h3, h4, h5, h6 {
	letter-spacing: -0.095em;
}

/* ==========================================================================
   Buttons (200 × 65, Inter Semi Bold 16, 5px radius)
   ========================================================================== */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 200px;
	min-height: 65px;
	padding: 16px 20px;
	border: 2px solid transparent;
	border-radius: var(--sd-radius);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wp-block-button:not([class*="is-style-"]) .wp-block-button__link {
	background-color: var(--sd-yellow);
	color: var(--sd-black);
}

.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--yellow-hover);
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-ghost .wp-block-button__link {
	background-color: transparent;
	color: var(--sd-white);
	border-color: rgba(250, 250, 250, 0.12);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	border-color: rgba(250, 250, 250, 0.45);
	background-color: rgba(250, 250, 250, 0.04);
}

.sd-btn-arrow .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	background: url("assets/images/icons/arrow-right.svg") center / 18px 18px no-repeat;
	transition: transform 0.2s ease;
}

.sd-btn-arrow .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.wp-block-button.is-style-mint .wp-block-button__link {
	min-width: 0;
	min-height: 56px;
	padding: 16px 20px;
	border-radius: 3px;
	background-color: var(--sd-mint);
	color: var(--sd-black);
	font-weight: 500;
}

.wp-block-button.is-style-mint .wp-block-button__link:hover {
	background-color: #d6e9e7;
}

.wp-block-button.is-style-dark .wp-block-button__link {
	min-width: 190px;
	min-height: 60px;
	background-color: var(--sd-black);
	color: #ffffff;
}

.wp-block-button.is-style-dark .wp-block-button__link:hover {
	background-color: #262a38;
	transform: translateY(-1px);
}

/* ==========================================================================
   Dark sections: #12141D + 40% noise + teal glows
   ========================================================================== */

.sd-dark {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--sd-black);
	color: #ffffff;
}

.sd-dark::before,
.sd-dark::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.sd-dark::before {
	background: url("assets/images/bg/noise.png") top left / 220px 220px repeat;
	opacity: 0.4;
}

/* Default glow pair: top-left blob + bottom-right blob. */
.sd-dark::after {
	background:
		url("assets/images/bg/glow-corner.svg") no-repeat calc(50% + 800px) calc(100% + 336px) / 800px 800px,
		url("assets/images/bg/glow-left.svg") no-repeat -583px -398px / 1087px 1087px;
}

.sd-dark > * {
	position: relative;
	z-index: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.wp-block-template-part.is-overlay {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 50;
}

.sd-header {
	position: relative;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: calc(1296px + 2 * var(--wp--style--root--padding-left, 2.5rem));
	margin: 0 auto;
	padding: 33px var(--wp--style--root--padding-right, 2.5rem) 24px;
	color: #ffffff;
}

/* On pages without the overlay hero, give the header its own dark band. */
.wp-block-template-part:not(.is-overlay):has(> .sd-header) {
	background-color: var(--sd-black);
}

.sd-skip-link {
	position: absolute;
	top: -120px;
	left: 1rem;
	z-index: 100;
	padding: 0.75rem 1.1rem;
	background-color: #ffffff;
	color: var(--sd-black);
	border-radius: var(--sd-radius);
	font-size: 0.9rem;
	text-decoration: none;
	transition: top 0.2s ease;
}

.sd-skip-link:focus {
	top: 1rem;
}

.sd-brand {
	display: flex;
	align-items: center;
}

.sd-brand .wp-block-image {
	margin: 0;
	line-height: 0;
}

.sd-header .sd-brand {
	gap: 0;
}

.sd-header .sd-logo {
	margin-left: 5px;
	margin-right: -4px;
}

.sd-header .sd-logo img {
	width: 68px;
	height: 61px;
}

.wp-block-site-title {
	margin: 0;
	line-height: 1;
}

.wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.sd-header__actions {
	margin: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* Product render runs from 45px below the top to 75px above the bottom
   (800px tall at desktop); the text block starts at 260px. */
.sd-hero {
	padding-top: 45px;
	padding-bottom: 75px;
}

.sd-hero::after {
	background:
		url("assets/images/bg/rings.svg") no-repeat calc(50% + 563px) 173px / 961px 961px,
		url("assets/images/bg/glow-hero-right.svg") no-repeat calc(50% + 342px) -192px / 1236px 1236px,
		url("assets/images/bg/glow-left.svg") no-repeat -544px -335px / 1087px 1087px;
}

/* Let the product render blend with the glow behind it (no new stacking layer). */
.sd-hero.sd-dark > * {
	z-index: auto;
}

.sd-hero__cols {
	align-items: flex-start;
	gap: clamp(2rem, 4vw, 3.75rem);
	margin: 0;
}

.sd-hero__content {
	padding-top: 215px;
}

.sd-hero__title {
	margin: 0;
	color: #ffffff;
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.118;
	letter-spacing: -0.103em;
}

.sd-hero__lead {
	margin: 35px 0 0;
	max-width: 640px;
	color: var(--sd-text-soft-inv);
	font-size: 1.25rem;
	line-height: 1.6;
	letter-spacing: -0.5px;
}

.sd-hero__actions {
	margin-top: clamp(3rem, 7vw, 109px);
}

.sd-hero__visual {
	display: flex;
	justify-content: flex-end;
}

/* Screen-blended render, anchored to the bottom. Figma lists 30% opacity, but
   browsers render that much fainter than Figma does; 60% matches its look. */
.sd-hero__product {
	width: 100%;
	max-width: 547px;
	margin: 0;
	aspect-ratio: 547 / 680;
	mix-blend-mode: screen;
	opacity: 0.6;
}

.sd-hero__product img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: bottom;
}

/* ==========================================================================
   Shared sections
   ========================================================================== */

.sd-section {
	padding-top: var(--sd-section-y);
	padding-bottom: var(--sd-section-y);
}

.sd-section__title {
	margin: 0 auto;
	max-width: 644px;
	font-size: var(--wp--preset--font-size--section);
	line-height: 1.143;
}

.sd-section__lead {
	margin: 18px auto 0;
	max-width: 600px;
	color: var(--sd-text-soft);
	font-size: 1.125rem;
	line-height: 1.667;
}

.sd-section--left .sd-section__title,
.sd-section--left .sd-section__lead {
	margin-right: 0;
	margin-left: 0;
}

.sd-dark .sd-section__title {
	color: #ffffff;
}

.sd-dark .sd-section__lead {
	color: var(--sd-text-soft-inv);
}

/* Stacked icon features (icon, title, text). */
.sd-feature-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 271px));
	gap: 24px;
	margin-top: 30px;
}

.sd-feature-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 30px;
}

.sd-feature-item .wp-block-image {
	flex: none;
	margin: 0;
}

.sd-feature-item img {
	width: 40px;
	height: 40px;
}

.sd-feature-item > .wp-block-group {
	margin: 0;
}

.sd-feature-item__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sd-black);
}

.sd-feature-item p:not(.sd-feature-item__title) {
	margin: 15px 0 0;
	color: var(--sd-text-soft);
	font-size: 1rem;
	line-height: 1.5;
}

/* ==========================================================================
   Features
   ========================================================================== */

.sd-features {
	padding-top: 107px;
	background-color: var(--sd-cloud);
}

.sd-features .sd-section__title {
	max-width: 604px;
}

.sd-features .sd-section__lead {
	margin-top: 25px;
	max-width: 598px;
}

.sd-card-grid {
	gap: 24px;
	margin-top: clamp(3rem, 6vw, 86px);
	align-items: stretch;
}

.sd-card {
	height: 100%;
	padding: 40px 50px;
	background-color: #ffffff;
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	text-align: center;
}

.sd-card__icon {
	margin: 0 auto;
}

.sd-card__icon img {
	width: 80px;
	height: 80px;
}

.sd-card__title {
	margin: 30px 0 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
}

.sd-card p {
	margin: 20px 0 0;
	color: var(--sd-text-soft);
	font-size: 1rem;
	line-height: 1.5;
}

/* ==========================================================================
   Workloads (photo + text)
   ========================================================================== */

.sd-workloads {
	padding-top: 120px;
	background-color: #ffffff;
}

.sd-workloads__cols {
	gap: clamp(2.5rem, 8vw, 120px);
}

.sd-workloads__media {
	position: relative;
}

.sd-workloads__media .wp-block-image:not(.sd-workloads__sparkle) {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 4.64px;
	aspect-ratio: 591 / 460;
}

.sd-workloads__media .wp-block-image:not(.sd-workloads__sparkle) img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 10% multiply overlay from the mockup. */
.sd-workloads__media .wp-block-image:not(.sd-workloads__sparkle)::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--sd-black);
	opacity: 0.1;
	mix-blend-mode: multiply;
}

.sd-workloads__sparkle {
	position: absolute;
	top: -35px;
	left: -43px;
	z-index: 2;
	margin: 0;
}

.sd-workloads__sparkle img {
	width: 105px;
	height: 105px;
}

.sd-workloads .sd-section__title,
.sd-workloads .sd-section__lead {
	max-width: 585px;
}

/* ==========================================================================
   Monitoring (dark)
   ========================================================================== */

.sd-monitoring::after {
	background:
		url("assets/images/bg/rings.svg") no-repeat calc(50% + 563px) 130px / 961px 961px,
		url("assets/images/bg/glow-corner-sm.svg") no-repeat calc(50% + 689px) calc(100% + 365px) / 759px 759px,
		url("assets/images/bg/glow-left.svg") no-repeat -583px -398px / 1087px 1087px;
}

.sd-monitoring__cols {
	gap: clamp(2rem, 5vw, 4rem);
}

.sd-monitoring .sd-section__title {
	max-width: 613px;
}

.sd-monitoring .sd-section__lead {
	max-width: 585px;
}

.sd-monitoring .sd-section__lead + .sd-section__lead {
	margin-top: 30px;
}

.sd-monitoring__actions {
	margin-top: 60px;
}

.sd-monitoring__visual {
	display: flex;
	justify-content: flex-end;
}

.sd-status-card {
	width: 100%;
	max-width: 450px;
	padding: 41px 35px;
	background-color: var(--sd-glass-bg);
	border: 0.5px solid var(--sd-glass-border);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	-webkit-backdrop-filter: blur(150px);
	backdrop-filter: blur(150px);
}

.sd-status-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 23px 0;
}

.sd-status-row:first-child {
	padding-top: 0;
}

.sd-status-row:last-child {
	padding-bottom: 0;
}

.sd-status-row + .sd-status-row {
	margin-top: 0;
	border-top: 1.27px solid rgba(255, 255, 255, 0.1);
}

.sd-status-row__icon {
	flex: none;
	margin: 0;
}

.sd-status-row__icon img {
	width: 48px;
	height: 48px;
}

.sd-status-row__meta {
	flex: 1;
	min-width: 0;
}

.sd-status-row__meta > * {
	margin: 0;
}

.sd-status-row__name {
	margin: 0;
	font-size: 1.11rem;
	font-weight: 500;
	line-height: 1.25;
	color: #ffffff;
}

.sd-status-row__sub {
	margin: 4px 0 0;
	font-size: 0.95rem;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.4);
}

.sd-status-row__value {
	margin: 0;
	font-size: 1.11rem;
	font-weight: 500;
	color: #ffffff;
	white-space: nowrap;
}

.sd-status-row__value.is-pos {
	color: var(--wp--preset--color--green);
}

.sd-status-row__value.is-neg {
	color: var(--wp--preset--color--red);
}

/* ==========================================================================
   Performance (chart + text)
   ========================================================================== */

.sd-performance {
	padding-top: 87px;
	background-color: #ffffff;
}

.sd-performance__cols {
	gap: clamp(2.5rem, 8vw, 117px);
}

.sd-performance__card {
	position: relative;
	max-width: 554px;
	padding: 57px 48px 48px 55px;
	background-color: #ffffff;
	border-radius: 5.6px;
	box-shadow: 0 4px 62px rgba(0, 0, 0, 0.08);
}

.sd-performance__card-title {
	margin: 0 0 30px;
	padding-left: 10%;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
	color: #030303;
	text-align: center;
}

.sd-performance__card .wp-block-image:not(.sd-performance__sparkle) {
	margin: 0;
}

.sd-performance__card .wp-block-image:not(.sd-performance__sparkle) img {
	width: 100%;
	height: auto;
}

.sd-performance__sparkle {
	position: absolute;
	top: -33px;
	right: -29px;
	z-index: 2;
	margin: 0 !important;
}

.sd-performance__sparkle img {
	width: 79px;
	height: 79px;
}

.sd-performance .sd-section__title {
	max-width: 625px;
}

.sd-performance .sd-section__lead {
	max-width: 625px;
}

/* ==========================================================================
   FAQ (dark)
   ========================================================================== */

.sd-faq::after {
	background:
		url("assets/images/bg/rings.svg") no-repeat calc(50% + 616px) 256px / 952px 952px,
		url("assets/images/bg/glow-corner.svg") no-repeat calc(50% + 800px) calc(100% + 400px) / 800px 800px,
		url("assets/images/bg/glow-left.svg") no-repeat -583px -398px / 1087px 1087px;
}

.sd-faq .sd-section__lead {
	max-width: 592px;
}

.sd-faq__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 50px;
}

.sd-faq__grid > * {
	margin: 0 !important;
}

.sd-faq__item {
	padding: 30px;
	background-color: var(--sd-glass-bg);
	border: 0.5px solid var(--sd-glass-border);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	-webkit-backdrop-filter: blur(150px);
	backdrop-filter: blur(150px);
}

.sd-faq__item summary {
	cursor: pointer;
	list-style: none;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	color: #ffffff;
}

.sd-faq__item summary::-webkit-details-marker {
	display: none;
}

.sd-faq__item summary::before {
	content: "Q. ";
}

.sd-faq__item p {
	margin: 25px 0 0;
	color: var(--sd-text-soft-inv);
	font-size: 1.125rem;
	line-height: 1.667;
}

/* ==========================================================================
   Partners
   ========================================================================== */

.sd-partners {
	background-color: #ffffff;
}

.sd-partners__cols {
	gap: clamp(2rem, 8vw, 150px);
}

.sd-partners__logos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 160px));
	column-gap: 30px;
	row-gap: 0;
	align-items: center;
}

.sd-partners__logos > * {
	margin: 0 !important;
}

.sd-partners__logos figure {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
	background-color: #ffffff;
	border-radius: 16px;
}

.sd-partners__logos img {
	width: 100%;
	max-width: 140px;
	height: auto;
}

.sd-partners .sd-section__title,
.sd-partners .sd-section__lead {
	max-width: 416px;
}

/* ==========================================================================
   Download / CTA
   ========================================================================== */

.sd-download {
	padding-top: 100px;
	padding-bottom: 100px;
	background-color: var(--sd-cloud);
}

.sd-download .sd-section__title {
	max-width: 646px;
}

.sd-download .sd-section__lead {
	max-width: 602px;
}

.sd-download__actions {
	gap: 23px;
}

/* ==========================================================================
   Footer: single centered copyright line on the light grey
   ========================================================================== */

.sd-footer {
	padding: 36px var(--wp--style--root--padding-right, 2.5rem);
	background-color: var(--sd-cloud);
}

.sd-footer .sd-copyright {
	margin: 0 auto;
	color: var(--sd-text-soft);
	font-size: 0.8125rem;
	line-height: 20px;
	text-align: center;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.sd-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.sd-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.sd-partners__logos {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 12px;
	}
}

@media (max-width: 781px) {
	/* Mobile: the product render becomes a background behind the text. */
	.sd-hero {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 680px;
		padding-top: 120px;
		padding-bottom: 80px;
	}

	.sd-hero.sd-dark > .sd-hero__cols {
		position: static;
		width: 100%;
	}

	.sd-hero__content {
		position: relative;
		z-index: 1;
		padding-top: 0;
	}

	.sd-hero__actions {
		margin-top: 2.5rem;
	}

	.sd-hero__visual {
		position: absolute;
		inset: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;
		pointer-events: none;
	}

	.sd-hero__product {
		width: min(115%, 560px);
		max-width: none;
		opacity: 0.45;
	}

	.sd-hero__visual,
	.sd-monitoring__visual {
		justify-content: center;
	}

	.sd-faq__grid {
		grid-template-columns: 1fr;
	}

	.sd-workloads__sparkle {
		top: -24px;
		left: -12px;
	}

	.sd-workloads__sparkle img {
		width: 72px;
		height: 72px;
	}

	.sd-performance__sparkle {
		right: -8px;
	}

	.sd-download__actions {
		justify-content: flex-start !important;
	}

}

@media (max-width: 600px) {
	.sd-header .sd-logo img {
		width: 50px;
		height: 45px;
	}

	.sd-header .wp-block-site-title {
		font-size: 1.35rem;
	}

	.sd-header .wp-block-button.is-style-mint .wp-block-button__link {
		min-height: 44px;
		padding: 10px 14px;
		font-size: 0.875rem;
	}

	.wp-block-button__link {
		min-width: 0;
	}

	.sd-feature-list {
		grid-template-columns: 1fr;
	}

	.sd-partners__logos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
