/*
Theme Name: ucloud.digital
Theme URI: https://ucloud.digital
Author: ucloud
Description: Umbrella placeholder landing for ucloud.digital. Presents the overall ucloud product family in plain language with links to each product, light/dark themes, and a brand look taken from ucx.tools / u-ai.cloud. Fully editable from wp-admin and ready to grow into the full multilingual theme.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ucloud-digital
*/

/* ---------- design tokens ---------- */
:root {
	--bg: #f8fafe;
	--bg-soft: #eef2fb;
	--surface: #ffffff;
	--fg: #0c0c25;
	--muted: #5b6480;
	--accent: #0050ff;
	--accent-ink: #ffffff;
	--accent-soft: #e6eaf5;
	--border: #e3e8f3;
	--shadow: 0 1px 2px rgba(12, 12, 37, 0.04), 0 12px 32px rgba(12, 12, 37, 0.06);
	--ok: #16a34a;
	--beta: #d97706;
	--soon: #64748b;
	--radius: 16px;
}
:root[data-theme="dark"] {
	--bg: #0b1020;
	--bg-soft: #0f1630;
	--surface: #141c3a;
	--fg: #eef2ff;
	--muted: #9aa6c7;
	--accent: #5b8cff;
	--accent-ink: #0b1020;
	--accent-soft: rgba(91, 140, 255, 0.14);
	--border: rgba(255, 255, 255, 0.10);
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45);
	--ok: #34d399;
	--beta: #fbbf24;
	--soon: #94a3b8;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0b1020;
		--bg-soft: #0f1630;
		--surface: #141c3a;
		--fg: #eef2ff;
		--muted: #9aa6c7;
		--accent: #5b8cff;
		--accent-ink: #0b1020;
		--accent-soft: rgba(91, 140, 255, 0.14);
		--border: rgba(255, 255, 255, 0.10);
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45);
		--ok: #34d399;
		--beta: #fbbf24;
		--soon: #94a3b8;
	}
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	min-height: 100vh;
	color: var(--fg);
	background: var(--bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.ucd-container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.ucd-top {
	display: flex; align-items: center; justify-content: space-between;
	padding: 22px 0;
}
.ucd-brand { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.ucd-brand .dot { color: var(--accent); }
.ucd-top-actions { display: flex; align-items: center; gap: 10px; }
.ucd-theme-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 10px;
	border: 1px solid var(--border); background: var(--surface); color: var(--fg);
	cursor: pointer; font-size: 18px; line-height: 1;
}
.ucd-theme-toggle:hover { border-color: var(--accent); }
.ucd-lang { display: flex; gap: 2px; }
.ucd-lang span {
	font-size: 13px; color: var(--muted); padding: 6px 9px; border-radius: 8px; user-select: none;
}
.ucd-lang span.is-active { color: var(--fg); background: var(--accent-soft); font-weight: 600; }

/* ---------- hero ---------- */
.ucd-hero { padding: 48px 0 20px; text-align: center; }
.ucd-badge {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
	color: var(--accent); background: var(--accent-soft);
	border-radius: 999px; padding: 7px 14px; margin-bottom: 22px;
}
.ucd-dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ucd-pulse 2s infinite; }
@keyframes ucd-pulse {
	0% { box-shadow: 0 0 0 0 rgba(0, 80, 255, 0.45); }
	70% { box-shadow: 0 0 0 10px rgba(0, 80, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 80, 255, 0); }
}
.ucd-hero h1 {
	font-size: clamp(32px, 6vw, 56px); font-weight: 800; letter-spacing: -0.03em;
	line-height: 1.05; margin: 0 0 18px;
}
.ucd-hero h1 .accent { color: var(--accent); }
.ucd-hero p {
	font-size: clamp(16px, 2.2vw, 20px); color: var(--muted);
	max-width: 620px; margin: 0 auto 10px;
}

/* ---------- products grid ---------- */
.ucd-section-head { margin: 46px 0 18px; }
.ucd-section-head h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0; font-weight: 700; }
.ucd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .ucd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ucd-grid { grid-template-columns: 1fr; } }

.ucd-card {
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 22px; box-shadow: var(--shadow);
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.ucd-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.ucd-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.ucd-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; flex: 1; }

.ucd-status {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 600; margin-bottom: 14px;
}
.ucd-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ucd-status.ok { color: var(--ok); }
.ucd-status.beta { color: var(--beta); }
.ucd-status.soon { color: var(--soon); }

.ucd-link {
	display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
	text-decoration: none; font-weight: 600; font-size: 15px; color: var(--accent);
}
.ucd-link .arrow { transition: transform 0.15s ease; }
.ucd-card:hover .ucd-link .arrow { transform: translateX(3px); }
.ucd-link.disabled { color: var(--soon); pointer-events: none; }

/* ---------- footer ---------- */
.ucd-footer {
	margin-top: 60px; border-top: 1px solid var(--border);
	padding: 28px 0 40px; color: var(--muted); font-size: 14px;
}
.ucd-footer .ucd-container { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.ucd-footer a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--border); }
.ucd-footer a:hover { border-color: var(--accent); }
.ucd-contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (prefers-reduced-motion: reduce) {
	.ucd-dot-pulse { animation: none; }
	.ucd-card { transition: none; }
}
