/* Comal ISD Digital Learning × Clear Touch — from Brand Guide */
:root {
  --comal-navy: #221e59;
  --comal-red: #b92634;
  --off-white: #f7f6f3;
  --neutral-gray: #6b7480;
  --body: #222222;
  --font: Calibri, Carlito, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--body);
  background: var(--off-white);
  overflow-x: hidden;
}

/* Soft navy/red atmosphere on off-white (logo stays on light ground) */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 85% 65% at 12% 18%,
      rgba(34, 30, 89, 0.09) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 55% at 92% 80%,
      rgba(185, 38, 52, 0.07) 0%,
      transparent 50%
    ),
    linear-gradient(160deg, #f7f6f3 0%, #f3f1ef 45%, #efeef8 100%);
  animation: wash-breathe 16s ease-in-out infinite alternate;
}

.atmosphere__mesh {
  position: absolute;
  inset: -8%;
  background-image:
    linear-gradient(rgba(34, 30, 89, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 30, 89, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(
    ellipse 65% 55% at 50% 42%,
    black 15%,
    transparent 72%
  );
  animation: mesh-drift 26s linear infinite;
}

.atmosphere__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--comal-navy) 0%,
    var(--comal-navy) 62%,
    var(--comal-red) 62%,
    var(--comal-red) 100%
  );
  transform-origin: left center;
  animation: accent-draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hero — one composition; logo is the brand signal */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 26rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 2rem);
}

.brand {
  display: block;
  width: min(100%, 20rem);
  min-width: 180px;
  height: auto;
  margin: 0 0 clamp(1.25rem, 3.5vw, 1.75rem);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0 0 0.65rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--comal-navy);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--neutral-gray);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hub {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hub__group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.hub__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--comal-navy);
}

.hub__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 0.25rem;
  border: 2px solid transparent;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.hub__btn--primary {
  color: #fff;
  background: var(--comal-red);
  border-color: var(--comal-red);
}

.hub__btn--primary:hover,
.hub__btn--primary:focus-visible {
  background: #9e1f2c;
  border-color: #9e1f2c;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(185, 38, 52, 0.22);
  outline: none;
}

.hub__btn--secondary {
  color: var(--comal-navy);
  background: transparent;
  border-color: var(--comal-navy);
}

.hub__btn--secondary:hover,
.hub__btn--secondary:focus-visible {
  background: rgba(34, 30, 89, 0.06);
  transform: translateY(-2px);
  outline: none;
}

.hub__btn:active {
  transform: translateY(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wash-breathe {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.88;
  }
}

@keyframes mesh-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(22px, 22px);
  }
}

@keyframes accent-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__wash,
  .atmosphere__mesh,
  .atmosphere__accent,
  .brand,
  .headline,
  .lede,
  .hub {
    animation: none;
  }

  .atmosphere__accent {
    transform: none;
  }

  .hub__btn {
    transition: none;
  }
}
