/**
 * CSS files with the .module.css suffix will be treated as CSS modules
 * and scoped locally.
 */

.heroBanner {
  padding: 4rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

@media screen and (max-width: 996px) {
  .heroBanner {
    padding: 2rem 1rem 2rem;
  }
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.installCodeContainer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.installCode {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid #30363d;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.installCode:hover {
  background: rgba(22, 27, 34, 1);
  border-color: #60a5fa;
  box-shadow: 0 4px 20px rgba(96, 165, 250, 0.2);
}

.installCode code {
  font-size: 1rem;
  color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Feature Sections */
.featureSection {
  padding: 8rem 0;
  background: #0d1117;
  position: relative;
  overflow: hidden;
}

.featureSectionAlt {
  padding: 8rem 0;
  background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
  position: relative;
  overflow: hidden;
}

.featureContent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featureContentReverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featureText {
  z-index: 2;
}

.featureTitle {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.featureDescription {
  font-size: 1.1rem;
  color: #8b949e;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.featureDescription code {
  background: rgba(110, 118, 129, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  color: #60a5fa;
  font-size: 0.95rem;
}

.featureList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.featureList li {
  font-size: 1.05rem;
  color: #c9d1d9;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.featureList li:last-child {
  border-bottom: none;
}

.featureVisual {
  z-index: 2;
}

/* Code Window */
.codeWindow {
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid #30363d;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.codeWindowHeader {
  background: rgba(13, 17, 23, 0.6);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.codeWindowHeader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #30363d;
}

.codeWindowHeader span:nth-child(1) {
  background: #ff5f56;
}

.codeWindowHeader span:nth-child(2) {
  background: #ffbd2e;
}

.codeWindowHeader span:nth-child(3) {
  background: #27c93f;
}

.codeWindowContent {
  padding: 1.5rem;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.codeWindowContent code {
  color: #60a5fa;
  font-size: 0.95rem;
}

.codeOutput {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #30363d;
}

.codeOutput span {
  color: #8b949e;
  font-size: 0.9rem;
}

.codeComment {
  color: #6e7681 !important;
  font-style: italic;
}

/* Template Grid */
.templateGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.templateCard {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid #30363d;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.templateCard:hover {
  border-color: #60a5fa;
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.2);
}

.templateIcon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
}

.templateCard div:last-child {
  color: #c9d1d9;
  font-size: 1rem;
  font-weight: 500;
}

/* Port Monitor */
.portMonitor {
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid #30363d;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.portMonitorHeader {
  background: rgba(13, 17, 23, 0.6);
  padding: 1rem 1.5rem;
  color: #e6edf3;
  font-weight: 600;
  border-bottom: 1px solid #30363d;
}

.portList {
  padding: 1rem;
}

.portItem {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  padding: 1rem;
  background: rgba(13, 17, 23, 0.4);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.portItem:hover {
  background: rgba(13, 17, 23, 0.8);
  transform: translateX(4px);
}

.portItem:last-child {
  margin-bottom: 0;
}

.portNumber {
  color: #60a5fa;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-weight: 600;
  font-size: 1rem;
}

.portService {
  color: #c9d1d9;
  font-size: 0.95rem;
}

.portStatus {
  color: #3fb950;
  font-size: 1.25rem;
  text-align: center;
}

@media screen and (max-width: 996px) {
  .featureSection,
  .featureSectionAlt {
    padding: 4rem 0;
  }

  .featureContent,
  .featureContentReverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .featureTitle {
    font-size: 2rem;
  }

  .featureDescription {
    font-size: 1rem;
  }
}

/* Quick Start Section */
.quickStartSection {
  padding: 5rem 0;
  background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
  position: relative;
}

.quickStartSection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
}

.quickStartHeader {
  text-align: center;
  margin-bottom: 4rem;
}

.quickStartTitle {
  font-size: 2.5rem;
  color: #e6edf3;
}

.quickStartGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.quickStartCard {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid #30363d;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.quickStartCard:hover {
  border-color: #60a5fa;
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.15);
}

.stepNumber {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin: 0 auto 1.5rem;
}

.quickStartCard h3 {
  font-size: 1.5rem;
  color: #e6edf3;
  margin-bottom: 1rem;
}

.codeBlock {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid #30363d;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.codeBlock code {
  color: #60a5fa;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.95rem;
}

.quickStartCard p {
  color: #8b949e;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media screen and (max-width: 996px) {
  .quickStartSection {
    padding: 3rem 0;
  }

  .quickStartTitle {
    font-size: 2rem;
  }

  .quickStartGrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
