/*
Theme Name: Trojka Landing
Description: Simple "under construction" landing page for trojka.hr.
Version: 1.2.1
Text Domain: trojka-landing
*/

:root {
	--bg: #0a0b0d;
	--fg: #f2efe8;
	--muted: #15171b;
	--muted-fg: #9a958b;
	--border: #1e2126;
	--accent: #f5a524;
	--font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body { height: 100%; }

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
}

.landing {
	position: relative;
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0 24px;
}

.landing__grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(30, 33, 38, .6) 1px, transparent 1px),
		linear-gradient(90deg, rgba(30, 33, 38, .6) 1px, transparent 1px);
	background-size: 48px 48px;
}

.landing__beam {
	position: absolute;
	top: 0;
	right: 120px;
	width: 1px;
	height: 100%;
	opacity: .25;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent 0%, var(--accent) 40%, transparent 100%);
}

.landing__content {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	max-width: 42rem;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
}

.landing__logo {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--fg);
	text-decoration: none;
}

.landing__logo span { color: var(--accent); }

.landing__line {
	width: 4rem;
	height: 1px;
	background: var(--accent);
	transform-origin: left;
	animation: grow .6s .2s ease-out both;
}

.landing h1 {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.landing p {
	max-width: 32rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--muted-fg);
}

.landing__cta {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	padding: .75rem 1.5rem .75rem 1.25rem;
	border-left: 4px solid var(--accent);
	background: var(--muted);
	color: var(--fg);
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .15s, color .15s;
}

.landing__cta svg { width: 1rem; height: 1rem; transition: transform .15s; }
.landing__cta:hover { background: var(--accent); color: var(--bg); }
.landing__cta:hover svg { transform: translateX(4px); }
.landing__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.landing__corner {
	position: absolute;
	right: 2rem;
	bottom: 2rem;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(154, 149, 139, .4);
}

.fade { animation: fade .5s ease-out both; }
.fade--1 { animation-delay: .1s; }
.fade--2 { animation-delay: .3s; }
.fade--3 { animation-delay: .45s; }
.fade--4 { animation-delay: .6s; }

@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 768px) {
	.landing h1 { font-size: 3.75rem; }
	.landing p { font-size: 1.125rem; }
}

@media (max-width: 600px) {
	.landing__beam { right: 40px; }
	.landing__corner { right: 1.5rem; bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fade, .landing__line { animation: none; }
}
