@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital@0;1&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");

/*
* https://coolors.co/22223b-4a4e69-9a8c98-c9ada7-f2e9e4-f8f4f1
*/
:root {
  --bg-primary: #22223b;
  --bg-secondary: #4a4e69;
  --text-primary: #f2e9e4;
  --text-secondary: #9a8c98;
  --text-tertiary: #c9ada7;
  --link-primary: #f8f4f1;
}

* {
  font-family: "IBM Plex Sans";
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  background-attachment: fixed;
  color: var(--text-primary);
}

a {
  color: var(--link-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color;
}

a:hover {
  border-bottom: 1px solid #3498db;
}

.homepage-header {
  padding-top: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: none;
  gap: 1rem;
}

.homepage-header:hover {
  color: var(--text-secondary);
  border-bottom: none;
}

.hero {
  margin: 0 auto;
  max-width: 900px;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: left;
  gap: 3rem;
}

.hero img {
  animation: slideInFromRight 0.5s ease-out;
}

.hero .logo-text {
  animation: slideInFromLeft 0.5s ease-out;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero .ai-lul {
  font-size: 4rem;
  background-image: -webkit-linear-gradient(92deg, #f35626, #feab3a);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hue 10s infinite linear;
}

@keyframes hue {
  from {
    -webkit-filter: hue-rotate(0deg);
  }
  to {
    -webkit-filter: hue-rotate(-360deg);
  }
}

.hero .logo-text a {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: black;
  background: white;
  border: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.hero .logo-text a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-bottom: none;
}

.is-da-best {
  text-align: center;
  padding-bottom: 2rem;
}

.call-to-action {
  margin: auto;
  max-width: 900px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  animation: fadeInUp 0.5s ease-out;

  a {
    width: auto;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    color: var(--link-primary);
    background: var(--bg-secondary);
    border: none;
    border-radius: 10px;
    transition: all 0.1s ease-in;
  }

  a:hover {
    box-shadow:
      rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
      rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(30px);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.features {
  margin: auto;
  max-width: 1200px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeInUp 0.5s ease-out;
}

.feature-card {
  padding: 5px;
  size: 100%;
}

.gif {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.gif img {
  width: 100%;
  display: block;
  border-radius: 20px;
  transition: transform 0.2s ease;
  /* transform-origin: left center; */
}

.gif:hover img {
  /* transform: scale(1.05);*/
}

.cli-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(74, 78, 105, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.25rem;
  padding-top: 1rem;
  border-radius: 20px 0 20px 0;
  max-width: 500px;
  color: var(--text-primary);

  h3 {
    color: var(--text-tertiary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
  }

  ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

  code {
    color: var(--text-tertiary);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 1.5rem;
    gap: 2rem;
    text-align: center;
  }

  .hero img {
    max-width: 180px;
    width: 50%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .is-da-best {
    padding: 1rem 1.5rem 2rem;
    font-size: 1rem;
  }

  .call-to-action {
    flex-wrap: wrap;
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .call-to-action a {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 140px;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .features {
    padding: 1rem;
    margin: 2rem auto;
  }

  .feature-card {
    padding: 0;
  }

  .gif {
    border-radius: 0px;
  }

  .gif img {
    border-radius: 0;
    transform: scale(1.5);
    transform-origin: top left;
    overflow: hidden;
  }

  .cli-overlay {
    position: static;
    max-width: 100%;
    border-radius: 0 0 12px 12px;
    padding: 0.5rem;
  }

  .cli-overlay h3 {
    font-size: 1.25rem;
  }

  .cli-overlay p,
  .cli-overlay ul {
    font-size: 0.85rem;
  }
}
