/*
 TABLE OF CONTENTS
 1. Variables & Reset
 2. Base & Typography
 3. Splash Animation
 4. Container & Content
 5. Cards
 6. Responsive
 7. Keyframes
 8. Reduced Motion
*/

:root {
  --bg: #ffffff;
  --foreground: #1e293b;
  --card: #ffffff;
  --muted-fg: #64748b;
  --border: #e2e8f0;
  --card-border-radius: 24px;
  --spacing-unit: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.logo-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.logo-splash.splash-out {
  opacity: 0;
  transition: opacity 0.3s ease 0s;
  animation: splashGone 0.01s linear 0.35s both;
}

.splash-logo {
  width: clamp(180px, 32vw, 320px);
  height: auto;
  object-fit: contain;
  transform-origin: center center;
}

.container {
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: calc(4 * var(--spacing-unit));
  margin: 0 auto;
}

.brand-logo {
  width: clamp(120px, 15vw, 200px);
  margin: 0 auto calc(5 * var(--spacing-unit)) auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.01s;
}

.brand-logo.logo-visible {
  opacity: 1;
}

.content-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.content-item.item-in {
  opacity: 1;
  transform: translateY(0);
}

.main-heading {
  font-size: clamp(48px, 8vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: calc(6 * var(--spacing-unit));
  letter-spacing: -1.5px;
  color: #000000;
}

.heading-black,
.all-black-heading,
.all-black-heading span,
.main-heading,
.main-heading span {
  color: #000000 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.cards-container {
  display: flex;
  gap: calc(2.5 * var(--spacing-unit));
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(240px, 28vw, 280px);
  padding: calc(4 * var(--spacing-unit)) calc(2.5 * var(--spacing-unit));
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--card-border-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 28px;
  margin-bottom: var(--spacing-unit);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: var(--spacing-unit);
}

.card-subtitle {
  font-size: 14px;
  color: var(--muted-fg);
  margin-bottom: calc(2 * var(--spacing-unit));
  line-height: 1.4;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-top: calc(2 * var(--spacing-unit));
}

.card:hover .card-link {
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

@media (min-width: 769px) {
  .cards-container {
    max-width: 680px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: calc(2.5 * var(--spacing-unit)) calc(5 * var(--spacing-unit));
  }

  .cards-container {
    gap: calc(1.5 * var(--spacing-unit));
  }

  .main-heading {
    font-size: clamp(32px, 9vw, 48px);
    margin-bottom: calc(4 * var(--spacing-unit));
  }

  .card {
    width: 90%;
    max-width: 260px;
    padding: calc(1.5 * var(--spacing-unit));
  }

  .card-subtitle {
    margin-bottom: var(--spacing-unit);
  }
}

@keyframes splashGone {
  to {
    display: none;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
