/* ================================================================
   LISemus Design System — Main Stylesheet
   All styles are defined here. No inline styles exist in templates.
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* Brand colours */
  --clinical-blue:  #0284c7;
  --clinical-slate: #0f172a;
  --clinical-bg:    #f8fafc;
  --white:          #ffffff;

  /* Semantic / status */
  --color-orange-bg:     #fff7ed;
  --color-orange-text:   #c2410c;
  --color-orange-border: #fed7aa;
  --color-orange-dot:    #f97316;

  --color-green-bg:   #dcfce7;
  --color-green-text: #15803d;
  --color-blue-bg:    #dbeafe;
  --color-blue-text:  #1d4ed8;
  --color-blue-note-bg:     rgba(219, 234, 254, 0.5);
  --color-blue-note-border: #bfdbfe;
  --color-blue-note-icon:   #2563eb;
  --color-blue-note-text:   rgba(30, 27, 75, 0.8);

  /* Opacity aliases */
  --slate-70:  rgba(15, 23, 42, 0.70);
  --slate-60:  rgba(15, 23, 42, 0.60);
  --slate-40:  rgba(15, 23, 42, 0.40);
  --slate-10:  rgba(15, 23, 42, 0.10);
  --slate-05:  rgba(15, 23, 42, 0.05);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Border-radius scale */
  --radius-sm:  0.375rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-blue: 0 25px 50px -12px rgba(2, 132, 199, 0.10);
  --shadow-card: 0 10px 15px -3px rgba(2, 132, 199, 0.05),
                 0 4px  6px -2px rgba(0, 0, 0, 0.05);
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--clinical-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -5%, rgba(2, 132, 199, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 90%, rgba(2, 132, 199, 0.04) 0%, transparent 55%);
  color: var(--clinical-slate);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ----------------------------------------------------------------
   3. ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------------------
   4. NAVIGATION
   ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(2, 132, 199, 0.08);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .nav {
    padding: 0.75rem 2rem;
  }
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--clinical-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.nav__logo-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .nav__actions {
    gap: 1.5rem;
  }
}

.nav__phase-badge {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-orange-bg);
  color: var(--color-orange-text);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-orange-border);
}

@media (min-width: 640px) {
  .nav__phase-badge {
    display: flex;
  }
}

.nav__phase-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-orange-dot);
  border-radius: var(--radius-pill);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.nav__phase-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav__github-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-70);
  transition: color 0.15s ease;
}

.nav__github-link:hover {
  color: var(--clinical-blue);
}

/* ----------------------------------------------------------------
   5. HERO
   ---------------------------------------------------------------- */
.hero {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  animation: fadeUp 0.7s ease both;
}

@media (min-width: 768px) {
  .hero {
    padding: 3rem 2rem 2.5rem;
  }
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 55% 45%;
    gap: 3rem;
  }

  .hero__image-wrapper {
    height: 100%;
    min-height: 0;
  }

  .hero__image {
    aspect-ratio: unset;
    height: 100%;
  }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
  background-color: rgba(2, 132, 199, 0.07);
  border: 1px solid rgba(2, 132, 199, 0.18);
  color: var(--clinical-blue);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .hero__title {
    font-size: 4rem;
  }
}

.hero__title-highlight {
  color: var(--clinical-blue);
}

.hero__body {
  font-size: 1.0625rem;
  color: var(--slate-60);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 34rem;
  text-align: justify;
  text-wrap: pretty;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* ---- Shared button styles ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: var(--white);
  color: var(--clinical-slate);
  border-color: var(--slate-10);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn--secondary:hover {
  border-color: rgba(2, 132, 199, 0.35);
  color: var(--clinical-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.hero__image-wrapper {
  position: relative;
  animation: fadeUp 0.7s 0.15s ease both;
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  inset: -1.5rem -1rem;
  background: radial-gradient(ellipse 80% 70% at 55% 50%,
    rgba(2, 132, 199, 0.14) 0%,
    rgba(147, 197, 253, 0.09) 50%,
    transparent 72%);
  z-index: -1;
  border-radius: var(--radius-3xl);
  pointer-events: none;
}

.hero__image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 5%;
  right: 5%;
  height: 3rem;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(2, 132, 199, 0.18) 0%,
    transparent 70%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(145deg, #e0f2fe 0%, #f0f9ff 55%, #ede9fe 100%);
  border-radius: var(--radius-3xl);
  box-shadow:
    0 30px 60px -12px rgba(2, 132, 199, 0.18),
    0 10px 25px -5px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  outline: 1px solid rgba(2, 132, 199, 0.10);
}

/* ----------------------------------------------------------------
   6. OVERVIEW
   ---------------------------------------------------------------- */
.overview {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--slate-05);
}

@media (min-width: 768px) {
  .overview {
    padding: 2.5rem 2rem 3.5rem;
  }
}

.overview__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .overview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.overview__grid > div {
  background: var(--white);
  border: 1px solid var(--slate-05);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.overview__grid > div:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.overview__card-number {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--clinical-blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.overview__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.overview__card-body {
  color: var(--slate-70);
  line-height: 1.75;
  text-align: justify;
}

/* ----------------------------------------------------------------
   7. DOCUMENTATION ROADMAP
   ---------------------------------------------------------------- */
.roadmap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

@media (min-width: 768px) {
  .roadmap {
    padding: 3.5rem 2rem;
  }
}

.roadmap__header {
  margin-bottom: 2rem;
}

.roadmap__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .roadmap__title {
    font-size: 2.5rem;
  }
}

.roadmap__subtitle {
  color: var(--slate-60);
}

.roadmap__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .roadmap__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .roadmap__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.roadmap__card {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.roadmap__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.roadmap__card--baselined {
  border: 1px solid var(--slate-10);
  border-left: 4px solid var(--clinical-blue);
}

.roadmap__card--in-progress {
  border: 1px dashed var(--slate-05);
}

.roadmap__card-id {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--clinical-blue);
  margin-bottom: 0.5rem;
}

.roadmap__card-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.roadmap__card-desc {
  font-size: 0.75rem;
  color: var(--slate-60);
  line-height: 1.4;
  margin-bottom: 1rem;
  text-align: justify;
}

.roadmap__badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roadmap__badge--baselined {
  background-color: var(--color-green-bg);
  color: var(--color-green-text);
}

.roadmap__badge--in-progress {
  background-color: var(--color-blue-bg);
  color: var(--color-blue-text);
}

.roadmap__card-ref {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--slate-40);
}

.roadmap__note {
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--color-blue-note-bg);
  border: 1px solid var(--color-blue-note-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.roadmap__note-icon {
  color: var(--color-blue-note-icon);
  font-weight: 700;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.roadmap__note-text {
  font-size: 0.875rem;
  color: var(--color-blue-note-text);
  line-height: 1.75;
  text-align: justify;
}

/* ----------------------------------------------------------------
   8. MVP STRATEGY
   ---------------------------------------------------------------- */
.mvp {
  background-color: var(--white);
  border-top: 1px solid var(--slate-05);
  border-bottom: 1px solid var(--slate-05);
  padding: 3.5rem 1.5rem;
}

@media (min-width: 768px) {
  .mvp {
    padding: 4rem 2rem;
  }
}

.mvp__inner {
  max-width: 80rem;
  margin: 0 auto;
}

.mvp__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .mvp__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.mvp__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .mvp__title {
    font-size: 2.5rem;
  }
}

.mvp__body {
  color: var(--slate-60);
  line-height: 1.75;
  margin-bottom: 2rem;
  text-align: justify;
}

.mvp__phases {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mvp__phase {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  transition: background-color 0.15s ease;
}

.mvp__phase:hover {
  background-color: var(--clinical-bg);
}

.mvp__phase-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mvp__phase-icon--active {
  background-color: rgba(2, 132, 199, 0.10);
}

.mvp__phase-icon--future {
  background-color: var(--slate-05);
}

.mvp__phase-number {
  font-weight: 700;
}

.mvp__phase-number--active {
  color: var(--clinical-blue);
}

.mvp__phase-number--future {
  color: var(--slate-40);
}

.mvp__phase-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.mvp__phase-body {
  font-size: 0.875rem;
  color: var(--slate-60);
  text-align: justify;
}

.mvp__features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mvp__feature-card {
  background-color: var(--clinical-bg);
  border: 1px solid var(--slate-05);
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mvp__feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  background-color: var(--white);
}

.mvp__feature-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clinical-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.mvp__feature-body {
  font-size: 0.875rem;
  color: var(--slate-70);
}

/* ----------------------------------------------------------------
   9. FOOTER
   ---------------------------------------------------------------- */
.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--slate-05);
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 2rem;
  }
}

.footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--clinical-slate);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.footer__tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-60);
}

.footer__tagline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.footer__tagline-link:hover {
  color: var(--clinical-blue);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer__links {
    gap: 2rem;
  }
}

.footer__link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-40);
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: var(--clinical-blue);
}
