/* ==========================================================================
   Nenory: global styles
   Design tokens from Figma "Nenory" (Desktop 1920 / Mobile 430).
   Block layouts live in /blocks/<slug>/style.css.
   ========================================================================== */

:root {
	/* Colors */
	--nn-bg: #1a1622;
	--nn-surface: #31244c;
	--nn-purple: #8b5cf6;
	--nn-purple-20: rgba(139, 92, 246, 0.2);
	--nn-green: #94ffb1;
	--nn-white: #ffffff;
	--nn-black: #000000;
	--nn-ink: #1a1622;
	--nn-line: rgba(255, 255, 255, 1);

	/* Type */
	--nn-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--nn-fs-body: 1rem;                                              /* 16 */
	--nn-fs-h1: clamp(2.5rem, 2.139rem + 1.342vw, 3.75rem);          /* 40 → 60 */
	--nn-fs-h2: clamp(1.875rem, 1.695rem + 0.671vw, 2.5rem);         /* 30 → 40 */
	--nn-fs-cta: clamp(1.875rem, 1.514rem + 1.342vw, 3.125rem);      /* 30 → 50 */
	--nn-fs-eyebrow: clamp(1.125rem, 1.089rem + 0.134vw, 1.25rem);   /* 18 → 20 */
	--nn-fs-lead: clamp(1rem, 0.856rem + 0.537vw, 1.5rem);           /* 16 → 24 */
	--nn-fs-card-title: 1.25rem;                                     /* 20 */
	--nn-lh: 1.5;
	--nn-lh-tight: 1.23;

	/* Layout */
	--nn-container: 1432px;
	--nn-gutter: clamp(20px, 3.2vw, 40px);
	--nn-section-py: clamp(40px, 2.4rem + 2.2vw, 76px);
	--nn-radius: 20px;
	--nn-radius-sm: 10px;
	--nn-pill: 100px;
	--nn-gap: 20px;

	/* Motion */
	--nn-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nn-dur: 0.25s;
}

/* Base ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--nn-bg);
	color: var(--nn-white);
	font-family: var(--nn-font);
	font-size: var(--nn-fs-body);
	line-height: var(--nn-lh);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--nn-green); outline-offset: 3px; border-radius: 4px; }

.nn-container {
	width: 100%;
	max-width: calc(var(--nn-container) + var(--nn-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--nn-gutter);
}

.nn-section { padding-block: var(--nn-section-py); position: relative; }

.nn-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--nn-green); color: var(--nn-ink); padding: 8px 16px;
}
.nn-skip:focus { left: 16px; top: 16px; }
.nn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nn-rte p + p { margin-top: 24px; }
.nn-rte strong, .nn-rte b { font-weight: 700; }

/* Plain pages (legal etc.) ---------------------------------------------- */
.nn-prose { max-width: calc(860px + var(--nn-gutter) * 2); padding-block: clamp(60px, 8vw, 120px) 80px; }
.nn-prose h1 { font-size: var(--nn-fs-h2); font-weight: 700; line-height: var(--nn-lh-tight); margin-bottom: 24px; }
.nn-prose h2 { margin: 40px 0 12px; color: var(--nn-green); font-size: 1.25rem; font-weight: 600; }
.nn-prose p + p { margin-top: 16px; }
.nn-prose ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.nn-prose li + li { margin-top: 6px; }
.nn-prose li::marker { color: var(--nn-purple); }
.nn-prose a { color: var(--nn-green); text-decoration: underline; text-underline-offset: 3px; }

/* Headings -------------------------------------------------------------- */
.nn-heading { display: flex; flex-direction: column; align-items: flex-start; }
.nn-heading--center { align-items: center; text-align: center; }
.nn-eyebrow {
	color: var(--nn-purple);
	font-size: var(--nn-fs-eyebrow);
	font-weight: 700;
	line-height: var(--nn-lh);
	text-transform: uppercase;
	padding-top: 10px;
	margin-bottom: -2px;
}
.nn-title {
	font-size: var(--nn-fs-h2);
	font-weight: 700;
	line-height: var(--nn-lh);
}
h1.nn-title { font-size: var(--nn-fs-h1); }
.nn-hl { color: var(--nn-green); }

/* Buttons --------------------------------------------------------------- */
.nn-buttons { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

.nn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: var(--nn-pill);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
	transition: background-color var(--nn-dur) ease, color var(--nn-dur) ease, box-shadow var(--nn-dur) ease, border-color var(--nn-dur) ease;
}
.nn-btn--primary { background: var(--nn-green); color: var(--nn-black); }
.nn-btn--purple { background: var(--nn-purple); color: var(--nn-white); }
.nn-btn--outline { border: 1px solid var(--nn-green); color: var(--nn-green); min-height: 46px; }
.nn-btn--lg { font-size: 1.125rem; min-height: 47px; color: var(--nn-ink); }
.nn-btn--block { width: 100%; }

/* Hover states (Figma "Hovers" frame): fills get a 20% black overlay, outline fills green. */
.nn-btn--primary:hover,
.nn-btn--purple:hover { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.2); }
.nn-btn--outline:hover { background: var(--nn-green); color: var(--nn-ink); }

/* Header ---------------------------------------------------------------- */
.nn-header { position: relative; z-index: 20; padding-top: 30px; }
.nn-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 53px; }

.nn-logo {
	display: inline-flex;
	align-items: baseline;
	font-size: clamp(1.73rem, 1.6rem + 0.45vw, 2.125rem); /* 27.7 → 34 */
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: var(--nn-white);
}
.nn-logo--sm { font-size: 1.72rem; }
.nn-logo__br { color: var(--nn-purple); }

.nn-nav { display: flex; align-items: center; gap: 32px; }
.nn-nav__list { display: flex; align-items: center; gap: 20px; }
.nn-nav__list a {
	display: block;
	padding: 10px;
	font-size: 1.125rem;
	line-height: 1.5;
	transition: color var(--nn-dur) ease;
}
.nn-nav__list a:hover,
.nn-nav__list .current-menu-item > a:not([href*="#"]) { color: var(--nn-green); font-weight: 500; }
.nn-nav__cta { font-size: 1.125rem; padding: 10px 16px; min-height: 47px; }

.nn-burger { display: none; width: 30px; height: 30px; align-items: center; justify-content: center; }
.nn-burger svg { width: 30px; height: 30px; }

/* Mobile menu (overlay) */
.nn-mobile-menu {
	position: fixed; inset: 0; z-index: 100;
	display: flex; flex-direction: column; gap: 40px;
	padding: 50px 20px 40px;
	background: var(--nn-bg);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.3s ease-out;
}
.nn-mobile-menu[hidden] { display: none; }
.nn-mobile-menu.is-open { transform: none; }
.nn-mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.nn-mobile-menu__list { display: flex; flex-direction: column; gap: 8px; }
.nn-mobile-menu__list a { display: block; padding: 10px 0; font-size: 1.5rem; font-weight: 500; }
.nn-mobile-menu__list a:hover { color: var(--nn-green); }
.nn-mobile-menu__cta { align-self: flex-start; }

.nn-mobile-menu__close,
.nn-modal__close { position: relative; width: 30px; height: 30px; }
.nn-mobile-menu__close span,
.nn-modal__close span {
	position: absolute; left: 4px; right: 4px; top: 50%; height: 2px;
	background: currentColor; border-radius: 2px;
}
.nn-mobile-menu__close span:first-child,
.nn-modal__close span:first-child { transform: rotate(45deg); }
.nn-mobile-menu__close span:last-child,
.nn-modal__close span:last-child { transform: rotate(-45deg); }
body.nn-locked { overflow: hidden; }

/* Footer ---------------------------------------------------------------- */
.nn-footer { padding-bottom: 8px; }
.nn-footer__inner {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
	padding-block: 16px;
	border-top: 1px solid var(--nn-line);
}
.nn-footer__list { display: flex; align-items: center; gap: 8px; }
.nn-footer__list li + li { display: flex; align-items: center; gap: 8px; }
.nn-footer__list li + li::before { content: ""; width: 1px; height: 25px; background: var(--nn-white); }
.nn-footer__list a,
.nn-footer__credit { display: block; padding: 10px; font-size: 0.875rem; line-height: 1.5; }
.nn-footer__list a:hover,
.nn-footer__credit:hover { color: var(--nn-green); }
.nn-footer__credit b { font-weight: 800; }

/* Cards ----------------------------------------------------------------- */
.nn-card {
	display: flex; flex-direction: column;
	padding: 30px 30px 40px;
	border-radius: var(--nn-radius);
}
.nn-card--purple { background: var(--nn-purple-20); }
.nn-card--outline { border: 1px solid var(--nn-green); }
.nn-card--green { background: var(--nn-green); color: var(--nn-ink); justify-content: flex-end; }
.nn-card__icon { width: 50px; height: 50px; flex: none; }
.nn-card__title { padding-block: 10px; font-size: var(--nn-fs-card-title); font-weight: 600; line-height: 1.5; }
.nn-card__title--purple { color: var(--nn-purple); }
.nn-card__text { font-size: 1rem; line-height: 1.5; }

/* Tags: [label] */
.nn-tag { display: inline-flex; align-items: center; padding-block: 10px; font-size: 1.125rem; line-height: 1.5; }
.nn-tag__br { color: var(--nn-purple); font-size: 1.5rem; font-weight: 700; line-height: 1.5; }

/* Mobile sliders (grid on desktop, scroll-snap row on mobile) ---------- */
.nn-dots { display: none; justify-content: center; gap: 4px; margin-top: 24px; }
.nn-dots button {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--nn-white);
	transition: background-color var(--nn-dur) ease, transform var(--nn-dur) ease;
}
.nn-dots button[aria-current="true"] { background: var(--nn-green); }

/* Contact modal --------------------------------------------------------- */
.nn-modal {
	width: min(380px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	padding: 62px 24px 50px;
	border: 0;
	border-radius: var(--nn-radius);
	background: var(--nn-surface);
	color: var(--nn-white);
	overflow-y: auto;
}
.nn-modal::backdrop { background: rgba(10, 8, 16, 0.7); backdrop-filter: blur(4px); }
.nn-modal[open] { animation: nn-modal-in 0.3s ease-out; }
.nn-modal__close { position: absolute; top: 16px; right: 16px; }
.nn-modal__title {
	padding: 10px; margin-bottom: 20px;
	text-align: center; font-size: 1.25rem; font-weight: 700; line-height: var(--nn-lh-tight);
}
.nn-modal__title .nn-hl { font-size: 1.5rem; }

.nn-form { display: flex; flex-direction: column; gap: 12px; }
.nn-form input[type="text"],
.nn-form input[type="email"],
.nn-form textarea {
	width: 100%;
	padding: 8px 16px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: var(--nn-white);
	color: var(--nn-black);
	font: inherit;
	line-height: 1.5;
}
.nn-form textarea { min-height: 164px; resize: vertical; }
.nn-form ::placeholder { color: var(--nn-black); opacity: 1; }
.nn-form__consent { display: flex; gap: 10px; align-items: flex-start; margin: 30px 0 44px; font-size: 0.75rem; line-height: 1.5; }
.nn-form__consent input {
	appearance: none; flex: none; width: 10px; height: 10px; margin: 4px 0 0;
	border: 1px solid var(--nn-white); border-radius: 1px; background: transparent;
}
.nn-form__consent input:checked { background: var(--nn-green); border-color: var(--nn-green); }
.nn-form__thanks { text-align: center; font-size: 1.125rem; }

/* Motion ---------------------------------------------------------------- */
@keyframes nn-modal-in { from { opacity: 0; transform: translateX(24px); } }

[data-nn-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--nn-ease), transform 0.8s var(--nn-ease); }
[data-nn-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-nn-reveal] { opacity: 1; transform: none; }

/* Visibility helpers ---------------------------------------------------- */
.nn-show-mobile { display: none !important; }

/* Tablet ---------------------------------------------------------------- */
@media (max-width: 1199px) {
	.nn-nav { gap: 16px; }
	.nn-nav__list { gap: 4px; }
}

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 991px) {
	.nn-header { padding-top: 50px; }
	.nn-header__inner { min-height: 44px; }
	.nn-nav { display: none; }
	.nn-burger { display: inline-flex; }
}

@media (max-width: 767px) {
	:root { --nn-gutter: 20px; }
	.nn-title { line-height: var(--nn-lh-tight); }
	.nn-eyebrow { padding-block: 16px 4px; margin-bottom: 0; }
	.nn-hide-mobile { display: none !important; }
	.nn-show-mobile { display: inline-flex !important; }

	.nn-footer__inner { flex-wrap: wrap; align-items: center; row-gap: 0; }
	.nn-footer__nav { order: 3; width: 100%; display: flex; justify-content: center; }

	/* Sliders become a horizontal scroll-snap row */
	.nn-slider { padding-inline: 0; }
	.nn-slider .nn-slider__track {
		display: flex !important;
		justify-content: flex-start;
		gap: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 25px;
		padding-inline: 25px;
		scrollbar-width: none;
	}
	.nn-slider .nn-slider__track::-webkit-scrollbar { display: none; }
	.nn-slider .nn-slider__slide { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; }
	.nn-slider .nn-dots { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
	html { scroll-behavior: auto; }
	[data-nn-reveal] { opacity: 1; transform: none; }
}
