/*
Theme Name: Mendurance Technologies
Theme URI: https://mendurancetech.com
Author: Mendurance Technologies LLC
Description: One-page dark theme for Mendurance Technologies.
Version: 1.0.0
Text Domain: mendurance
*/

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.18);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 35%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(255, 255, 255, 0.03), transparent 50%);
  z-index: 0;
}

main,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
  gap: 1.5rem;
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.35rem);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 5.5vw, 3.35rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
}

.hero__mark {
  width: clamp(2.4rem, 7vw, 3.75rem);
  height: auto;
  color: var(--fg);
  flex-shrink: 0;
}

.mark-line {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw 1.4s ease forwards;
}

.mark-line:nth-child(n + 1) {
  animation-delay: 0.45s;
}
.mark-line:nth-child(n + 8) {
  animation-delay: 0.7s;
}
.mark-line:nth-child(n + 15) {
  animation-delay: 0.95s;
}

.hero__tagline {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  color: var(--muted);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--fg);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

.hero__cta:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.about {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(4rem, 10vw, 7rem);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.about h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.about p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer__domain {
  letter-spacing: 0.04em;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 560px) {
  .hero__name {
    white-space: normal;
    max-width: 12ch;
  }

  .hero__brand {
    flex-direction: column;
    gap: 1rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  .hero__tagline,
  .hero__cta,
  .about,
  .mark-line {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
