/* =========================================================
   Alana · CSAlanaLang
   Soft futuristic glass · rose / blanc féminin
   ========================================================= */

:root {
  /* Blush spectrum — softer, more feminine */
  --blush-50: #fff9fb;
  --blush-100: #fff0f5;
  --blush-200: #ffe0eb;
  --blush-300: #ffc2d6;
  --blush-400: #f9a0bc;
  --blush-500: #ef7aa0;
  --blush-600: #e05584;
  --blush-700: #c93d6c;

  --pearl: #fffbfd;
  --ink: #4a2a38;
  --ink-soft: #7a5366;
  --ink-muted: #b08a9c;
  --white: #ffffff;

  /* Glass tokens */
  --glass: rgba(255, 255, 255, 0.48);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --glass-soft: rgba(255, 250, 252, 0.35);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(239, 122, 160, 0.18);
  --glass-shadow: 0 8px 32px rgba(233, 85, 132, 0.08),
    0 2px 8px rgba(74, 42, 56, 0.04);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(239, 122, 160, 0.06);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --radius-lg: 1.75rem;
  --radius-md: 1.15rem;
  --radius-sm: 0.85rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--blush-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  position: relative;
  color: pink;
  text-decoration: none;

  transition:
      color 0.25s var(--ease),
      opacity 0.25s var(--ease);
}

a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;

  opacity: 0;
  transform: scaleX(0.8);

  transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease);
}

a:not(.btn):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

em {
  font-style: italic;
}

ul {
  list-style: none;
}

/* ---- Soft futuristic atmosphere ---- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(255, 194, 214, 0.55), transparent 60%),
    radial-gradient(ellipse 45% 40% at 95% 30%, rgba(255, 224, 235, 0.7), transparent 55%),
    radial-gradient(ellipse 40% 35% at 5% 70%, rgba(255, 208, 224, 0.5), transparent 50%),
    radial-gradient(ellipse 55% 40% at 70% 95%, rgba(249, 160, 188, 0.22), transparent 55%),
    linear-gradient(165deg, var(--blush-50) 0%, var(--pearl) 40%, var(--blush-100) 100%);
  pointer-events: none;
}

.page-bg::before,
.page-bg::after {
    animation: none;
    filter: none;
}

.page-bg::before {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  top: 18%;
  left: 8%;
  background: radial-gradient(circle, rgba(255, 194, 214, 0.9), rgba(255, 224, 235, 0.2) 70%);
}

.page-bg::after {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  bottom: 12%;
  right: 10%;
  background: radial-gradient(circle, rgba(239, 122, 160, 0.35), rgba(255, 240, 245, 0.15) 70%);
  animation-delay: -7s;
  animation-direction: reverse;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

/* ---- Glass utility ---- */

.glass {
  background: var(--glass);
  /*backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);*/
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.glass--strong {
  background: var(--glass-strong);
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 clamp(0.85rem, 3vw, 2rem);
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  /*backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);*/
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: opacity 0.25s var(--ease);
}

.brand:hover {
  opacity: 0.78;
}

.brand__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;

    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.brand__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand__mark {
  width: 1.35rem;
  height: 1.35rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand__full {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.logo-full-img {
  width: 10rem;
  height: auto;
}

.hr-line {
  width: 100%;
  height: 2px;
  border: none;
  background-color: #8f8f8f;
  margin: 1rem 0;
  opacity: 0.3;
  border-radius: 100px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blush-700);
  background: rgba(255, 255, 255, 0.55);
}

/* ---- Main ---- */

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---- Hero ---- */

.hero {
  flex: 1;
  min-height: calc(100vh - var(--header-h) - 6.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1rem, 4vw, 2.5rem);
  position: relative;
}

.hero__panel {
  position: relative;
  width: min(100%, 40rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 194, 214, 0.25), transparent 60%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  width: 70%;
  height: 55%;
  top: 10%;
  left: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 160, 188, 0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-breathe 8s ease-in-out infinite;
  filter: blur(20px);
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 12vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.65rem;
  background: linear-gradient(180deg, var(--ink) 40%, var(--blush-600) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--blush-600);
  margin-bottom: 1rem;
}

.hero__lead {
  max-width: 26rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero__lead em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.hero__meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.65rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(145deg, var(--blush-400) 0%, var(--blush-600) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 28px rgba(224, 85, 132, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 14px 34px rgba(224, 85, 132, 0.36);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  color: var(--blush-700);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

.btn__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

/* ---- Page intro (downloads, etc.) ---- */

.page-intro {
  width: min(100%, 44rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1rem, 4vw, 2rem) 1.5rem;
  text-align: center;
}

.page-intro__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush-600);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-edge);
  margin-bottom: 1rem;
}

.page-intro__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.page-intro__text {
  max-width: 28rem;
  margin: 0 auto;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---- Downloads ---- */

.downloads {
  width: min(100%, 44rem);
  margin: 0 auto;
  padding: 0.5rem clamp(1rem, 4vw, 2rem) clamp(3rem, 7vh, 5rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.release {
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.release::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.4) 0%, transparent 45%);
  pointer-events: none;
}

.release__header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.release__version {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.release__date {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.release__notes {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush-700);
  background: rgba(255, 224, 235, 0.75);
  border: 1px solid var(--glass-edge);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.release__builds {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.build {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--glass-inset);
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.build:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(233, 85, 132, 0.1), var(--glass-inset);
}

.build__platform {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.build__meta {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.build__action {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blush-600);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.build__action svg {
  width: 0.85rem;
  height: 0.85rem;
}

.downloads__empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-weight: 300;
}

/* ---- Error pages ---- */

.error-page {
  flex: 1;
  min-height: calc(100vh - var(--header-h) - 6.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1rem, 4vw, 2.5rem);
}

.error-page__panel {
  width: min(100%, 28rem);
  padding: clamp(2.25rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-page__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 45%);
  pointer-events: none;
}

.error-page__code {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 7rem);
  line-height: 1;
  color: var(--blush-300);
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.error-page__title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.error-page__text {
  position: relative;
  max-width: 22rem;
  margin: 0 auto 1.75rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.error-page__cta {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ---- Footer ---- */

.site-footer {
  margin: 0 clamp(0.85rem, 3vw, 2rem) 1rem;
  padding: 1.15rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ---- Page enter (CSS keyframes — no JS required) ---- */

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-bg {
  animation: fade-in 1s var(--ease) both;
}

.site-header {
  animation: fade-down 0.9s var(--ease) 0.06s both;
}

.site-footer {
  animation: fade-down 0.9s var(--ease) 0.2s both;
}

/* Staggered content on first paint */
[data-reveal-child] {
  animation: fade-down 0.85s var(--ease) both;
  animation-delay: calc(0.18s + var(--reveal-delay, 0s));
}

/* Scroll-triggered blocks below the fold (opt-in via JS) */
.js [data-reveal-scroll] [data-reveal-child] {
  opacity: 0;
  transform: translateY(-0.85rem);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal-scroll].is-visible [data-reveal-child] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__glow,
  .page-bg::before,
  .page-bg::after,
  .page-bg,
  .site-header,
  .site-footer,
  .btn--primary:hover,
  .btn--ghost:hover,
  .build:hover {
    transform: none;
  }
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .release__builds {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 0.5rem;
    margin-inline: 0.5rem;
    padding-inline: 0.75rem;
  }

  .brand__full {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    margin-inline: 0.5rem;
  }

  .logo-frame {
    width: 5.25rem;
    height: 5.25rem;
  }

  .nav-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }
}
