@layer design-system, reset, base, utilities, components, layout, overrides;
@import "https://unpkg.com/open-props" layer(design-system);

[x-cloak] {
  display: none !important;
}

@layer reset {
  *,
  ::before,
  ::after {
    box-sizing: border-box;
  }

  :where(:not(dialog)) {
    margin: 0;
  }

  :where(html) {
    -webkit-text-size-adjust: none;
    @media (prefers-reduced-motion: no-preference) {
      scroll-behavior: smooth;
    }
  }

  :where(body) {
    min-block-size: 100svb;
    -webkit-font-smoothing: antialiased;
  }
}

@layer base {
  html {
    --surface-1: white;
    --text-1: var(--stone-11);
    --primary: var(--indigo-7);
    --secondary-container: var(--gray-12);

    @media (prefers-color-scheme: dark) {
      --shadow-color: 220 3% 15%;
      --shadow-strength: 1%;
    }
  }
}

@layer layout {
  .section {
    position: relative;
    overflow: hidden;
    display: grid;
    min-block-size: max(400px, 100svb);
    padding-block: var(--size-8);
    padding-inline: var(--size-7);
    place-items: start center;

    @media (width < 1440px) {
      background-position: top 20% center;
      background-size: 150%;
    }

    @media (width < 768px) {
      background-position: top 20% center;
      background-size: 1000%;
    }
  }

  .section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("background-image.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(50px) brightness(1.1) opacity(0.8);
    transform: scale(1.1);
    z-index: -1;
  }

  .section-container {
    position: relative;
    z-index: 1;
    inline-size: min(1028px, 100%);
  }

  .section-wrapper {
    display: grid;
    place-items: center;
    gap: var(--size-7);
  }

  .section-header {
    display: grid;
    place-items: center;
    gap: var(--size-5);
  }

  .logo {
    font-size: var(--font-size-4);
    font-weight: var(--font-weight-7);
  }

  .hgroup {
    display: grid;
    place-items: center;
    gap: var(--size-1);
    text-align: center;
  }

  .headline-1 {
    font-size: var(--font-size-5);
  }

  .subheading {
    font-size: var(--font-size-3);
  }

  .cta-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .section-cards {
    display: grid;
    padding: 0;
    list-style: none;
    gap: 32px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;

    @media (width >= 460px) {
      grid-template-columns: repeat(2, minmax(200px, 1fr));
      gap: 20px;
    }

    @media (width >= 768px) {
      grid-template-columns: repeat(4, minmax(200px, 1fr));
      gap: 24px;
    }
  }

  .card-wrap {
    text-decoration: none;
    color: var(--gray-12);
    background: var(--card-bg);
    background-image: linear-gradient(
      170.96deg,
      oklch(100% 0 0 / 60%) 18.95%,
      oklch(100% 0 0 / 20%) 99.73%
    );
    display: grid;
    block-size: 100%;
    border-radius: 12px;
    padding: 16px;
    border-width: var(--border-size-1);
    border-color: white;
    border-style: solid;
    text-align: center;
    cursor: pointer;
    inline-size: 100%;
    transition: transform 0.2s ease-in-out;
  }

  .card-wrap:hover {
    transform: translateY(-5px);
  }

  .figure {
    display: grid;
    gap: var(--size-3);
    grid-template-rows: min-content 1fr;
  }

  .visual {
    background-image: var(--gradient-15);
    border-radius: 10px;
    block-size: 175px;
    overflow: clip;
  }

  .img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }

  .figcaption {
    font-weight: var(--font-weight-7);
    font-size: var(--font-size-2);
    text-align: center;
    margin-top: 12px;
  }

  .welcome-text {
    display: grid;
    place-items: center;
    gap: var(--size-2);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }

  .headline-2 {
    font-size: 2.5em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5em;
    background: linear-gradient(
      96deg,
      #d83b01 1.08%,
      #8f5ad4 35.97%,
      #0860c7 101%
    );
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -o-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 8s ease infinite;
  }

  @keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  .description {
    font-size: 1.2em;
    line-height: 1.5;
    max-width: 800px;
    margin: 1em auto;
    text-align: center;
    color: #4a4a4a;
    animation: fadeIn 0.8s ease-out;
  }

  .highlight {
    /* background: linear-gradient(120deg, #29d4e0 0%, #46d665 100%); */
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
  }

  .gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
  }

  .emoji-spark {
    display: inline-block;
    animation: sparkle 1.5s infinite;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes sparkle {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.2);
      opacity: 0.8;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
}

@layer components {
  .btn {
    --_state-layer-op: 0%;
    --_state-layer-bg: oklch(1 0 0 / var(--_state-layer-op));
    background-color: transparent;
    font-weight: var(--font-weight-6);
    font-size: var(--font-size-1);
    min-block-size: 40px;
    text-decoration: none;
    text-align: center;
    min-inline-size: max-content;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius-4);
    overflow: clip;
    isolation: isolate;
    -moz-user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    padding: 0;
    border-width: 0;
    min-width: 150px;

    &:hover {
      --_state-layer-op: 20%;
      box-shadow: var(--shadow-2);
    }

    &:is(:active, :disabled, :focus-within) {
      --_state-layer-op: 12%;
    }

    &.filled {
      background-color: var(--gray-12);
      color: white;
    }

    &.primary {
      --_state-layer-bg: oklch(0 0 0 / var(--_state-layer-op));
      background-color: var(--primary);
    }

    .state-layer {
      border-radius: inherit;
      padding-block: 12px;
      padding-inline: var(--size-3);
      inline-size: 100%;
      display: inline-grid;
      place-items: center;
      background-color: var(--_state-layer-bg);
      transition-property: background-color, box-shadow;
      transition-duration: 0.2s;
      transition-timing-function: var(--ease-3);
    }
  }
}

.tabs {
  display: flex;
  cursor: pointer;
  margin-bottom: 0.2em;
  gap: 0.2em;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 1.2em;
  border: 1px solid #ccc;
  border-radius: 1rem;
  background: #f4f4f4;
  transition: background 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.tab .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.tab:hover {
  background: #eaeaea;
}

.tab.active {
  background: white;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tab-content {
  display: none;
  border: 1px solid #ccc;
  padding: 1.2em;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background: white;
}

.tab-content.active {
  display: block;
}

#chat-module-wrapper {
  position: absolute; right: 0; top: 0;
}

.has-chat {
  padding-right: 350px;
}