/* =============================================================================
   TRY PAGE — PLG entry point
   ============================================================================= */

.page-try {
  --purple: #7c5cfc;
  --teal: #00d4aa;
}

/* =============================================================================
   HERO
   ============================================================================= */

.try-hero {
  position: relative;
  padding: 72px 0 48px;
  text-align: center;
}

.try-hero-mesh {
  position: absolute;
  inset: -80px 0;
  left: calc(-50vw + 50%);
  right: calc(-50vw + 50%);
  background:
    radial-gradient(ellipse 50% 70% at 50% 30%, rgba(124,92,252,0.08), transparent),
    radial-gradient(ellipse 40% 50% at 30% 60%, rgba(0,212,170,0.04), transparent);
  pointer-events: none;
}

.try-headline {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f0ecff 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.try-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 40px;
  position: relative;
}

/* =============================================================================
   INPUT FORM
   ============================================================================= */

.try-form {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.try-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.try-input-row:focus-within {
  border-color: rgba(124,92,252,0.40);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.08);
}

.try-input-row.try-input-error {
  border-color: rgba(255,107,107,0.50);
}

.try-input-icon {
  color: var(--muted2);
  flex-shrink: 0;
}

.try-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: var(--sans);
  padding: 12px 0;
}

.try-input::placeholder {
  color: var(--muted2);
}

.try-submit-btn {
  padding: 12px 24px;
  background: rgba(124,92,252,0.18);
  border: 1px solid rgba(124,92,252,0.30);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--sans);
}

.try-submit-btn:hover {
  background: rgba(124,92,252,0.28);
  border-color: rgba(124,92,252,0.45);
}

.try-error-msg {
  color: #ff6b6b;
  font-size: 13px;
  margin: 10px 0 0;
  text-align: left;
}

.try-input-hint {
  font-size: 12px;
  color: var(--muted2);
  margin: 10px 0 0;
}

/* =============================================================================
   DEMO REPOS
   ============================================================================= */

.try-demos {
  padding: 56px 0 48px;
  text-align: center;
}

.try-demos-heading {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}

.try-demos-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 32px;
}

.try-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.try-demo-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  color: inherit;
  position: relative;
}

.try-demo-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(124,92,252,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Card header: command badge + language */
.try-demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.try-demo-cmd {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.badge-diff {
  color: #64b5ff;
  background: rgba(100,181,255,0.10);
  border: 1px solid rgba(100,181,255,0.25);
}

.badge-scan {
  color: var(--teal);
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.20);
}

.badge-ecosystem {
  color: #c4b5fd;
  background: rgba(124,92,252,0.10);
  border: 1px solid rgba(124,92,252,0.25);
}

.try-demo-lang {
  font-size: 11px;
  color: var(--muted2);
  font-weight: 500;
}

.try-demo-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.try-demo-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.try-demo-arrow {
  color: var(--muted2);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
  align-self: flex-end;
}

.try-demo-card:hover .try-demo-arrow {
  color: var(--purple);
  transform: translateX(3px);
}

/* Links below the grid */
.try-demos-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.try-demos-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.try-demos-link:hover {
  color: var(--text);
}

.try-demos-link .btn-arrow {
  transition: transform 0.2s;
  display: inline-block;
}

.try-demos-link:hover .btn-arrow {
  transform: translateX(3px);
}

/* =============================================================================
   WHAT YOU'LL SEE
   ============================================================================= */

.try-what-section {
  padding: 48px 0 56px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.try-what-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 28px;
  color: var(--text);
}

.try-what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.try-what-card {
  padding: 24px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  transition: all 0.3s;
}

.try-what-card:hover {
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

.try-what-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 14px;
}

.try-what-icon.icon-teal {
  color: var(--teal);
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.15);
}

.try-what-icon.icon-blue {
  color: var(--info);
  background: rgba(100,181,255,0.08);
  border: 1px solid rgba(100,181,255,0.15);
}

.try-what-icon.icon-purple {
  color: var(--purple);
  background: rgba(124,92,252,0.08);
  border: 1px solid rgba(124,92,252,0.15);
}

.try-what-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.try-what-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* =============================================================================
   CTA
   ============================================================================= */

.try-cta {
  padding: 48px 0 64px;
  text-align: center;
}

.try-cta-text {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 20px;
}

.try-cta-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(124,92,252,0.06);
  border: 1px solid rgba(124,92,252,0.22);
  border-radius: 12px;
  font-family: var(--mono);
}

.try-cta-install code {
  font-size: 14px;
  color: var(--text);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
  .try-headline {
    font-size: 34px;
  }

  .try-what-grid {
    grid-template-columns: 1fr;
  }

  .try-demos-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .try-hero {
    padding: 48px 0 32px;
  }

  .try-headline {
    font-size: 28px;
  }

  .try-demo-grid {
    grid-template-columns: 1fr;
  }

  .try-submit-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}
