/* The game's look (ui/ui.gd): parchment, brown ink, gold and the green button; Fredoka for titles, Nunito for
   text. The fonts are served from here (no third party sees the visitors). */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
	--parchment: #fbf3e4;
	--parchment-dark: #f4e8d0;
	--line: #e6d3ad;
	--ink: #4a2e1c;
	--ink-deep: #2b190d;
	--ink-soft: #85664d;
	--gold: #f0aa3c;
	--gold-light: #ffe2a0;
	--gold-dark: #b8721e;
	--green: #6cbf5a;
	--green-dark: #3f8a35;
	--cream: #fffaf0;
	--shadow-soft: 0 1px 2px rgba(74, 46, 28, 0.06), 0 12px 32px -12px rgba(74, 46, 28, 0.22);
	--shadow-deep: 0 2px 4px rgba(74, 46, 28, 0.06), 0 40px 80px -32px rgba(74, 46, 28, 0.5);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	/* A fine paper grain laid over the parchment. */
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.29 0 0 0 0 0.18 0 0 0 0 0.11 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

body {
	margin: 0;
	background: var(--grain), var(--parchment);
	color: var(--ink);
	font: 500 18px/1.7 "Nunito", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 16px; text-wrap: pretty; }
a { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--gold-light); color: var(--ink-deep); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 32px; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 800 13px "Nunito", sans-serif;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.6; }

/* Navigation: clear over the hero, parchment glass once the page scrolls (site.js sets .scrolled). */
.nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 10;
	padding: 18px 0;
	transition: background 0.4s, box-shadow 0.4s, padding 0.4s var(--ease);
}
.nav .wrap { display: flex; align-items: center; gap: 32px; }
.nav.scrolled, .nav.solid {
	background: rgba(251, 243, 228, 0.8);
	backdrop-filter: blur(18px) saturate(1.5);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	box-shadow: 0 1px 0 rgba(230, 211, 173, 0.8);
	padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 600 21px "Fredoka", sans-serif; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(74, 46, 28, 0.55); }
.nav-links { display: flex; gap: 32px; margin-left: auto; align-items: center; }
.nav-links a:not(.button) { position: relative; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; }
.nav-links a:not(.button)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	border-radius: 2px;
	background: var(--gold);
	transform: scaleX(0);
	transition: transform 0.35s var(--ease);
}
.nav-links a:not(.button):hover::after { transform: scaleX(1); }

/* Buttons: the game's raised green button. */
.button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 17px 32px;
	border-radius: 999px;
	font: 600 19px "Fredoka", sans-serif;
	letter-spacing: 0.01em;
	text-decoration: none;
	color: var(--cream);
	background: linear-gradient(180deg, #82d36e 0%, var(--green) 55%, #5fb04e 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 0 var(--green-dark), 0 18px 30px -12px rgba(63, 138, 53, 0.7);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.button:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 0 var(--green-dark), 0 24px 36px -12px rgba(63, 138, 53, 0.75); }
.button:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 0 var(--green-dark), 0 8px 14px -8px rgba(63, 138, 53, 0.7); }
.button.small { padding: 10px 22px; font-size: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 var(--green-dark), 0 10px 20px -10px rgba(63, 138, 53, 0.7); }
.button.store {
	background: rgba(43, 25, 13, 0.88);
	color: var(--cream);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 30px -14px rgba(43, 25, 13, 0.8);
	cursor: default;
	backdrop-filter: blur(6px);
}
.button.store:hover { transform: none; }
.button.store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.button.store small { font: 800 11px "Nunito", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.button svg { width: 22px; height: 22px; flex: none; }

/* Hero: the farm at golden hour, the game's own title over it, pollen drifting in the light. */
.hero {
	position: relative;
	min-height: 100svh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 140px 0 200px;
	isolation: isolate;
	overflow: hidden;
}
.hero-art {
	position: absolute;
	inset: -8% 0 0;
	z-index: -2;
	background: url("/img/heroi.webp") center 72% / cover no-repeat;
	transform: scale(1.04);
	will-change: transform;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 52% 42% at 50% 46%, rgba(255, 244, 214, 0.78) 0%, rgba(255, 244, 214, 0.35) 55%, transparent 100%),
		radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(74, 46, 28, 0.28) 100%),
		linear-gradient(180deg, rgba(251, 243, 228, 0.55) 0%, transparent 22%, transparent 72%, var(--parchment) 100%);
}
.hero-logo { width: min(720px, 86vw); margin: 0 auto; filter: drop-shadow(0 22px 34px rgba(74, 46, 28, 0.32)); }
.hero-line {
	font: 700 clamp(18px, 2.2vw, 22px)/1.55 "Nunito", sans-serif;
	color: var(--ink-deep);
	max-width: 560px;
	margin: 26px auto 40px;
	text-shadow: 0 0 18px rgba(255, 246, 225, 0.95), 0 0 2px rgba(255, 246, 225, 0.9);
}
.cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.pollen { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pollen i {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 248, 210, 1), rgba(255, 226, 160, 0));
	animation: drift 14s linear infinite;
	opacity: 0;
}
@keyframes drift {
	0% { transform: translate3d(0, 0, 0); opacity: 0; }
	15% { opacity: 0.9; }
	85% { opacity: 0.7; }
	100% { transform: translate3d(60px, -220px, 0); opacity: 0; }
}
.scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 132px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 2px solid rgba(74, 46, 28, 0.45);
	border-radius: 14px;
}
.scroll-cue::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 8px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: rgba(74, 46, 28, 0.6);
	animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* The three promises: one quiet card resting on the hero's lower edge. */
.promises {
	position: relative;
	z-index: 2;
	margin: -96px auto 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--cream);
	border-radius: 28px;
	box-shadow: var(--shadow-deep);
}
.promise { display: flex; align-items: center; gap: 18px; padding: 30px 34px; }
.promise + .promise { box-shadow: inset 1px 0 0 var(--line); }
.promise img { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 8px rgba(74, 46, 28, 0.2)); }
.promise b { display: block; font: 600 22px/1.2 "Fredoka", sans-serif; color: var(--ink); }
.promise span { color: var(--ink-soft); font-weight: 700; font-size: 15px; line-height: 1.4; }

/* Features: numbered chapters, a large shot beside its text, sides alternating. */
.features { padding-top: 160px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 110px; }
.section-head h2 { font-size: clamp(38px, 5.2vw, 62px); }
.section-head p { color: var(--ink-soft); font-size: 20px; max-width: 560px; margin-inline: auto; }

.feature {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 80px;
	align-items: center;
	margin-bottom: 150px;
}
.feature:nth-child(even) { grid-template-columns: 5fr 7fr; }
.feature:nth-child(even) .shot { order: 2; }
.feature .number {
	display: block;
	font: 600 15px "Fredoka", sans-serif;
	color: var(--gold-dark);
	letter-spacing: 0.1em;
	margin-bottom: 14px;
}
.feature .number b { font-size: 46px; font-weight: 500; letter-spacing: -0.02em; color: #e2bf7e; margin-right: 12px; vertical-align: -6px; }
.feature h3 { font-size: clamp(34px, 3.8vw, 48px); }
.feature p { color: var(--ink-soft); font-size: 19px; }

.items { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.items li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 8px;
	background: var(--cream);
	border-radius: 999px;
	box-shadow: var(--shadow-soft);
	font-weight: 800;
	font-size: 15px;
	color: var(--ink);
}
.items img { width: 30px; height: 30px; object-fit: contain; }

.shot {
	position: relative;
	margin: 0;
	border-radius: 30px;
	overflow: hidden;
	box-shadow: var(--shadow-deep);
}
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.35); pointer-events: none; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.035); }

/* More: three cards on a darker parchment. */
.more { padding: 140px 0; background: var(--grain), linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 18%, var(--parchment-dark) 82%, var(--parchment) 100%); }
.more .section-head { margin-bottom: 64px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
	background: var(--cream);
	border-radius: 26px;
	padding: 40px 34px 36px;
	box-shadow: var(--shadow-soft);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.card .icon {
	width: 60px;
	height: 60px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	background: linear-gradient(160deg, #fff1c9, var(--gold-light));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 16px -8px rgba(184, 114, 30, 0.6);
	margin-bottom: 24px;
}
.card .icon img { width: 36px; height: 36px; object-fit: contain; }
.card .icon svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 25px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 17px; }

/* The last call: the farm in warm light, the title again. */
.finale {
	position: relative;
	margin: 40px 32px 0;
	border-radius: 44px;
	overflow: hidden;
	text-align: center;
	padding: 130px 24px 120px;
	isolation: isolate;
	box-shadow: var(--shadow-deep);
}
.finale > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; z-index: -2; }
.finale::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 55% 60% at 50% 50%, rgba(255, 240, 205, 0.86), rgba(255, 240, 205, 0.4) 70%, rgba(255, 240, 205, 0.15)),
		linear-gradient(180deg, rgba(240, 170, 60, 0.12), rgba(74, 46, 28, 0.25));
}
.finale .logo { width: min(420px, 70vw); margin: 0 auto 20px; filter: drop-shadow(0 16px 26px rgba(74, 46, 28, 0.3)); }
.finale h2 { font-size: clamp(34px, 4.6vw, 54px); color: var(--ink-deep); }
.finale p { font-size: 19px; color: var(--ink); font-weight: 700; margin-bottom: 36px; }

footer {
	margin-top: 120px;
	background: var(--ink-deep);
	color: rgba(255, 250, 240, 0.65);
	padding: 72px 0 56px;
	font-size: 15px;
}
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
footer .brand { color: var(--cream); margin-right: auto; }
footer a { color: rgba(255, 250, 240, 0.8); text-decoration: none; font-weight: 800; }
footer a:hover { color: var(--gold-light); }
footer .fine { flex-basis: 100%; margin-top: 28px; padding-top: 28px; box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Text pages (privacy, account deletion). */
.doc { max-width: 760px; padding-top: 150px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(42px, 6vw, 60px); }
.doc h2 { font-size: 27px; margin-top: 56px; }
.doc .updated { color: var(--ink-soft); font-weight: 700; }
.doc li { margin-bottom: 10px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc + footer { margin-top: 80px; }

/* Things rise into place as they come into view (site.js); never when motion is reduced. */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.pollen, .scroll-cue::after { display: none; }
}

@media (max-width: 900px) {
	.wrap { padding-inline: 20px; }
	.nav-links a:not(.button) { display: none; }
	.hero { padding: 120px 0 170px; }
	.scroll-cue { display: none; }
	.promises { grid-template-columns: 1fr; margin-top: -110px; }
	.promise { padding: 22px 26px; }
	.promise + .promise { box-shadow: inset 0 1px 0 var(--line); }
	.features { padding-top: 110px; }
	.section-head { margin-bottom: 72px; }
	.feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 36px; margin-bottom: 100px; }
	.feature:nth-child(even) .shot { order: 0; }
	.more { padding: 100px 0; }
	.cards { grid-template-columns: 1fr; }
	.finale { margin: 24px 16px 0; padding: 90px 20px; border-radius: 30px; }
	footer { margin-top: 80px; }
}
