/* Home Page Styles - GitHub Design System Quality */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  background-color: #f4f3ec;
  color: #24292f;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.home-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Navigation */
.home-nav {
  background: #ffffff;
  border-bottom: 1px solid #d0d7de;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #24292f;
  font-weight: 600;
  font-size: 16px;
}

.nav-logo-link:hover {
  opacity: 0.8;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #24292f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
  position: relative;
}

.nav-link {
  color: #24292f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #0969da;
  border-bottom-color: #0969da;
}

/* Header */
.home-header {
  margin-bottom: 28px;
  padding-top: 24px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.logo-section .logo {
  width: 48px;
  height: 48px;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.title-group h1 {
  font-size: 38px;
  font-weight: 600;
  color: #24292f;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
}

.title-group h2.small-text {
  font-size: 18px;
  color: #656d76;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

.tagline {
  font-size: 18px;
  color: #656d76;
  font-weight: 400;
  max-width: 800px;
}

/* Value Proposition Section */
.value-prop {
  margin-bottom: 24px;
}

.value-prop h2 {
  font-size: 26px;
  font-weight: 600;
  color: #24292f;
  margin-bottom: 16px;
  line-height: 1.25;
}

.value-prop .lead {
  font-size: 18px;
  color: #24292f;
  margin-bottom: 16px;
  line-height: 1.6;
}

.value-prop .quotes-container {
  margin: 0 0 24px 0;
}

.value-prop .quote {
  font-size: 18px;
  font-style: italic;
  font-weight: 460;
  margin-bottom: 12px;
  line-height: 1.25;
  /* color: #24292f; */
  color: #24292f;
  /* color: #453d76; */
  background: white;
  padding: 10px 16px;
  border-radius: 40px;
  display: inline-block;
  width: fit-content;
  border: 1px solid #d0d7de;
}

.value-prop .quote .button {
  margin-left: 12px;
  font-style: normal;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.value-item {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 20px;
  text-align: left;
}

.value-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #24292f;
  margin-bottom: 4px;
}

.value-item span {
  font-size: 14px;
  color: #57606a;
}

/* Getting Started Section */
.getting-started {
  margin-bottom: 56px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.getting-started h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 16px;
  color: #666666;
  margin-bottom: 32px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.install-step {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 24px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #24292f;
  /* background: linear-gradient(135deg, #007FFF 0%, #4B0082 100%); */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.install-step:nth-child(2) .step-badge {
  /* background: linear-gradient(135deg, #8F00FF 0%, #FF00FF 100%); */
}

.install-step h3 {
  font-size: 18px;
  font-weight: 600;
  color: #24292f;
  margin: 0;
}

.install-step p {
  font-size: 14px;
  color: #57606a;
  margin-bottom: 16px;
  line-height: 1.5;
}

.code-block {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-block code {
  font-size: 14px;
  color: #24292f;
  flex: 1;
}

.copy-button {
  background: transparent;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  color: #57606a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-button:hover {
  background: #f6f8fa;
  border-color: #8c959f;
  color: #24292f;
}

.copy-button:active {
  background: #eaeef2;
  transform: scale(0.95);
}

.copy-button svg {
  display: block;
}

.install-note {
  font-size: 13px;
  color: #57606a;
  margin-bottom: 0;
}

.install-note code {
  background: #f6f8fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

.ready-box {
  background: #ddf4ff;
  border: 1px solid #54aeff;
  border-radius: 6px;
  padding: 16px 20px;
  text-align: center;
}

.ready-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0969da;
  margin-bottom: 4px;
}

.ready-box p {
  font-size: 14px;
  color: #0969da;
  margin: 0;
}

/* How It Works Section */
.how-it-works {
  margin-bottom: 56px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.how-it-works h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.workflow-step {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-number {
  width: 24px;
  height: 24px;
  background: #f6f8fa;
  color: #57606a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.workflow-step strong {
  font-size: 15px;
  font-weight: 600;
  color: #24292f;
  display: block;
  margin-bottom: 4px;
}

.workflow-step p {
  font-size: 13px;
  color: #57606a;
  margin: 0;
  line-height: 1.5;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: 1px solid;
  line-height: 20px;
}

.button-primary {
  background-color: oklch(0.962 0.044 156.743);
  color: oklch(0.448 0.119 151.328);
  border: 1px solid oklch(0.871 0.15 154.449);
  border-radius: 6px;
  padding: 13px 13px;
  font-size: 18px;
  font-weight: 400;
  line-height: 17.92px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: none;
}

.button-primary:hover {
  background-color: oklch(0.95 0.05 156.743);
  border-color: oklch(0.85 0.16 154.449);
}

.button-secondary {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #e5e5e5;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.04);
}

.button-secondary:hover {
  background: #f9f9f9;
  border-color: #e5e5e5;
}

/* Footer */
.home-footer {
  text-align: center;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid #d0d7de;
}

.home-footer p {
  font-size: 14px;
  color: #57606a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .home-container {
    padding: 24px 16px;
  }

  .home-nav {
    margin: -24px -16px 24px -16px;
    padding: 0 16px;
  }

  .nav-logo-text {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #d0d7de;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-menu[aria-hidden="false"] {
    max-height: 300px;
    padding: 8px 0;
  }

  .nav-menu[aria-hidden="true"] {
    max-height: 0;
    padding: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f6f8fa;
  }

  .nav-link:hover {
    background: #f6f8fa;
    border-bottom-color: #f6f8fa;
  }

  .logo-section .logo {
    width: 40px;
    height: 40px;
  }

  .title-group h1 {
    font-size: 28px;
  }

  .title-group h2.small-text {
    font-size: 16px;
  }

  .tagline {
    font-size: 16px;
  }

  .value-prop h2 {
    font-size: 26px;
  }

  .value-prop .lead {
    font-size: 16px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .install-steps {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .getting-started h2,
  .how-it-works h2 {
    font-size: 24px;
  }
}
