/* SPDX-License-Identifier: AGPL-3.0-or-later
 * Commercial license available
 * © Concepts 1996–2026 Miroslav Šotek. All rights reserved.
 * © Code 2020–2026 Miroslav Šotek. All rights reserved.
 * ORCID: 0009-0009-3560-0851
 * Contact: www.anulum.li | protoscience@anulum.li
 * ANULUM — homepage presentation */
.homepage {
  --text: #e2e8f0;
  --text-dim: #b0bacb;
  --text-faint: #929db0;
  --glass: linear-gradient(135deg, rgba(26, 39, 61, .26), rgba(12, 20, 35, .10));
  --glass-hover: rgba(36, 51, 76, .32);
  background: radial-gradient(ellipse at 40% 0, #10192b 0, #070b14 55%, #04060c 100%);
  background-attachment: fixed;
}
.homepage #bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.homepage .container { max-width: 1220px; }
.homepage .hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: "copy identity";
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 3.5rem;
}
.homepage .hero picture { grid-area: identity; }
.homepage .logo { width: 100%; max-width: 480px; }
.hero-content { grid-area: copy; }
.hero-eyebrow, .experiment-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.homepage .tagline {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 4.3vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-transform: none;
  color: #f1f5fc;
}
.homepage .subtagline { text-align: left; font-size: .95rem; margin-top: 1rem; }
.hero-description { margin-top: 1rem; max-width: 48ch; color: var(--text-dim); font-size: 1.05rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1rem;
  border: 1px solid rgba(158, 181, 228, .28);
  border-radius: 9px;
  color: var(--text);
  background: rgba(18, 29, 47, .28);
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-action.primary { color: #eef9ff; border-color: #57b6e4; background: rgba(24, 102, 143, .5); }
.hero-action:hover { background: rgba(50, 81, 118, .4); border-color: #8fa6cf; transform: translateY(-2px); }
.hero-action.primary:hover { background: rgba(27, 116, 160, .65); border-color: #89d6ff; }
.homepage .stats, .homepage .freshness { text-align: left; }
.homepage .stats { margin-top: 1.6rem; font-size: .74rem; }
.homepage .hero-start { margin-top: .9rem; font-size: .79rem; line-height: 1.7; }
.featured-experiments { margin: 0 0 3.5rem; }
.featured-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.featured-heading h2 { margin-top: .45rem; font-size: 1.85rem; font-weight: 500; letter-spacing: -.025em; }
.featured-heading p { color: var(--text-dim); font-size: .95rem; line-height: 1.6; margin-top: .45rem; }
.featured-heading .experiment-eyebrow { color: var(--blue); font-size: .72rem; }
.featured-heading > a { color: var(--blue); white-space: nowrap; font-size: .86rem; padding: .75rem 0; }
.experiment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.experiment-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(159, 184, 224, .23);
  border-radius: 14px;
  background: var(--glass);
  transition: border-color .2s, background .2s;
}
.experiment-card:hover, .experiment-card:focus-within { border-color: rgba(126, 196, 239, .65); }
.experiment-preview { display: block; width: 100%; height: 190px; object-fit: contain; background: rgba(5, 10, 19, .28); padding: .7rem; border-bottom: 1px solid rgba(159, 184, 224, .16); }
.experiment-copy { display: flex; flex-direction: column; flex: 1; gap: .75rem; padding: 1.25rem; }
.experiment-kind { font-size: .68rem; letter-spacing: .05em; color: var(--purple); }
.experiment-card h3 { font-size: 1.1rem; font-weight: 500; line-height: 1.35; }
.experiment-card p { font-size: .9rem; line-height: 1.6; color: var(--text-dim); }
.experiment-link { color: var(--blue); font-size: .9rem; font-weight: 500; text-decoration: none; margin-top: auto; padding: .65rem 0; }
.experiment-link:hover { text-decoration: underline; }
.homepage .portal, .homepage .progress-card, .homepage .anulum-additions, .homepage .anulum-addition-grid a { background: var(--glass); border-color: rgba(159, 184, 224, .2); }
.homepage .portal:hover, .homepage .progress-card:hover { background: var(--glass-hover); }
.homepage .portal-desc { font-size: .9rem; line-height: 1.65; }
.homepage .progress-copy { font-size: .88rem; line-height: 1.6; }
.homepage .section-nav { background: rgba(9, 16, 29, .52); border-color: rgba(159, 184, 224, .25); }
.homepage .anulum-discovery-button { position: static; margin: 1rem 0 1.5rem; }
.homepage .hero-action:focus-visible, .homepage .experiment-link:focus-visible, .featured-heading > a:focus-visible { outline: 3px solid #8cdbff; outline-offset: 4px; }
@supports (backdrop-filter: blur(2px)) {
  .homepage .portal, .homepage .progress-card, .experiment-card, .homepage .anulum-additions { backdrop-filter: blur(2px); }
}
html.light .homepage { --text: #1e293b; --text-dim: #46536b; --text-faint: #59657a; --glass: linear-gradient(135deg, rgba(255, 255, 255, .50), rgba(244, 248, 255, .28)); --glass-hover: rgba(224, 234, 249, .6); background: radial-gradient(ellipse at 40% 0, #e5edfa 0, #f4f7fc 60%, #f9fbff 100%); }
html.light .homepage #bg-particles { opacity: .65; }
html.light .homepage .tagline { color: #182638; }
html.light .homepage .hero-eyebrow, html.light .homepage .experiment-eyebrow, html.light .homepage .experiment-link, html.light .homepage .featured-heading > a { color: #135d86; }
html.light .homepage .experiment-kind { color: #6844a2; }
html.light .homepage .hero-action { color: #263b55; background: rgba(255, 255, 255, .45); border-color: #7186a2; }
html.light .homepage .hero-action.primary { color: #fff; background: #176a94; border-color: #176a94; }
html.light .homepage .hero-action:hover { background: #d9e6f6; }
html.light .homepage .hero-action.primary:hover { background: #125578; }
html.light .homepage .section-nav { background: rgba(248, 251, 255, .74); }
html.light .homepage .experiment-preview { background: #0d1117; }
@media (max-width: 900px) {
  .homepage .hero { gap: 1.5rem; grid-template-columns: 1.3fr 1fr; }
  .hero-actions { gap: .5rem; }
  .hero-action { font-size: .8rem; padding: .65rem .8rem; }
  .experiment-grid { gap: .75rem; }
  .experiment-copy { padding: 1rem; }
}
@media (max-width: 700px) {
  .homepage .container { padding: 0 1.25rem; }
  .homepage .hero { grid-template-columns: 1fr; grid-template-areas: "identity" "copy"; gap: 1.5rem; padding: 3.5rem 0 2.5rem; }
  .homepage .hero picture { justify-self: center; width: min(290px, 80%); }
  .homepage .hero-content { text-align: center; }
  .homepage .tagline { font-size: clamp(2rem, 8.2vw, 2.75rem); }
  .homepage .subtagline, .homepage .stats, .homepage .freshness { text-align: center; }
  .hero-description { font-size: .98rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-action { font-size: .9rem; }
  .featured-heading { align-items: start; flex-direction: column; gap: .3rem; }
  .featured-heading h2 { font-size: 1.65rem; }
  .featured-experiments { margin-bottom: 2.5rem; }
  .experiment-grid { grid-template-columns: 1fr; }
  .experiment-preview { height: 200px; }
  .homepage .portal, .homepage .progress-card { padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .homepage #bg-particles { display: block; }
  .homepage .hero-action:hover { transform: none; }
}
@media print {
  .homepage { background: #fff; color: #000; }
  .homepage #bg-particles { display: none; }
  .homepage .hero { display: block; padding: 1rem 0; }
  .homepage .logo { max-width: 220px; }
  .experiment-grid { display: block; }
  .experiment-card { margin-bottom: 1rem; break-inside: avoid; background: #fff; }
  .experiment-preview { display: none; }
  .homepage .tagline, .hero-description, .experiment-card p, .experiment-kind { color: #000; }
}
