/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm); /* sharper, cyber-style */
  font-family: var(--font-mono); /* code style labels */
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--grad-primary);
  color: #000; /* High contrast black text on cyan */
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.6);
  color: #000;
}

.btn--secondary {
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: inset 0 0 10px rgba(0, 245, 255, 0.1);
}

.btn--secondary:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 14px 24px;
}

.btn--ghost:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn__icon {
  margin-left: 8px;
  display: inline-flex;
}

/* Sci-fi Glowing Cards with brackets */
.card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 8px 32px rgba(3, 7, 18, 0.6);
}

/* Spotlight Hover Card Layer */
.card--spotlight {
  overflow: hidden;
}
.spotlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(130px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(56, 189, 248, 0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}
.card--spotlight:hover .spotlight-layer {
  opacity: 1;
}

/* Sci-fi bracket overlays */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--primary);
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 2;
}

.card::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.card::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.card:hover::before, .card:hover::after {
  width: 18px;
  height: 18px;
  border-color: var(--secondary);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 22px;
  color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}

.card__title {
  color: white;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
}

.card__description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Tags & Badges */
.tag {
  background: rgba(0, 245, 255, 0.05);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  border: 1px solid transparent;
}

.badge--cyan {
  background: rgba(0, 245, 255, 0.08);
  color: var(--primary);
  border-color: rgba(0, 245, 255, 0.3);
}

.badge--violet {
  background: rgba(139, 92, 246, 0.08);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

/* Cyber Forms */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  color: var(--primary);
  margin-bottom: var(--space-2);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(6, 9, 19, 0.8);
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-body);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2300f5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

/* Code block */
.code-block {
  background: rgba(3, 6, 17, 0.9);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
  font-family: var(--font-mono);
  overflow-x: auto;
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: #00ffcc;
  box-shadow: inset 0 0 20px rgba(0, 245, 255, 0.05);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
  border: none;
  margin: var(--space-10) 0;
}

/* Icons */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 245, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
}

/* Lists */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding-left: 28px;
  margin-bottom: var(--space-3);
  position: relative;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: bold;
}
