// Landing page styles

// =============================================================================
// Layout
// =============================================================================

.landing {
  width: 100%;
}

// =============================================================================
// Hero Section
// =============================================================================

.vanta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;

  @media (max-width: 996px) {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4rem 1.5rem;
  }

  &__container {
    position: relative;
    z-index: 1;
    max-width: 600px;

    @media (max-width: 996px) {
      max-width: 100%;
      margin: 0 auto;
    }
  }

  &__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--ifm-heading-color);

    @media (max-width: 996px) {
      font-size: 2.5rem;
    }
  }

  &__subtitle {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ifm-color-primary-light);
    margin-bottom: 1.5rem;
  }

  &__description {
    font-size: 1.125rem;
    color: var(--ifm-font-color-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  &__buttons {
    display: flex;
    gap: 1rem;

    @media (max-width: 996px) {
      justify-content: center;
    }

    @media (max-width: 480px) {
      flex-direction: column;
    }
  }

  &__terminal {
    position: relative;
    z-index: 1;

    @media (max-width: 996px) {
      max-width: 500px;
      margin: 0 auto;
    }
  }
}

// Terminal component
.terminal {
  background: var(--ifm-background-color);
  border: 1px solid var(--ifm-global-border-color);
  border-radius: 8px;
  overflow: hidden;

  &__header {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--ifm-global-border-color);
  }

  &__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;

    &--red { background: #ff5f56; }
    &--yellow { background: #ffbd2e; }
    &--green { background: #27c93f; }
  }

  &__content {
    padding: 1.5rem;
    margin: 0;
    font-family: 'DM Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
  }

  &__prompt {
    color: var(--ifm-color-primary);
  }

  &__comment {
    color: #44515e;
  }

  &__label {
    color: var(--ifm-color-primary-light);
  }

  &__result {
    color: var(--ifm-heading-color);
    font-weight: 600;
  }
}

// =============================================================================
// Feature Pillars
// =============================================================================

.pillars {
  padding: 5rem 2rem;
  background: rgba(0, 0, 0, 0.1);

  &__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }
}

.pillar {
  text-align: center;
  padding: 2rem;

  &__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
  }

  &__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ifm-heading-color);
    margin-bottom: 1rem;
  }

  &__description {
    color: var(--ifm-font-color-secondary);
    line-height: 1.6;
  }
}

// =============================================================================
// Code Examples
// =============================================================================

.code-examples {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;

  &__container {
    text-align: center;
  }

  &__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ifm-heading-color);
    margin-bottom: 0.5rem;
  }

  &__subtitle {
    color: var(--ifm-font-color-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  &__tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  &__tab {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--ifm-global-border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--ifm-font-color-base);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;

    &:hover {
      border-color: var(--ifm-color-primary);
    }

    &--active {
      background: var(--ifm-color-primary);
      border-color: var(--ifm-color-primary);
      color: #fff;
    }
  }

  &__content {
    text-align: left;
  }

  &__code {
    background: var(--ifm-background-color);
    border: 1px solid var(--ifm-global-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0;
    font-family: 'DM Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
  }
}

// =============================================================================
// Module Grid
// =============================================================================

.modules {
  padding: 5rem 2rem;
  background: rgba(0, 0, 0, 0.1);

  &__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }

  &__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ifm-heading-color);
    margin-bottom: 0.5rem;
  }

  &__subtitle {
    color: var(--ifm-font-color-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
  }

  &__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;

    @media (max-width: 996px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 600px) {
      grid-template-columns: 1fr;
    }
  }
}

.module-card {
  display: block;
  padding: 1.5rem;
  background: var(--ifm-background-color);
  border: 1px solid var(--ifm-global-border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  text-align: left;

  &:hover {
    border-color: var(--ifm-color-primary);
    transform: translateY(-2px);
    text-decoration: none;
  }

  &__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
  }

  &__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ifm-heading-color);
    margin-bottom: 0.5rem;
  }

  &__description {
    color: var(--ifm-font-color-secondary);
    font-size: 0.9rem;
    margin: 0;
  }
}

// =============================================================================
// Verbose Spotlight
// =============================================================================

.verbose-spotlight {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;

  &__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;

    @media (max-width: 996px) {
      grid-template-columns: 1fr;
    }
  }

  &__text {
    @media (max-width: 996px) {
      text-align: center;
    }
  }

  &__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ifm-heading-color);
    margin-bottom: 1rem;
  }

  &__description {
    color: var(--ifm-font-color-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;

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

  &__features {
    list-style: none;
    padding: 0;
    margin: 0;

    @media (max-width: 996px) {
      display: inline-block;
      text-align: left;
    }

    li {
      padding: 0.5rem 0;
      color: var(--ifm-font-color-base);

      &::before {
        content: '✓';
        color: var(--ifm-color-primary);
        margin-right: 0.75rem;
        font-weight: bold;
      }
    }
  }

  &__comparison {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }

  &__panel {
    background: var(--ifm-background-color);
    border: 1px solid var(--ifm-global-border-color);
    border-radius: 8px;
    overflow: hidden;

    &--verbose {
      border-color: var(--ifm-color-primary);
    }
  }

  &__panel-title {
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--ifm-global-border-color);
  }

  &__code {
    padding: 1rem;
    margin: 0;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
  }
}

// =============================================================================
// Use Cases
// =============================================================================

.use-cases {
  padding: 5rem 2rem;
  background: rgba(0, 0, 0, 0.1);

  &__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }

  &__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ifm-heading-color);
    margin-bottom: 0.5rem;
  }

  &__subtitle {
    color: var(--ifm-font-color-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
  }

  &__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;

    @media (max-width: 996px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 600px) {
      grid-template-columns: 1fr;
    }
  }
}

.use-case-card {
  padding: 2rem 1.5rem;
  background: var(--ifm-background-color);
  border: 1px solid var(--ifm-global-border-color);
  border-radius: 8px;
  text-align: center;

  &__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
  }

  &__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ifm-heading-color);
    margin-bottom: 0.75rem;
  }

  &__description {
    color: var(--ifm-font-color-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
  }
}

// =============================================================================
// Quick Install
// =============================================================================

.quick-install {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;

  &__container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
  }

  &__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ifm-heading-color);
    margin-bottom: 0.5rem;
  }

  &__subtitle {
    color: var(--ifm-font-color-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  &__command {
    display: inline-block;
    background: var(--ifm-background-color);
    border: 1px solid var(--ifm-global-border-color);
    border-radius: 8px;
    padding: 1rem 2rem;
    margin-bottom: 1rem;

    code {
      font-family: 'DM Mono', monospace;
      font-size: 1.25rem;
      color: var(--ifm-color-primary-light);
    }
  }

  &__requirements {
    color: var(--ifm-font-color-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  &__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;

    @media (max-width: 480px) {
      flex-direction: column;
    }
  }
}

// =============================================================================
// Buttons
// =============================================================================

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;

  &--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }

  &--primary {
    background: var(--ifm-color-primary);
    color: #fff;

    &:hover {
      background: var(--ifm-color-primary-dark);
      color: #fff;
      text-decoration: none;
    }
  }

  &--secondary {
    background: transparent;
    color: var(--ifm-font-color-base) !important;
    border: 1px solid var(--ifm-global-border-color);

    &:hover {
      border-color: var(--ifm-color-primary);
      color: var(--ifm-color-primary) !important;
      text-decoration: none;
    }
  }
}
