/* ============================================================
   BUILDS PAGE — builds.css
   ============================================================ */

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(24px, 6vw, 100px) clamp(60px, 8vh, 100px);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--bg-base);
}

.builds-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(147, 216, 27, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(147, 216, 27, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.builds-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: clamp(24px, 6vw, 100px);
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(147, 216, 27, 0.3), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero-content .label-tag {
  display: block;
  margin-bottom: 20px;
}

.page-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.page-hero-heading em {
  font-style: normal;
  color: var(--electric-blue);
}

.page-hero-sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(24px, 6vw, 100px);
  flex-wrap: wrap;
}

.filter-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  background: transparent;
  transition: var(--transition-base);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: rgba(147, 216, 27, 0.4);
  color: var(--electric-blue);
}

.filter-btn.active {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  color: #000;
}

.filter-count {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-left: auto;
  flex-shrink: 0;
}

.filter-count span {
  color: var(--electric-blue);
  font-weight: 700;
}

/* ── Builds Grid ───────────────────────────────────────────── */
.builds-main {
  padding: 60px clamp(24px, 6vw, 100px);
  background: var(--bg-base);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  min-height: 60vh;
}

/* ── Build Card (extended for builds page) ─────────────────── */
.build-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.build-card:hover {
  animation: rgb-border 2s linear infinite;
}

/* ── CTA Strip ─────────────────────────────────────────────── */
.builds-cta-strip {
  padding: clamp(60px, 8vw, 120px) clamp(24px, 6vw, 100px);
  background: var(--bg-surface);
  border-top: 1px solid rgba(147, 216, 27, 0.08);
}

.builds-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.builds-cta-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 16px;
}

.builds-cta-heading em {
  font-style: normal;
  color: var(--electric-blue);
}

.builds-cta-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.7;
}

.builds-cta-btn {
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── BUILD YOUR OWN Section ────────────────────────────────── */
.filter-btn--byo {
  border-color: rgba(147, 216, 27, 0.3);
  color: var(--electric-blue);
}
.filter-btn--byo:hover,
.filter-btn--byo.active {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  color: #000;
}

.byo-section-wrap {
  display: none;
}
.byo-section-wrap.byo-visible {
  display: block;
  background: var(--bg-surface);
  border-top: 1px solid rgba(147, 216, 27, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.byo-header-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 100px) clamp(40px, 5vw, 60px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.byo-hero-left {
  flex: 1;
}

.byo-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--electric-blue);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.byo-eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--electric-blue);
  flex-shrink: 0;
}

.byo-main-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.byo-main-heading em {
  font-style: normal;
  color: var(--electric-blue);
}

.byo-main-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
}

/* Step tracker */
.byo-hero-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding-bottom: 8px;
}

.byo-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.byo-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--electric-blue);
  color: var(--electric-blue);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.byo-step-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.byo-step-divider {
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 12px;
}


/* Layout: form col + spec col */
.byo-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: start;
}

/* Form column */
.byo-form-col {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 clamp(24px, 5vw, 72px);
}

/* Each form block */
.byo-field-section {
  padding: 44px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.byo-field-section:last-child { border-bottom: none; }

.byo-field-eyebrow {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--electric-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.byo-field-eyebrow.optional { color: #555; }

.byo-field-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 28px;
}

/* Brand toggle */
.byo-brand-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
}
.byo-brand-btn {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  border-radius: 0;
}
.byo-brand-btn:first-child { border-right: none; }
.byo-brand-btn:hover { border-color: var(--electric-blue); color: var(--electric-blue); }
.byo-brand-btn.active {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  color: #000;
}

/* Sub-section */
.byo-sub-section { display: none; }
.byo-sub-section.visible { display: block; }
.byo-sub-marker {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #444;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 20px;
}
.byo-cascade { display: flex; flex-direction: column; gap: 14px; }

/* Fields */
.byo-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.byo-field:last-child { margin-bottom: 0; }

.byo-field-lbl {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
}
.byo-req { color: var(--electric-blue); }

.byo-field-input,
.byo-field-select,
.byo-field-textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.07);
  border-bottom: 2px solid rgba(255,255,255,0.1);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.byo-field-input::placeholder,
.byo-field-textarea::placeholder { color: #2a2a2a; }

.byo-field-input:focus,
.byo-field-textarea:focus {
  border-color: var(--electric-blue);
  border-bottom-color: var(--electric-blue);
  background: #0f0f0f;
}
.byo-field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
  padding-right: 36px;
  cursor: pointer;
}
.byo-field-select:focus {
  border-color: rgba(255,255,255,0.1);
  border-bottom-color: #444;
  background-color: #0f0f0f;
  background-image: none;
}
.byo-field-select option { background: #0f0f0f; color: var(--text-primary); }
.byo-field-select:disabled { opacity: 0.25; cursor: not-allowed; }
.byo-field-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.byo-fields-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Submit */
.byo-submit-area {
  padding: 44px 0 52px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.byo-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.byo-btn-submit svg { transition: transform 0.2s ease; }
.byo-btn-submit:hover svg { transform: translateX(5px); }
.byo-submit-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}
.byo-submit-note span { color: var(--electric-blue); }

/* Spec Sheet column */
.byo-spec-col {
  background: #080808;
  position: sticky;
  top: var(--nav-height);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.byo-spec-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #1a1a1a;
}
.byo-spec-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.byo-spec-title {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--electric-blue);
}
.byo-spec-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.byo-spec-dot {
  width: 6px; height: 6px;
  background: var(--electric-blue);
  border-radius: 0;
  animation: blink 1.4s ease-in-out infinite;
}
.byo-spec-status-text {
  font-family: var(--font-display);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #555;
  text-transform: uppercase;
}
.byo-spec-sub {
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #3a3a3a;
  text-transform: uppercase;
}

.byo-spec-body { flex: 1; padding: 0 24px; }
.byo-spec-group {
  border-bottom: 1px solid #1a1a1a;
  padding: 18px 0;
}
.byo-spec-group:last-child { border-bottom: none; }
.byo-spec-group-label {
  font-family: var(--font-display);
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #3d3d3d;
  margin-bottom: 10px;
}
.byo-spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}
.byo-spec-key {
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}
.byo-spec-line {
  flex: 1;
  height: 1px;
  background: #252525;
  margin: 0 6px;
  position: relative;
  top: -3px;
}
.byo-spec-val {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  text-align: right;
  transition: color 0.25s ease;
}
.byo-spec-val.active { color: var(--electric-blue); }

/* Toast */
.byo-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 9999;
  transition: transform 0.35s ease;
  white-space: nowrap;
  border-radius: 0;
}
.byo-toast.show { transform: translateX(-50%) translateY(0); }
.byo-toast--success { background: var(--electric-blue); color: #000; }
.byo-toast--error   { background: #ff3b5c; color: #fff; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .builds-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .builds-main {
    grid-template-columns: 1fr;
  }

  .filter-bar-inner {
    gap: 12px;
  }

  .filter-count {
    display: none;
  }

  .builds-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    min-height: 50vh;
  }

  .byo-layout {
    grid-template-columns: 1fr;
  }

  .byo-spec-col {
    display: none;
  }

  .byo-form-col {
    border-right: none;
  }

  .byo-fields-2col {
    grid-template-columns: 1fr;
  }

  .byo-brand-btn {
    padding: 12px 14px;
    font-size: 0.58rem;
  }

  .byo-header-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .byo-main-heading {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 0.95;
  }

  .byo-hero-steps {
    flex-wrap: wrap;
    gap: 8px;
  }

  .byo-step-divider {
    display: none;
  }

  .byo-step {
    gap: 8px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .byo-layout {
    grid-template-columns: 1fr 260px;
  }
}

/* ── Mobile Build Summary FAB ──────────────────────────── */
.byo-summary-fab {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 16px;
  z-index: 199;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #111;
  border: 1px solid rgba(147, 216, 27, 0.35);
  border-radius: 40px;
  color: var(--electric-blue);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.byo-summary-fab:hover {
  background: rgba(147, 216, 27, 0.08);
  border-color: var(--electric-blue);
}

@media (max-width: 767px) {
  .byo-summary-fab.byo-fab-visible {
    display: flex;
  }
}

/* ── Mobile Build Summary Modal ────────────────────────── */
.byo-summary-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.byo-summary-modal.open {
  opacity: 1;
  visibility: visible;
}

.byo-summary-sheet {
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 20px 24px 40px;
  transform: translateY(40px);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.byo-summary-modal.open .byo-summary-sheet {
  transform: translateY(0);
}

.byo-summary-drag-handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.byo-summary-continue {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  background: var(--electric-blue);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.byo-summary-continue:hover {
  opacity: 0.88;
}

/* ── T&C Checkbox Row ──────────────────────────────────── */
.byo-tc-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.byo-tc-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--electric-blue);
  cursor: pointer;
}

.byo-tc-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.byo-tc-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--electric-blue);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.byo-tc-link:hover {
  opacity: 0.8;
}

/* ── T&C Modal Sheet ───────────────────────────────────── */
.byo-tc-sheet .byo-tc-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.byo-tc-body {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.75;
}

.byo-tc-sub {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric-blue);
  margin: 20px 0 8px;
}

.byo-tc-sub:first-child {
  margin-top: 0;
}

.byo-tc-body p {
  margin-bottom: 4px;
}
