/* Terminal/Retro theme inspired by gogcli.sh */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d1117;
  --fg: #c9d1d9;
  --dim: #8b949e;
  --accent: #58a6ff;
  --success: #3fb950;
  --error: #f85149;
  --border: #30363d;
  --code-bg: #161b22;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Courier New', monospace;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  max-width: 800px;
  width: 100%;
}

.ascii-logo {
  font-size: 0.5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 2rem;
  overflow-x: auto;
  white-space: pre;
}

@media (max-width: 600px) {
  .ascii-logo {
    font-size: 0.35rem;
  }
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--success);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

p {
  margin-bottom: 1rem;
  color: var(--fg);
}

.inviter-info {
  font-size: 1.1rem;
  color: var(--dim);
}

.hr {
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.option-box {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.code-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

code {
  font-family: inherit;
  color: var(--success);
  font-size: 0.95rem;
  word-break: break-all;
  flex: 1;
}

.invite-code {
  color: var(--accent);
  font-weight: bold;
}

.copy-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #79c0ff;
}

.copy-btn:active {
  background: #388bfd;
}

.copy-btn.copied {
  background: var(--success);
}

.help-text {
  color: var(--dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.info-section {
  margin-top: 2rem;
}

.features {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.feature {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature strong {
  color: var(--accent);
  font-size: 1rem;
}

.feature span {
  color: var(--dim);
  font-size: 0.9rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--dim);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Loading state */
.loading-text {
  text-align: center;
  color: var(--accent);
  font-size: 1.2rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Error state */
.error-text {
  color: var(--error);
  font-size: 1.1rem;
}

/* Landing page specific */
.subtitle {
  font-size: 1.2rem;
  color: var(--dim);
  margin-bottom: 2rem;
}

.install-section,
.what-section,
.how-section,
.tech-section {
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.step {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step strong {
  color: var(--success);
  font-size: 1rem;
}

.step span {
  color: var(--dim);
  font-size: 0.9rem;
}

/* Inline links */
p a,
.help-text a {
  color: var(--accent);
  text-decoration: none;
}

p a:hover,
.help-text a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem 0.5rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .code-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-btn {
    width: 100%;
  }
}
