/* =====================================================================
   Proiekt.Landing — design tokens
   Brand palette per proiekt.ro STYLE.md.
   ===================================================================== */
:root {
  /* Official brand tokens (STYLE.md) */
  --proiekt-azure-light: #0a8ffc;   /* upper-left split */
  --proiekt-azure-primary: #0072f2; /* main body */
  --proiekt-ink: #0a0e14;           /* "proiekt" */
  --proiekt-ink-soft: #262b33;      /* ".ro" */

  /* Semantic — Brand */
  --color-brand: var(--proiekt-azure-primary);
  --color-brand-light: var(--proiekt-azure-light);
  --color-brand-soft: #e6f2ff;

  /* Semantic — Ink / text */
  --color-ink: var(--proiekt-ink);
  --color-ink-muted: var(--proiekt-ink-soft);
  --color-text-subtle: #5b6573;

  /* Surfaces */
  --color-surface: #ffffff;
  --color-surface-alt: #f6f8fb;
  --color-border: #e8ecf2;

  /* Actions */
  --color-action: #0a0e14;
  --color-action-hover: #1c2330;
  --color-on-action: #ffffff;
  --color-focus: #258cfb;

  /* Typography */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container-max: 1120px;
  --radius-pill: 999px;
  --radius-md: 14px;
}

/* =====================================================================
   Base
   ===================================================================== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  color: var(--color-brand-light);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =====================================================================
   Navigation
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
}

.site-nav__logo {
  height: 31.2px;
  width: auto;
  display: block;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav__link:hover {
  color: var(--color-ink);
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  background-color: var(--color-action);
  color: var(--color-on-action);
}

.btn--primary:hover {
  background-color: var(--color-action-hover);
  color: var(--color-on-action);
  transform: translateY(-1px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn__icon {
  width: 18px;
  height: 18px;
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}

/* Scattered confetti decoration in brand colors (antigravity-inspired) */
.hero__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, var(--color-brand) 50%, transparent 51%),
    radial-gradient(circle, var(--color-brand-light) 50%, transparent 51%),
    radial-gradient(circle, var(--color-ink-muted) 50%, transparent 51%),
    radial-gradient(circle, var(--color-brand) 50%, transparent 51%),
    radial-gradient(circle, var(--color-brand-light) 50%, transparent 51%);
  background-size: 3px 3px, 4px 4px, 2px 2px, 3px 3px, 4px 4px;
  background-position:
    8% 22%, 18% 64%, 27% 38%, 12% 82%, 33% 14%;
  background-repeat: no-repeat;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(
    120% 90% at 50% 40%,
    transparent 40%,
    #000 78%
  );
  mask-image: radial-gradient(120% 90% at 50% 40%, transparent 40%, #000 78%);
}

/* Right-side denser confetti cluster, mirroring the reference layout */
.hero__confetti::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--color-brand) 50%, transparent 51%),
    radial-gradient(circle, var(--color-brand-light) 50%, transparent 51%),
    radial-gradient(circle, var(--color-ink-muted) 50%, transparent 51%),
    radial-gradient(circle, var(--color-brand) 50%, transparent 51%),
    radial-gradient(circle, var(--color-brand-light) 50%, transparent 51%),
    radial-gradient(circle, var(--color-brand) 50%, transparent 51%);
  background-size: 4px 4px, 3px 3px, 2px 2px, 5px 5px, 3px 3px, 4px 4px;
  background-position:
    72% 18%, 84% 56%, 91% 30%, 68% 74%, 96% 44%, 79% 88%;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding-block: 96px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.hero__eyebrow img {
  height: 26.4px;
  width: auto;
}

.hero__title {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

/* Gradient shimmer / sweep headline.
   Ink-colored text with a brand-azure highlight band that sweeps across,
   then rests before sweeping again. */
.hero__title--shimmer {
  background-image: linear-gradient(
    110deg,
    var(--color-ink) 0%,
    var(--color-ink) 38%,
    var(--color-brand-light) 47%,
    var(--color-brand) 50%,
    var(--color-brand-light) 53%,
    var(--color-ink) 62%,
    var(--color-ink) 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hero-shimmer 5s ease-in-out infinite;
}

@keyframes hero-shimmer {
  0% { background-position: 120% 0; }
  45%, 100% { background-position: -60% 0; }
}

/* Subtitle and actions ease in on load, just after the headline sweep starts */
.hero__subtitle,
.hero__actions {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__subtitle { animation-delay: 0.5s; }
.hero__actions { animation-delay: 0.66s; }

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title--shimmer {
    animation: none;
    color: var(--color-ink);
    -webkit-text-fill-color: var(--color-ink);
  }
  .hero__subtitle,
  .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero__subtitle {
  margin: 28px auto 0;
  max-width: 52ch;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--color-text-subtle);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface-alt);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px;
  color: var(--color-text-subtle);
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  gap: 24px;
}

.site-footer__links a {
  color: var(--color-text-subtle);
}

.site-footer__links a:hover {
  color: var(--color-ink);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 640px) {
  .site-nav__links {
    gap: 20px;
  }

  .site-nav__link {
    display: none;
  }

  .hero__inner {
    padding-block: 64px;
  }
}
