/* Text utilities */

.text-gradient {
  background: linear-gradient(90deg, var(--status-resolved), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.accent-text {
  color: var(--accent);
  font-weight: 700;
}

/* Wordmark */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}

.wordmark em {
  color: var(--blue-400);
  font-style: normal;
}

.wordmark-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 10px 24px -8px rgba(36, 86, 201, 0.55);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255, 255, 255, 0.25);
}

.btn-card {
  background: transparent;
  border-color: var(--border);
  color: var(--accent);
  padding: 10px 22px;
  font-size: 14px;
}

.btn-card:hover {
  background: var(--blue-50);
  border-color: var(--accent);
  box-shadow: 0 8px 18px -10px rgba(36, 86, 201, 0.4);
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }
}

/* App cards */

.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  border-color: var(--blue-300);
  box-shadow: 0 16px 36px -16px rgba(13, 34, 68, 0.3);
  transform: translateY(-3px);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.app-card-icon svg {
  width: 20px;
  height: 20px;
}

.app-card:hover .app-card-icon {
  transform: scale(1.1);
}

.app-card-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.app-card-status.is-live {
  background: #e4f7ec;
  color: #1a8a4c;
}

.app-card-status.is-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a8a4c;
  animation: status-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes status-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(61, 220, 132, 0);
  }
}

.app-card-status.is-soon {
  background: var(--blue-100);
  color: var(--text-secondary);
}

.app-card h3 {
  font-size: 22px;
}

.app-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .app-card-status.is-live::before {
    animation: none;
  }
}

/* Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 32px;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact {
  font-size: 14px;
  line-height: 1.8;
}

.footer-contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
