/* ============================================================
   TECHCELER — components.css
   Buttons · Cards · Badges · Logo · Forms · Tags
   ============================================================ */

/* ---------- Brand logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* PNG wordmark — dark ink by default; white version on dark surfaces */
.brand__img {
  display: block;
  height: 36px;
  width: auto;
}
.brand__img--light {
  display: none;
}
.brand--light .brand__img--dark {
  display: none;
}
.brand--light .brand__img--light {
  display: block;
}
.brand__icon {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand__word {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}
.brand--light .brand__word {
  color: #fff;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-top: 2px;
}
.brand--light .brand__tag {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #7b5ea7, #ff4d8b);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(123, 94, 167, 0.3);
  background-size: 160% 160%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(123, 94, 167, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border2);
}
.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Pill / tag / badge ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--purple);
  border: 1px solid rgba(123, 94, 167, 0.18);
}
.tag-light {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--pink);
}

/* ---------- Generic feature card ---------- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(123, 94, 167, 0.25);
}

/* glass card padding variant */
.glass-card.pad,
.glass-on-dark.pad,
.glass-dark.pad {
  padding: 32px;
}

/* shimmer effect for cards on hover */
.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.shimmer:hover::after {
  left: 130%;
}

/* icon chip */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(123, 94, 167, 0.18);
  color: var(--purple);
  margin-bottom: 20px;
}
.icon-chip svg {
  width: 26px;
  height: 26px;
}
.icon-chip.solid {
  background: var(--gradient);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(123, 94, 167, 0.3);
}
.on-dark .icon-chip,
.bg-dark .icon-chip,
.bg-darker .icon-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.card h3,
.glass-card h3 {
  margin-bottom: 12px;
}
.card p {
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- Forms ---------- */
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.field .req {
  color: var(--pink);
}
.input,
.textarea,
.select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-primary);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-light);
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 94, 167, 0.12);
}
.textarea {
  min-height: 140px;
  resize: vertical;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* form success / error */
.form-note {
  margin-top: 14px;
  font-size: 0.92rem;
}
.form-success {
  display: none;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  border: 1px solid rgba(123, 94, 167, 0.25);
  color: var(--text-secondary);
}
.form-success.show {
  display: block;
}
.form-error {
  display: none;
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #9f1239;
}
.form-error.show {
  display: block;
}
.form-error a {
  color: var(--purple);
  font-weight: 600;
}

/* ---------- Progress bar (pinned / horizontal scroll) ---------- */
.progress-track {
  position: relative;
  height: 4px;
  width: 100%;
  background: rgba(123, 94, 167, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.progress-track.on-dark {
  background: rgba(255, 255, 255, 0.12);
}
.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--gradient);
  border-radius: 999px;
  transform-origin: left center;
}

/* ---------- Divider ---------- */
.gradient-rule {
  height: 2px;
  width: 100%;
  background: var(--gradient);
  border: none;
  opacity: 0.5;
}

/* ---------- Shared page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, #1b2a3b 0%, #0d2137 100%);
  color: #fff;
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.page-hero .mesh-blob:nth-child(1) {
  width: 460px;
  height: 460px;
  top: -140px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 77, 139, 0.4), transparent 70%);
}
.page-hero .mesh-blob:nth-child(2) {
  width: 480px;
  height: 480px;
  bottom: -220px;
  left: -120px;
  background: radial-gradient(circle, rgba(123, 94, 167, 0.45), transparent 70%);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.page-hero__inner.center {
  margin-inline: auto;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  margin: 22px 0 22px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
  line-height: 1.7;
  max-width: 640px;
}
.page-hero__inner.center p {
  margin-inline: auto;
}
.page-hero .btn-row {
  margin-top: 32px;
}

/* breadcrumb-ish small label row */
.kicker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Grid helpers ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
